/* =============================================================
   Excel in MathSci — Design System
   Pure HTML/CSS. No frameworks. Mobile-first.
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette — sampled from logo */
  --teal-50:  #e6f7f4;
  --teal-100: #d4f0ec;
  --teal-200: #88ddd1;
  --teal-400: #2fb9a9;
  --teal-500: #0d9488;
  --teal-600: #0a7368;
  --teal-700: #08594f;

  --gold-100: #fdebc8;
  --gold-400: #f7d24a;
  --gold-500: #f5a524;
  --gold-600: #d48a0a;

  --coral-500: #ec407a;
  --coral-600: #c82966;

  /* Warm-cream surface palette (from design bundle) */
  --cream:     #faf7f1;
  --cream-2:   #f3ede1;
  --line-warm: #e7e1d2;
  --pink:      #ec407a;
  --pink-soft: #fde4ed;
  --orange:    #f5a524;
  --orange-soft: #fdebc8;

  --navy-50:  #f3f5fa;
  --navy-100: #e4e8f2;
  --navy-300: #9aa5c4;
  --navy-700: #2a3a66;
  --navy-800: #172549;
  --navy-900: #0e1b3d;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e4e8ee;
  --gray-300: #cbd3dc;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;

  --white: #ffffff;
  --black: #000000;

  /* Semantic */
  --bg:         var(--white);
  --bg-alt:     var(--navy-50);
  --bg-dark:    var(--navy-900);
  --text:       var(--navy-900);
  --text-muted: var(--gray-600);
  --text-inv:   var(--white);
  --border:     var(--gray-200);
  --brand:      var(--teal-500);
  --brand-hov:  var(--teal-600);
  --accent:     var(--gold-500);

  /* Typography — system fallback stack; upgrade to self-hosted later */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.1875rem;   /* 19 */
  --fs-lg: 1.5rem;      /* 24 */
  --fs-xl: 2rem;        /* 32 */
  --fs-2xl: 2.75rem;    /* 44 */
  --fs-3xl: 3.75rem;    /* 60 */

  /* Spacing scale (8px rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(14, 27, 61, .06);
  --sh-md: 0 6px 18px rgba(14, 27, 61, .08);
  --sh-lg: 0 18px 48px rgba(14, 27, 61, .12);
  --sh-glow: 0 10px 32px rgba(14, 155, 138, .22);

  /* Layout */
  --container: 1180px;
  --header-h: 96px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 200ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, video, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
hr { border: 0; height: 1px; background: var(--border); margin: var(--s-8) 0; }

/* ---------- 3. Base ---------- */
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2rem, 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.75rem, 3.8vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 700; }

p { color: var(--text-muted); }
p.lead { font-size: var(--fs-md); color: var(--navy-700); max-width: 56ch; }

strong { color: var(--navy-900); font-weight: 600; }
a.inline-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a.inline-link:hover { color: var(--brand-hov); }

::selection { background: var(--teal-200); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(var(--s-16), 9vw, var(--s-24)); }
.section-tight { padding-block: var(--s-12); }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: radial-gradient(1200px 500px at 15% 0%, var(--teal-700), transparent 60%),
              linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: var(--text-inv);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: var(--s-6); align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Cards inside any grid share height for a tidy look */
.grid > .card { display: flex; flex-direction: column; height: 100%; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--teal-50);
  padding: 0.45em 0.9em;
  border-radius: var(--r-full);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.9rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--sh-glow);
}
.btn-primary:hover { background: var(--brand-hov); box-shadow: 0 14px 40px rgba(14,155,138,.32); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); }
.btn-accent {
  background: var(--accent);
  color: var(--navy-900);
}
.btn-accent:hover { background: var(--gold-600); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { background: var(--gray-100); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: var(--fs-base); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6a. Utility top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 55;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: var(--s-4);
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--dur) var(--ease);
  line-height: 1;
}
.topbar-link:hover { color: var(--gold-400); }
.topbar-link .icon { opacity: 0.75; }
.topbar-hours {
  color: rgba(255, 255, 255, 0.65);
  padding-right: var(--s-4);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar-socials {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.topbar-socials a {
  width: 22px; height: 22px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar-socials a:hover {
  color: var(--gold-400);
  transform: translateY(-1px);
}
.topbar-socials svg {
  width: 15px; height: 15px;
  fill: currentColor;
}
@media (max-width: 780px) {
  .topbar-location, .topbar-hours { display: none; }
  .topbar-inner { padding-block: 8px; min-height: 0; }
  .topbar-left { gap: var(--s-3); font-size: 0.72rem; }
}
@media (max-width: 520px) {
  .topbar-link span { display: none; }
  .topbar-left { gap: var(--s-4); }
  .topbar-link .icon { width: 18px; height: 18px; }
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              min-height var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(14, 27, 61, 0.08);
  border-bottom-color: transparent;
}
.site-header.is-scrolled .nav { min-height: 72px; }
.site-header.is-scrolled .brand img { height: 52px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand img {
  height: 64px;
  width: auto;
  display: block;
}
.site-footer .brand img { height: 72px; }
@media (max-width: 640px) {
  .brand img { height: 52px; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-list a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--navy-900); }
.nav-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--r-md);
  place-items: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  /* Hide topbar and desktop header rows */
  .topbar { display: none !important; }

  :root { --header-h: 66px; }
  body.nav-open { overflow: hidden; }

  /* Keep the static top bar clean: logo + hamburger only */
  .site-header .nav {
    min-height: 66px;
    padding-block: var(--s-2);
  }
  nav[aria-label="Primary"] { display: contents; }
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: grid; }

  /* ===== Full-screen slide-in panel ===== */
  .mobile-nav-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(92vw, 400px);
    background: var(--white);
    z-index: 90;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 280ms cubic-bezier(.4,0,.2,1), visibility 280ms ease;
    box-shadow: -18px 0 50px rgba(14, 27, 61, 0.22);
  }
  body.nav-open .mobile-nav-panel {
    transform: translateX(0);
    visibility: visible;
  }

  /* Scrim */
  .mobile-nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(14, 27, 61, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    z-index: 85;
    pointer-events: none;
  }
  body.nav-open .mobile-nav-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Panel header — brand + close */
  .mnp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-3) var(--s-4);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--cream), var(--white));
    min-height: 66px;
    flex-shrink: 0;
  }
  .mnp-head .brand img { height: 40px; width: auto; }
  .mnp-close {
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
  }
  .mnp-close::before,
  .mnp-close::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 20px; height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
  }
  .mnp-close::before { transform: translate(-50%,-50%) rotate(45deg); }
  .mnp-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

  /* Panel body (scrollable list) */
  .mnp-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--s-4);
  }
  .mnp-list { list-style: none; margin: 0; padding: 0; }
  .mnp-list > li { border-bottom: 1px solid var(--border); }
  .mnp-list > li > a,
  .mnp-list > li > .mnp-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 1rem 1.25rem;
    min-height: 56px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--navy-900);
    text-decoration: none;
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
  }
  .mnp-list > li > a:hover,
  .mnp-list > li > a.is-active,
  .mnp-list > li > .mnp-parent:hover { color: var(--brand); background: var(--teal-50); }
  .mnp-chev {
    width: 10px; height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 220ms ease;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .mnp-list > li.is-open .mnp-chev {
    transform: rotate(-135deg);
    color: var(--brand);
  }

  /* Sub-menu accordion */
  .mnp-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--gray-50);
    transition: max-height 280ms ease;
  }
  .mnp-list > li.is-open .mnp-sub { max-height: 800px; }
  .mnp-sub li { border-top: 1px solid var(--border); }
  .mnp-sub li a {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1.25rem 0.8rem 2.25rem;
    color: var(--navy-800);
    font-size: 0.94rem;
    text-decoration: none;
  }
  .mnp-sub li a:hover { background: var(--teal-50); color: var(--brand); }
  .mnp-sub li a strong { font-weight: 600; font-size: 0.96rem; }
  .mnp-sub li a small { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
  .mnp-sub-title {
    padding: 0.7rem 1.25rem 0.3rem 2.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-600);
  }

  /* Panel footer (CTAs, contact) */
  .mnp-foot {
    padding: var(--s-4) var(--s-5) calc(var(--s-4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    flex-shrink: 0;
  }
  .mnp-foot .btn { width: 100%; justify-content: center; min-height: 48px; }
  .mnp-foot-links {
    display: flex;
    justify-content: center;
    gap: var(--s-5);
    padding-top: var(--s-2);
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  .mnp-foot-links a { color: var(--text-muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
  .mnp-foot-links a:hover { color: var(--brand); }
}
@media (min-width: 981px) {
  .mobile-nav-panel, .mobile-nav-scrim { display: none !important; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--s-16), 8vw, var(--s-20)) var(--s-12);
  background: var(--white);
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero-decor .blob-teal {
  width: 520px; height: 520px;
  background: var(--teal-100);
  top: -120px; right: -120px;
}
.hero-decor .blob-gold {
  width: 360px; height: 360px;
  background: var(--gold-100);
  bottom: -100px; left: -80px;
}
.hero-decor .dot-grid {
  position: absolute;
  top: 20%; left: 3%;
  width: 140px; height: 140px;
  background-image: radial-gradient(var(--teal-200) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .4;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-12);
  align-items: center;
}
/* Image first (left on desktop, top on mobile) */
.hero-visual { order: -1; }
.hero-copy   { order: 0;  }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
}

.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--brand) 0%, var(--teal-400) 50%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero .lead {
  font-size: 1.125rem;
  max-width: 56ch;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-5);
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero-rating .stars {
  display: inline-flex; gap: 1px; line-height: 0;
}
.hero-rating strong { color: var(--navy-900); }
.hero-rating a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
  list-style: none;
  padding: 0;
}
.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--navy-800);
  font-weight: 500;
}
.hero-features .tick {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--teal-50);
  color: var(--brand);
  font-weight: 800;
  font-size: 11px;
}

