/* ==========================================================
   Eden Academy — single stylesheet
   Design language: award-winning private school sites
   (brentwoodacademy.com / dunhamschool.org — Finalsite style):
   full-bleed photo hero with navy overlay, condensed uppercase
   display type (Anton), navy dominant + gold accent, photo
   feature cards overlapping the hero, mission statement band
   with crest watermark, stats band, "Choose" CTA band.
   Type: Anton (display) + Geist (body), self-hosted — zero CDN.
   Real crest: images/logo.png (cut from the school's logo).
   Mobile-first (designed at 360px, scales up)
   ========================================================== */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/geist.woff2') format('woff2');
}

:root {
  --navy: #0a1242;        /* dominant — bands, headings */
  --navy-deep: #060b2e;   /* topbar, footer, overlays */
  --blue: #1b2bd6;        /* links — from the crest blue */
  --gold: #ffb902;        /* THE accent — sampled from the crest */
  --gold-dark: #7c6200;   /* gold-toned text on white (AA) */
  --red: #fe0003;         /* crest flame — tiny accents only */
  --cream: #f6f3ea;
  --white: #ffffff;
  --ink: #1c1e26;
  --ink-soft: #565b69;
  --line: #e5e2d8;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 10px 30px rgba(6, 11, 46, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keep anchors clear of the sticky nav */
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;     /* 17px base — comfortable for parents */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

a { touch-action: manipulation; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--navy);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 5.5vw, 2.9rem);
  margin-bottom: 0.5rem;
  max-width: 22ch;
}

h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}

.eyebrow-gold { color: var(--gold); }

.rule {
  display: block;
  width: 64px;
  height: 5px;
  background: var(--gold);
  margin: 0.9rem 0 1.5rem;
}

.section-intro {
  max-width: 58ch;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
}

.stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.95rem; }

/* ---------- Scroll reveal (JS opt-in; visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js .reveal.shown { opacity: 1; transform: none; }

/* ---------- Buttons (squared, uppercase — Finalsite style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--white); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--blue); border-color: var(--blue); }

.btn-nav { min-height: 44px; padding: 0.55rem 1.3rem; }

/* ---------- Utility top bar ---------- */
.topbar {
  background: var(--navy-deep);
  font-size: 0.8rem;
}

.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.35rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-height: 32px;
}

a.topbar-item:hover { color: var(--gold); }

/* Secondary info: hidden on small phones (repeated in Contact section) */
.topbar-hours { display: none; color: rgba(255, 255, 255, 0.55); }

/* ---------- Sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 2px 14px rgba(6, 11, 46, 0.12);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.5rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo { width: 52px; height: auto; flex-shrink: 0; }

.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.nav-brand-text strong {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.nav-brand-text small {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

/* Hamburger */
.nav-toggle {
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}

.nav-menu.open { display: flex; }

.nav-menu a {
  display: block;
  padding: 0.75rem 0.4rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.nav-menu a:hover { color: var(--gold-dark); }

.nav-cta-item { margin-top: 0.8rem; }
.nav-cta-item .btn { width: 100%; border-bottom: 2px solid var(--gold) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86svh; /* stable on mobile browsers with collapsing URL bars */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 46, 0.25) 0%,
    rgba(6, 11, 46, 0.45) 50%,
    rgba(6, 11, 46, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 7rem 20px 7.5rem; /* extra bottom room for overlapping cards */
}

.hero-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(6, 11, 46, 0.65); /* legible over bright photo areas */
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 10.5vw, 5.2rem);
  text-shadow: 0 2px 24px rgba(6, 11, 46, 0.45);
  margin-bottom: 1.1rem;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-proof {
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-proof strong { color: var(--white); }

/* ---------- Feature cards (overlap the hero) ---------- */
.features { margin-top: -4.5rem; position: relative; z-index: 5; padding-bottom: 1rem; }

.features-grid { display: grid; gap: 1.1rem; }

.feature {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(6, 11, 46, 0.22); }

.feature-media { display: block; overflow: hidden; }

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature:hover .feature-media img { transform: scale(1.05); }

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.feature-body strong {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
  color: var(--navy);
}

.feature-body span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

.feature-body em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.4rem;
}

.feature:hover .feature-body em { color: var(--navy); }

/* ---------- Mission band ---------- */
.mission {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
  margin-top: 3rem;
  overflow: hidden;
}

.mission .container { position: relative; }

/* crest watermark — anchored to the content column, desktop only */
.mission-crest {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  opacity: 0.06;
  pointer-events: none;
}

.mission-statement {
  position: relative;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: 1.2rem;
}

.gold-text { color: var(--gold); }

