/* =================================================================
   Manthe Primary School — Design System
   ================================================================= */

:root {
  /* ---------- Spacing (8pt baseline) ---------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---------- Type scale ---------- */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 60px;
  --text-6xl: 80px;

  /* ---------- Primary 9-step (500 = #8e7cc3) ---------- */
  --primary-50:  #f6f3fb;
  --primary-100: #ece6f6;
  --primary-200: #d8cdec;
  --primary-300: #c0b1e0;
  --primary-400: #a796d2;
  --primary-500: #8e7cc3;
  --primary-600: #7560b3;
  --primary-700: #5d4a93;
  --primary-800: #443570;
  --primary-900: #2c2249;

  /* ---------- Accent 9-step (500 = #f4b860) ---------- */
  --accent-50:  #fef8ee;
  --accent-100: #fceed4;
  --accent-200: #fadea4;
  --accent-300: #f7cd80;
  --accent-400: #f5c270;
  --accent-500: #f4b860;
  --accent-600: #d49a45;
  --accent-700: #a87632;
  --accent-800: #7a5424;
  --accent-900: #4d3416;

  /* ---------- Neutral grays ---------- */
  --gray-50:  #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* ---------- Semantic ---------- */
  --success: #16a34a;
  --warning: #f59e0b;
  --error:   #dc2626;
  --info:    #2563eb;

  /* ---------- Shadows (5-step strong) ---------- */
  --shadow-1: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-2: 0 8px 20px rgba(0,0,0,0.10);
  --shadow-3: 0 16px 36px rgba(0,0,0,0.14);
  --shadow-4: 0 24px 56px rgba(0,0,0,0.18);
  --shadow-5: 0 32px 80px rgba(0,0,0,0.22);

  /* ---------- Radii (round) ---------- */
  --radius-sm:   6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* ---------- Motion ---------- */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --dur-deliberate: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---------- Layout ---------- */
  --container-max: 1280px;
  --container-pad: var(--space-5);
  --reading-max: 720px;

  /* ---------- Surface (light theme defaults) ---------- */
  --surface-page: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: var(--gray-50);
  --surface-tint: var(--primary-50);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --border-subtle: var(--gray-200);
  --border-strong: var(--gray-300);

  /* ---------- Footer (primary background variant) ---------- */
  --footer-bg: var(--primary-600);
  --footer-text: rgba(255,255,255,0.85);
  --footer-text-strong: #ffffff;
  --footer-divider: rgba(255,255,255,0.15);
  --footer-link-hover: var(--accent-500);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --surface-page: #0f0e16;
  --surface-elevated: #1a1825;
  --surface-muted: #15131f;
  --surface-tint: #221d33;
  --text-primary: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --border-subtle: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow-1: 0 2px 4px rgba(0,0,0,0.35);
  --shadow-2: 0 8px 20px rgba(0,0,0,0.45);
  --shadow-3: 0 16px 36px rgba(0,0,0,0.55);
  --shadow-4: 0 24px 56px rgba(0,0,0,0.65);
  --shadow-5: 0 32px 80px rgba(0,0,0,0.7);
  --footer-bg: var(--primary-800);
}

/* =================================================================
   Reset & Base
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Quicksand', 'Comfortaa', 'Noto Sans SC', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  orphans: 2;
  widows: 2;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent grid/flex children from refusing to shrink below their content width
   — the classic CSS Grid overflow trap that causes horizontal scrollbars
   and text intruding past column boundaries. */
.grid > *,
.duo > *,
.subhero__inner > *,
.principal__grid > *,
.timeline__detail > *,
.site-footer__top > *,
.apply-cta__steps > *,
.bignum > *,
.stats__grid > * {
  min-width: 0;
}

img, video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }

/* tabular numbers for stats / phones / dates */
.tabular { font-variant-numeric: tabular-nums; }

/* skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  background: var(--primary-600);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =================================================================
   Layout primitives
   ================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: var(--space-9) 0;
}
.section--lg { padding: var(--space-10) 0; }
.section--sm { padding: var(--space-7) 0; }
.section--tint { background: var(--surface-tint); }
.section--muted { background: var(--surface-muted); }
.section--dark {
  background: var(--gray-900);
  color: #fff;
}
.section--dark .section__kicker { color: var(--accent-400); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

@media (max-width: 768px) {
  .section { padding: var(--space-7) 0; }
  .section--lg { padding: var(--space-8) 0; }
}

.section__head {
  margin-bottom: var(--space-7);
  max-width: 880px;
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
}
.section__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
}

.section__title {
  font-size: clamp(var(--text-2xl), 3.6vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}
.section__lead {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.btn--primary:hover {
  background: var(--primary-600);
  box-shadow: var(--shadow-3);
}

.btn--accent {
  background: var(--accent-500);
  color: var(--gray-900);
  box-shadow: var(--shadow-2);
}
.btn--accent:hover { background: var(--accent-600); box-shadow: var(--shadow-3); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
  background: var(--primary-50);
}

.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-7); font-size: var(--text-md); }

/* hover-underline link */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--primary-700);
  background-image: linear-gradient(var(--primary-500), var(--primary-500));
  background-position: 0 100%;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 2px; }

/* =================================================================
   Top contact bar
   ================================================================= */

.contact-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  color: var(--gray-600);
}
[data-theme="dark"] .contact-bar { background: #0a0912; border-bottom-color: rgba(255,255,255,0.06); color: var(--gray-400); }

.contact-bar__row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: var(--space-2) 0;
}
.contact-bar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  color: var(--gray-700);
}
[data-theme="dark"] .contact-bar__brand { color: var(--gray-300); }

.contact-bar__brand img { width: 28px; height: 28px; }
.contact-bar__list {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}
.contact-bar__list a { transition: color var(--dur-fast) var(--ease-out); }
.contact-bar__list a:hover { color: var(--gray-900); }
[data-theme="dark"] .contact-bar__list a:hover { color: #fff; }
.contact-bar__list i { color: var(--primary-500); margin-right: var(--space-2); }

.contact-bar__social { display: flex; gap: var(--space-3); }
.contact-bar__social a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--gray-600);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.contact-bar__social a:hover { background: var(--primary-100); color: var(--primary-700); }

@media (max-width: 768px) {
  .contact-bar__list { display: none; }
}

/* =================================================================
   Header / Main nav
   ================================================================= */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 72px;
  padding: var(--space-3) 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-md);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav__brand img { width: 44px; height: 44px; flex-shrink: 0; }
.nav__brand span { line-height: 1.1; }
.nav__brand small { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  min-height: 44px;
}
.nav__link:hover {
  transform: scale(1.05);
  background: var(--primary-100);
  color: var(--primary-700);
}
.nav__link--active {
  color: var(--primary-700);
  background: var(--primary-50);
}
[data-theme="dark"] .nav__link:hover { background: rgba(142,124,195,0.18); color: var(--primary-300); }
[data-theme="dark"] .nav__link--active { background: rgba(142,124,195,0.14); color: var(--primary-300); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--text-secondary);
  transition: transform var(--dur-base) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { transform: rotate(20deg); background: var(--primary-100); color: var(--primary-700); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(142,124,195,0.18); color: var(--accent-400); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline-block; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--surface-muted);
}

@media (max-width: 1180px) {
  .nav__list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-3);
    padding: var(--space-4);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
    border-top: 1px solid var(--border-subtle);
    z-index: 60;
  }
  .nav__list--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    border-radius: var(--radius-md);
    padding: var(--space-4);
  }
  .nav__toggle { display: inline-flex; }
}

/* =================================================================
   Sub-page hero
   ================================================================= */

