/* ==========================================================================
   GOLD RIVER INTERNATIONAL CHRISTIAN SCHOOL (GRICS)
   Design System — style.css

   DESIGN CONCEPT
   One root, two branches. GRICS is a single school with a shared Christian
   foundation that grows into two curriculum pathways (A.C.E. and Uganda
   National). That idea — one trunk, two branches, same roots — is the
   visual signature of this site: it shows up in the hero, the curriculum
   selector, and as a recurring section-divider motif ("the branch line").

   PALETTE (updated brand colours)
   --gold        #FFD200  primary brand colour
   --maroon      #A40423  accent / deep contrast
   --cream       #F9F6F0  supporting neutral / page background
   --sky         #00A4E4  highlight / core-values accent
   --ink         #2B2118  warm near-black for text

   TYPE
   Display: 'Baloo 2'  — a rounded, confident, friendly slab-sans standing
            in for the brand's Cooper Black (chunky, warm, approachable —
            right for a K-12 Christian school without tipping childish).
   Body:    'Poppins'  — geometric sans standing in for Century Gothic,
            same circular bowls and even strokes, but far more legible
            at small sizes on screen.
   ========================================================================== */

:root {
  /* ---- Brand colours ---- */
  --gold: #FFD200;
  --gold-light: #FFE666;
  --gold-dark: #A68600;
  --maroon: #A40423;
  --maroon-dark: #6B0317;
  --maroon-light: #BF4F65;
  --cream: #F9F6F0;
  --cream-dim: #F1EBDD;
  --sky: #00A4E4;
  --sky-dark: #0080B3;
  --ink: #2B2118;
  --ink-soft: #5B4E42;
  --white: #FFFFFF;

  /* ---- Semantic tokens ---- */
  --bg-page: var(--cream);
  --bg-alt: var(--white);
  --bg-deep: var(--maroon);
  --text-body: var(--ink);
  --text-muted: var(--ink-soft);
  --text-on-deep: var(--cream);
  --border-soft: rgba(43, 33, 24, 0.1);

  /* ---- Type ---- */
  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  /* ---- Radius & shadow ---- */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px -12px rgba(59, 33, 20, 0.18);
  --shadow-lift: 0 20px 45px -15px rgba(59, 33, 20, 0.28);
  --shadow-tight: 0 4px 14px -6px rgba(59, 33, 20, 0.2);

  /* ---- Spacing rhythm ---- */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1220px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
}

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

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--maroon-dark);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

p { color: var(--text-muted); }

a { color: var(--maroon); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--gold-dark); }

.container-narrow { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

img, svg { max-width: 100%; display: block; }

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

::selection { background: var(--gold-light); color: var(--maroon-dark); }

/* ==========================================================================
   Utility
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gold);
}

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-deep { background: var(--bg-deep); color: var(--text-on-deep); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep p { color: rgba(249, 246, 240, 0.78); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }

.text-sky { color: var(--sky); }
.text-gold { color: var(--gold-dark); }
.bg-cream-dim { background: var(--cream-dim); }

.pill-tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 210, 0, 0.16);
  color: var(--maroon-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Content placeholder blocks — swap for real copy/images from the Brand Profile */
.content-placeholder {
  border: 1.5px dashed rgba(164, 4, 35, 0.35);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    135deg, rgba(255, 210, 0, 0.07), rgba(255, 210, 0, 0.07) 10px,
    transparent 10px, transparent 20px
  );
  color: var(--maroon);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius-md);
  color: var(--maroon);
  text-align: center;
  padding: 1.2rem;
}
.img-placeholder i { font-size: 1.8rem; color: var(--gold-dark); }
.img-placeholder span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

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

.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.9rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-maroon { background: var(--maroon); color: var(--white); box-shadow: var(--shadow-tight); }
.btn-maroon:hover { background: var(--maroon-dark); color: var(--white); box-shadow: var(--shadow-lift); }

.btn-gold { background: var(--gold); color: var(--maroon-dark); box-shadow: var(--shadow-tight); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); box-shadow: var(--shadow-lift); }

.btn-sky { background: var(--sky); color: var(--white); box-shadow: var(--shadow-tight); }
.btn-sky:hover { background: var(--sky-dark); color: var(--white); }

.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--white); }