/* Visual / image */
.hero-visual {
  position: relative;
  isolation: isolate;
  padding: 12px;
}
.hero-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(14, 27, 61, .28),
    0 10px 25px -10px rgba(14, 155, 138, .18);
  transition: transform var(--dur) var(--ease);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--r-xl) + 10px);
  background: linear-gradient(135deg, var(--teal-100), var(--gold-100));
  z-index: -1;
  opacity: .9;
  filter: blur(2px);
}
.hero-frame:hover { transform: translateY(-4px); }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-visual img { aspect-ratio: 5/4; }
}
@media (max-width: 520px) {
  .hero-visual img { aspect-ratio: 4/3; }
}

.hero-badge {
  position: absolute;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: heroFloat 5s ease-in-out infinite alternate;
}
.hero-badge.br { bottom: 24px; right: -14px; }
.hero-badge.tl { top: 40px; left: -22px; animation-delay: -2s; }
.hero-badge .dot {
  width: 38px; height: 38px; border-radius: var(--r-full);
  background: var(--teal-50); color: var(--brand);
  display: grid; place-items: center;
}
.hero-badge strong { display: block; font-size: 0.875rem; color: var(--navy-900); line-height: 1.1; }
.hero-badge span { font-size: 0.72rem; color: var(--text-muted); }

@keyframes heroFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.hero-chip {
  position: absolute;
  top: -18px; right: 32px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  padding: 8px 14px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  z-index: 2;
}
.hero-chip .chip-num { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.hero-chip .chip-label { font-size: 0.75rem; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .hero-badge.tl { left: 8px; }
  .hero-badge.br { right: 8px; bottom: 12px; }
  .hero-chip { right: 16px; top: -12px; }
}
@media (max-width: 520px) {
  .hero-badge { padding: 8px 10px; gap: 8px; }
  .hero-badge .dot { width: 32px; height: 32px; }
  .hero-badge strong { font-size: 0.8rem; }
  .hero-badge span { font-size: 0.68rem; }
  .hero-chip { padding: 6px 10px; top: -10px; right: 10px; }
  .hero-chip .chip-num { font-size: 0.95rem; }
  .hero-chip .chip-label { font-size: 0.68rem; }
}

/* Hero stats band — sits at the base of the hero section */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: var(--s-12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-6) var(--s-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}
.hero-stats .trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 var(--s-3);
  position: relative;
}
.hero-stats .trust-item + .trust-item::before {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 1px; height: 70%;
  background: var(--border);
}
.hero-stats .trust-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
}
.hero-stats .trust-num small {
  font-size: 1.2rem;
  color: var(--brand);
  vertical-align: top;
}
.hero-stats .trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
@media (max-width: 780px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .hero-stats .trust-item + .trust-item::before { display: none; }
}

/* ---------- 8. Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--teal-200);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--teal-50);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); }

/* Subject-level pillar card */
.pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  background: linear-gradient(180deg, var(--white), var(--navy-50));
}
.pillar-card .level {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pillar-card h3 { margin-top: var(--s-2); }
.pillar-card .arrow-link {
  margin-top: var(--s-4);
  color: var(--brand);
  font-weight: 600;
  font-size: var(--fs-sm);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- 9. Section heading block ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-10);
  max-width: 640px;
}
.section-head.centered { margin-inline: auto; text-align: center; align-items: center; }
.section-head p { font-size: var(--fs-md); }

/* ---------- 10. Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding: var(--s-8);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  margin-top: calc(-1 * var(--s-12));
  position: relative;
  z-index: 2;
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ---------- 11. Process / how-it-works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: var(--s-6);
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--teal-200);
  line-height: 1;
}
.step h3 { font-size: var(--fs-lg); margin-top: var(--s-3); }

/* ---------- 12. Testimonial ---------- */
.quote-card {
  background: var(--white);
  padding: var(--s-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  position: relative;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: -20px; left: 24px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--teal-200);
  line-height: 1;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--navy-900);
  margin: 0;
}
.quote-author {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.quote-author .avatar {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--teal-50); color: var(--brand);
  display: grid; place-items: center; font-weight: 700;
}
.quote-author strong { display: block; font-size: var(--fs-sm); }
.quote-author span { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- 13. FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.faq-item[open] { box-shadow: var(--sh-sm); border-color: var(--teal-200); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6);
  font-weight: 600;
  color: var(--navy-900);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand);
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 var(--s-6) var(--s-5);
  color: var(--text-muted);
}

/* ---------- 14. Contact / form ---------- */
.form-grid { display: grid; gap: var(--s-4); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  font-size: var(--fs-sm);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--teal-50);
}

/* Contact card */
.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
}
.contact-card .icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--teal-50); color: var(--brand);
  display: grid; place-items: center;
}
.contact-card strong { display: block; font-size: var(--fs-sm); color: var(--navy-900); }
.contact-card a { color: var(--text-muted); font-size: var(--fs-sm); }
.contact-card a:hover { color: var(--brand); }
.contact-card span { display: block; color: var(--text-muted); font-size: var(--fs-sm); }

/* Horizontal contact strip — premium, differentiated by channel */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  align-items: stretch;
}
.contact-card-link {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 160px;
  align-items: flex-start;
  grid-template-columns: unset;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.contact-card-link::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--_c, var(--brand));
  opacity: .85;
  transition: height var(--dur) var(--ease);
}
.contact-card-link:hover {
  transform: translateY(-3px);
  border-color: var(--_c, var(--teal-200));
  box-shadow: 0 18px 40px -20px rgba(14, 27, 61, .22);
}
.contact-card-link:hover::before { height: 6px; }
.contact-card-link .icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--_cs, var(--teal-50));
  color: var(--_c, var(--brand));
  display: grid; place-items: center;
  margin-bottom: var(--s-2);
}
.contact-card-link strong {
  display: block;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-card-link span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}
/* Channel accents via CSS custom properties */
.contact-card-link[href^="tel:"]      { --_c: var(--teal-500);  --_cs: var(--teal-50); }
.contact-card-link[href^="mailto:"]   { --_c: var(--coral-500); --_cs: var(--pink-soft); }
.contact-card-link[href*="wa.me"]     { --_c: #25D366;          --_cs: #dff7e6; }
.contact-card-link[href*="maps"]      { --_c: var(--gold-500);  --_cs: var(--orange-soft); }
@media (max-width: 900px) {
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .contact-strip { grid-template-columns: 1fr; gap: var(--s-3); }
  .contact-card-link { min-height: 0; padding: var(--s-5); }
}

/* Centered contact form card (contact-us page) */
.contact-form-wrap {
  max-width: 820px;
  margin-inline: auto;
}
.contact-form-wrap .contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-6), 3vw, var(--s-10));
  box-shadow: var(--sh-sm);
}

