@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Spring of Knowledge — design tokens
   ========================================================================== */

:root {
  /* Teals — taken from the Spring of Knowledge mark */
  --teal-900: #0E3536;
  --teal-800: #14484A;
  --teal-700: #276F6D;   /* primary: buttons, links, headings (AA on cream) */
  --teal-600: #35817E;   /* the logo's own teal — artwork and large display */
  --teal-300: #6FB2AE;
  --teal-200: #A8CFCC;
  --teal-100: #D3E8E6;
  --teal-50:  #EDF6F5;

  /* Coral — the single warm stroke in the mark. Used sparingly, as there. */
  --coral-800: #8E3524;
  --coral-700: #A63F2C;   /* small text on cream */
  --coral-600: #BC4A34;   /* accent button fill (AA with white) */
  --coral-500: #D4573F;   /* the logo's coral: rules and borders, never text */
  --coral-300: #E89B87;
  --coral-100: #F9E5DE;

  /* Neutrals */
  --cream:    #FAF7F1;
  --cream-2:  #F3EEE4;
  --paper:    #FFFFFF;
  --ink:      #16292A;
  --muted:    #526564;
  --border:   #E4DCD0;
  --border-soft: #EDE6DB;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Amiri', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Oswald', 'Inter', -apple-system, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.44rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.80vw, 2.00rem);
  --step-3:  clamp(1.90rem, 1.60rem + 1.50vw, 2.90rem);
  --step-4:  clamp(2.40rem, 1.85rem + 2.70vw, 4.20rem);
  --step-5:  clamp(2.90rem, 2.00rem + 4.40vw, 5.60rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --wrap: 1160px;
  --wrap-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7, 42, 29, .05), 0 2px 8px rgba(7, 42, 29, .04);
  --shadow-md: 0 2px 6px rgba(7, 42, 29, .06), 0 12px 32px rgba(7, 42, 29, .07);
  --shadow-lg: 0 4px 12px rgba(7, 42, 29, .08), 0 24px 60px rgba(7, 42, 29, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

::selection { background: var(--coral-300); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--coral-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; inset-inline-start: var(--sp-4); top: -100px;
  z-index: 200; background: var(--teal-700); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 0; }

.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;
}

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */

[dir="rtl"] {
  --font-display: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', -apple-system, sans-serif;
}
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  line-height: 1.35;
  letter-spacing: 0;
}
[dir="rtl"] .kicker { letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
[dir="rtl"] .stat__figure { font-family: var(--font-body); }
/* Latin brand name keeps its Latin face inside RTL pages */
[dir="rtl"] .latin { font-family: 'Cormorant Garamond', Georgia, serif; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .latin-body { font-family: 'Inter', sans-serif; direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--teal-900); color: var(--teal-100); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Directional text arrow: mirrors itself on RTL pages. */
.dir-arrow { display: inline-block; }
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Section headers */
.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-brand);
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-700); margin-bottom: var(--sp-4);
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--coral-500); flex: none;
}
.section--dark .kicker { color: var(--coral-300); }
.section--dark .kicker::before { background: var(--coral-500); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: var(--sp-4); font-size: var(--step-1); color: var(--muted); line-height: 1.6; }
.section--dark .section-head p { color: var(--teal-200); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  min-height: 52px; padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent; border-radius: 100px;
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--teal-800); box-shadow: var(--shadow-lg); }

.btn--accent { background: var(--coral-600); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--coral-700); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-200); }
.btn--ghost:hover { background: var(--teal-50); border-color: var(--teal-600); }

.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onDark:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.link-more {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; color: var(--teal-700); text-decoration: none;
  border-bottom: 1px solid var(--teal-200); padding-bottom: 2px;
  transition: border-color .18s var(--ease), color .18s var(--ease), gap .18s var(--ease);
}
.link-more:hover { color: var(--teal-800); border-color: var(--coral-500); gap: var(--sp-3); }
.link-more svg { width: 16px; height: 16px; }
[dir="rtl"] .link-more svg { transform: scaleX(-1); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.announce {
  background: var(--teal-900); color: var(--teal-100);
  font-size: var(--step--1); text-align: center;
  padding: var(--sp-3) var(--sp-4);
}
.announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2) var(--sp-4); }
.announce a {
  color: var(--coral-300); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(226,199,126,.45); padding-bottom: 1px;
}
.announce a:hover { color: #fff; border-color: #fff; }

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

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 236, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 1px 20px rgba(7,42,29,.06); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 76px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  position: relative; padding: var(--sp-2) var(--sp-3);
  font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; border-radius: 8px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--teal-700); background: var(--teal-50); }
.nav__link[aria-current="page"] { color: var(--teal-700); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: var(--sp-3); bottom: 2px;
  height: 2px; background: var(--coral-500); border-radius: 2px;
}

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