.btn-outline-maroon { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-maroon:hover { background: var(--maroon); color: var(--white); }

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
  padding: 0.9rem 0;
}
/* Frosted-glass background lives on a pseudo-element instead of directly on
   .site-nav. backdrop-filter (like filter) creates a new containing block
   for any position:fixed descendants — since .nav-links (the mobile menu)
   is fixed and nested inside .site-nav, it was being pinned to the nav
   bar's own box instead of the viewport, so it only ever covered ~70px of
   height instead of the full screen. Moving the filter to a sibling
   pseudo-element fixes that while keeping the same visual blur. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(249, 246, 240, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background var(--dur-med) var(--ease-out);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 24px -18px rgba(59,33,20,0.4);
  padding: 0.6rem 0;
}
.site-nav.is-scrolled::before {
  background: rgba(249, 246, 240, 0.97);
}

.site-nav .container-narrow { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand-mark { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark .crest {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark .crest img {
  height: 64px;
  width: auto;
  display: block;
}
.site-nav .brand-mark .crest img { height: 58px; }
.site-footer .brand-mark .crest img { height: 46px; width: auto; }
.brand-mark .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark .brand-text strong { font-family: var(--font-display); color: var(--maroon-dark); font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-mark .brand-text span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--maroon-dark);
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: var(--radius-pill);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--maroon-dark);
  border-radius: 2px; position: relative; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 340px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6.5rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-out);
    box-shadow: -20px 0 40px -20px rgba(0,0,0,0.25);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-gold { display: none; }
}

.nav-scrim {
  position: fixed; inset: 0; background: rgba(43,33,24,0.4);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--ease-out);
  z-index: 999;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

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

.hero {
  position: relative;
  padding: clamp(8rem, 14vw, 10.5rem) 0 6rem;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(0, 164, 228, 0.12), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(255, 210, 0, 0.18), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-visual { order: -1; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--maroon);
  box-shadow: var(--shadow-tight);
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-dark);
  position: relative;
}

.hero-lede { font-size: 1.12rem; max-width: 520px; margin-bottom: 2.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

@media (max-width: 991px) { .hero-actions, .hero-stats { justify-content: center; } }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats .stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--maroon-dark);
  display: block;
}
.hero-stats .stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Pathway CTA row — the "two branches" choice, front and centre in the hero */
.pathway-row {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.pathway-chip {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  box-shadow: var(--shadow-tight);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  flex: 1 1 220px;
}
.pathway-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.pathway-chip .icon-badge { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.pathway-chip.ace .icon-badge { background: rgba(0,164,228,0.14); color: var(--sky-dark); }
.pathway-chip.una .icon-badge { background: rgba(255,210,0,0.2); color: var(--gold-dark); }
.pathway-chip .label { display: flex; flex-direction: column; text-align: left; }
.pathway-chip .label strong { font-family: var(--font-display); font-size: 0.92rem; color: var(--maroon-dark); }
.pathway-chip .label span { font-size: 0.74rem; color: var(--text-muted); }
.pathway-features{
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Hero visual: root-and-branches motif */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .visual-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--maroon), var(--maroon-dark));
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 2rem;
}
.hero-visual .visual-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 20%, rgba(255,210,0,0.35), transparent 70%);
}
.hero-visual .frame-caption {
  position: relative;
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  background: rgba(43,22,32,0.55);
  border: 1px solid rgba(249,246,240,0.25);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
}
.hero-visual .float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.65rem;
  animation: float-y 5s ease-in-out infinite;
}
.hero-visual .float-badge i { color: var(--gold-dark); font-size: 1.3rem; }
.hero-visual .float-badge strong { display: block; font-family: var(--font-display); font-size: 0.85rem; color: var(--maroon-dark); }
.hero-visual .float-badge span { font-size: 0.7rem; color: var(--text-muted); }
.hero-visual .badge-1 { top: 8%; left: -6%; animation-delay: 0s; }
.hero-visual .badge-2 { bottom: 10%; right: -8%; animation-delay: 1.4s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   The Branch Line — recurring divider motif (signature element)
   One line splits into two, echoing "one root, two pathways."
   ========================================================================== */

.branch-divider { width: 100%; display: flex; justify-content: center; margin: 0 auto; }
.branch-divider svg { width: 100%; max-width: 340px; height: auto; }
.branch-divider path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.branch-divider circle { fill: var(--maroon); }
.branch-divider.on-dark path { stroke: var(--gold-light); }
.branch-divider.on-dark circle { fill: var(--gold-light); }

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

.card-soft {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  height: 100%;
}
.card-soft:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.value-card { padding: 2rem 1.6rem; text-align: left; }
.value-card .icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,164,228,0.12);
  color: var(--sky-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.value-card:nth-child(2n) .icon-circle { background: rgba(255,210,0,0.18); color: var(--gold-dark); }
.value-card:nth-child(3n) .icon-circle { background: rgba(164,4,35,0.1); color: var(--maroon); }
.value-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.value-card p { margin: 0; font-size: 0.92rem; }

/* Curriculum pathway cards */
.pathway-card { overflow: hidden; display: flex; flex-direction: column; }
.pathway-card .pathway-media {
  height: 220px;
  position: relative;
}
.pathway-card.ace .pathway-media { background: linear-gradient(150deg, var(--sky), var(--sky-dark)); }
.pathway-card.una .pathway-media { background: linear-gradient(150deg, var(--gold), var(--gold-dark)); }
.pathway-card .pathway-media .img-placeholder { height: 100%; color: var(--white); }
.pathway-card .pathway-media .img-placeholder i { color: var(--white); }
.pathway-card .pathway-body { padding: 1.9rem; display: flex; flex-direction: column; flex: 1; }
.pathway-card .pathway-body .pill-tag { align-self: flex-start; margin-bottom: 0.9rem; }
.pathway-card .pathway-body h3 { margin-bottom: 0.7rem; }
.pathway-card .pathway-body p { flex: 1; font-size: 0.94rem; }
.pathway-card .pathway-features { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pathway-card .pathway-features li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--text-body); }
.pathway-card .pathway-features li i { color: var(--sky-dark); font-size: 0.95rem; }
.pathway-card.una .pathway-features li i { color: var(--gold-dark); }

