/* ------------------------------
   Reset & Variables
------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0 0 16px 22px; padding: 0; }
li { margin-bottom: 8px; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #06D6A0; outline-offset: 2px; }

:root {
  --color-primary: #0E2A3A;
  --color-secondary: #A94613;
  --color-accent: #F4F7FA;
  /* Playful supportive accents */
  --fun-1: #FFB703; /* bright amber */
  --fun-2: #06D6A0; /* mint */
  --fun-3: #EF476F; /* pink-red */
  --fun-4: #118AB2; /* energetic blue */
  --text-dark: #0E2A3A;
  --text-mid: #23485F;
  --text-light: #5C7483;
  --bg: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(14, 42, 58, 0.08);
  --shadow-md: 0 8px 20px rgba(14, 42, 58, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition-fast: 160ms ease;
  --transition-med: 260ms ease;
}

/* ------------------------------
   Base Typography
------------------------------ */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; color: var(--text-dark); margin: 0 0 14px; line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: 0.3px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px; color: var(--text-mid); }
.subheadline { font-size: 18px; color: var(--text-light); }
.note { font-size: 14px; color: var(--text-light); }
strong { color: var(--text-dark); }

/* ------------------------------
   Containers & Layout (Flex-only)
------------------------------ */
/* Mandatory spacing pattern classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Generic sections to ensure spacing across pages */
section { padding: 40px 20px; margin-bottom: 60px; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex; /* flex-only */
  flex-direction: column;
}
.content-wrapper {
  display: flex; /* flex-only */
  flex-direction: column;
  gap: 20px; /* breathing room */
  align-items: flex-start;
}
.content-wrapper > h2, .content-wrapper > .subheadline, .content-wrapper > p, .content-wrapper > ol, .content-wrapper > ul { flex: 1 1 100%; }

/* Items that repeat inside wrappers */
.text-section { background: var(--color-accent); border: 2px solid rgba(17, 138, 178, 0.12); padding: 18px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform var(--transition-med), box-shadow var(--transition-med); }
.text-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ------------------------------
   Header & Navigation
------------------------------ */
header { position: sticky; top: 0; z-index: 999; background: #fff; box-shadow: 0 4px 16px rgba(14,42,58,0.06); }
header .container { padding-top: 12px; padding-bottom: 12px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
.logo img { height: 42px; width: auto; }

.main-nav { display: none; gap: 12px; align-items: center; flex-wrap: wrap; }
.main-nav a { padding: 10px 14px; border-radius: 999px; color: var(--text-dark); transition: background var(--transition-fast), transform var(--transition-fast); background: transparent; }
.main-nav a:hover { background: var(--color-accent); transform: translateY(-1px); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 12px 18px; font-weight: bold; letter-spacing: 0.2px; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast); border: 0; }
.button.primary { background: var(--fun-3); color: #fff; box-shadow: 0 8px 18px rgba(239,71,111,0.3); }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(239,71,111,0.36); }
.button.secondary { background: var(--fun-2); color: #0B2B36; box-shadow: 0 8px 18px rgba(6,214,160,0.28); }
.button.secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(6,214,160,0.34); }
.button.link { background: transparent; color: var(--color-secondary); padding: 8px 10px; position: relative; }
.button.link::after { content: ""; height: 3px; width: 100%; background: var(--fun-1); border-radius: 3px; position: absolute; left: 0; bottom: 0; transform: scaleX(0); transform-origin: left; transition: transform var(--transition-med); }
.button.link:hover::after { transform: scaleX(1); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--color-primary); background: #fff; color: var(--color-primary); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.mobile-menu-toggle:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0 0 0 0; background: #fff; transform: translateX(100%); transition: transform 300ms ease; z-index: 1000; display: flex; flex-direction: column; padding: 20px; box-shadow: var(--shadow-md); }
.mobile-menu.active, .mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--fun-3); color: #fff; cursor: pointer; box-shadow: 0 10px 20px rgba(239,71,111,0.25); transition: transform var(--transition-fast); }
.mobile-menu-close:hover { transform: rotate(8deg) scale(1.05); }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; }
.mobile-nav a { padding: 14px 16px; border-radius: 14px; background: var(--color-accent); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.mobile-nav a:hover { background: #EAF1F7; }

/* Show/Hide nav by breakpoint */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------
   Hero Section (Playful & Dynamic)
------------------------------ */
.hero { position: relative; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--color-accent); }
.hero .content-wrapper { padding-top: 12px; padding-bottom: 12px; }
.hero h1 { font-size: 30px; }
.hero .subheadline { max-width: 760px; }

/* Playful decorative shapes (pure solid colors) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; opacity: 0.15; }
.hero::before { width: 240px; height: 240px; background: var(--fun-2); right: -60px; top: -60px; animation: floaty 9s ease-in-out infinite; }
.hero::after { width: 180px; height: 180px; background: var(--fun-3); left: -40px; bottom: -40px; animation: floaty2 11s ease-in-out infinite; }
.hero .container, .hero .content-wrapper, .hero * { position: relative; z-index: 1; }

@keyframes floaty { 0% { transform: translateY(0); } 50% { transform: translateY(14px); } 100% { transform: translateY(0); } }
@keyframes floaty2 { 0% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-12px) translateX(6px); } 100% { transform: translateY(0) translateX(0); } }

/* Trust badges & supporting points */
.trust-badges ul, .supporting-points { display: flex; flex-wrap: wrap; gap: 12px 16px; list-style: none; margin: 10px 0 0; padding: 0; }
.trust-badges li, .supporting-points li { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px dashed var(--fun-1); padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 14px; color: var(--text-dark); }
.trust-badges img, .supporting-points img { width: 18px; height: 18px; }

/* ------------------------------
   Lists, Steps, and Content Blocks
------------------------------ */
.content-wrapper > ul, .content-wrapper > ol { background: #fff; border-radius: var(--radius-md); border: 2px solid rgba(17,138,178,0.12); padding: 16px 16px 16px 24px; box-shadow: var(--shadow-sm); }
.content-wrapper > ol { counter-reset: step; }
.content-wrapper > ol > li { position: relative; list-style: none; margin: 0 0 12px 0; padding-left: 40px; }
.content-wrapper > ol > li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--fun-4); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; box-shadow: 0 6px 16px rgba(17,138,178,0.28); }