/* ---------- 14b. Registration form ---------- */
.reg-form { gap: var(--s-5); }
.reg-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.reg-fieldset legend {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.req { color: var(--coral-500); font-weight: 700; }

.radio-row, .check-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.radio-pill, .check-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.radio-pill input, .check-pill input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  background: #fff;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  flex: none;
}
.check-pill input { border-radius: 4px; }
.radio-pill input:checked {
  border-color: var(--brand);
  background: radial-gradient(circle, var(--brand) 38%, transparent 44%);
}
.check-pill input:checked {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.radio-pill:has(input:checked),
.check-pill:has(input:checked) {
  border-color: var(--brand);
  background: var(--teal-50);
  color: var(--navy-900);
}
.radio-pill:hover, .check-pill:hover {
  border-color: var(--teal-200);
}

.reg-levels {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-5);
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream) 100%);
  border-radius: var(--r-lg);
  border: 1px dashed var(--teal-200);
}
.reg-levels:empty,
.reg-levels[hidden] { display: none; }
.reg-levels-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  text-align: center;
  padding: var(--s-4);
}
.reg-levels-empty[hidden] { display: none; }
.reg-hint {
  margin: var(--s-2) 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.reg-level-row {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  animation: regLevelFade 260ms var(--ease);
}
.reg-level-row[hidden] { display: none; }
.reg-level-row > label,
.reg-level-row > .reg-level-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0;
}
.reg-level-row .reg-level-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
@keyframes regLevelFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile — flatten the level picker for a compact, thumb-friendly layout */
@media (max-width: 720px) {
  .reg-levels {
    padding: var(--s-4);
    gap: var(--s-3);
    border-style: solid;
    border-color: var(--teal-100);
  }
  .reg-level-row {
    padding: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--teal-100);
    padding-top: var(--s-3);
    gap: var(--s-2);
  }
  .reg-level-row:first-of-type,
  .reg-level-row + .reg-level-row:not([hidden]) ~ .reg-level-row[hidden] + .reg-level-row { /* safe fallbacks */
    border-top: 0;
    padding-top: 0;
  }
  /* First visible row has no top divider */
  .reg-levels > .reg-level-row:not([hidden]):first-of-type {
    border-top: 0;
    padding-top: 0;
  }
  .reg-level-row > .reg-level-heading,
  .reg-level-row > label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  .reg-level-row .reg-level-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .reg-level-row .reg-level-options .check-pill {
    padding: 10px 12px;
    font-size: 0.88rem;
    border-width: 1.5px;
    justify-content: flex-start;
    width: 100%;
  }
  .reg-level-row .reg-level-options .check-pill input {
    width: 15px; height: 15px;
    border-width: 1.5px;
  }
}
@media (max-width: 380px) {
  .reg-level-row .reg-level-options {
    grid-template-columns: 1fr;
  }
}

.reg-consent {
  padding: var(--s-3) var(--s-4);
  background: var(--navy-50);
  border-radius: var(--r-md);
  font-size: 0.88rem;
}
.reg-consent label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-800);
  cursor: pointer;
}
.reg-consent input {
  width: 18px; height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* ---------- 14c. Services page — subject × level matrix ---------- */
.matrix-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.matrix-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-6);
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  align-items: center;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.matrix-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(14,27,61,.08);
  border-color: var(--teal-200);
}
@media (max-width: 900px) { .matrix-row { grid-template-columns: 1fr; } }
.matrix-head {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  padding-right: var(--s-4);
  border-right: 1px dashed var(--border);
}
@media (max-width: 900px) { .matrix-head { border-right: 0; padding-right: 0; padding-bottom: var(--s-3); border-bottom: 1px dashed var(--border); } }
.matrix-head img {
  width: 48px; height: 48px;
  padding: 8px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
}
.matrix-head h3 { margin: 0; font-size: 1.25rem; }
.matrix-head p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.matrix-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 780px) { .matrix-levels { grid-template-columns: 1fr; } }
.matrix-levels a {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--navy-50);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.matrix-levels a:hover {
  background: var(--teal-50);
  border-color: var(--teal-200);
  transform: translateY(-2px);
}
.matrix-levels strong {
  color: var(--brand);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.matrix-levels small {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- 14d. Modes (online vs in-person) ---------- */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  align-items: stretch;
}
.modes-grid > .mode-card { display: flex; flex-direction: column; height: 100%; }
@media (max-width: 780px) { .modes-grid { grid-template-columns: 1fr; } }
.mode-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(14,27,61,.1);
}
.mode-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
}
.mode-card h3 { font-size: 1.3rem; margin-bottom: var(--s-3); }
.mode-featured {
  background: linear-gradient(180deg, var(--teal-50), var(--white));
  border-color: var(--teal-200);
}

/* ---------- PDF viewer modal ---------- */
.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 61, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 300;
  padding: var(--s-4);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.pdf-modal.is-open { opacity: 1; }
.pdf-modal[hidden] { display: none; }

.pdf-modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  width: min(1100px, 100%);
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform var(--dur) var(--ease);
  overflow: hidden;
}
.pdf-modal.is-open .pdf-modal-box { transform: scale(1); }

.pdf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}
.pdf-modal-info {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  flex: 1;
}
.pdf-chip {
  flex: none;
  background: var(--coral-500);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pdf-modal-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}
.pdf-modal-actions .btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-full);
  font-weight: 600;
}
.pdf-modal-actions .btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(14, 155, 138, 0.35);
}
.pdf-modal-actions .btn-primary:hover {
  background: var(--brand-hov);
  transform: translateY(-1px);
}
.pdf-modal-actions .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem;
}
.pdf-modal-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}
.pdf-modal-close {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: var(--r-full);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease);
}
.pdf-modal-close:hover { background: rgba(255, 255, 255, 0.22); }

.pdf-modal-body {
  flex: 1;
  background: #525659;  /* matches the standard PDF viewer grey */
  position: relative;
}
.pdf-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 700px) {
  .pdf-modal { padding: 0; }
  .pdf-modal-box { height: 100vh; width: 100vw; border-radius: 0; }
  .pdf-modal-head { padding: var(--s-3); }
  .pdf-modal-title { font-size: 0.82rem; }
  .pdf-modal-actions .btn-sm span,
  .pdf-modal-actions .btn-primary span { display: none; }
}

/* ---------- 15. Past papers table/list ---------- */
.pp-group { margin-bottom: var(--s-10); }
.pp-group h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}
.pp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-3);
}
.pp-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--navy-900);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.pp-item:hover {
  border-color: var(--brand);
  background: var(--teal-50);
  transform: translateY(-1px);
}
.pp-item .pdf-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: var(--r-sm);
  background: var(--coral-500);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em;
}

/* ---------- Contact section v2 ---------- */
.section-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-50), var(--white));
}
.contact-deco {
  position: absolute; inset: 0; pointer-events: none;
}
.contact-deco .blob {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45;
}
.contact-deco .blob-teal {
  width: 440px; height: 440px;
  background: var(--teal-100); top: -100px; left: -80px;
}
.contact-deco .blob-gold {
  width: 360px; height: 360px;
  background: var(--gold-100); bottom: -80px; right: -60px;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-grid > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > :first-child { position: static; }
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-list {
  list-style: none; padding: 0; margin: var(--s-4) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (max-width: 620px) { .contact-list { grid-template-columns: 1fr; } }
.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.contact-list li:hover { border-color: var(--teal-200); }
.ci-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
  color: var(--brand);
  display: grid; place-items: center;
}
.contact-list small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-list a, .contact-list span {
  font-size: 0.88rem;
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.35;
}
.contact-list a:hover { color: var(--brand); }
.contact-chips {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: var(--s-5);
}
.cs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 600;
  color: var(--navy-900);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.cs-chip:hover { border-color: var(--brand); background: var(--teal-50); color: var(--brand); }
.cs-chip.cs-wa { background: #25D366; color: #fff; border-color: #25D366; }
.cs-chip.cs-wa:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  box-shadow: 0 30px 60px rgba(14, 27, 61, 0.08);
  position: relative;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold-500));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.cfc-header { margin-bottom: var(--s-5); }
