/* ═══════════════════════════════════════════════════════════
   THE LEARNING WAREHOUSE — Main Stylesheet (shared base)
   Stack: HTML + CSS custom properties. Mobile-first.
   Per-page styles live in css/<page>.css and load AFTER this file.
   ═══════════════════════════════════════════════════════════ */

/* Body font — Aptos, self-hosted (see DESIGN_SYSTEM.md). Only the weights the
   body actually uses are shipped: 400 (regular), 400 italic, 700 (bold/strong).
   font-weight: 500 (bio resume lines) maps to 400 — Aptos has no static Medium.
   The 400 face is preloaded from each <head>; keep the ?v= in sync there. */
@font-face {
  font-family: 'Aptos';
  src: url('../assets/fonts/aptos-regular.woff2?v=20260605') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('../assets/fonts/aptos-italic.woff2?v=20260605') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: url('../assets/fonts/aptos-bold.woff2?v=20260605') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand colors */
  --color-emerald: #096C29;
  --color-navy: #171739;
  --color-offwhite: #F7F4EE;
  --color-lime: #C7F136;
  --color-purple: #B49AFD;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-surface-muted: #ECE8DF;
  --color-border-default: #D8D2C4;
  --color-border-subtle: #ECE8DF;
  --color-text-secondary: #3A3A55;
  --color-text-disabled: #8A8878;
  --color-bg-disabled: #D8D2C4;
  --color-navy-on-dark: #9A9AB0;

  /* Surfaces */
  --bg-page: var(--color-offwhite);
  --bg-card: var(--color-white);
  --bg-brand: var(--color-emerald);
  --bg-inverse: var(--color-navy);
  --bg-muted: var(--color-surface-muted);

  /* Text */
  --text-primary: var(--color-navy);
  --text-secondary: var(--color-text-secondary);
  --text-on-brand: var(--color-offwhite);
  --text-on-action: var(--color-navy);
  --text-brand: var(--color-emerald);

  /* Action */
  --action-primary: var(--color-lime);
  --action-primary-hover: #D5FB4B;
  --action-primary-active: #B5DE30;
  --action-secondary: var(--color-navy);
  --action-secondary-hover: #22224D;
  --brand-hover: #0A7D2F;

  /* Status */
  --color-success: #096C29;
  --color-warning: #D99A2B;
  --color-error: #B23A3A;
  --color-info: #171739;

  /* Focus */
  --focus-ring: var(--color-lime);

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Borders & radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --border-default: 1px solid var(--color-border-default);
  --border-strong: 1.5px solid var(--color-navy);
  --border-subtle: 1px solid var(--color-border-subtle);

  /* Shadow */
  --shadow-overlay: 0 12px 32px -8px rgba(23, 23, 57, 0.18);

  /* Typography */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Aptos', 'Aptos Display', 'Segoe UI', system-ui, sans-serif;

  /* Breakpoints (reference only — use in @media) */
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1440px;

  /* Transitions */
  --transition-base: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;

  /* Layout: fixed header bar + vertical breathing room (logo / links) */
  --site-header-height: 64px;
}

@media (min-width: 1024px) {
  :root {
    --site-header-height: 76px;
  }
}

/* ─── 2. RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-height);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

img, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ─── 3. FOCUS ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── 4. LAYOUT ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

/* Global decorative background
   All non-hero decorative circles live here, so they are not clipped by section overflow.
   The circles are generated dynamically by initPageDecor() in js/main.js using:
     - data-decor-palette on <main>  ("base" | "rich")
     - data-decor-density on <main>  ("auto" | integer)
     - data-decor-bg on each <section> ("offwhite" | "navy" | "dark-emerald")
   Each generated circle receives style="--decor-y: NN%" inline.
   The --01..10 classes below remain as legacy fallback if the JS does not run. */
main {
  position: relative;
}
.page-decor {
  display: none;
}

