/* ==========================================================================
   Beyond Borders KE — Design System & Base Styles
   Palette sampled directly from the client logo (deep navy passport +
   metallic gold text/ring). Two gold tokens on purpose:
     --color-accent      true vibrant logo gold (~2.6:1 on white) — decorative
                          only: ribbon, dark-background text/icons, glows.
                          Never used for small text/icons on a light surface.
     --color-accent-deep muted bronze-gold (~4.9:1 on white) — the AA-safe
                          gold for any text/icon/link that sits on a light
                          background (eyebrows, "Learn more" links, borders).
   Navy remains the workhorse for body text, headings and primary buttons
   (14–17:1 on white) so nothing load-bearing depends on the lighter gold.
   Type: Lexend (headings) + Source Sans 3 (body).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --color-primary: #0B2050;
  --color-primary-dark: #060F2E;
  --color-primary-light: #2748A8;
  --color-accent: #C9972F;
  --color-accent-light: #E0B563;
  --color-accent-deep: #8A5F0D;
  --color-bg: #FAF8F3;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5EEDD;
  --color-text: #0F172A;
  --color-text-muted: #55647A;
  --color-border: #E4DFD0;
  --color-success: #15803D;
  --color-success-bg: #F0FDF4;
  --color-error: #B91C1C;
  --color-error-bg: #FEF2F2;
  --color-on-primary: #FFFFFF;
  --color-on-accent: var(--color-primary-dark);

  /* Kenyan flag ribbon accent — used sparingly as a thin decorative divider,
     echoing the ribbon wrapped around the logo. Never used for text/UI. */
  --flag-black: #000000;
  --flag-red: #BB0000;
  --flag-white: #FFFFFF;
  --flag-green: #006600;

  /* Type */
  --font-heading: 'Lexend', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.375rem;
  --text-5xl: 3rem;
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Spacing (4pt scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --header-h: 76px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-filled { fill: currentColor; stroke: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-primary-dark);
  text-wrap: balance;
}
h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  :root { --text-5xl: 3.5rem; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

.section {
  padding-block: var(--space-16);
}
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }

.section-alt { background: var(--color-surface-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--color-accent-deep);
  border-radius: var(--radius-full);
}
/* On dark backgrounds (hero, cta-band), the true logo gold has plenty of
   contrast — use it instead of the light-bg-safe deep variant. */
.eyebrow-light { color: var(--color-accent-light); }
.eyebrow-light::before { background: var(--color-accent-light); }

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Kenyan flag ribbon — thin decorative divider, echoes the ribbon on the
   logo. Non-text, purely ornamental; never carries meaning on its own. */
.flag-ribbon {
  display: flex;
  height: 4px;
  width: 72px;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.flag-ribbon span { flex: 1; }
.flag-ribbon span:nth-child(1) { background: var(--flag-black); }
.flag-ribbon span:nth-child(2) { background: var(--flag-red); }
.flag-ribbon span:nth-child(3) { background: var(--flag-white); }
.flag-ribbon span:nth-child(4) { background: var(--flag-green); }

/* Scroll reveal (progressive enhancement — .reveal elements render fully
   visible by default; JS opts a page into the hidden/animate-in state only
   after confirming IntersectionObserver support, via body.reveal-armed, so
   no-JS visitors never lose content) */
.reveal {
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
body.reveal-armed .reveal { opacity: 0; transform: translateY(16px); }
body.reveal-armed .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.reveal-armed .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-light); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); background: var(--color-surface-alt); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
}
.brand .brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand .brand-name span { color: var(--color-accent-deep); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
}
.nav-links a {
  position: relative;
  padding-block: var(--space-2);
  color: var(--color-text);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a[aria-current="page"] { color: var(--color-primary); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent-deep);
  border-radius: var(--radius-full);
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--color-surface);
  padding: var(--space-6) var(--space-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out);
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel ul { display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  border-bottom: 1px solid var(--color-border);
}
.mobile-panel .btn { margin-top: var(--space-6); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 62%, var(--color-primary-light) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: var(--space-16) var(--space-20);
}
.hero .container {
  display: grid;
  gap: var(--space-10);
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; font-size: var(--text-4xl); }
.hero .lede {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.86);
  margin-block: var(--space-5) var(--space-8);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.hero-art { aspect-ratio: 4 / 3; }
.hero-art svg { width: 100%; height: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.16);
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
  max-width: 220px;
}
.trust-pill svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent); }

@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .hero h1 { font-size: var(--text-5xl); }
  .hero-art { order: 2; }
}