.subhero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
  overflow: hidden;
  padding: var(--space-10) 0 var(--space-9);
}
[data-theme="dark"] .subhero { background: linear-gradient(135deg, #1a1730 0%, #2a2240 100%); }

.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(244,184,96,0.16), transparent 40%),
    radial-gradient(circle at 5% 85%, rgba(142,124,195,0.22), transparent 45%);
  pointer-events: none;
}
.subhero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 1024px) {
  .subhero__inner { grid-template-columns: 1fr; }
}
.subhero__crumbs {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.subhero__crumbs i { font-size: 10px; }
.subhero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.subhero__title em { font-style: normal; color: var(--primary-600); }
.subhero__lead {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-5);
}
.subhero__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-4);
  aspect-ratio: 4/5;
  min-height: 360px;
  position: relative;
}
.subhero__media img { width: 100%; height: 100%; }
.subhero__badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.subhero__badge i { color: var(--accent-600); }

/* =================================================================
   Home Hero / Carousel
   ================================================================= */

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 100vh;
  overflow: hidden;
  background: var(--gray-900);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-deliberate) var(--ease-out);
}
.hero__slide--active { opacity: 1; z-index: 1; }
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s var(--ease-out);
}
.hero__slide--active img { transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,30,0.32) 0%, rgba(15,12,30,0.45) 50%, rgba(15,12,30,0.78) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--container-pad) var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  color: #fff;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-300);
  margin-bottom: var(--space-4);
}
.hero__kicker::before {
  content: "";
  width: 32px; height: 2px; background: var(--accent-400);
}
.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero__sub {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.92);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.hero__nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-spring);
  font-size: var(--text-lg);
}
.hero__nav:hover { background: var(--primary-500); transform: translateY(-50%) scale(1.06); }
.hero__nav--prev { left: var(--space-6); }
.hero__nav--next { right: var(--space-6); }
@media (max-width: 768px) { .hero__nav { width: 44px; height: 44px; } .hero__nav--prev { left: var(--space-3); } .hero__nav--next { right: var(--space-3); } }

.hero__dots {
  position: absolute;
  z-index: 3;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  transition: width var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.hero__dot--active { width: 32px; background: var(--primary-500); }

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: var(--space-5);
  right: var(--space-7);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(255,255,255,0));
  animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.4); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .hero { min-height: 92vh; }
  .hero__inner { min-height: 92vh; }
  .hero__scroll { display: none; }
}

/* =================================================================
   Stats band
   ================================================================= */

.stats {
  background: var(--primary-50);
  padding: var(--space-9) 0;
}
[data-theme="dark"] .stats { background: #1c1830; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  min-height: 240px;
  align-items: center;
}
@media (max-width: 1024px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

.stat__kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
}
.stat__value {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .stat__value { color: #fff; }
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}
.stat__suffix { color: var(--accent-600); margin-left: 2px; }

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

.card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.card__media {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}
.card__media img {
  width: 100%; height: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__media--portrait { aspect-ratio: 4/5; min-height: 360px; }

.card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  background: var(--accent-100);
  color: var(--accent-800);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.card__tag--alt { background: var(--primary-100); color: var(--primary-800); }
.card__tag--dark { background: var(--gray-200); color: var(--gray-800); }
[data-theme="dark"] .card__tag { background: rgba(244,184,96,0.18); color: var(--accent-300); }
[data-theme="dark"] .card__tag--alt { background: rgba(142,124,195,0.20); color: var(--primary-300); }
[data-theme="dark"] .card__tag--dark { background: rgba(255,255,255,0.10); color: #fff; }

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  line-height: 1.3;
}
.card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}
.card__meta {
  margin-top: auto;
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* glass card variant */
.card--glass {
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
}
[data-theme="dark"] .card--glass {
  background: rgba(40,32,60,0.6);
  border-color: rgba(255,255,255,0.08);
}

/* =================================================================
   Grids
   ================================================================= */

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.grid--asym { grid-template-columns: 5fr 7fr; }
.grid--asym-rev { grid-template-columns: 7fr 5fr; }

.grid--auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--asym, .grid--asym-rev { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* offset card pattern */
.grid--offset > *:nth-child(2n) { transform: translateY(32px); }
@media (max-width: 1024px) { .grid--offset > *:nth-child(2n) { transform: none; } }

/* =================================================================
   Feature card variant
   ================================================================= */

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out);
  height: 100%;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }

.feature__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  box-shadow: 0 8px 18px rgba(142,124,195,0.4);
}
.feature__icon--accent { background: linear-gradient(135deg, var(--accent-400), var(--accent-600)); color: var(--gray-900); box-shadow: 0 8px 18px rgba(244,184,96,0.4); }