.cfc-badge {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--teal-50);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.cfc-header h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.cfc-header p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.form-hint {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA band v2 ---------- */
.cta-section { padding-block: var(--s-16); }
.cta-band-v2 {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--s-10), 7vw, var(--s-16)) clamp(var(--s-6), 5vw, var(--s-12));
  background: radial-gradient(900px 500px at 20% 0%, var(--teal-600) 0%, var(--teal-700) 40%, var(--navy-900) 100%);
  border-radius: var(--r-xl);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 780px) { .cta-band-v2 { grid-template-columns: 1fr; } }
.cta-band-v2 .cta-deco {
  position: absolute; inset: 0; pointer-events: none;
}
.cta-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.cta-blob-1 {
  width: 280px; height: 280px;
  background: var(--gold-500); top: -80px; right: -40px;
}
.cta-blob-2 {
  width: 200px; height: 200px;
  background: var(--teal-200); bottom: -60px; left: 20%;
}
.cta-copy { position: relative; z-index: 1; }
.cta-eyebrow {
  display: inline-flex;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.cta-band-v2 h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 var(--s-3);
  max-width: 24ch;
}
.cta-band-v2 p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
  max-width: 46ch;
}
.cta-actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}

/* ---------- Footer v2 ---------- */
.site-footer-v2 { background: var(--navy-900); padding: 0; }
.footer-top {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-900));
  padding-block: var(--s-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-6);
}
.fb-eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--s-2);
}
.footer-banner h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0;
}
.fb-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.btn-ghost-light {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.footer-main { padding-block: var(--s-16) var(--s-8); }
.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact li { margin-bottom: var(--s-2); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.fci {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}
.footer-hours {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--s-2);
}
.footer-address { margin-top: var(--s-3); }
.footer-address address {
  font-style: normal;
  line-height: 1.5;
  font-size: 0.85rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom strong { color: rgba(255, 255, 255, 0.8); }
.footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, 0.65); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: #fff; }

/* ---------- Contact section v3 (home) — dramatic dark-navy CTA style ---------- */
.section-contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--s-16), 10vw, var(--s-24));
  background:
    radial-gradient(1100px 560px at 12% 0%, var(--teal-700) 0%, transparent 55%),
    radial-gradient(900px 500px at 92% 100%, rgba(236, 64, 122, .28) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  isolation: isolate;
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
.section-contact > .container { position: relative; z-index: 1; }
.section-contact .section-head.centered .eyebrow {
  background: rgba(13, 148, 136, .18);
  color: #7dd3c9;
  border: 1px solid rgba(13, 148, 136, .35);
}
.section-contact .section-head.centered h2 {
  color: #fff;
}
.section-contact .section-head.centered p {
  color: rgba(255, 255, 255, .78);
}

.contact-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-10);
  align-items: stretch;
  margin-top: var(--s-10);
}
@media (max-width: 900px) {
  .contact-grid-v2 { grid-template-columns: 1fr; gap: var(--s-6); margin-top: var(--s-8); }
}

/* Left — info card on dark bg */
.contact-info-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55);
  position: static;
}
.ci-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3c9;
  margin: 0 0 var(--s-1);
}
.ci-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.ci-tile {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  text-decoration: none;
  color: #fff;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.ci-tile::after {
  content: "→";
  grid-column: 3;
  grid-row: span 2;
  align-self: center;
  color: rgba(255, 255, 255, .35);
  font-size: 18px;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ci-tile:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--_c, #7dd3c9);
  transform: translateY(-2px);
}
.ci-tile:hover::after { color: var(--_c, #7dd3c9); transform: translateX(4px); }
.ci-tile .ci-icon {
  width: 48px; height: 48px;
  grid-row: span 2;
  border-radius: var(--r-md);
  background: var(--_c, var(--teal-500));
  color: #fff;
  display: grid;
  place-items: center;
  align-self: center;
  box-shadow: 0 6px 16px -6px var(--_c, var(--teal-500));
}
.ci-tile small {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  line-height: 1;
  margin-top: 2px;
}
.ci-tile strong {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.35;
  font-weight: 600;
  margin-top: 2px;
}
/* Channel accent rings */
.ci-tile[href^="tel:"]    { --_c: #2fb9a9; }
.ci-tile[href^="mailto:"] { --_c: #ec407a; }
.ci-tile[href*="wa.me"]   { --_c: #25d366; }
.ci-tile[href*="maps"]    { --_c: #f5a524; }

/* Maths decor filling the blank space inside the info card */
.ci-decor {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin: var(--s-3) 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 30% 30%, rgba(13, 148, 136, .18), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 64, 122, .15), transparent 55%);
  overflow: hidden;
  isolation: isolate;
}
.ci-decor-wave {
  position: absolute;
  left: 0; right: 0; bottom: 20%;
  width: 100%;
  height: 80px;
  opacity: .85;
}
.ci-wave-path {
  stroke-dasharray: 4 6;
  animation: ciWaveDraw 14s linear infinite;
}
.ci-wave-path-2 { animation-duration: 18s; animation-direction: reverse; }
@keyframes ciWaveDraw {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -200; }
}

.ci-decor-atom {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .55;
}
.ci-decor-atom .ci-orbit   { transform-origin: center; animation: ciAtomSpin 18s linear infinite; }
.ci-decor-atom .ci-orbit-2 { animation-duration: 24s; animation-direction: reverse; }
.ci-decor-atom .ci-orbit-3 { animation-duration: 30s; }
@keyframes ciAtomSpin {
  to { transform: rotate(360deg); }
}

.ci-eq {
  position: absolute;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: ciEqFloat var(--d, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.ci-eq-1 { top: 8%;  left: 8%;   color: #7dd3c9; --d: 7s;   --delay: 0s; }
.ci-eq-2 { top: 18%; right: 6%;  color: #ec407a; --d: 9s;   --delay: 1.2s; }
.ci-eq-3 { top: 62%; left: 10%;  color: #f5a524; --d: 8.5s; --delay: .6s; }
.ci-eq-4 { bottom: 10%; right: 8%; color: #7dd3c9; --d: 8s;  --delay: 1.8s; font-size: 12px; }
.ci-eq-5 { top: 44%; right: 18%; color: #f5a524; --d: 6.5s; --delay: .9s; font-size: 15px; }

@keyframes ciEqFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ci-wave-path,
  .ci-decor-atom .ci-orbit,
  .ci-eq { animation: none !important; }
}

@media (max-width: 900px) {
  .ci-decor { min-height: 160px; }
  .ci-eq-4, .ci-eq-5 { display: none; }
}
@media (max-width: 520px) {
  .ci-decor { display: none; }
}

.ci-hours {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: rgba(125, 211, 201, .12);
  color: #7dd3c9;
  border: 1px solid rgba(125, 211, 201, .25);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
}
@media (max-width: 520px) {
  .ci-tile { grid-template-columns: 42px 1fr auto; padding: var(--s-3) var(--s-4); }
  .ci-tile .ci-icon { width: 42px; height: 42px; }
}

/* Form card — white card floating on dark navy contact section */
.section-contact .contact-form-card {
  background: var(--white);
  color: var(--navy-900);
  border: 0;
  border-radius: var(--r-xl);
  padding: clamp(var(--s-6), 3vw, var(--s-8));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  position: relative;
}
.section-contact .contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-500), var(--coral-500) 55%, var(--gold-500));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.section-contact .cfc-header { margin-bottom: var(--s-5); }
.section-contact .cfc-badge {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--teal-50);
  color: var(--teal-600);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.section-contact .cfc-header h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--navy-900);
  margin-bottom: var(--s-2);
}
.section-contact .cfc-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.section-contact .form-hint {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}
.section-contact .field input,
.section-contact .field select,
.section-contact .field textarea {
  background: var(--cream);
  border-color: var(--line-warm);
}
.section-contact .field input:focus,
.section-contact .field select:focus,
.section-contact .field textarea:focus {
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .18);
}

/* Keep legacy rules working for non-home pages */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-7) var(--s-6);
  box-shadow: 0 28px 60px rgba(14, 27, 61, 0.08);
  position: relative;
}
.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold-500));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.cfc-header { margin-bottom: var(--s-5); }
.cfc-badge {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--teal-50);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.cfc-header h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.cfc-header p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.form-hint {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA band v2 (reusable, replaces old .cta-band) ---------- */
.cta-section { padding-block: var(--s-16); }
.cta-band-v2 {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--s-10), 7vw, var(--s-16)) clamp(var(--s-6), 5vw, var(--s-12));
  background: radial-gradient(900px 500px at 20% 0%, var(--teal-600) 0%, var(--teal-700) 40%, var(--navy-900) 100%);
  border-radius: var(--r-xl);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--s-8);
  align-items: center;
  box-shadow: 0 30px 60px rgba(14, 155, 138, 0.18);
}
@media (max-width: 780px) { .cta-band-v2 { grid-template-columns: 1fr; } }
.cta-band-v2 .cta-deco { position: absolute; inset: 0; pointer-events: none; }
.cta-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35;
}
.cta-blob-1 {
  width: 280px; height: 280px;
  background: var(--gold-500); top: -80px; right: -40px;
}
.cta-blob-2 {
  width: 200px; height: 200px;
  background: var(--teal-200); bottom: -60px; left: 20%;
}
.cta-copy { position: relative; z-index: 1; }
.cta-eyebrow {
  display: inline-flex;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.cta-band-v2 h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 var(--s-3);
  max-width: 24ch;
}
.cta-band-v2 p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
  max-width: 46ch;
}
.cta-actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}