@media (min-width: 1100px) {
  .page-decor {
    --decor-solid-size: clamp(72px, 7vw, 128px);
    --decor-watermark-size: clamp(180px, 18vw, 320px);
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
  }

  .page-decor__circle {
    position: absolute;
    top: calc(var(--decor-y) - (var(--decor-size) / 2));
    width: var(--decor-size);
    height: var(--decor-size);
    border-radius: 50%;
    pointer-events: none;
  }

  .page-decor__circle--left {
    left: calc(var(--decor-size) / -2);
  }

  .page-decor__circle--right {
    right: calc(var(--decor-size) / -2);
  }

  .page-decor__circle--solid {
    --decor-size: var(--decor-solid-size);
    background: var(--decor-color);
    box-shadow: 0 18px 42px rgba(23, 23, 57, 0.08);
  }

  .page-decor__circle--watermark {
    --decor-size: var(--decor-watermark-size);
    border: 1px solid color-mix(in srgb, var(--decor-color) 28%, transparent);
    background: radial-gradient(circle, color-mix(in srgb, var(--decor-color) 10%, transparent), transparent 70%);
    opacity: var(--decor-opacity, 1);
  }

  .page-decor__circle--purple { --decor-color: var(--color-purple); }
  .page-decor__circle--lime { --decor-color: var(--color-lime); }
  .page-decor__circle--navy { --decor-color: var(--color-navy); }
  .page-decor__circle--emerald { --decor-color: var(--color-emerald); }

  .page-decor__circle--purple.page-decor__circle--watermark {
    border-color: rgba(180, 154, 253, 0.28);
    background: radial-gradient(circle, rgba(180, 154, 253, 0.1), transparent 70%);
  }

  .page-decor__circle--lime.page-decor__circle--watermark {
    border-color: rgba(199, 241, 54, 0.28);
    background: radial-gradient(circle, rgba(199, 241, 54, 0.1), transparent 70%);
  }

  .page-decor__circle--navy.page-decor__circle--watermark {
    border-color: rgba(23, 23, 57, 0.22);
    background: radial-gradient(circle, rgba(23, 23, 57, 0.08), transparent 70%);
  }

  .page-decor__circle--emerald.page-decor__circle--watermark {
    border-color: rgba(9, 108, 41, 0.2);
    background: radial-gradient(circle, rgba(9, 108, 41, 0.08), transparent 70%);
  }

  /* 01 | default: left | purple | solid | hero/offwhite zone */
  .page-decor__circle--01 {
    --decor-y: 6%;
  }

  /* 02 | default: right | lime | watermark | emerald zone */
  .page-decor__circle--02 {
    --decor-y: 16%;
  }

  /* 03 | default: left | navy | watermark | emerald zone */
  .page-decor__circle--03 {
    --decor-y: 26%;
  }

  /* 04 | default: right | purple | solid | emerald zone */
  .page-decor__circle--04 {
    --decor-y: 36%;
  }

  /* 05 | default: left | lime | solid | light transition zone */
  .page-decor__circle--05 {
    --decor-y: 46%;
  }

  /* 06 | default: right | purple | watermark | light zone */
  .page-decor__circle--06 {
    --decor-y: 56%;
  }

  /* 07 | default: left | emerald | solid | partners/offwhite zone */
  .page-decor__circle--07 {
    --decor-y: 66%;
  }

  /* 08 | default: right | navy | watermark | light/partners zone */
  .page-decor__circle--08 {
    --decor-y: 76%;
  }

  /* 09 | default: left | lime | solid | CTA/navy zone */
  .page-decor__circle--09 {
    --decor-y: 86%;
  }

  /* 10 | default: right | purple | watermark | footer/emerald zone */
  .page-decor__circle--10 {
    --decor-y: 94%;
  }

  .page-decor__circle--purple.page-decor__circle--solid,
  .page-decor__circle--emerald.page-decor__circle--solid {
    opacity: 0.95;
  }

  .page-decor__circle--lime.page-decor__circle--solid {
    opacity: 0.96;
  }

  .hero > .container,
  .you-we > .container,
  .video-section > .container,
  .how-we-help > .container,
  .partners > .container,
  .partner-cards,
  .cta-banner > .container,
  .site-footer > .container {
    position: relative;
    z-index: 2;
  }
}

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

.page-main--placeholder {
  min-height: clamp(320px, 42vh, 560px);
}
@media (min-width: 1024px) { .section { padding-block: var(--space-24); } }

/* ─── 5. TYPOGRAPHY UTILITIES ───────────────────────────── */
.overline {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-brand);
}