.feature__media {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: auto;
}
.feature__title { font-size: var(--text-lg); font-weight: 700; }
.feature__text { color: var(--text-secondary); line-height: 1.6; font-size: var(--text-base); }

/* =================================================================
   Z-pattern alternating media + text
   ================================================================= */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}
.duo + .duo { margin-top: var(--space-9); }
.duo--reverse > .duo__media { order: 2; }
@media (max-width: 1024px) {
  .duo { grid-template-columns: 1fr; gap: var(--space-6); }
  .duo--reverse > .duo__media { order: 0; }
}
.duo__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  aspect-ratio: 4/3;
  min-height: 360px;
  align-self: start;
}
@media (max-width: 1024px) {
  .duo__media { min-height: 320px; }
}
@media (max-width: 768px) { .duo__media { min-height: 320px; } }
.duo__media img { width: 100%; height: 100%; }
.duo__title { font-size: clamp(var(--text-2xl), 3.4vw, var(--text-3xl)); font-weight: 800; margin-bottom: var(--space-4); }
.duo__text { color: var(--text-secondary); margin-bottom: var(--space-4); max-width: 60ch; line-height: 1.65; }

/* =================================================================
   Principal Letter (split full-bleed style)
   ================================================================= */

.principal {
  background: var(--primary-50);
  padding: var(--space-9) 0 var(--space-9);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .principal { background: #1c1830; }
.principal__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: stretch;
}
@media (max-width: 1024px) { .principal__grid { grid-template-columns: 1fr; } }

.principal__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-4);
  min-height: 600px;
}
.principal__media img { width: 100%; height: 100%; }
.principal__inset {
  position: absolute;
  bottom: -32px;
  right: -16px;
  width: 36%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--surface-page);
  box-shadow: var(--shadow-3);
}

.principal__copy { padding: var(--space-3) 0; max-width: 64ch; }
.principal__quote {
  font-size: var(--text-6xl);
  line-height: 0.6;
  font-family: 'Comfortaa', 'Quicksand', serif;
  color: var(--primary-500);
  margin-bottom: var(--space-3);
  display: block;
}
.principal__opening {
  font-size: var(--text-lg);
  line-height: 1.55;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
  font-weight: 500;
}
.principal__copy p { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: var(--space-4); line-height: 1.7; max-width: 65ch; }
.principal__sign {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.principal__sign svg { width: 120px; height: 50px; }
.principal__sign-meta strong { display: block; font-size: var(--text-md); color: var(--text-primary); }
.principal__sign-meta span { font-size: var(--text-sm); color: var(--text-muted); }

/* =================================================================
   Timeline (one-day rhythm)
   ================================================================= */

.timeline {
  position: relative;
  padding: var(--space-8) 0;
}
.timeline__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.timeline__rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-300), var(--primary-500), var(--accent-500));
  border-radius: var(--radius-full);
}
.timeline__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}
.timeline__dot {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface-page);
  border: 4px solid var(--primary-500);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-md);
  color: var(--primary-700);
  z-index: 1;
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast), color var(--dur-fast);
  box-shadow: var(--shadow-1);
}
.timeline__node:hover .timeline__dot,
.timeline__node--active .timeline__dot {
  background: var(--primary-500);
  color: #fff;
  transform: scale(1.1);
}
.timeline__time {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.timeline__name {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}
@media (max-width: 1024px) {
  .timeline__rail { grid-template-columns: repeat(4, 1fr); }
  .timeline__rail::before { display: none; }
}
@media (max-width: 640px) { .timeline__rail { grid-template-columns: repeat(2, 1fr); } }

.timeline__detail {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
  box-shadow: var(--shadow-2);
}
@media (max-width: 1024px) { .timeline__detail { grid-template-columns: 1fr; } }
.timeline__detail h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.timeline__detail-media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
}

/* =================================================================
   Collage masonry (home life collage)
   ================================================================= */

