/* ==========================================================================
   ADARSH VIDYA MANDIR — landing page styles
   Mobile-first. Breakpoints: 40em (640) · 48em (768) · 62em (992) · 68.75em (1100)
   ========================================================================== */

/* ───────── 1. Design tokens ───────── */
:root {
  /* colour */
  --navy-950: #07152b;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --navy-700: #1d4175;
  --gold-500: #d4a72c;
  --gold-400: #e2b93e;
  --gold-text: #8a6a0a;          /* gold for text on light backgrounds (4.7:1 on cream) */
  --cream: #faf7f0;
  --cream-2: #f1ebdc;
  --white: #ffffff;
  --ink: #16202f;
  --muted: #556070;
  --line: #e3dccb;
  --field-border: #8c8570;
  --danger: #b3261e;
  --success: #1f6b43;
  --on-dark: #c9d5e8;            /* secondary text on navy */
  --focus: #1d4175;

  /* type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --container: 75rem;
  --section-y: clamp(3.75rem, 8vw, 7rem);
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 4px 14px rgba(11, 31, 58, 0.05);
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ───────── 2. Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.35rem + 3.6vw, 3.8rem); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
dl, dd { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 2 * var(--gutter), 50rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-900); color: var(--white); padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2rem; height: 2rem; }

/* ───────── 3. Shared components ───────── */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--gold-500); flex: none; }
.eyebrow.center { justify-content: center; }
.center { text-align: center; }

.lede { font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); color: var(--muted); max-width: 40rem; }
.fine { font-size: 0.8125rem; color: var(--muted); margin: 1.25rem 0 0; max-width: 42rem; }
.muted { color: var(--muted); }

.tag {
  display: inline-block; padding: 0.1rem 0.5rem; border: 1px dashed currentColor; border-radius: var(--radius);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); vertical-align: 0.1em;
}
.placeholder-text { color: var(--gold-text); border-bottom: 1px dashed currentColor; }

.sample-flag {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 0.75rem;
  margin: 1rem auto 2.5rem; padding: 0.6rem 1rem; max-width: 36rem;
  font-size: 0.9rem; color: var(--muted); background: var(--cream); border: 1px dashed var(--gold-text); border-radius: var(--radius);
}
.sample-flag p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius); background: transparent;
  font-size: 0.95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--navy-900); text-decoration: none;
  border-bottom: 2px solid var(--gold-500); padding-bottom: 0.15rem;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow-light { color: var(--white); }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; cursor: pointer;
  background: var(--white); color: var(--navy-900); border: 1px solid var(--navy-900); border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-btn:hover { background: var(--navy-900); color: var(--white); }

.section { padding-block: var(--section-y); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lede { margin: 0; }
.section-head h2 { margin: 0; max-width: 34rem; }
@media (min-width: 48em) {
  .section-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; }
}

/* dark-section overrides */
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .eyebrow { color: var(--gold-500); }
.on-dark .lede { color: var(--on-dark); }

/* ───────── 4. Top bar + header ───────── */
.topbar { display: none; background: var(--navy-950); color: var(--on-dark); font-size: 0.8125rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 0.5rem; }
.topbar p { margin: 0; }
.topbar-contact { display: flex; gap: 1.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }
.topbar .icon { width: 0.95em; height: 0.95em; color: var(--gold-500); }
@media (min-width: 48em) { .topbar { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 31, 58, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; min-width: 0; }
.brand-logo { width: 3.5rem; height: 3.5rem; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; color: var(--navy-900); white-space: nowrap; }
.brand-tag { display: none; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 24em) { .brand-tag { display: block; } .brand-name { font-size: 1.02rem; } }
@media (min-width: 48em) { .brand-logo { width: 4.75rem; height: 4.75rem; } .brand-name { font-size: 1.1rem; } }

.nav-toggle {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy-900);
}
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; grid-area: 1 / 1; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  padding: 0.5rem var(--gutter) 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(11, 31, 58, 0.1);
}
.nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; margin-bottom: 1rem; }
.nav-link {
  display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 500; color: var(--navy-900); text-decoration: none;
}
.nav-link:hover { color: var(--navy-700); }
.nav-link.is-active { color: var(--navy-900); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold-500); padding-left: 0.85rem; }
.nav-cta { width: 100%; }