/* ─── 6. BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: var(--transition-base), transform 150ms ease-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--action-primary);
  color: var(--text-on-action);
}
.btn--primary:hover { background: var(--action-primary-hover); }
.btn--primary:active { background: var(--action-primary-active); }

.btn--secondary {
  background: var(--action-secondary);
  color: var(--text-on-brand);
}
.btn--secondary:hover { background: var(--action-secondary-hover); }

.btn--tertiary {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-strong);
}
.btn--tertiary:hover { background: rgba(23, 23, 57, 0.05); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  padding-inline: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  min-height: auto;
}
.btn--ghost:hover { border-bottom-color: var(--color-lime); }

.btn--outline-light {
  background: transparent;
  color: var(--color-offwhite);
  border: 1.5px solid var(--color-offwhite);
  border-radius: var(--radius-md);
}
.btn--outline-light:hover { background: rgba(247, 244, 238, 0.1); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── 7. NAVIGATION ─────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-page);
  border-bottom: 1px solid rgba(23, 23, 57, 0.08);
  transition: box-shadow 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
  overflow: visible;
}

main {
  padding-top: var(--site-header-height);
}

.site-header.nav--scrolled {
  box-shadow: 0 2px 20px rgba(23, 23, 57, 0.1);
}

/* Home only: transparent nav over hero → solid after hero / mobile menu */
body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.page-home .site-header.nav--scrolled,
body.page-home.mobile-nav-open .site-header {
  background: var(--bg-page);
  border-bottom: 1px solid rgba(23, 23, 57, 0.08);
  box-shadow: 0 2px 20px rgba(23, 23, 57, 0.1);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__link {
  color: var(--color-navy);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__link:hover:not(.nav__link--active) {
  color: var(--color-emerald);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__link--active::after {
  background: var(--color-emerald);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__hamburger {
  color: var(--color-navy);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__hamburger:hover {
  background: color-mix(in srgb, var(--color-navy) 8%, transparent);
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__logo-img--dark {
  display: block;
}

body.page-home:not(.mobile-nav-open) .site-header:not(.nav--scrolled) .nav__logo-img--light {
  display: none;
}

body.page-home .site-header.nav--scrolled .nav__logo-img--light {
  display: none;
}

body.page-home .site-header.nav--scrolled .nav__logo-img--dark {
  display: block;
}

body.page-home.mobile-nav-open .site-header .nav__logo-img--light {
  display: none !important;
}

body.page-home.mobile-nav-open .site-header .nav__logo-img--dark {
  display: block !important;
}

.nav {
  display: flex;
  align-items: center;
  height: var(--site-header-height);
  gap: var(--space-8);
  overflow: visible;
}

.nav.container {
  max-width: 1320px;
}

@media (min-width: 1024px) {
  .nav {
    gap: var(--space-10);
    padding-inline: var(--space-10);
  }
}

.nav__logo img { height: 36px; width: auto; }

/* Default: show dark logo, hide white. page-home overrides this for the transparent hero. */
.nav__logo-img--light { display: none; }
.nav__logo-img--dark  { display: block; }

@media (min-width: 1024px) {
  .nav__logo img { height: 40px; }
}

.nav__links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
    align-items: center;
  }
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  position: relative;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color 180ms ease-out;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 42%;
  max-width: 56px;
  height: 2px;
  background: var(--color-emerald);
  transform: translateX(-50%) scaleX(0);
  transition: transform 200ms ease-out;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.nav__link--active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav__link:hover:not(.nav__link--active) {
  color: var(--text-brand);
}

.nav__link--active {
  font-weight: 600;
}

.nav__link svg { width: 14px; height: 14px; transition: transform 200ms ease-out; }

.nav__cta {
  display: none;
  min-height: 46px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-emerald);
  color: var(--color-offwhite);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}

.nav__cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .nav__cta {
    display: inline-flex;
    margin-left: var(--space-4);
  }
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
  z-index: 140;
  display: flex;
  align-items: center;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-card);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay);
  padding: var(--space-3);
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  list-style: none;
  z-index: 160;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.dropdown--open .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-chevron {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0 var(--space-1);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav__dropdown-chevron svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 200ms ease-out;
  color: currentColor;
}

.nav__item--dropdown:hover .nav__dropdown-chevron svg,
.nav__item--dropdown.dropdown--open .nav__dropdown-chevron svg {
  transform: rotate(180deg);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.nav__dropdown-link:hover {
  background: var(--bg-muted);
  color: var(--text-brand);
}

.nav__dropdown-link--active {
  background: rgba(9, 108, 41, 0.08);
  color: var(--color-emerald);
  font-weight: 600;
}

.nav__dropdown-link--active:hover {
  background: rgba(9, 108, 41, 0.12);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background-color 150ms ease-out;
}

.nav__hamburger:hover { background: var(--bg-muted); }
.nav__hamburger svg { width: 24px; height: 24px; }

@media (min-width: 1024px) { .nav__hamburger { display: none; } }

@media (max-width: 1023px) {
  .nav {
    position: relative;
  }

  .nav__hamburger {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav__hamburger i,
  .nav__hamburger svg {
    pointer-events: none;
  }
}

@media (max-width: 1023px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  /* Full-screen drawer — no width: 100vw to avoid scrollbar gap */
  body.mobile-nav-open .nav__links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: var(--space-6) var(--space-5);
    gap: 0;
    z-index: 120;
    background: var(--bg-page);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-nav-open .nav__links > li {
    width: 100%;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  body.mobile-nav-open .nav__links > li:last-child {
    border-bottom: none;
  }

  body.mobile-nav-open .nav__link {
    width: 100%;
    padding: var(--space-4) 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Active indicator */
  body.mobile-nav-open .nav__link--active {
    color: var(--text-brand);
  }
  body.mobile-nav-open .nav__link--active::after {
    display: none;
  }

  body.mobile-nav-open .nav__link:not(.nav__link--active)::after {
    display: none;
  }

  /* Dropdown sub-panel — reset ALL desktop transforms & positioning */
  body.mobile-nav-open .nav__item--dropdown {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  /* The nav link inside dropdown item takes remaining space */
  body.mobile-nav-open .nav__item--dropdown > .nav__link {
    flex: 1;
    width: auto !important;
    justify-content: flex-start;
  }

  /* Chevron button — touch-target sized, flush right */
  body.mobile-nav-open .nav__dropdown-chevron {
    flex-shrink: 0;
    min-width: 48px;
    min-height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  body.mobile-nav-open .nav__dropdown-chevron svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 200ms ease-out;
  }

  body.mobile-nav-open .dropdown--open .nav__dropdown-chevron svg {
    transform: rotate(180deg);
  }

  /* The nav__dropdown wraps full-width below the link+chevron row */
  body.mobile-nav-open .nav__item--dropdown > .nav__dropdown {
    flex-basis: 100%;
    width: 100%;
  }

  body.mobile-nav-open .nav__dropdown,
  body.mobile-nav-open .nav__item--dropdown.dropdown--open .nav__dropdown,
  body.mobile-nav-open .nav__item--dropdown:hover .nav__dropdown {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all;
    box-shadow: none;
    border: none;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    width: 100%;
    min-width: 0;
    margin: 0 0 var(--space-2) 0;
    padding: var(--space-2) 0;
    box-sizing: border-box;
    display: none;
  }

  body.mobile-nav-open .dropdown--open .nav__dropdown {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  body.mobile-nav-open .nav__dropdown-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-3) var(--space-4);
    font-size: 15px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
  }

  body.mobile-nav-open .nav__dropdown-link:hover {
    background: var(--color-border-subtle);
    color: var(--text-brand);
  }

  .hero {
    min-height: 80vh;
  }

  .page-home .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__inner {
    padding-block: var(--space-16);
  }

  .page-home .hero__inner {
    padding-top: calc(var(--site-header-height) + var(--space-16));
    padding-bottom: var(--space-16);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(36px, 9vw, 56px);
    margin-bottom: var(--space-5);
  }

  .hero__lead {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ─── 13. FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0a7a2f 0%, #096c29 58%, #075f24 100%);
  color: var(--color-offwhite);
  border-top: 1px solid rgba(247, 244, 238, 0.12);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: clamp(320px, 28vw, 360px) 1fr;
    gap: clamp(48px, 4vw, 88px);
    align-items: start;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer__brand img { height: 54px; width: auto; }

.footer__tagline {
  font-size: clamp(17px, 1.22vw, 19px);
  line-height: 1.58;
  color: rgba(247, 244, 238, 0.82);
  font-style: italic;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 640px) {
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.95);
  margin-bottom: var(--space-4);
}

.footer__col--connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col a {
  font-size: 14px;
  color: var(--color-offwhite);
  opacity: 0.9;
  transition: opacity 150ms ease-out, border-bottom-color 150ms ease-out;
  border-bottom: 1px solid transparent;
  display: inline;
  padding-bottom: 1px;
}

.footer__col a:hover {
  opacity: 1;
  border-bottom-color: var(--color-lime);
}

.footer__connect-btn {
  margin-bottom: var(--space-4);
  align-self: flex-start;
}

.footer__nav .footer__connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-bottom: 0;
  padding: var(--space-3) var(--space-6);
  opacity: 1;
  color: var(--text-on-action);
}

.footer__col--connect .footer__email {
  text-align: left;
}

.footer__email {
  display: block;
  font-size: 13px;
  color: rgba(247, 244, 238, 0.82);
  transition: color 150ms ease-out;
}

.footer__email:hover { color: var(--color-lime); }

.modal-open {
  overflow: hidden;
}

.site-modal[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 54, 0.72);
  backdrop-filter: blur(6px);
}

.site-modal__dialog {
  position: relative;
  width: min(100%, 48rem);
  max-height: min(85vh, 52rem);
  overflow: auto;
  border: 1px solid rgba(18, 22, 54, 0.12);
  border-radius: var(--radius-xl);
  background: var(--color-offwhite);
  color: var(--color-navy);
  box-shadow: 0 1.5rem 4rem rgba(18, 22, 54, 0.24);
  padding: var(--space-6);
}

.site-modal__dialog:focus-visible {
  outline: 3px solid var(--color-lime);
  outline-offset: 4px;
}

.site-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.site-modal__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-emerald);
}

.site-modal__title {
  margin: 0;
}

.site-modal__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(18, 22, 54, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.site-modal__close:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 22, 54, 0.3);
  background: rgba(18, 22, 54, 0.04);
}

.site-modal__close:focus-visible {
  outline: 3px solid var(--color-lime);
  outline-offset: 3px;
}

.site-modal__body {
  display: grid;
  gap: var(--space-4);
}

.site-modal__body h3,
.site-modal__body p {
  margin: 0;
}

.site-modal__body h3 {
  font-size: var(--text-lg);
}

.site-modal__body a {
  color: var(--color-emerald);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.footer__bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  padding-block: var(--space-5);
}

.footer__bottom p {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(247, 244, 238, 0.76);
  text-align: center;
}

/* ─── 14. ANIMATIONS (initial hidden state) ─────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(32px);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── 15. SECTION DECORATION ────────────────────────────── */

/* Sections stay positioned for local content only. Decorative circles now live in .page-decor. */
.you-we,
.video-section,
.how-we-help,
.partners,
.cta-banner,
.hero::before,
.hero::after,
.video-section::before,
.video-section::after,
.how-we-help::before,
.how-we-help::after,
.partners::before,
.partners::after,
.cta-banner::before,
.cta-banner::after,
.site-footer::before,
.site-footer::after {
  content: none;
}

.site-footer {
  position: relative;
}

/* ─── SECTION CORNER DECOS ────────────────────────────────── */
/* Legacy section-deco classes are intentionally unused after the global page-decor refactor.
  Círculos decorativos en esquinas de secciones.
  Solo desktop. La sección los recorta con overflow: hidden.
  Color por fondo: emerald bg → lime/purple | light bg → emerald/purple | navy bg → lime/purple
*/
@media (min-width: 1024px) {
  .section-deco--legacy-disabled {
    --deco-size: 200px;
    display: none;
    position: absolute;
    width: var(--deco-size);
    height: var(--deco-size);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 1;
  }

  .section-deco-legacy--lime    { background: var(--color-lime); }
  .section-deco-legacy--purple  { background: var(--color-purple); }
  .section-deco-legacy--emerald { background: var(--color-emerald); }

  /* Corner: center del círculo queda en la esquina → queda 1/4 visible */
  .section-deco-legacy--tl { top:    calc(var(--deco-size) * -0.5); left:  calc(var(--deco-size) * -0.5); }
  .section-deco-legacy--tr { top:    calc(var(--deco-size) * -0.5); right: calc(var(--deco-size) * -0.5); }
  .section-deco-legacy--bl { bottom: calc(var(--deco-size) * -0.5); left:  calc(var(--deco-size) * -0.5); }
  .section-deco-legacy--br { bottom: calc(var(--deco-size) * -0.5); right: calc(var(--deco-size) * -0.5); }

  .how-we-help .section-deco--legacy-disabled { --deco-size: 180px; }
  .cta-banner  .section-deco--legacy-disabled { --deco-size: 190px; }
}

/* ─── 17. ACCESSIBILITY ENHANCEMENTS ─────────────────────── */
/* Skip link — visually hidden until keyboard focus (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1100;
  padding: var(--space-3) var(--space-5);
  background: var(--color-navy);
  color: var(--color-offwhite);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transform: translateY(calc(-100% - var(--space-5)));
  transition: transform 150ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Visually-hidden text — readable by assistive tech and crawlers, invisible on screen.
   Used to extend generic link labels (e.g. "Learn more") without altering visible copy. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tap targets — keep interactive text links ≥24px tall on compact viewports (WCAG 2.5.8) */
@media (max-width: 1023px) {
  .footer__col ul a,
  .footer__email,
  .nav__link,
  .nav__dropdown-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
}