.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-4);
  min-height: 720px;
}
.collage__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.collage__item img {
  width: 100%; height: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}
.collage__item:hover img { transform: scale(1.04); }
.collage__caption {
  position: absolute;
  left: var(--space-3); bottom: var(--space-3);
  background: rgba(255,255,255,0.92);
  color: var(--gray-900);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.collage__item:hover .collage__caption { opacity: 1; transform: translateY(0); }
.collage__item--big   { grid-column: span 2; grid-row: span 2; }
.collage__item--tall  { grid-row: span 2; }
.collage__item--wide  { grid-column: span 2; }
@media (max-width: 1024px) {
  .collage { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
  .collage__item--big { grid-column: span 2; }
}
@media (max-width: 640px) {
  .collage { grid-template-columns: repeat(2, 1fr); }
  .collage__item--big, .collage__item--wide { grid-column: span 2; }
}

/* =================================================================
   Full-bleed image strip
   ================================================================= */

.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
}
.bleed__media {
  width: 100%;
  height: 60vh;
  min-height: 480px;
}
.bleed__media img { width: 100%; height: 100%; }
.bleed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(15,12,30,0.6) 0%, rgba(15,12,30,0.05) 60%, rgba(15,12,30,0) 100%);
}
.bleed__copy {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  color: #fff;
  max-width: 56ch;
}
.bleed__copy h2 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.bleed__copy p { font-size: var(--text-md); color: rgba(255,255,255,0.92); }

/* =================================================================
   Pull-quote / golden line
   ================================================================= */

.pullquote {
  text-align: center;
  padding: var(--space-9) var(--container-pad);
  font-size: clamp(var(--text-2xl), 3.6vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.3;
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.pullquote em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary-500), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =================================================================
   Drop cap (about page first paragraph)
   ================================================================= */

.dropcap::first-letter {
  float: left;
  font-size: var(--text-6xl);
  line-height: 0.85;
  padding-right: var(--space-3);
  padding-top: var(--space-1);
  font-weight: 800;
  color: var(--primary-600);
  font-family: 'Comfortaa', 'Quicksand', serif;
}

/* =================================================================
   Testimonial / parents
   ================================================================= */

.testimonial {
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: var(--space-5);
  font-family: Georgia, "Times New Roman", "Comfortaa", serif;
  font-size: 88px;
  color: var(--primary-300);
  line-height: 1;
  pointer-events: none;
}
.testimonial__text {
  color: var(--text-primary);
  font-size: var(--text-md);
  line-height: 1.6;
  font-weight: 500;
  margin-top: var(--space-3);
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.testimonial__avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial__avatar img { width: 100%; height: 100%; }
.testimonial__name { font-weight: 700; color: var(--text-primary); }
.testimonial__role { font-size: var(--text-sm); color: var(--text-muted); }

/* =================================================================
   FAQ accordion
   ================================================================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq__item {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.faq__item--open { border-color: var(--primary-300); box-shadow: var(--shadow-2); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  min-height: 64px;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq__question:hover { background: var(--primary-50); }
[data-theme="dark"] .faq__question:hover { background: rgba(142,124,195,0.10); }
.faq__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast);
}
.faq__item--open .faq__icon { transform: rotate(45deg); background: var(--primary-500); color: #fff; }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq__answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 72ch;
}

/* =================================================================
   Form
   ================================================================= */

.form {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.form__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.form__label .req { color: var(--error); margin-left: 4px; }
.form__input,
.form__textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-page);
  color: var(--text-primary);
  min-height: 48px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(142,124,195,0.18);
}
.form__hint { font-size: var(--text-sm); color: var(--text-muted); }
.form__error { color: var(--error); font-size: var(--text-sm); min-height: 18px; }
.form__check {
  display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5;
}
.form__check input { margin-top: 4px; accent-color: var(--primary-500); width: 18px; height: 18px; }
.form__success {
  background: rgba(22,163,74,0.10);
  color: var(--success);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(22,163,74,0.4);
  font-weight: 600;
  display: none;
}
.form__success--visible { display: block; }

/* =================================================================
   Map
   ================================================================= */

.map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 11;
  min-height: 420px;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* =================================================================
   Lightbox
   ================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 18, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox--open { display: flex; }
.lightbox__media {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-5);
}
.lightbox__media img { max-width: 100%; max-height: 86vh; width: auto; height: auto; }
.lightbox__btn {
  position: absolute;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.lightbox__btn:hover { background: var(--primary-500); }
.lightbox__close { top: var(--space-5); right: var(--space-5); }
.lightbox__prev  { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: var(--space-5); top: 50%; transform: translateY(-50%); }

/* =================================================================
   Back to top
   ================================================================= */

.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 52px; height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background-color var(--dur-fast);
  z-index: 100;
}
.back-to-top--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-700); }