/* Keep the header a single row on narrow phones. */
@media (max-width: 560px) {
  .header .brand__logo { height: 34px; }
  .header__inner { min-height: 64px; gap: var(--sp-2); }
  .lang-toggle { padding: 0 var(--sp-3); }
}

.lang-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 40px; padding: 0 var(--sp-4);
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--paper); color: var(--teal-800);
  font-family: var(--font-body); font-size: .86rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--teal-600); background: var(--teal-50); }
.lang-toggle svg { width: 15px; height: 15px; opacity: .65; }
/* The toggle label is always in the *target* language */
html[lang="en"] .lang-toggle { font-family: 'IBM Plex Sans Arabic', sans-serif; }
html[lang="ar"] .lang-toggle { font-family: 'Inter', sans-serif; }

.header__cta { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--paper); color: var(--teal-800); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  /* --drawer-top is measured from the live header when the drawer opens: the
     announcement bar wraps to two lines on narrow screens and scrolls away
     entirely once the page moves, so a fixed offset would hide the first link. */
  padding: calc(var(--drawer-top, 6.5rem) + var(--sp-5)) var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--teal-900); text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}
.drawer__link[aria-current="page"] { color: var(--coral-700); }
.drawer__link svg { width: 18px; height: 18px; opacity: .4; }
[dir="rtl"] .drawer__link svg { transform: scaleX(-1); }
.drawer__foot { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }

@media (min-width: 900px) {
  .burger { display: none; }
  .drawer { display: none; }
  .header__cta { display: inline-flex; }
}
@media (max-width: 899px) {
  .nav { display: none; }
  body.nav-open { overflow: hidden; }
}

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

.hero {
  position: relative; overflow: hidden;
  background: var(--teal-900);
  color: var(--teal-100);
  padding-block: clamp(4rem, 2rem + 9vw, 8.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("pattern.svg");
  background-size: 340px; opacity: .09;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(198,155,62,.22), transparent 58%),
    radial-gradient(90% 80% at 8% 100%, rgba(23,105,74,.55), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(226,199,126,.32); border-radius: 100px;
  background: rgba(226,199,126,.08);
  font-size: var(--step--1); font-weight: 500;
  color: var(--coral-300); letter-spacing: .04em;
  margin-bottom: var(--sp-5);
}
[dir="rtl"] .hero__eyebrow { letter-spacing: 0; }

.hero h1 {
  font-size: var(--step-5); color: #fff; line-height: .98;
  letter-spacing: -0.025em; margin-bottom: var(--sp-5);
}
[dir="rtl"] .hero h1 { line-height: 1.25; letter-spacing: 0; }
.hero h1 .accent { display: block; color: var(--coral-300); font-style: italic; }
[dir="rtl"] .hero h1 .accent { font-style: normal; }
/* The wordmark is Latin inside an RTL page: stack its two lines flush to the
   start edge (right) instead of letting the LTR block align itself left. */
[dir="rtl"] .hero h1 .latin { display: block; text-align: right; }

.hero__lede {
  font-size: var(--step-1); line-height: 1.6; color: var(--teal-200);
  max-width: 34em; margin-bottom: var(--sp-6);
}

.hero__mission {
  margin-top: var(--sp-6); padding-inline-start: var(--sp-5);
  border-inline-start: 2px solid var(--coral-500);
  font-family: var(--font-display); font-size: var(--step-1);
  font-style: italic; color: var(--coral-100); line-height: 1.45; max-width: 32em;
}
[dir="rtl"] .hero__mission { font-style: normal; line-height: 1.8; }

/* Hero card */
.hero__card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__card h2 {
  font-size: var(--step-1); color: #fff; margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4); border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero__sched { display: grid; gap: var(--sp-5); }
.hero__sched-item { display: grid; gap: 2px; }
.hero__sched-day {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--coral-300);
}
[dir="rtl"] .hero__sched-day { letter-spacing: 0; }
.hero__sched-time { font-family: var(--font-display); font-size: var(--step-2); color: #fff; }
[dir="rtl"] .hero__sched-time { font-size: var(--step-1); }
.hero__sched-note { font-size: var(--step--1); color: var(--teal-200); }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  background: var(--paper);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--sp-5);
  border-inline-end: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
@media (min-width: 760px) { .stat { border-bottom: 0; } .stat:last-child { border-inline-end: 0; } }
@media (max-width: 759px) { .stat:nth-child(2n) { border-inline-end: 0; } }
.stat__figure {
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 600; color: var(--teal-700); line-height: 1;
}
.stat__label {
  margin-top: var(--sp-2); font-size: var(--step--1);
  color: var(--muted); line-height: 1.4;
}

/* Page hero (inner pages) */
.pagehead {
  position: relative; overflow: hidden;
  background: var(--teal-800); color: var(--teal-100);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("pattern.svg"); background-size: 300px; opacity: .07;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 100% at 85% 0%, rgba(198,155,62,.18), transparent 60%);
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead .kicker { color: var(--coral-300); }
.pagehead .kicker::before { background: var(--coral-500); }
.pagehead h1 { font-size: var(--step-4); color: #fff; max-width: 18em; }
.pagehead p {
  margin-top: var(--sp-5); font-size: var(--step-1);
  color: var(--teal-200); max-width: 40em; line-height: 1.6;
}

/* ==========================================================================
   Cards & grids
   ========================================================================== */

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 680px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }

/* Program card */
.program {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1rem + 2vw, 2.5rem);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.program::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 4px; background: linear-gradient(90deg, var(--teal-700), var(--coral-500));
}
.program__kicker {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--coral-700);
}
[dir="rtl"] .program__kicker { letter-spacing: 0; }
.program h3 { font-size: var(--step-2); }
.program__time {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-4) 0; border-block: 1px solid var(--border-soft);
}
.program__time strong {
  font-family: var(--font-display); font-size: var(--step-2);
  font-weight: 600; color: var(--teal-700);
}
[dir="rtl"] .program__time strong { font-size: var(--step-1); }
.program__time span { font-size: var(--step--1); color: var(--muted); }
.program__price {
  font-family: var(--font-display); font-size: var(--step-2);
  font-weight: 600; color: var(--teal-700); line-height: 1;
}
[dir="rtl"] .program__price { font-family: var(--font-body); font-size: var(--step-1); }
.program__sibling {
  margin-top: 4px; font-size: .92rem; color: var(--muted); line-height: 1.45;
}
.program__blurb { color: var(--muted); line-height: 1.65; }