/* ---------- 16. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-10), 6vw, var(--s-16));
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: var(--s-8);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: var(--s-2); }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding-block: var(--s-16) var(--s-8);
  font-size: var(--fs-sm);
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-8);
  margin-bottom: var(--s-10);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,.75); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer ul li + li { margin-top: var(--s-2); }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: var(--s-3); max-width: 42ch; }
.footer-socials { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease);
}
.footer-socials a:hover { background: var(--brand); }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
  gap: var(--s-4);
}

/* ---------- 17b. Content-driven sections polish ---------- */
.section .container-narrow > .eyebrow {
  background: var(--teal-50);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 12px;
}
.section .container-narrow > h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: var(--s-6);
}
.section .container-narrow > .lead {
  font-size: 1.08rem;
  color: var(--navy-800);
  max-width: 68ch;
  margin-bottom: var(--s-5);
  line-height: 1.7;
}
.section .container-narrow > p {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--s-4);
}
.section .container-narrow h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
  padding-left: var(--s-4);
  border-left: 3px solid var(--brand);
}

/* ---------- 18. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.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;
}

/* ---------- 19. Inline icons ---------- */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }

/* ---------- 6b. Mega menu nav ---------- */
.nav-list > li.has-mega { position: static; }
.nav-list .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.15rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-list .nav-parent:hover,
.nav-list .nav-parent.is-active,
.has-mega.is-open .nav-parent {
  color: var(--brand);
}
.nav-list .chev {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--dur) var(--ease);
  margin-left: 2px;
}
.has-mega.is-open .chev {
  transform: rotate(225deg) translate(0, 1px);
}

.mega-toggle {
  all: unset;
  cursor: pointer;
  width: 24px; height: 24px;
  display: none; /* only used on mobile accordion */
}

.mega-panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% - 1px);
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 22px 40px rgba(14, 27, 61, 0.14);
  padding: var(--s-6) 0 var(--s-8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
  z-index: 52;
}
.mega-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--gold-500));
  opacity: .6;
}
.has-mega.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
}
.mega-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.mega-panel-sm .mega-grid { max-width: 820px; }

.mega-col .mega-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--teal-100);
}
.mega-col .mega-title a {
  color: var(--brand);
  text-decoration: none;
}
.mega-col .mega-title a:hover { color: var(--brand-hov); text-decoration: underline; }

.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-col ul li a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--navy-800);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.mega-col ul li a strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.3;
}
.mega-col ul li a small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
  font-weight: 400;
}
.mega-col ul li a:hover {
  background: var(--teal-50);
  color: var(--brand);
  transform: translateX(2px);
}
.mega-col ul li a:hover strong { color: var(--brand); }

.mega-feature {
  background: linear-gradient(180deg, var(--teal-50), var(--gold-100));
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-4);
  min-width: 0;
}
.mega-feature .mega-title {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
}
.mega-feature p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--navy-800);
  margin: 0;
}
.mega-feature .btn {
  align-self: flex-start;
  background: var(--brand);
  color: #fff !important;
  border: 0 !important;
  padding: 0.7rem 1.15rem !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(14,155,138,.28);
  white-space: nowrap;
}
.mega-feature .btn:hover {
  background: var(--brand-hov);
  transform: translateY(-2px);
}

/* ---------- 6c. Nav CTA area ---------- */
.nav-cta { display: flex; align-items: center; gap: var(--s-2); }
.nav-cta .btn { padding: 0.7rem 1.15rem; font-size: var(--fs-sm); }
.nav-cta .cta-label { display: none; }
@media (min-width: 1160px) {
  .nav-cta .cta-label { display: inline; }
}

/* ---------- 6d. Mobile accordion nav ---------- */
@media (max-width: 980px) {
  .mega-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 var(--s-3) var(--s-4);
    background: transparent;
    display: none;
    transition: none;
  }
  .mega-grid,
  .mega-grid-2,
  .mega-panel-sm .mega-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s-4) !important;
    padding-inline: 0 !important;
  }
  .mega-feature { padding: var(--s-4); }
  .has-mega.is-open > .mega-panel { display: block; }
  .has-mega .nav-parent { flex: 1; }
  .has-mega { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
  .mega-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
  }
  .mega-toggle::before {
    content: "";
    width: 9px; height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform var(--dur) var(--ease);
  }
  .has-mega.is-open > .mega-toggle::before {
    transform: rotate(225deg) translate(0, 1px);
  }
}

/* ---------- 6e. Legacy dropdown nav (fallback, in case used elsewhere) ---------- */
.nav-list li.has-dropdown { position: relative; }
.nav-list li.has-dropdown > button {
  all: unset;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur) var(--ease);
}
.nav-list li.has-dropdown > button::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform var(--dur) var(--ease);
}
.nav-list li.has-dropdown.is-open > button::after {
  transform: rotate(225deg) translate(0, 1px);
}
.nav-list li.has-dropdown:hover > button,
.nav-list li.has-dropdown.is-open > button { color: var(--navy-900); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: var(--s-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
  z-index: 60;
  list-style: none;
  margin: 0;
}
.nav-list li.has-dropdown:hover .nav-dropdown,
.nav-list li.has-dropdown:focus-within .nav-dropdown,
.nav-list li.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.nav-dropdown li a:hover,
.nav-dropdown li a:focus-visible {
  background: var(--teal-50);
  color: var(--brand);
}
@media (max-width: 980px) {
  .site-header.is-open .nav-list li.has-dropdown {
    width: 100%;
  }
  .site-header.is-open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 var(--s-4);
    background: transparent;
    display: none;
    min-width: 0;
  }
  .site-header.is-open .nav-list li.has-dropdown.is-open .nav-dropdown {
    display: block;
  }
}

/* ---------- 6c. Quote modal ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 61, .55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--s-4);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.modal-root.is-open {
  display: flex;
  opacity: 1;
}
.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  padding: var(--s-8);
  box-shadow: var(--sh-lg);
  transform: scale(.96);
  transition: transform var(--dur) var(--ease);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-root.is-open .modal { transform: scale(1); }
.modal h3 { margin-bottom: var(--s-2); }
.modal p { font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.modal-close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 36px; height: 36px;
  background: var(--gray-100);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease);
}
.modal-close:hover { background: var(--gray-200); }

/* ---------- Section Eyebrow Enhancements ---------- */
.section-head .eyebrow {
  margin-bottom: var(--s-3);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: var(--s-3);
}
.section-head p {
  font-size: 1.05rem;
  max-width: 60ch;
}
.section-head.centered p { margin-inline: auto; }

/* Trust section visual polish */
.split-grid .framed-img {
  transition: transform var(--dur) var(--ease);
}
.split-grid:hover .framed-img { transform: scale(1.015); }

/* Parents & flexibility cards */
.split-grid .card {
  border-radius: var(--r-xl);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.split-grid .card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--gold-500));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.split-grid .card:hover::before { opacity: 1; }

/* Coverage section flags + cards */
.section .card ul.checklist {
  padding-left: 0;
}