/* =================================================================
   Footer (minimal one-line — primary background)
   ================================================================= */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-9) 0 var(--space-7);
  margin-top: var(--space-9);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--footer-divider);
}
@media (max-width: 1024px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 38ch;
}
.site-footer__brand-row { display: flex; align-items: center; gap: var(--space-4); }
.site-footer__brand img { width: 96px; height: 96px; }
.site-footer__brand-name {
  font-size: var(--text-xl);
  color: var(--footer-text-strong);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.site-footer__brand-mission {
  font-size: var(--text-base);
  color: var(--footer-text);
  line-height: 1.6;
}

.site-footer__col h4 {
  color: var(--footer-text-strong);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__col a {
  color: var(--footer-text);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer__col a:hover { color: var(--footer-link-hover); }

.site-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.site-footer__social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--footer-divider);
  color: var(--footer-text);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.site-footer__social a:hover {
  background: var(--accent-500);
  color: var(--gray-900);
  border-color: var(--accent-500);
}

.site-footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--footer-text);
}
.site-footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}
.site-footer__compliance span { display: inline-flex; align-items: center; gap: var(--space-2); }
.site-footer__compliance i { color: var(--accent-300); }

/* =================================================================
   Misc utility
   ================================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--primary-500); border-radius: var(--radius-full); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent-100);
  color: var(--accent-800);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-7) 0;
}

.highlight {
  background-image: linear-gradient(transparent 60%, rgba(244,184,96,0.45) 60%);
  padding: 0 4px;
}

/* =================================================================
   Apply CTA banner
   ================================================================= */

.apply-cta {
  background: linear-gradient(120deg, var(--primary-700), var(--primary-500) 70%, var(--accent-500));
  color: #fff;
  padding: var(--space-9) var(--space-7);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.apply-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(244,184,96,0.4), transparent 50%);
  pointer-events: none;
}
.apply-cta__inner { position: relative; max-width: 60ch; }
.apply-cta__title { font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl)); margin-bottom: var(--space-4); }
.apply-cta__sub { font-size: var(--text-md); color: rgba(255,255,255,0.92); margin-bottom: var(--space-5); }

.apply-cta__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (max-width: 1024px) { .apply-cta__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .apply-cta__steps { grid-template-columns: 1fr; } }
.apply-cta__step {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(10px);
}
.apply-cta__step-num {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-500);
  color: var(--gray-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
}
.apply-cta__step h4 { font-size: var(--text-md); margin-bottom: var(--space-2); color: #fff; }
.apply-cta__step p { font-size: var(--text-sm); color: rgba(255,255,255,0.85); line-height: 1.55; }

/* =================================================================
   Big Numbers (community/about)
   ================================================================= */

.bignum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  align-items: end;
}
@media (max-width: 1024px) { .bignum { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bignum { grid-template-columns: 1fr; } }
.bignum__item {
  border-top: 2px solid var(--primary-500);
  padding-top: var(--space-4);
}
.bignum__value {
  font-size: clamp(var(--text-5xl), 8vw, 120px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--primary-600);
}
.bignum__label { font-size: var(--text-md); color: var(--text-secondary); margin-top: var(--space-3); }

/* =================================================================
   Reduced motion
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide { transition: opacity 200ms linear; }
  .hero__slide img { transform: none !important; transition: none !important; }
  .hero__scroll::after { animation: none; }
}