@media (min-width: 68.75em) {
  :root { --header-h: 4.75rem; }
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 2rem; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav-list { flex-direction: row; gap: 1.75rem; margin: 0; }
  .nav-link { position: relative; padding: 0.4rem 0; border: 0; font-size: 0.95rem; }
  .nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.2rem; height: 2px; background: var(--gold-500);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
  .nav-link.is-active { box-shadow: none; padding-left: 0; }
  .nav-cta { width: auto; min-height: 2.75rem; padding-inline: 1.25rem; }
}

/* No-JS: always show navigation */
html:not(.js) .nav { display: block; position: static; box-shadow: none; }
html:not(.js) .nav-toggle { display: none; }

/* ───────── 5. Hero ───────── */
.hero { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow-x: clip; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-copy { max-width: 36rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-text); }
.hero .lede { margin: 1.25rem 0 2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.hero-visual { position: relative; width: min(100%, 27rem); margin-inline: auto; }
.hero-visual::before {                       /* offset outline echoing the arched verandahs */
  content: ""; position: absolute; inset: 1rem -0.9rem -0.9rem 1rem;
  border: 1px solid var(--gold-500); border-radius: 999px 999px 0 0; z-index: 0;
}
.hero-arch { position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--cream-2); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.hero-panel {
  position: relative; z-index: 2; margin: -2.25rem 1rem 0; padding: 1.1rem 1.4rem;
  background: var(--navy-900); color: var(--white); border-top: 3px solid var(--gold-500);
}
.panel-label { margin: 0 0 0.15rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); }
.panel-title { margin: 0 0 0.6rem; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.2; }
.panel-phone { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--on-dark); text-decoration: none; }
.panel-phone:hover { color: var(--white); text-decoration: underline; }
.panel-phone .icon { color: var(--gold-500); width: 1em; height: 1em; }

@media (min-width: 62em) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; }
  .hero-visual { width: min(100%, 28rem); margin-right: 0; }
  .hero-panel { position: absolute; left: -3.5rem; bottom: 2.5rem; margin: 0; min-width: 15.5rem; }
}

/* hero entrance (CSS only — content is never hidden if JS fails) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero [data-reveal] { animation: rise 0.9s var(--ease) both; }
.hero .hero-visual { animation-delay: 0.15s; }

/* ───────── 6. Trust strip ───────── */
.trust { background: var(--navy-900); color: var(--white); --focus: var(--gold-500); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item { padding: 1.5rem 1rem 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); min-width: 0; }
.trust-item:nth-child(-n+2) { border-top: 0; }
.trust-item:nth-child(5) { grid-column: 1 / -1; }
.trust-item dt { margin-bottom: 0.4rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark); }
.trust-item dd { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-value { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-head); font-size: 1.65rem; line-height: 1.15; color: var(--white); }
.trust-value .star { color: var(--gold-500); width: 0.9em; height: 0.9em; }
.trust-sub { font-size: 0.8125rem; line-height: 1.4; color: var(--on-dark); }
.trust .is-placeholder { color: var(--gold-500); }
.trust .trust-value.is-placeholder { font-size: 1.2rem; font-style: italic; }
.trust .tag { color: var(--gold-500); }
@media (min-width: 62em) {
  .trust-list { grid-template-columns: repeat(5, 1fr); }
  .trust-item { padding: 1.9rem 1.25rem; border-top: 0 !important; border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .trust-item:first-child { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(5) { grid-column: auto; }
}

/* ───────── 7. About ───────── */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; }
.about-copy .lede { margin-bottom: 1.75rem; }
.principles { display: grid; gap: 1.25rem; margin-bottom: 0.5rem; }
.principles > div { padding-left: 1.1rem; border-left: 2px solid var(--gold-500); }
.principles dt { margin-bottom: 0.2rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.principles dd { color: var(--ink); }
.about-copy .btn { margin-top: 1.75rem; }
@media (min-width: 62em) {
  .about-grid { grid-template-columns: 7fr 5fr; gap: 5.5rem; }
}

/* ───────── 8. Academics ───────── */
.academics { background: var(--cream-2); }
.academics-grid { display: grid; gap: 2.5rem; align-items: start; }
.academics-intro .lede { margin-bottom: 1.5rem; }
.programmes { display: grid; gap: 1rem; }
.programme { display: grid; background: var(--white); border: 1px solid var(--line); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.programme:hover { border-color: var(--navy-900); box-shadow: var(--shadow-sm); }
.programme-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-2); }
.programme-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.programme:hover .programme-media img { transform: scale(1.04); }
.programme-body { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.programme-body h3 { margin-bottom: 0.4rem; }
.programme-body p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }
.programme-body .link-arrow { margin-top: auto; }
.programme-meta { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.35rem !important; font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text) !important; }
.programme-no { font-family: var(--font-head); font-size: 1rem; letter-spacing: 0; }
@media (min-width: 48em) {
  .programme { grid-template-columns: 15rem 1fr; }
  .programme-media { aspect-ratio: auto; min-height: 11.5rem; }
}
@media (min-width: 62em) {
  .academics-grid { grid-template-columns: 4fr 7fr; gap: 5rem; }
  .academics-intro { position: sticky; top: 7.5rem; }
}