/* ------------------------------
   Cards & Testimonials (high contrast)
------------------------------ */
.testimonial-card { background: #FFFFFF; border: 3px solid var(--fun-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--text-dark); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 6px; }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Generic card style for reuse */
.card { background: #fff; border-radius: var(--radius-md); border: 2px solid rgba(14,42,58,0.08); box-shadow: var(--shadow-sm); padding: 16px; transition: transform var(--transition-med), box-shadow var(--transition-med); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ------------------------------
   Footer
------------------------------ */
footer { background: #0D2330; color: #E8F0F5; }
footer section { margin-bottom: 0; padding-top: 36px; padding-bottom: 36px; }
footer .content-wrapper { flex-direction: column; gap: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-nav a { color: #E8F0F5; background: rgba(255,255,255,0.06); padding: 8px 12px; border-radius: 999px; }
.footer-nav a:hover { background: rgba(255,255,255,0.12); }

/* ------------------------------
   Map Placeholder & Utility Blocks
------------------------------ */
.map-placeholder { display: flex; align-items: center; justify-content: center; height: 220px; background: repeating-linear-gradient(45deg, #EAF1F7, #EAF1F7 10px, #F7FBFF 10px, #F7FBFF 20px); border: 2px solid rgba(14,42,58,0.1); border-radius: var(--radius-md); color: var(--text-light); box-shadow: var(--shadow-sm); }

.brand-summary { background: rgba(255,183,3,0.12); border: 2px solid rgba(255,183,3,0.35); padding: 14px 16px; border-radius: var(--radius-md); color: #2D2D2D; }

/* ------------------------------
   Responsive Flex Behaviors
------------------------------ */
/* Text + image blocks */
.text-image-section { align-items: center; }
.text-image-section > * { flex: 1 1 280px; }

/* Arrange text cards responsively */
.content-wrapper .text-section { flex: 1 1 280px; }

/* Content grids */
.content-grid > * { flex: 1 1 260px; }
.card-container > * { flex: 1 1 260px; }

@media (min-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 42px; }
  .content-wrapper { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 1100px) {
  h1 { font-size: 46px; }
}

/* ------------------------------
   Mobile-first adjustments
------------------------------ */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ------------------------------
   Links & Micro-interactions
------------------------------ */
a:hover { color: var(--color-secondary); }

/* Fun badge wobble on hover for playful vibe */
.trust-badges li:hover, .supporting-points li:hover { animation: wobble 350ms ease-in-out; }
@keyframes wobble { 0% { transform: rotate(0deg); } 25% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } 100% { transform: rotate(0deg); } }

/* ------------------------------
   Mobile Navigation Requirements
------------------------------ */
/* Ensure main nav hidden on mobile by default; shown above at >=992px */
/* Mobile menu overlay already defined; add backdrop animation */
.mobile-menu { backdrop-filter: none; }
.mobile-menu.open .mobile-nav a, .mobile-menu.active .mobile-nav a { animation: slidein var(--transition-med) both; }
@keyframes slidein { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ------------------------------
   Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: #ffffff; border-top: 4px solid var(--fun-4); box-shadow: 0 -10px 30px rgba(14,42,58,0.16); padding: 16px; display: flex; flex-direction: column; gap: 12px; animation: bannerIn 300ms ease-out both; }
.cookie-banner .container { max-width: 1160px; padding: 0 16px; }
.cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-accept { background: var(--fun-2); color: #0B2B36; }
.cookie-reject { background: #EEEEEE; color: #333; }
.cookie-settings { background: var(--fun-1); color: #3A2A00; }
.cookie-accept, .cookie-reject, .cookie-settings { border-radius: 999px; padding: 10px 16px; border: 0; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); box-shadow: var(--shadow-sm); }
.cookie-accept:hover, .cookie-reject:hover, .cookie-settings:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

@keyframes bannerIn { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(14,42,58,0.55); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal-content { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 720px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 14px; animation: modalIn 240ms ease-out both; }
@keyframes modalIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal-close { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--fun-3); color: #fff; cursor: pointer; }
.cookie-category { display: flex; flex-direction: column; gap: 8px; background: var(--color-accent); border: 2px solid rgba(17,138,178,0.12); padding: 12px; border-radius: var(--radius-md); }
.cookie-category .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 10px; }
.cookie-save { align-self: flex-end; }

/* ------------------------------
   Accessibility & States
------------------------------ */
button:disabled, .button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ------------------------------
   Page-specific fine-tuning
------------------------------ */
/* Price lists */
.content-wrapper > ul li { color: var(--text-mid); }

/* Newsletter / small info blocks */
.newsletter-brief, .contact-mini { background: rgba(6,214,160,0.08); border: 2px solid rgba(6,214,160,0.28); border-radius: var(--radius-md); padding: 12px 14px; }

/* Ensure adequate spacing between all cards/sections */
.text-section, .testimonial-card, .card { margin: 10px 0; }

/* Prevent overlaps: all containers use flex with gaps; ensure wrap */
.content-wrapper, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item { gap: 20px; }

/* ------------------------------
   Print minimal styles
------------------------------ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { page-break-inside: avoid; }
}