.mission-text {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-cream { background: var(--cream); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.8rem; }

.about-text p { color: var(--ink-soft); }

.about-points {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-points li {
  position: relative;
  padding-left: 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--gold);
}

/* framed campus photo */
.about-photo { max-width: 470px; }

.photo-frame {
  display: block;
  background: var(--white);
  padding: 10px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.photo-frame img { display: block; width: 100%; }

.about-photo figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  padding: 2.8rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 1rem;
  text-align: center;
}

.stat dd {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  color: var(--gold);
  line-height: 1.05;
}

.stat dt {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* ---------- XSEED ---------- */
.xseed-grid { display: grid; gap: 2.5rem; }

.xseed-intro p { color: var(--ink-soft); }

.xseed-note {
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold);
  font-weight: 600;
  color: var(--ink) !important;
}

.steps5a { list-style: none; }

.step5a {
  display: flex;
  gap: 1.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.step5a:first-child { padding-top: 0.3rem; }
.step5a:last-child { border-bottom: 0; }

.step5a-num {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  min-width: 2.1rem;
  text-align: center;
  flex-shrink: 0;
}

.step5a p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Principal ---------- */
/* Fed by the Message tab of the school's sheet; the section stays hidden
   until that tab has a row, so it is never half-finished. */
.principal-grid { display: grid; gap: 2rem; align-items: start; }

/* No photo supplied: let the message span the whole grid instead of being
   squeezed into the 280px photo column at desktop width. */
.principal-grid > :only-child { grid-column: 1 / -1; }

.principal-photo {
  width: 220px;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}

.principal-quote {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.principal-message footer { display: flex; flex-direction: column; font-size: 0.92rem; }

.principal-message footer strong {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--navy);
}

.principal-message footer span { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- Results & toppers ---------- */
.results {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  padding: 4.5rem 0;
}
.results h2 { color: var(--white); }
.results-intro { color: rgba(255, 255, 255, 0.78); max-width: 58ch; margin-bottom: 2.2rem; }

.results-grid { display: grid; gap: 1.2rem; }

.topper-card {
  position: relative;
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.7rem 1.4rem 1.5rem;
  text-align: center;
  animation: noticeIn 0.5s ease backwards; /* backwards, not both: lets hover transform work after entry */
  min-width: 0;               /* long sheet text can't inflate grid tracks */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.topper-year {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy);
  font: 700 0.72rem/1 var(--body);
  letter-spacing: 0.08em;
  padding: 0.4rem 0.6rem;
  max-width: 100%;            /* long Year text truncates instead of */
  white-space: nowrap;        /* wrapping down over the photo        */
  overflow: hidden;
  text-overflow: ellipsis;
}
.topper-avatar {
  display: inline-block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font: 400 1.5rem/58px var(--display);
  margin-bottom: 0.9rem;
}
.topper-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin: 0 auto 0.9rem;      /* global img{display:block} — centre it */
}
.topper-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.topper-achievement { color: var(--gold-dark); font-weight: 700; font-size: 0.92rem; margin: 0 0 0.3rem; }
.topper-detail { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ---------- Gallery lightbox ---------- */
.lb-zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 11, 46, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lb-figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lb-img {
  max-width: 92vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.lb-caption { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; margin-top: 0.9rem; padding: 0 1rem; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 301;
  background: rgba(6, 11, 46, 0.55); /* legible over bright photo areas */
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0.7rem 1rem;
  opacity: 0.85;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; color: var(--gold); }
.lb-close { top: 10px; right: 10px; font-size: 2.5rem; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ---------- Notice Board ---------- */
/* The notice board carries announcements - vacancies, reopening dates - so
   it gets the same gold rule the results section uses to set itself apart
   from the ordinary cream sections around it. */
#notices { border-top: 5px solid var(--gold); }

/* A hidden nav item must stay hidden even though .nav-menu lays its
   children out with flex. */
.nav-menu li[hidden] { display: none; }

.notice-list { display: grid; gap: 1.2rem; margin-top: 0.4rem; }

.notice-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: noticeIn 0.5s ease backwards; /* backwards, not both: lets hover transform work after entry */
  min-width: 0;               /* long sheet text wraps instead of clipping */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.notice-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.notice-body { padding: 1.3rem 1.4rem 1.5rem; }
/* Gold chip rather than plain gold text: at a glance it reads as a dated
   announcement instead of another paragraph heading. */
/* .notice-body p sets a soft grey on every paragraph in the card and, being
   class+element, outranks a lone .notice-date - hence the two-class
   selector, or the chip renders grey-on-gold. */
.notice-body .notice-date {
  display: inline-block;
  font: 700 0.7rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.34rem 0.6rem;
  margin: 0 0 0.75rem;
}
.notice-card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; line-height: 1.25; }
.notice-body p { margin: 0; color: var(--ink-soft); white-space: pre-line; }

@keyframes noticeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 1.2rem; margin-top: 0.4rem; }

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* faint decorative quote mark — subtle flair only */
.testimonial::after {
  content: '\201C';
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
  pointer-events: none;
}

.testimonial blockquote { font-size: 1rem; line-height: 1.65; color: var(--ink); }

.testimonial figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.testimonial .who { display: flex; flex-direction: column; }

.testimonial .who strong {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.testimonial .who span { color: var(--ink-soft); font-size: 0.83rem; }

.testimonials-link { margin-top: 2rem; }

.testimonials-link a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 3px;
}

.testimonials-link a:hover { color: var(--gold-dark); }

/* ---------- Admissions ---------- */
.adm-steps { list-style: none; display: grid; gap: 1.2rem; }

.adm-step {
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
}

.adm-num {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.adm-step p { font-size: 0.96rem; color: var(--ink-soft); }

.admissions-extra { display: grid; gap: 1.2rem; margin-top: 1.6rem; }

.docs, .fees {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}

.docs ul { margin: 0.6rem 0 0.9rem 1.2rem; color: var(--ink-soft); }
.docs li { margin-bottom: 0.3rem; }
.fees p { color: var(--ink-soft); }

.small-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- FAQ (native accordions, no JS) ---------- */
.faq { margin-top: 2.6rem; }

.faq-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  margin-bottom: 0.6rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold-dark);
  line-height: 1;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item[open] summary { border-bottom: 1px solid var(--line); }

/* Answer eases in when a question opens */
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
.faq-item[open] > *:not(summary) { animation: faqIn 0.28s ease both; }

.faq-item p {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* ---------- Choose band ---------- */
.choose {
  background: var(--navy);
  border-top: 5px solid var(--gold);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.choose-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--white);
  margin: 0 auto 0.8rem;
}

.choose-text {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.choose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 1.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream); /* visible while loading on slow networks */
}

.gallery-cta {
  margin-top: 2.4rem;
  text-align: center;
}

.gallery-cta p {
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; margin-top: 1.6rem; }

.contact-info h3 {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info address { font-style: normal; line-height: 1.7; }

.contact-info .btn { margin-top: 1.6rem; }

.contact-phones a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 2;
}

.contact-phones a:hover { color: var(--blue); }

.contact-map iframe {
  width: 100%;
  height: 320px;
  display: block;
  /* border 0, not the inline style attribute — the strict CSP forbids
     style= attributes. The old inline style always overrode the 1px
     hairline that used to be declared here, so borderless IS the
     approved look. */
  border: 0;
  box-shadow: var(--shadow);
  background: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  border-top: 5px solid var(--gold);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.8rem 0 1.8rem;
  font-size: 0.95rem;
}

.footer-grid { display: grid; gap: 2.4rem; }

.footer-crest { width: 72px; height: auto; margin-bottom: 1rem; }

.footer-name {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.5rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.3rem 0 1rem;
}

.footer-blurb { font-size: 0.92rem; max-width: 38ch; line-height: 1.7; }

.footer-heading {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-links { list-style: none; }

.footer-links a {
  display: inline-block;
  padding: 0.26rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

.footer-address { font-size: 0.92rem; margin-bottom: 0.6rem; line-height: 1.7; }

.footer-address a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-address a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.footer-copy { font-size: 0.84rem; }

.footer-credit { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.5rem; }
.footer-credit a { color: rgba(255, 255, 255, 0.62); text-decoration: none; }
.footer-credit a:hover { color: var(--gold); }

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 640px) {
  .topbar-hours { display: inline-flex; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .adm-steps { grid-template-columns: repeat(3, 1fr); }
  .admissions-extra { grid-template-columns: 1fr 1fr; }

  .notice-list { grid-template-columns: repeat(2, 1fr); }

  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials { grid-template-columns: repeat(3, 1fr); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; } /* 18px on desktop */

  .section { padding: 6rem 0; }

  /* Nav: horizontal menu, hide hamburger */
  .nav-toggle { display: none; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 0.1rem;
  }
  .nav-menu a {
    border-bottom: 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
  }
  .nav-cta-item { margin: 0 0 0 0.6rem; }
  .nav-cta-item .btn { width: auto; border-bottom: 2px solid transparent !important; }

  .features { margin-top: -5.5rem; }

  .mission { padding: 5.5rem 0; }

  .about-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 4.5rem; }
  .about-photo { justify-self: end; }

  .xseed-grid { grid-template-columns: 1fr 1.2fr; gap: 4.5rem; align-items: start; }

  .results-grid { grid-template-columns: repeat(4, 1fr); }

  .principal-grid { grid-template-columns: 280px 1fr; gap: 3.5rem; }
  .principal-photo { width: 100%; }
  .principal-quote { font-size: 1.25rem; }

  .mission-crest { display: block; }

  .gallery-grid { grid-template-columns: repeat(5, 1fr); }

  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: start; }
  .contact-map iframe { height: 420px; }
}

/* ---------- Premium polish ---------- */

/* Hero entrance: one orchestrated, staggered arrival (gated on .js —
   without JS the hero is simply static and visible) */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroKen {
  from { transform: scale(1.07); }
  to { transform: none; }
}
.js .hero-img     { animation: heroKen 7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-eyebrow { animation: heroRise 0.5s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-sub     { animation: heroRise 0.5s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-actions { animation: heroRise 0.5s 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
.js .hero-proof   { animation: heroRise 0.5s 0.74s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Headline lines slide out of an invisible mask, one after the other —
   the signature move of premium hero sections */
.hl { display: block; overflow: hidden; }
.hl-inner { display: block; }
@keyframes lineUp {
  from { transform: translateY(110%); }
  to { transform: none; }
}
.js .hl:nth-child(1) .hl-inner { animation: lineUp 0.6s 0.22s cubic-bezier(0.19, 1, 0.22, 1) both; }
.js .hl:nth-child(2) .hl-inner { animation: lineUp 0.6s 0.34s cubic-bezier(0.19, 1, 0.22, 1) both; }

/* Nav: lifts as you scroll; gold underline slides under the active section */
.nav { transition: box-shadow 0.25s ease; }
.nav.scrolled { box-shadow: 0 6px 26px rgba(6, 11, 46, 0.2); }

@media (min-width: 900px) {
  .nav-menu a { position: relative; }
  .nav-menu a::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-menu a:hover::after,
  .nav-menu a.active::after { transform: scaleX(1); }
  .nav-menu a.active { color: var(--gold-dark); }
}

/* Reading progress: navy line filling across the nav's gold border */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Gold rules draw themselves as their section arrives */
.js .rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.js .rule.drawn { transform: scaleX(1); }

/* Cards inside grids arrive with a slight cascade */
.js .features-grid > .reveal:nth-child(2),
.js .adm-steps > .reveal:nth-child(2),
.js .testimonials > .reveal:nth-child(2),
.js .steps5a > .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .features-grid > .reveal:nth-child(3),
.js .adm-steps > .reveal:nth-child(3),
.js .testimonials > .reveal:nth-child(3),
.js .steps5a > .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .steps5a > .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .steps5a > .reveal:nth-child(5) { transition-delay: 0.24s; }

/* Buttons: lift on hover, press down on tap */
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6, 11, 46, 0.2); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; transition-duration: 0.08s; }

/* Stats: tabular digits so the count-up doesn't wobble */
.stat dd { font-variant-numeric: tabular-nums; }

/* Gallery + cards: gentle lift on hover */
.gallery-grid img { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(6, 11, 46, 0.22);
}
.testimonial, .notice-card, .topper-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.testimonial:hover, .notice-card:hover, .topper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 11, 46, 0.16);
}

/* Floating WhatsApp button: appears once the visitor commits to scrolling */
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 250;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(6, 11, 46, 0.32);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-wa.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-wa:hover { transform: translateY(-2px) scale(1.05); }
.fab-wa:active { transform: scale(0.94); }
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* One-time attention pulse when the button first appears */
@keyframes fabPulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.7); opacity: 0; }
}
.fab-wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  opacity: 0;
}
.fab-wa.show::before { animation: fabPulse 1.8s ease-out 0.5s 2; }