/* ---------- 19b. Layout helpers for new home ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.split-grid-wide {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-10);
  align-items: start;
}
/* Sticky sidebar — keeps contact info visible while the form is taller */
.split-grid-wide > :first-child {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 900px) {
  .split-grid, .split-grid-wide, .founder-grid { grid-template-columns: 1fr; }
  .split-grid-wide > :first-child { position: static; }
}

.framed-img {
  width: 100%;
  border-radius: var(--r-xl);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--sh-md);
}

.founder-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
  padding: var(--s-8);
  box-shadow: var(--sh-md);
}

/* ---------- Services section cards ---------- */
.services-section .section-head { margin-bottom: var(--s-12); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(14, 27, 61, .05);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--card-accent, var(--brand));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(14, 27, 61, .14);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

/* Subject-tinted art */
.svc-art {
  padding: var(--s-8) var(--s-6) var(--s-4);
  display: grid;
  place-items: center;
  background: var(--card-bg, linear-gradient(135deg, var(--teal-50), var(--gold-100)));
  color: var(--card-accent, var(--brand));
  transition: background var(--dur) var(--ease);
}
.svc-art img { width: 64px; height: 64px; object-fit: contain; }

.svc-body {
  padding: var(--s-5) var(--s-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.svc-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--card-tag-bg, var(--teal-50));
  color: var(--card-accent, var(--brand));
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.svc-body h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}
.svc-body > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}
.svc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-bullets li {
  font-size: 0.78rem;
  color: var(--navy-800);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.svc-bullets li::before {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--card-tag-bg, var(--teal-50)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9b8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
}

.svc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--white);
  color: var(--card-accent, var(--brand));
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              padding-left var(--dur) var(--ease);
}
.svc-cta:hover {
  background: var(--card-accent, var(--brand));
  color: #fff;
  padding-left: var(--s-8);
}
.svc-cta .arrow { transition: transform var(--dur) var(--ease); }
.svc-cta:hover .arrow { transform: translateX(4px); }

/* Subject-specific colour tokens */
.svc-maths {
  --card-accent: var(--teal-500);
  --card-bg: linear-gradient(135deg, var(--teal-50), #ffffff);
  --card-tag-bg: var(--teal-50);
}
.svc-chemistry {
  --card-accent: #d9425e;
  --card-bg: linear-gradient(135deg, #ffeef1, #ffffff);
  --card-tag-bg: #ffeef1;
}
.svc-chemistry .svc-bullets li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9425e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.svc-physics {
  --card-accent: var(--gold-600);
  --card-bg: linear-gradient(135deg, var(--gold-100), #ffffff);
  --card-tag-bg: var(--gold-100);
}
.svc-physics .svc-bullets li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a610' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.svc-featured {
  --card-accent: var(--gold-500);
  --card-bg: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  --card-tag-bg: rgba(245, 195, 44, .18);
  border-color: var(--navy-800);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.svc-featured .svc-art { background: transparent; color: var(--gold-400); }
.svc-featured .svc-art svg { filter: drop-shadow(0 4px 8px rgba(245,195,44,.35)); }
.svc-featured .svc-body { background: transparent; }
.svc-featured .svc-body h3 { color: #fff !important; }
.svc-featured .svc-body > p { color: rgba(255,255,255,.85) !important; }
.svc-featured .svc-tag {
  background: rgba(245, 195, 44, .18) !important;
  color: var(--gold-400) !important;
}
.svc-featured .svc-bullets li { color: rgba(255,255,255,.88) !important; }
.svc-featured .svc-bullets li::before {
  background-color: rgba(245,195,44,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7d24a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.svc-featured .svc-cta {
  background: var(--navy-900);
  color: var(--gold-400);
  border-top-color: rgba(255,255,255,.08);
}
.svc-featured .svc-cta:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

/* ---------- Trust section ---------- */
.section-trust {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--teal-50) 120%);
}
.section-trust h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.trust-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 620px) { .trust-list { grid-template-columns: 1fr; } }
.trust-list li {
  display: flex;
  gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.trust-list li:hover {
  border-color: var(--teal-200);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.trust-list .ti {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
  color: var(--brand);
  display: grid;
  place-items: center;
}
.trust-list strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
  line-height: 1.3;
}
.trust-list small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.trust-visual { position: relative; }
.trust-tag {
  position: absolute;
  left: -18px;
  bottom: 32px;
  background: var(--navy-900);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.trust-tag strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold-400);
  line-height: 1;
  font-weight: 600;
}
.trust-tag span {
  font-size: 0.72rem;
  color: rgba(255,255,255,.75);
  margin-top: 4px;
  line-height: 1.3;
}
@media (max-width: 900px) { .trust-tag { left: 16px; bottom: 16px; } }

/* ---------- Parents section ---------- */
.section-parents { position: relative; }
.parents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-12);
}
@media (max-width: 900px) { .parents-grid { grid-template-columns: 1fr; } }
.parent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6) var(--s-6);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.parent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14,27,61,.10);
  border-color: var(--teal-200);
}
.parent-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold-500));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.parent-card:hover::before { opacity: 1; }
.parent-card-primary {
  background: linear-gradient(180deg, var(--teal-50), var(--white));
  border-color: var(--teal-200);
}
.parent-card-primary::before { opacity: 1; }
.pc-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--gold-100));
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-4);
  box-shadow: var(--sh-sm);
}
.pc-tag {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--navy-50);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.parent-card h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: var(--s-3); }
.parent-card p { font-size: 0.9rem; margin: 0; line-height: 1.6; }
.parents-img img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* ---------- Approach section ---------- */
.section-approach { position: relative; background: var(--white); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1050px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .approach-grid { grid-template-columns: 1fr; } }
.approach-tile {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-6);
  background: var(--navy-50);
  border-radius: var(--r-xl);
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  overflow: hidden;
}
.approach-tile:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14,27,61,.08);
}
.at-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--teal-200);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.at-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
  margin-bottom: var(--s-4);
}
.approach-tile h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: var(--s-3); }
.approach-tile p { font-size: 0.87rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ---------- Coverage section ---------- */
.section-coverage { background: var(--navy-50); }
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
@media (max-width: 780px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(14,27,61,.10);
}
.coverage-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand);
}
.coverage-england::before { background: #D00C27; }
.cov-flag {
  width: 56px; height: 34px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: var(--s-4);
}
.cov-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.cov-head h3 { margin: 0; font-size: 1.5rem; }
.cov-pill {
  padding: 4px 12px;
  background: var(--teal-50);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cov-pill-alt { background: #ffeef1; color: #D00C27; }
.coverage-card > p {
  margin-top: var(--s-4);
  color: var(--navy-800);
}
.cov-list {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cov-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--navy-50);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
}
.cov-list strong { color: var(--navy-900); }
.cov-list span { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Map section ---------- */
.section-map { background: var(--white); }
.map-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.map-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.map-card:hover { border-color: var(--teal-200); }
.mc-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--teal-50);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.map-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}
.map-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.map-card a {
  color: inherit;
  transition: color var(--dur) var(--ease);
}
.map-card a:hover { color: var(--brand); }
.section-map .map-embed {
  border: 1px solid var(--border);
  min-height: 420px;
}

/* ---------- Founder section (redesigned) ---------- */
.section-founder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white), var(--navy-50));
}
.founder-decor {
  position: absolute; inset: 0; pointer-events: none;
}
.founder-decor .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.founder-decor .blob-teal {
  width: 460px; height: 460px;
  background: var(--teal-100);
  top: -140px; left: -100px;
}
.founder-decor .blob-gold {
  width: 360px; height: 360px;
  background: var(--gold-100);
  bottom: -120px; right: -80px;
}
.founder-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* --- Founder card --- */
.founder-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  box-shadow: 0 18px 48px rgba(14, 27, 61, .1);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.founder-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--teal-500), var(--gold-500));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
}

.founder-monogram {
  position: relative;
  width: 160px; height: 160px;
  margin: 0 auto var(--s-5);
  display: grid;
  place-items: center;
}
.founder-monogram span {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -8px 24px rgba(0, 0, 0, .18);
}
.monogram-ring {
  width: 100%; height: 100%;
  animation: mgRingSpin 22s linear infinite;
}
@keyframes mgRingSpin { to { transform: rotate(360deg); } }