/* Route-line draw animation in hero SVG */
.route-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.2s var(--ease-out) 0.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .route-line { animation: none; stroke-dashoffset: 0; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
/* Grid items default to min-width:auto, which sizes a track to fit its
   content's unwrapped max-content width — the classic CSS Grid overflow
   trap for text-heavy children. Reset to 0 everywhere we use grid so text
   wraps normally instead of blowing out the viewport on mobile. */
.grid > *,
.hero .container > *,
.footer-grid > *,
.service-row > *,
.steps > *,
.founder > * {
  min-width: 0;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card.card-with-photo { padding: 0; overflow: hidden; }
.card-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-with-photo .card-body { padding: var(--space-6); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.card-link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
.card-link:hover svg { transform: translateX(3px); }

/* Process steps */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps.steps-6 { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding-top: var(--space-10);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent-deep);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Testimonials */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
}
.testimonial-card p { font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-5); }
.testimonial-person { display: flex; align-items: center; gap: var(--space-3); }
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.testimonial-name { font-family: var(--font-heading); font-weight: 600; font-size: var(--text-sm); }
.testimonial-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.stars { color: var(--color-accent-deep); margin-bottom: var(--space-3); display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; }

.sample-flag {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================================
   Service detail rows
   ========================================================================== */

.service-row {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-16);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.service-row + .service-row { border-top: 1px solid var(--color-border); }

.service-visual {
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-surface-alt), var(--color-surface));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; }

.service-copy .card-icon { margin-bottom: var(--space-5); }

.checklist { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.checklist svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-success);
}

@media (min-width: 768px) {
  .service-row { grid-template-columns: 340px 1fr; }
  .service-row.flip .service-visual { order: 2; }
  .service-row.flip .service-copy { order: 1; }
  .service-visual { max-width: none; }
}

/* ==========================================================================
   Founder section
   ========================================================================== */

.founder {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}
.founder-photo-wrap {
  position: relative;
  margin-inline: auto;
  max-width: 340px;
}
.founder-photo-wrap img {
  width: 100%;
  /* Matches the source photo's actual ratio (900x876) so the full frame
     shows — object-fit only kicks in if a container ever forces a
     different ratio, and even then it will letterbox, never crop. */
  aspect-ratio: 900 / 876;
  object-fit: contain;
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.founder-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
}
.founder-name {
  margin-top: var(--space-5);
  text-align: center;
}
.founder-name strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
}
.founder-name span { font-size: var(--text-sm); color: var(--color-text-muted); }

.founder-copy blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  color: var(--color-primary-dark);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  margin-bottom: var(--space-6);
}
.founder-copy p { color: var(--color-text); margin-bottom: var(--space-4); max-width: 62ch; }
.founder-copy p:last-child { margin-bottom: 0; }
.founder-copy .signature {
  margin-top: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

@media (min-width: 900px) {
  .founder { grid-template-columns: 300px 1fr; gap: var(--space-12); }
}

.mission-card { padding-block: var(--space-6) 0; }
.mission-card h3 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.mission-card p { color: var(--color-text); }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); margin-inline: auto; margin-block: var(--space-3) var(--space-8); }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }

@media (min-width: 768px) { .cta-band { padding: var(--space-16); } }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-4);
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}
.faq-question svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--color-accent-deep);
  transition: transform var(--duration-base) var(--ease-out);
}
.faq-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-base) var(--ease-out);
}
.faq-answer[data-open="true"] { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  padding-bottom: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Contact info blocks
   ========================================================================== */

.contact-info-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.contact-info-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card > div:not(.card-icon) { min-width: 0; overflow-wrap: anywhere; }
.contact-info-card h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.contact-info-card a, .contact-info-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-info-card a:hover { color: var(--color-primary); }

.placeholder-note {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-accent-deep);
}

.whatsapp-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.whatsapp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.whatsapp-card .wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  flex-shrink: 0;
}
.whatsapp-card .wa-icon svg { width: 28px; height: 28px; }
.whatsapp-card h3 { margin-bottom: var(--space-1); }
.whatsapp-card .wa-number { font-family: var(--font-heading); font-weight: 600; color: var(--color-primary); }
.whatsapp-card .wa-note { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
.whatsapp-card.featured {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: transparent;
}
.whatsapp-card.featured h3, .whatsapp-card.featured .wa-number { color: #fff; }
.whatsapp-card.featured .wa-note { color: rgba(255,255,255,0.72); }
.wa-badge {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(30,58,138,0.06), rgba(30,58,138,0.06)),
    repeating-linear-gradient(45deg, var(--color-surface-alt) 0 12px, var(--color-surface) 12px 24px);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-6);
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--color-primary); }

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding-block: var(--space-12) var(--space-16);
}
.page-hero h1 { color: #fff; font-size: var(--text-4xl); }
.page-hero p { color: rgba(255,255,255,0.84); margin-top: var(--space-4); max-width: 60ch; }
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-5);
}
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.72);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); max-width: 34ch; }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  transition: background var(--duration-fast) var(--ease-out);
}
.footer-social a:hover { background: var(--color-accent-deep); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

.footer-col h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); }
.footer-col a:hover { color: #fff; }
.footer-col li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); }
.footer-col li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--color-accent); }
.footer-col li > a,
.footer-col li > span { min-width: 0; overflow-wrap: anywhere; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
}
.footer-bottom nav { display: flex; gap: var(--space-5); }

/* WhatsApp floating action button */
.fab-whatsapp {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-fast) var(--ease-out);
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; }