/* ───────── 9. Why choose ───────── */
.why { background: var(--white); }
.strengths { display: grid; gap: 0 3rem; }
.strength { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.strength-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; background: var(--navy-900); color: var(--gold-500); }
.strength-icon .icon { width: 1.4rem; height: 1.4rem; }
.strength p { color: var(--muted); margin: 0; max-width: 24rem; }
@media (min-width: 40em) { .strengths { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62em) { .strengths { grid-template-columns: repeat(3, 1fr); } .strength { padding-block: 2.25rem; } }

/* ───────── 10. Facilities gallery ───────── */
.gallery { display: grid; gap: 1.75rem 1.5rem; }
.gallery-btn { display: block; width: 100%; padding: 0; text-align: left; background: none; border: 0; cursor: zoom-in; }
.gallery-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-btn:hover .gallery-media img, .gallery-btn:focus-visible .gallery-media img { transform: scale(1.04); }
.gallery-cap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0 0.1rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-900); padding-bottom: 0.7rem; transition: border-color 0.3s var(--ease); }
.gallery-cap .icon { width: 1.05rem; height: 1.05rem; color: var(--gold-text); transition: transform 0.3s var(--ease); }
.gallery-btn:hover .gallery-cap { border-color: var(--gold-500); }
.gallery-btn:hover .gallery-cap .icon { transform: scale(1.2); }
@media (min-width: 40em) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: 1 / -1; }
}
@media (min-width: 62em) {
  .gallery { grid-template-columns: repeat(12, 1fr); }
  .gallery-item { grid-column: span 4; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(2),
  .gallery-item:nth-child(6), .gallery-item:nth-child(7) { grid-column: span 6; }
}

/* ───────── 11. Student life ───────── */
.campus-life { background: var(--navy-900); --focus: var(--gold-500); }
.life-grid { display: grid; gap: 2rem 1.5rem; }
.life-card { display: flex; flex-direction: column; min-width: 0; }
.life-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.life-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.life-card:hover .life-media img { transform: scale(1.04); }
.life-text { padding-top: 1rem; }
.life-text h3 { color: var(--white); margin-bottom: 0.3rem; }
.life-text p { color: var(--on-dark); font-size: 0.97rem; margin: 0; max-width: 26rem; }
@media (min-width: 40em) {
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .life-card-feature { grid-column: 1 / -1; }
  .life-card-feature .life-media { aspect-ratio: 16 / 8; }
}
@media (min-width: 62em) {
  .life-grid { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
  .life-card-feature { grid-column: 1; grid-row: 1 / span 2; }
  .life-card-feature .life-media { aspect-ratio: auto; flex: 1; min-height: 20rem; }
}

/* ───────── 12. Principal ───────── */
.principal { background: var(--cream-2); }
.principal-grid { display: grid; gap: 2.5rem; align-items: center; }
.principal-portrait { margin: 0; width: min(100%, 15rem); }
@media (min-width: 62em) { .principal-portrait { width: min(100%, 20rem); } }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--navy-800); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder svg { width: 100%; height: 100%; fill: #2d5189; }
.principal-portrait figcaption { margin-top: 0.8rem; font-size: 0.8125rem; color: var(--muted); }
.message { max-width: 38rem; font-size: 1.08rem; }
.message p:first-child::before {
  content: "\201C"; display: block; height: 2.6rem; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--gold-500);
}
.signature { display: flex; flex-direction: column; margin: 1.75rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 38rem; }
.signature strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; color: var(--navy-900); width: fit-content; }
.signature span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 62em) {
  .principal-grid { grid-template-columns: 4fr 7fr; gap: 6rem; }
}