/* Tuition table */
.fees-intro { font-size: var(--step-1); color: var(--muted); line-height: 1.6; }
.fees { width: 100%; border-collapse: collapse; margin: var(--sp-6) 0 var(--sp-5); }
.fees th, .fees td {
  text-align: start; padding: var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.fees thead th {
  font-family: var(--font-brand); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--coral-700);
  border-bottom: 2px solid var(--teal-200);
}
[dir="rtl"] .fees thead th { letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.fees .name { font-weight: 600; }
.fees .when { display: block; font-size: .86rem; color: var(--muted); margin-top: 3px; }
.fees .price {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--teal-700); white-space: nowrap;
}
[dir="rtl"] .fees .price { font-family: var(--font-body); font-size: var(--step-1); font-weight: 600; }
.fees-note { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-top: var(--sp-3); }
.fees-ask {
  margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--teal-50); border-inline-start: 3px solid var(--coral-500);
  border-radius: var(--radius); color: var(--ink); line-height: 1.6;
}

/* A three-column price table does not fit a phone: stack it into rows. */
@media (max-width: 559px) {
  .fees thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fees, .fees tbody, .fees tr, .fees td { display: block; width: 100%; }
  .fees tr { border-bottom: 1px solid var(--border); padding: var(--sp-4) 0; }
  .fees td { border: 0; padding: var(--sp-1) 0; }
  .fees td.price {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  }
  .fees td.price::before {
    content: attr(data-label); font-family: var(--font-body); font-size: .84rem;
    font-weight: 500; color: var(--muted); white-space: normal;
  }
}
.program__list { list-style: none; display: grid; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-2); }
.program__list li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  font-size: .95rem;
}
.program__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--coral-600); }

/* Curriculum item */
.curr {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--border-soft);
}
.curr__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.curr__icon svg { width: 22px; height: 22px; }
.curr h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.curr p { color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* Feature card */
.feature { display: flex; flex-direction: column; gap: var(--sp-4); }
.feature__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; background: var(--coral-100); color: var(--coral-800);
  border: 1px solid var(--coral-300);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); font-size: .96rem; line-height: 1.65; }

/* Pillar (about) */
.pillar { display: flex; gap: var(--sp-5); padding-block: var(--sp-6); border-bottom: 1px solid var(--border-soft); }
.pillar__n {
  font-family: var(--font-brand); font-size: var(--step-2); font-weight: 600;
  color: var(--coral-600); flex: none; width: 3ch; line-height: 1;
}
.pillar h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.pillar p { color: var(--muted); line-height: 1.7; }

/* Age stream */
.stream {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  display: grid; gap: var(--sp-4);
}
.stream__range {
  display: inline-block; width: fit-content;
  padding: var(--sp-1) var(--sp-4); border-radius: 100px;
  background: var(--teal-700); color: #fff;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .04em;
}
[dir="rtl"] .stream__range { letter-spacing: 0; }
.stream h3 { font-size: var(--step-2); }
.stream p { color: var(--muted); line-height: 1.7; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  position: relative; background: var(--paper);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  display: grid; gap: var(--sp-4);
  grid-template-columns: auto 1fr; align-items: start;
}
.step__n {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal-700); color: #fff;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
}
.step__body { display: grid; gap: var(--sp-3); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--muted); line-height: 1.65; }
.step .btn { justify-self: start; margin-top: var(--sp-2); }