.founder-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.1;
}
.founder-title {
  font-size: var(--fs-sm);
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.founder-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-5);
  padding: var(--s-4) 0;
  border-block: 1px solid var(--border);
}
.founder-creds li { text-align: center; }
.cred-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1;
}
.cred-num small { font-size: 0.85rem; color: var(--brand); font-weight: 600; }
.cred-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.founder-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.founder-tags span {
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--teal-50);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Founder body --- */
.founder-body h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.founder-quote {
  margin: var(--s-8) 0 0;
  padding: var(--s-5) var(--s-6);
  background: linear-gradient(180deg, var(--teal-50), rgba(255,243,196,.4));
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--navy-900);
  position: relative;
  font-style: italic;
}
.founder-quote .quote-mark {
  position: absolute;
  top: 12px; left: 12px;
  color: var(--teal-200);
  opacity: .8;
}
.founder-quote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.founder-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  color: var(--navy-700);
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 3px;
  border-radius: var(--r-full);
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9b8a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

.card-icon-img {
  background: linear-gradient(135deg, var(--gold-100), var(--teal-50));
  padding: var(--s-2);
}
.card-icon-img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.contact-illus {
  display: block;
  max-width: 240px;
  margin-top: var(--s-8);
  opacity: .9;
}
@media (max-width: 900px) { .contact-illus { display: none; } }

/* ---------- 19c. External widgets (Trustindex, Google Maps) ---------- */
.reviews-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-sm);
  min-height: 280px;
}
.reviews-widget iframe { border: 0; width: 100%; }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 19d-pre. Blog article hero + meta ---------- */
.article-hero {
  background: linear-gradient(180deg, var(--teal-50) 0%, transparent 100%);
  padding-block: var(--s-10) var(--s-8) !important;
}
.article-crumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.article-crumbs a {
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.article-crumbs a:hover { color: var(--brand); }
.article-crumbs span:not([aria-hidden]) { color: var(--navy-900); }

.article-hero .eyebrow {
  background: var(--white);
  color: var(--brand);
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  margin: var(--s-4) 0 var(--s-5);
  max-width: 760px;
}
.article .meta-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--s-8);
}
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--white);
  border-radius: var(--r-full);
  font-weight: 500;
  color: var(--navy-900);
}
.ac-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.article-hero img {
  margin-top: var(--s-4);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 22px 48px rgba(14, 27, 61, 0.12);
}

.article-body-wrap { padding-block: var(--s-10) !important; }

/* Author card at end of article */
.author-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-4);
  padding: var(--s-6);
  background: linear-gradient(180deg, var(--teal-50), var(--white));
  border-radius: var(--r-lg);
  border: 1px solid var(--teal-100);
  margin-top: var(--s-10);
}
.author-card-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.author-card strong { display: block; margin-bottom: 4px; color: var(--navy-900); }
.author-card p { margin: 0 0 var(--s-3); font-size: 0.9rem; }

/* Related posts grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(14,27,61,.1);
}
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.related-card > div {
  padding: var(--s-4) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.related-card strong {
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--navy-900);
}
.related-card span {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- 19d. Blog article typography ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}
.article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--s-4);
}
.article .meta-row {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-8);
}
.article img {
  width: 100%;
  border-radius: var(--r-lg);
  margin: var(--s-8) 0;
  box-shadow: var(--sh-md);
}
.article h2 {
  margin-top: var(--s-10);
  margin-bottom: var(--s-4);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.article h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-2);
  font-size: var(--fs-lg);
}
.article p {
  font-size: var(--fs-md);
  line-height: 1.75;
  margin-bottom: var(--s-5);
}
.article ul, .article ol {
  margin: 0 0 var(--s-5) var(--s-6);
  padding-left: 0;
  list-style: disc;
}
.article ol { list-style: decimal; }
.article li {
  font-size: var(--fs-md);
  line-height: 1.75;
  margin-bottom: var(--s-2);
  color: var(--gray-700);
}
.article blockquote {
  border-left: 4px solid var(--brand);
  padding: var(--s-4) var(--s-6);
  margin: var(--s-8) 0;
  background: var(--teal-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--navy-900);
}
.article a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--brand-hov); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin: var(--s-16) 0 var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.article-nav a {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur) var(--ease);
}
.article-nav a:hover {
  border-color: var(--brand);
  background: var(--teal-50);
}
.article-nav small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ---------- 19e. Subject hub (past-papers subject landing) ---------- */
.subject-hub-card {
  padding: var(--s-8);
  background: linear-gradient(180deg, var(--white), var(--navy-50));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.subject-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--teal-200);
}
.subject-hub-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.subject-hub-card h3 { margin: 0; }
.subject-hub-card .levels {
  display: flex; flex-direction: column; gap: var(--s-2);
  margin-top: var(--s-2);
}
.subject-hub-card .levels a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.subject-hub-card .levels a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--teal-50);
}

/* The clickable top section of the card (icon + title + description).
   Renders as a stacked block so the existing img/h3/p layout still works
   after splitting the outer <a> into an <article> wrapper. */
.subject-hub-card .shc-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.subject-hub-card .shc-head h3 { margin: 0; }
.subject-hub-card .shc-head p { margin: 0; color: var(--text-muted); }

/* ---------- 20. Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { font-size: 11pt; color: #000; }
}

/* ---------- 21. Mobile responsive polish ---------- */
/* Prevent horizontal overflow from wide content and decor */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 980px) {
  .topbar-inner { flex-wrap: wrap; gap: var(--s-2); }
  .topbar-left { flex-wrap: wrap; gap: var(--s-3); }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-location { display: none; }
  .nav-cta .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding-inline: var(--s-4); }
  .topbar { font-size: 0.78rem; }
  .topbar-hours { display: none; }
  .topbar-left .topbar-link span { font-size: 0.78rem; }

  .hero { padding-block: var(--s-10) var(--s-8); }
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .hero .lead { font-size: 1rem; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }
  .hero-features { gap: var(--s-3); }
  .hero-rating { font-size: 0.78rem; padding: 6px 10px; }
  .hero-decor .blob-teal { width: 320px; height: 320px; top: -80px; right: -80px; }
  .hero-decor .blob-gold { width: 220px; height: 220px; bottom: -60px; left: -40px; }
  .hero-decor .dot-grid { display: none; }

  /* Tables and wide content shouldn't break layout */
  table { display: block; overflow-x: auto; max-width: 100%; }
  img, iframe, video { max-width: 100%; height: auto; }

  /* Typography scale-down */
  h1 { font-size: clamp(1.85rem, 6vw, 2.3rem); line-height: 1.15; }
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.2; }
  h3 { font-size: clamp(1.2rem, 4.2vw, 1.4rem); }

  /* Footer + section padding */
  .section { padding-block: var(--s-10); }

  /* Buttons easier to tap */
  .btn { min-height: 44px; }
  .btn-lg { padding: 0.85rem 1.25rem; font-size: 0.95rem; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr 1fr; padding: var(--s-4); gap: var(--s-3); }
  .hero-stats .trust-num { font-size: 1.7rem; }
  .hero-stats .trust-label { font-size: 0.72rem; }
  .topbar-left { gap: var(--s-2); }
  .topbar-left .topbar-link:not(:first-child) { display: none; }
}