/* Programme / feature cards */
.programme-card { padding: 2.1rem 1.7rem; }
.programme-card .num { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gold-dark); margin-bottom: 0.7rem; display: block; }

/* Staff / leadership card */
.person-card { padding: 1.6rem; text-align: center; }
.person-card .avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(150deg, var(--maroon-light), var(--maroon));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.9rem;
}
.person-card h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.person-card .role { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.7rem; display: block; }
.person-card p { font-size: 0.85rem; margin: 0; }

/* News card */
.news-card { overflow: hidden; }
.news-card .news-media { height: 190px; }
.news-card .news-body { padding: 1.5rem; }
.news-card .news-meta { display: flex; gap: 0.9rem; font-size: 0.76rem; color: var(--text-muted); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.news-card .news-meta span { display: flex; align-items: center; gap: 0.35rem; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.news-card p { font-size: 0.9rem; }
.news-card .read-more { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.news-card .read-more i { transition: transform var(--dur-fast) var(--ease-out); }
.news-card:hover .read-more i { transform: translateX(4px); }

.news-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.news-featured .news-media { height: 100%; min-height: 280px; }
.news-featured .news-body { padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) { .news-featured { grid-template-columns: 1fr; } .news-featured .news-media { min-height: 200px; } }

/* FAQ accordion tweaks */
.accordion-item { border: 1px solid var(--border-soft) !important; border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: 0.8rem; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--maroon-dark) !important; background: var(--white) !important; }
.accordion-button:not(.collapsed) { color: var(--maroon-dark) !important; background: var(--cream-dim) !important; box-shadow: none !important; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(0,164,228,0.25) !important; }
.accordion-button::after { filter: sepia(1) saturate(2) hue-rotate(-10deg); }

/* Testimonials */
.testimonial-card { padding: 2.2rem; text-align: left; position: relative; }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold-light); line-height: 0.6; display: block; margin-bottom: 0.8rem; }
.testimonial-card p.quote { color: var(--text-body); font-size: 0.98rem; margin-bottom: 1.3rem; }
.testimonial-card .person { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-card .person .avatar-sm { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(150deg, var(--sky), var(--sky-dark)); display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-display); font-weight: 700; }
.testimonial-card .person strong { display: block; font-size: 0.9rem; color: var(--maroon-dark); }
.testimonial-card .person span { font-size: 0.78rem; color: var(--text-muted); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 0.55rem 1.2rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-soft); background: var(--white); color: var(--maroon-dark);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }

.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  aspect-ratio: 4/3.2; cursor: pointer;
}
.gallery-item .img-placeholder { height: 100%; background: var(--cream-dim); border-radius: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-fast) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-tag {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  background: rgba(43,22,32,0.72); color: var(--white);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
}
.gallery-item.is-hidden { display: none; }