/* Checklist */
.checklist { list-style: none; display: grid; gap: var(--sp-4); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; line-height: 1.6; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--teal-600); }

/* Callout */
.callout {
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-inline-start: 3px solid var(--coral-500);
  border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: grid; gap: var(--sp-3);
}
.callout h3 { font-size: var(--step-1); color: var(--teal-800); }
.callout p { color: var(--muted); line-height: 1.65; }

/* Prose */
.prose { display: grid; gap: var(--sp-5); max-width: 38em; }
.prose p { font-size: var(--step-1); line-height: 1.75; color: #2C3D35; }
[dir="rtl"] .prose p { line-height: 1.95; }

/* Pull quote */
.quote {
  font-family: var(--font-display); font-size: var(--step-2);
  font-style: italic; line-height: 1.45; color: var(--teal-800);
  padding-inline-start: var(--sp-6); border-inline-start: 3px solid var(--coral-500);
  max-width: 26em;
}
[dir="rtl"] .quote { font-style: normal; line-height: 1.8; }

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

.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-5) 0;
  background: none; border: 0; cursor: pointer; text-align: start;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--teal-900); line-height: 1.3;
}
[dir="rtl"] .faq__q { line-height: 1.6; }
.faq__q:hover { color: var(--teal-700); }
.faq__icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; color: var(--teal-700);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--teal-50); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: var(--sp-5); color: var(--muted); line-height: 1.7; max-width: 46em; }

/* ==========================================================================
   Location / map / contact
   ========================================================================== */

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--wide-first { }
@media (min-width: 900px) { .split--wide-first { grid-template-columns: 1.05fr .95fr; } }

.map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  background: var(--teal-50); aspect-ratio: 4 / 3;
  width: 100%; max-width: 100%;
  /* No min-height: with aspect-ratio it would impose a MINIMUM WIDTH of
     320 x 4/3 = 427px, overflowing every phone narrower than that. */
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.address { display: grid; gap: var(--sp-2); font-style: normal; line-height: 1.7; }
.address strong { font-size: var(--step-1); font-family: var(--font-display); font-weight: 600; }

.method {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  text-decoration: none; color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.method:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.method__icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-100);
}
.method__icon svg { width: 22px; height: 22px; }
.method__body { display: grid; gap: 3px; min-width: 0; }
.method__label {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--coral-700);
}
[dir="rtl"] .method__label { letter-spacing: 0; }
.method__value {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--teal-900); overflow-wrap: anywhere;
}
.method__note { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.hours { list-style: none; display: grid; gap: 0; }
.hours li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--border-soft);
}
.hours li:last-child { border-bottom: 0; }
.hours__day { font-weight: 600; }
.hours__time { color: var(--muted); font-variant-numeric: tabular-nums; }

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

.cta-band {
  position: relative; overflow: hidden;
  background: var(--teal-800); color: var(--teal-100);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("pattern.svg"); background-size: 260px; opacity: .08;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(198,155,62,.20), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-3); color: #fff; margin-bottom: var(--sp-4); }
.cta-band p { color: var(--teal-200); font-size: var(--step-1); max-width: 40em; margin: 0 auto var(--sp-6); line-height: 1.6; }
.cta-band .btn-row { justify-content: center; }

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

.footer {
  background: var(--teal-900); color: var(--teal-200);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) var(--sp-6);
  font-size: .95rem;
}
.footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 660px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; } }
/* Keep the wordmark on one line wherever it has the room. */
.footer__brand { display: grid; gap: var(--sp-4); }
.footer .brand__logo { height: 54px; }
.footer__tagline { color: var(--teal-200); line-height: 1.65; max-width: 26em; }
.footer h2 {
  font-family: var(--font-brand); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-300);
  margin-bottom: var(--sp-4);
}
[dir="rtl"] .footer h2 { letter-spacing: 0; font-family: var(--font-body); font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: var(--sp-3); }
.footer a { color: var(--teal-200); text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: var(--teal-300);
}
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.footer__social a:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.4); }
.footer__social svg { width: 18px; height: 18px; }

/* ==========================================================================
   Motion & print
   ========================================================================== */

/* Content is visible by default. The hidden state applies only once the
   inline head script has confirmed JavaScript is running, so visitors with
   JS disabled (and anyone whose JS fails to load) still see the whole page. */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .drawer, .announce, .cta-band, .footer__social, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .pagehead, .footer { background: #fff !important; color: #000 !important; }
  .hero::before, .hero::after, .pagehead::before, .pagehead::after { display: none; }
  .faq__a { grid-template-rows: 1fr !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