/* Anchor jumps land clear of the sticky nav */
main [id] { scroll-margin-top: 84px; }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-toggle span, .feature, .feature-media img { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .notice-card, .topper-card { animation: none; }
  .js .hero-img, .js .hero-eyebrow, .js .hero h1, .js .hero-sub,
  .js .hero-actions, .js .hero-proof, .js .hl:nth-child(n) .hl-inner,
  .fab-wa.show::before, .faq-item[open] > *:not(summary) { animation: none; }
  .js .rule { transform: none; transition: none; }
  .btn:hover, .gallery-grid img:hover,
  .testimonial:hover, .notice-card:hover, .topper-card:hover { transform: none; }
  .fab-wa { transition: none; }
  .scroll-progress { display: none; }
}

/* ---------- 404 page (styles here so 404.html needs no inline <style>,
   which the strict CSP forbids) ---------- */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.page-404 img { width: 110px; height: auto; margin: 0 auto 1.5rem; }
.page-404 h1 { color: var(--white); font-size: 1.6rem; margin: 0 0 0.6rem; }
.page-404 p { color: #c9cde3; margin: 0 0 1.8rem; }
.page-404 a {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

/* Keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 0.8rem 1.4rem;
  background: var(--navy);
  color: var(--gold);
  font: 600 0.85rem/1 var(--body);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus { top: 12px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
main:focus { outline: none; }