/* ==========================================================================
   Admissions steps / timeline
   ========================================================================== */

.step-card { display: flex; gap: 1.2rem; padding: 1.7rem; align-items: flex-start; }
.step-card .step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--maroon); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.88rem; margin: 0; }

.fee-note {
  border: 1.5px dashed var(--gold);
  background: rgba(255,210,0,0.08);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

/* Fee table */
.fee-table {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border-collapse: separate;
  border-spacing: 0;
}
.fee-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: var(--maroon);
  color: var(--gold-light);
  border: none;
  padding: 1rem 1.2rem;
  white-space: nowrap;
}
.fee-table tbody td {
  font-size: 0.92rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:nth-child(even) { background: var(--cream); }
.fee-table td:first-child { font-weight: 600; color: var(--ink); }
.fee-table .fee-total { font-weight: 700; color: var(--maroon); }

/* Grade requirement pills */
.grade-pills { gap: 0.6rem; flex-wrap: wrap; }
.grade-pills .nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
}
.grade-pills .nav-link.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--gold-light);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(0,164,228,0.15);
}
label.form-label { font-weight: 600; font-size: 0.86rem; color: var(--maroon-dark); margin-bottom: 0.4rem; }

.form-panel { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 2.3rem; border: 1px solid var(--border-soft); }

/* ==========================================================================
   Contact info / map placeholder
   ========================================================================== */

.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--border-soft); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,210,0,0.18); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row strong { display: block; font-family: var(--font-display); font-size: 0.92rem; color: var(--maroon-dark); }
.contact-info-row span, .contact-info-row a { font-size: 0.88rem; color: var(--text-muted); }

.map-placeholder { border-radius: var(--radius-lg); min-height: 320px; background: var(--cream-dim); border: 1px solid var(--border-soft); }

.social-row { display: flex; gap: 0.7rem; margin-top: 1.3rem; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--maroon); color: var(--white) !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.social-row a:hover { background: var(--gold-dark); transform: translateY(-3px); }

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

.site-footer { background: var(--maroon-dark); color: rgba(249,246,240,0.8); padding: 4.5rem 0 0; }
.site-footer h4 { color: var(--gold-light); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(249,246,240,0.75); font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer .brand-mark .brand-text strong { color: var(--white); }
.site-footer p { color: rgba(249,246,240,0.65); font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(249,246,240,0.14); margin-top: 3rem; padding: 1.4rem 0; text-align: center; font-size: 0.8rem; color: rgba(249,246,240,0.55); }

/* Back to top */
.back-to-top {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--maroon-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift); border: none; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */

.page-banner {
  padding: clamp(7.5rem, 12vw, 9rem) 0 3.5rem;
  background:
    radial-gradient(90% 100% at 90% 0%, rgba(0,164,228,0.14), transparent 55%),
    linear-gradient(155deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.7rem; }
.page-banner p { color: rgba(249,246,240,0.78); max-width: 560px; margin: 0 auto; }
.page-banner .breadcrumb-row { justify-content: center; margin-bottom: 1.2rem; font-size: 0.82rem; }
.page-banner .breadcrumb-row a { color: rgba(249,246,240,0.7); }
.page-banner .breadcrumb-row .current { color: var(--gold-light); }

/* Sub-nav for curriculum pages */
.sub-nav {
  position: sticky; top: 72px; z-index: 500;
  background: var(--white); border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px -16px rgba(0,0,0,0.3);
}
.sub-nav .sub-nav-links { display: flex; gap: 1.6rem; overflow-x: auto; padding: 0.9rem 0; scrollbar-width: none; }
.sub-nav .sub-nav-links::-webkit-scrollbar { display: none; }
.sub-nav a { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; white-space: nowrap; color: var(--ink-soft); }
.sub-nav a.active { color: var(--gold-dark); }

/* ==========================================================================
   Scroll reveal (JS toggles .is-visible)
   ========================================================================== */

.reveal.reveal-armed { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.reveal-armed.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

.divider-line { height: 1px; background: var(--border-soft); border: none; margin: 0; }

.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 3.2rem;
  color: var(--maroon-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--maroon-dark); }
.cta-band p { color: rgba(43,22,32,0.75); }

@media (max-width: 575px) {
  .cta-band { padding: 2.2rem 1.5rem; }
  .form-panel { padding: 1.5rem; }
}