/* ───────── 13. Testimonials ───────── */
.testimonials { background: var(--white); }
.carousel { text-align: center; }
.slide { margin: 0; }
.slide blockquote { margin: 0 0 1.5rem; }
.slide blockquote p { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); line-height: 1.4; color: var(--navy-900); }
.slide figcaption { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.slide figcaption .muted { font-weight: 500; text-transform: none; letter-spacing: 0; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.carousel-count { margin: 0; min-width: 3.5rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.slide:not([hidden]) { animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ───────── 14. Admissions CTA ───────── */
.admissions { background: var(--navy-900); color: var(--white); padding-block: var(--section-y); --focus: var(--gold-500); border-top: 4px solid var(--gold-500); }
.admissions h2 { color: var(--white); }
.admissions .eyebrow { color: var(--gold-500); }
.admissions .lede { color: var(--on-dark); }
.admissions-grid { display: grid; gap: 2.5rem; align-items: center; }
.admissions-call { margin: 1.5rem 0 0; color: var(--on-dark); font-size: 0.95rem; }
.admissions-call a { color: var(--white); font-weight: 600; }
.cta-list { display: grid; gap: 0.8rem; }
.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28); color: var(--white); text-decoration: none;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.cta-row strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; line-height: 1.25; }
.cta-row small { display: block; margin-top: 0.15rem; font-size: 0.875rem; color: var(--on-dark); }
.cta-row .icon { width: 1.4rem; height: 1.4rem; transition: transform 0.25s var(--ease); }
.cta-row:hover { border-color: var(--gold-500); background: rgba(255, 255, 255, 0.04); }
.cta-row:hover .icon { transform: translateX(5px); }
.cta-row-primary { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.cta-row-primary small { color: var(--navy-800); }
.cta-row-primary:hover { background: var(--gold-400); border-color: var(--gold-400); }
@media (min-width: 62em) { .admissions-grid { grid-template-columns: 6fr 5fr; gap: 6rem; } }

/* ───────── 15. Contact & form ───────── */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
.contact-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list > li > .icon { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; color: var(--gold-text); }
.contact-list h3 { margin: 0 0 0.1rem; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list p { margin: 0; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.form-panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy-900); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-title { margin-bottom: 1.25rem; }
.form { display: grid; gap: 1.1rem 1.25rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; font-size: 1rem; line-height: 1.4;
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-900); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy-900); }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; padding: calc(0.7rem - 1px) calc(0.9rem - 1px); }
.field select[aria-invalid="true"] { padding-right: calc(2.5rem - 1px); }
.field-hint { margin: 0.3rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.field-error { display: flex; gap: 0.4rem; margin: 0.35rem 0 0; font-size: 0.875rem; font-weight: 500; color: var(--danger); }
.field-error[hidden] { display: none; }
.form-note { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.form-actions { margin-top: 0.25rem; }
.form-actions .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.intent { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.intent legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.intent label { position: relative; }
.intent input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.intent span {
  display: inline-block; padding: 0.55rem 1rem; font-size: 0.9rem; font-weight: 500; line-height: 1.3;
  border: 1px solid var(--field-border); border-radius: 999px; background: var(--white); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.intent label:hover span { border-color: var(--navy-900); }
.intent input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.intent input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-status { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 0.9rem 1rem; border-left: 4px solid; font-size: 0.95rem; }
.form-status[hidden] { display: none; }
.form-status p { margin: 0; }
.form-status .icon { margin-top: 0.15rem; }
.form-status.is-success { background: #eaf4ee; border-color: var(--success); color: #14432a; }
.form-status.is-error { background: #fbeceb; border-color: var(--danger); color: #7a1a14; }

.btn.is-loading .spinner { display: inline-block; }
.spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(11, 31, 58, 0.3); border-top-color: var(--navy-900); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 40em) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide, .intent, .form-note { grid-column: 1 / -1; }
  .form-actions .btn { width: auto; min-width: 12rem; }
}
@media (min-width: 62em) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }

/* ───────── 16. Footer ───────── */
.site-footer { background: var(--navy-950); color: var(--on-dark); --focus: var(--gold-500); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand-light .brand-logo { padding: 4px; background: var(--cream); border-radius: var(--radius); }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-tag { display: block; color: var(--on-dark); }
.footer-brand p { margin: 1.25rem 0; max-width: 24rem; }
.footer-title { margin-bottom: 1rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); }
.footer-col li + li { margin-top: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address p { display: flex; gap: 0.7rem; margin: 0 0 0.7rem; }
.site-footer address .icon { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; color: var(--gold-500); }
.site-footer .placeholder-text { color: var(--gold-500); }
.social { display: flex; gap: 0.6rem; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius); color: var(--white); transition: border-color 0.25s, color 0.25s; }
.social a:hover { border-color: var(--gold-500); color: var(--gold-500); text-decoration: none; }
.map-embed { aspect-ratio: 16 / 10; margin-bottom: 0.9rem; background: var(--navy-900); border: 1px solid rgba(255, 255, 255, 0.18); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; text-align: center; }
.map-placeholder .icon { color: var(--gold-500); }
.map-placeholder p { margin: 0; font-size: 0.8125rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.1rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62em) { .footer-grid { grid-template-columns: 1.5fr 0.8fr 1.2fr 1.3fr; gap: 3rem; } }

/* ───────── 17. Dialogs (programme details + lightbox) ───────── */
.dialog { padding: 0; border: 0; background: var(--cream); color: var(--ink); width: min(56rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: auto; }
.dialog::backdrop { background: rgba(7, 21, 43, 0.78); }
.dialog[open] { animation: fade 0.3s var(--ease); }
.dialog-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 5; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer;
  background: var(--white); color: var(--navy-900); border: 1px solid var(--navy-900); border-radius: var(--radius);
}
.dialog-close:hover { background: var(--navy-900); color: var(--white); }
.dialog-inner { position: relative; }
.pd-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pd-body { padding: 1.5rem 1.5rem 1.75rem; }
.pd-body .programme-meta { margin-bottom: 0.4rem !important; }
.ticks { margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.6em; width: 0.6rem; height: 2px; background: var(--gold-500); }
@media (min-width: 48em) {
  .programme-dialog .dialog-inner { display: grid; grid-template-columns: 1fr 1.1fr; }
  .pd-media img { height: 100%; aspect-ratio: auto; }
  .pd-body { padding: 2.5rem 2.25rem 2.25rem; align-self: center; }
}

.lightbox { width: min(76rem, calc(100% - 1rem)); background: var(--navy-950); color: var(--white); --focus: var(--gold-500); }
.lightbox-inner { position: relative; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; background: var(--navy-950); }
.lightbox figcaption { padding: 0.9rem 1.25rem 1.1rem; font-family: var(--font-head); font-size: 1.1rem; }
.lb-nav { position: absolute; top: calc(50% - 3rem); z-index: 5; background: var(--navy-900); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.lb-nav:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lightbox .dialog-close { background: var(--navy-900); color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.lightbox .dialog-close:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

/* ───────── 18. Legal page ───────── */
.legal { padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal h1 { margin-bottom: 0.5rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.legal .sample-flag { margin-inline: 0; justify-content: flex-start; text-align: left; }

/* ───────── 19. Scroll reveal (enabled by JS via .reveal-ready) ───────── */
.reveal-ready :where([data-reveal]):not(.hero [data-reveal]) { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal-ready :where([data-reveal].is-visible):not(.hero [data-reveal]) { opacity: 1; transform: none; }

/* ───────── 20. Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