/* ---------- Mobile hero redesign (professional, compact, with live decor) ---------- */
@media (max-width: 900px) {
  /* Hard override any legacy mobile rules that hide animations */
  .subject-decor { display: block !important; }
  .hero { padding-block: var(--s-10) var(--s-10); }
  .hero-inner { gap: var(--s-6) !important; }
  .hero .eyebrow {
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: var(--r-full);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    color: var(--teal-600);
  }
  .hero h1 {
    font-size: clamp(2rem, 7.2vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  .hero .lead { font-size: 1rem; line-height: 1.5; max-width: 56ch; }
  .hero-rating { margin-top: var(--s-4); }
  .hero-features { margin-top: var(--s-4); gap: var(--s-3) var(--s-4); }
  .hero-features li { font-size: 0.85rem; }

  /* Image — cleaner, shorter aspect, cleaner frame, no awkward crop */
  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
    padding: 4px;
  }
  .hero-visual img {
    aspect-ratio: 5/4 !important;
    border-radius: var(--r-xl);
  }
  .hero-frame { transform: none; }
  .hero-frame::after { inset: -6px; }

  /* Badges — smaller, non-overlapping, clamped to image corners */
  .hero-badge.br {
    bottom: 10px; right: 10px;
    padding: 8px 12px;
    border-radius: var(--r-md);
  }
  .hero-badge .dot { width: 34px; height: 34px; }
  .hero-badge strong { font-size: 0.8rem; }
  .hero-badge span   { font-size: 0.7rem; }
  .hero-chip {
    top: -8px; right: 16px;
    padding: 5px 12px;
  }
  .hero-chip .chip-num { font-size: 0.95rem; }
  .hero-chip .chip-label { font-size: 0.7rem; }

  /* Live subject decor scoped tighter around the image for mobile pop */
  .subject-decor .sd-item { animation-duration: calc(var(--sd-dur, 8s)); }
}

@media (max-width: 640px) {
  .hero { padding-block: var(--s-8) var(--s-8); }
  .hero-inner { gap: var(--s-5) !important; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }
  .hero .lead { font-size: 0.98rem; }
  .hero .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .cta-row .btn { width: 100%; justify-content: center; min-height: 50px; font-size: 0.95rem; }
  .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px var(--s-4);
  }
  .hero-features li { font-size: 0.82rem; }

  /* Tighter image treatment */
  .hero-visual { max-width: 100%; padding: 2px; }
  .hero-visual img { aspect-ratio: 4/3 !important; }
  .hero-frame { box-shadow: 0 20px 40px -20px rgba(14, 27, 61, .3); }
  .hero-frame::after {
    inset: -4px;
    background: linear-gradient(135deg, var(--teal-100), var(--gold-100));
    border-radius: calc(var(--r-xl) + 4px);
  }

  /* Small floating chips near the image */
  .subject-decor .sd-chip { font-size: 10.5px; padding: 4px 10px; }
  /* Hide large background atoms on tiny phones, keep chips alive */
  .subject-decor .sd-atom-bg { display: none; }
}

/* Stronger topbar hide rule — defensive cascade */
@media (max-width: 980px) {
  .topbar { display: none !important; }
}

/* ---------- 22. Design-bundle styling (warm cream hero, subject-icon decor, marquee) ---------- */

/* Warm cream tone for the hero — subtle, not overwhelming */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
/* Fade into white before the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--white));
  pointer-events: none;
  z-index: 1;
}
.hero-decor { z-index: 0; }
.hero-decor .blob-teal  { background: var(--teal-100); opacity: .65; }
.hero-decor .blob-gold  { background: var(--orange-soft); opacity: .55; }

/* Serif-italic accent (design uses "Instrument Serif" italic — we reuse Fraunces italic already loaded) */
.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--teal-600);
  -webkit-text-fill-color: currentColor;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

/* Subject-icon decor — drifting atoms, flask, book, pencil, paper plane + formula chips */
.subject-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.subject-decor .sd-item {
  position: absolute;
  animation: sdFloat var(--sd-dur, 8s) ease-in-out infinite;
  animation-delay: var(--sd-delay, 0s);
  will-change: transform;
  opacity: .95;
}
.subject-decor .sd-atom-bg {
  opacity: .18;
  animation: sdSpin var(--sd-spin, 60s) linear infinite;
}
.subject-decor .sd-chip {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25);
  border: 1.5px solid rgba(13, 148, 136, .2);
  color: var(--teal-600);
}
.subject-decor .sd-chip.pink   { color: var(--pink);   border-color: rgba(236, 64, 122, .25); }
.subject-decor .sd-chip.orange { color: var(--orange); border-color: rgba(245, 165, 36, .3); }

/* Rotate orbit electrons inside atoms */
.subject-decor .sd-orbit { transform-origin: center; }
.subject-decor .sd-atom svg { overflow: visible; }
.subject-decor .sd-atom .orbit-a { animation: sdOrbit 12s linear infinite; transform-origin: center; }
.subject-decor .sd-atom .orbit-b { animation: sdOrbit 15s linear infinite reverse; transform-origin: center; }
.subject-decor .sd-atom .orbit-c { animation: sdOrbit 18s linear infinite; transform-origin: center; }

/* Mobile — keep decor visible but scaled down and repositioned */
@media (max-width: 900px) {
  .subject-decor .sd-chip { font-size: 11px; padding: 4px 10px; }
  .subject-decor .sd-atom-bg svg { width: 180px !important; height: 180px !important; }
  .subject-decor .sd-item svg { max-width: 60px; max-height: 60px; }
}
@media (max-width: 600px) {
  /* Reposition heavier items around the hero image, drop the background atoms */
  .subject-decor .sd-atom-bg { display: none; }
  .subject-decor .sd-chip { font-size: 10.5px; padding: 4px 9px; }
  /* Keep a few floating chips + icons near the image edges */
  .subject-decor .hide-sm { display: none; }
}

@keyframes sdFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--sd-rot, 0deg)); }
  50%      { transform: translate3d(0, -14px, 0) rotate(var(--sd-rot, 0deg)); }
}
@keyframes sdSpin {
  to { transform: rotate(360deg); }
}
@keyframes sdOrbit {
  to { transform: rotate(360deg); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .subject-decor .sd-item,
  .subject-decor .sd-atom-bg,
  .subject-decor .sd-atom .orbit-a,
  .subject-decor .sd-atom .orbit-b,
  .subject-decor .sd-atom .orbit-c { animation: none !important; }
}

/* ---------- Trust marquee strip (navy, scrolling) ---------- */
.trust-marquee {
  background: var(--navy-900);
  color: #e5e9f0;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-warm);
  position: relative;
  z-index: 2;
}
.trust-marquee .tm-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: tmScroll 42s linear infinite;
  width: max-content;
}
.trust-marquee .tm-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #bcc5d3;
  flex-shrink: 0;
  text-transform: uppercase;
}
.trust-marquee .tm-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}
.trust-marquee:hover .tm-track { animation-play-state: paused; }
@keyframes tmScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-marquee .tm-track { animation: none; }
}

/* Accent button variants drawn from the design palette */
.btn-pink   { background: var(--pink);   color: #fff; }
.btn-pink:hover  { background: #c82966; }
.btn-orange { background: var(--orange); color: var(--navy-900); }
.btn-orange:hover { background: #d48a0a; color: #fff; }

/* ============================================================
   Footer fixes — strong/small inherit footer link colour so they
   don't fall back to the global dark navy and become invisible
   on the dark footer background.
   ============================================================ */
.site-footer strong { color: inherit; font-weight: 600; }
.site-footer small  { color: rgba(255,255,255,.55); font-weight: 400; display: block; margin-top: 2px; font-size: 0.75rem; }

/* "New" pill badge — used next to brand-new links (math test) */
.badge-new {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1e293b;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  vertical-align: middle;
  margin-left: 0.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ============================================================
   Home-page "Math Test" CTA banner — readable on teal.
   Overrides the global .section p dark-navy colour and gives
   the eyebrow pill a high-contrast gold finish.
   ============================================================ */
.cta-test-banner {
  background: linear-gradient(135deg, #0e9b8a 0%, #0a7a6c 60%, #064e44 100%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-test-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 15%, rgba(250,204,21,.12), transparent 60%),
    radial-gradient(450px 250px at 5% 95%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}
.cta-test-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-test-banner .ctb-text { flex: 1; min-width: 280px; max-width: 720px; }
.cta-test-banner .ctb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1e293b !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(250,204,21,.35);
}
.cta-test-banner h2 {
  color: #fff !important;
  margin: 0.6rem 0 0.5rem !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cta-test-banner p,
.cta-test-banner .ctb-text p {
  color: rgba(255,255,255,.92) !important;
  margin: 0 !important;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 60ch;
}
.cta-test-banner .ctb-meta {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,.78);
}
.cta-test-banner .ctb-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cta-test-banner .ctb-cta { flex-shrink: 0; }
.cta-test-banner .btn-test {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0a7a6c !important;
  font-weight: 700;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 1.02rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.cta-test-banner .btn-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  color: #064e44 !important;
}
@media (max-width: 720px) {
  .cta-test-banner .container { flex-direction: column; align-items: flex-start; }
  .cta-test-banner .ctb-cta { width: 100%; }
  .cta-test-banner .btn-test { width: 100%; justify-content: center; }
}
