:root {
  color-scheme: light;
  --navy: #10223a;
  --navy-deep: #0b192d;
  --ink: #172941;
  --muted: #4e5d6f;
  --paper: #fff;
  --surface: #f4f6f8;
  --linen: #f9f7f1;
  --line: #dce2e8;
  --amber: #eacb89;
  --gold: #97703e;
  --gold-dark: #73501f;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Aptos", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #bb8435; outline-offset: 4px; }
.skip { position: fixed; inset: .6rem auto auto .6rem; transform: translateY(-170%); padding: .5rem 1rem; background: var(--paper); color: var(--navy); z-index: 9; }
.skip:focus { transform: translateY(0); }
.wrap { width: min(calc(100% - 5rem), 76rem); margin-inline: auto; }
.section-space { padding-block: clamp(3.15rem, 6.4vw, 6rem); }
section[id], #class-picker { scroll-margin-top: 1.15rem; }

.utility-bar { background: var(--navy-deep); color: #e2e8ef; border-bottom: 1px solid #38495b; }
.utility-inner { min-height: 2.45rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .12rem 1rem; font-size: .875rem; }
.utility-inner a { color: #f4dcaa; font-weight: 700; white-space: nowrap; }
.site-header { background: var(--paper); }
.header-inner { min-height: 5.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; line-height: 1.12; text-decoration: none; }
.brand strong { display: block; font: 700 1.35rem var(--serif); }
.brand small { display: block; margin-top: .28rem; color: var(--gold-dark); font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; }
.brand-logo { display: block; flex: none; width: 3.72rem; height: auto; border-radius: .16rem; object-view-box: inset(9% 7% 8% 11%); }
nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.9rem); font-size: .94rem; font-weight: 680; }
nav a:not(.btn) { text-decoration: none; padding-block: .55rem; }
nav a:not(.btn):hover, .footer-links a:hover { text-decoration: underline; }

.btn, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: .25rem; min-height: 2.8rem; padding: .63rem 1.05rem; font-weight: 720; line-height: 1.32; cursor: pointer; }
.btn.navy { color: #fff; background: var(--navy); }
.btn.navy:hover { background: #244362; }
.btn.amber { color: var(--navy-deep); background: var(--amber); }
.btn.amber:hover { background: #f2d99e; }
.btn.outline { color: #fff; border-color: #7c8a9e; }
.btn.outline:hover { background: #ffffff16; }
.btn.whatsapp { background: #166047; color: #fff; }
.btn.whatsapp:hover { background: #104a37; }
.menu-toggle { display: none; color: var(--navy); background: var(--paper); border-color: #a9b5c1; }
.menu-toggle:hover { background: var(--surface); }
.actions, .admission-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }

.hero { position: relative; background: linear-gradient(116deg, var(--navy-deep), #18324f); color: var(--paper); border-top: 2px solid var(--gold); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .99fr) minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 4vw, 3.9rem); padding-block: clamp(2.2rem, 4.2vw, 4rem) clamp(3.4rem, 6.1vw, 5.8rem); }
.eyebrow { margin-bottom: .68rem; color: var(--gold-dark); font-size: .875rem; font-weight: 750; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: #f1d69f; }
.hero .eyebrow span { margin-inline: .22rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 4.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.45rem); }
h2 em { color: var(--gold-dark); font-weight: 400; }
.hero h1 em { display: block; color: var(--amber); font-size: .69em; font-weight: 400; letter-spacing: -.025em; margin-top: .16em; }
.hero-motto { font-family: var(--serif); color: #fff; font-size: clamp(1.15rem, 1.8vw, 1.42rem); margin-top: 1.15rem; }
.lead { max-width: 30rem; margin-top: .55rem; color: #e1e9f4; font-size: 1.03rem; }
.hero .actions { margin-top: 1.5rem; }
.hero-photo { position: relative; padding: .45rem; border: 1px solid #a98955; background: #12263e; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.33; object-fit: cover; }
.hero-photo figcaption { position: absolute; bottom: .8rem; right: .8rem; padding: .15rem .55rem; background: var(--navy-deep); color: #fff; font-size: .81rem; }

.enquiry-gateway { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.3rem, 4vw, 3.5rem); margin-top: -2.05rem; padding: clamp(1.15rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: 0 10px 28px #10223a0d; }
.enquiry-gateway h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.opening-dates { display: flex; flex-wrap: wrap; gap: .68rem 1.55rem; margin: .85rem 0 1rem; }
.opening-dates div { padding-left: .65rem; border-left: 2px solid #d2a95d; }
.opening-dates dt { color: var(--muted); font-size: .875rem; }
.opening-dates dd { margin: 0; color: var(--navy); font-weight: 740; }
.contact-options { display: flex; flex-wrap: wrap; align-items: center; gap: .08rem .8rem; margin-top: .35rem; font-size: .9rem; }
.contact-options a, .copy-contact { color: inherit; font-weight: 650; }
.copy-contact { min-height: 2.25rem; padding: .18rem 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .23em; cursor: pointer; }
.contact-status:not(:empty) { flex-basis: 100%; }
.class-picker { min-width: 0; align-self: start; padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--surface); }
.class-picker label { display: block; color: var(--navy); font-weight: 750; }
.class-picker select { appearance: none; display: block; width: 100%; min-height: 2.7rem; margin-top: .45rem; padding: .4rem 2rem .4rem .7rem; border: 1px solid #a4b2c1; border-radius: .2rem; color: var(--navy); background: linear-gradient(45deg, transparent 50%, #526279 50%) right 1rem center/5px 5px no-repeat, linear-gradient(135deg, #526279 50%, transparent 50%) right .72rem center/5px 5px no-repeat, var(--paper); }
.class-picker-note { margin-top: .45rem; color: var(--muted); font-size: .875rem; }
.class-result { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.class-result p { margin-bottom: .6rem; }

.school-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(1.6rem, 6vw, 5.8rem); }
.about-copy { margin-top: 1.2rem; padding-left: 1.15rem; border-left: 2px solid #c59a55; color: var(--muted); }
.sanskrit { color: var(--navy); font-size: clamp(1.2rem, 2.1vw, 1.72rem); font-weight: 650; line-height: 1.25; }
.translation { margin: .25rem 0 .65rem; color: var(--gold-dark); }
.founder-welcome { padding: clamp(1.15rem, 2.6vw, 1.85rem); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid #b78d50; }
.welcome-copy h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.welcome-copy > p { margin: .6rem 0 .8rem; color: var(--muted); }
.welcome-transcript { margin-bottom: .8rem; border-block: 1px solid var(--line); padding-block: .45rem; }
.welcome-transcript summary { min-height: 2rem; font-weight: 700; }
.welcome-transcript p { margin-top: .45rem; color: var(--muted); }
.welcome-film video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--navy); }
.welcome-film figcaption { margin-top: .45rem; color: var(--muted); font-size: .875rem; }

.learning { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { max-width: 46rem; }
.section-heading > p:last-child { margin-top: .7rem; color: var(--muted); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: 1.7rem; align-items: start; }
.stage { border: 1px solid var(--line); border-top: 2px solid #af874b; background: var(--paper); }
summary { position: relative; padding-right: 2.25rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); content: "+"; color: var(--gold-dark); font-size: 1.35rem; font-weight: 500; }
details[open] > summary::after { content: "−"; }
.stage summary { padding: 1.1rem 2.1rem .78rem 1rem; }
.stage-range { display: block; color: var(--gold-dark); font-size: .875rem; font-weight: 700; }
.stage strong { display: block; font: 400 1.57rem var(--serif); margin-top: .22rem; }
.stage-body { padding: 0 1rem 1.1rem; color: var(--muted); }
.stage-body ul { padding-left: 1.15rem; margin: .55rem 0 0; }
.stage-body li { margin-top: .15rem; }

.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.6rem; margin-top: 1.65rem; }
.day-card { border-top: 2px solid #ac8348; padding-top: .82rem; }
.day-card h3 { font: 400 1.46rem var(--serif); }
.day-card dl { margin: .4rem 0 0; }
.day-card dl > div { padding: .55rem 0; }
.day-card dl > div + div { border-top: 1px solid var(--line); }
.day-card dt { color: var(--gold-dark); font-weight: 720; }
.day-card dd { margin: .08rem 0 0; color: var(--muted); }

.projects-band { background: var(--linen); border-block: 1px solid #e7e0d0; }
.projects { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); grid-template-areas: "project-intro project-photo" "project-activities project-photo"; column-gap: clamp(1.5rem, 5vw, 5rem); row-gap: 1rem; align-items: start; }
.projects-intro { grid-area: project-intro; }
.projects-intro > p:not(.eyebrow) { max-width: 28rem; margin-top: .7rem; color: var(--muted); }
.projects-intro > p.project-status { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }
.project-photo { grid-area: project-photo; align-self: center; }
.project-photo img { display: block; width: 100%; height: auto; }
.project-photo figcaption { margin-top: .42rem; color: var(--muted); font-size: .875rem; }
.project-activities { grid-area: project-activities; }
.project-activities h3 { font: 400 1.5rem var(--serif); }
.project-activities ul { list-style: none; padding: 0; margin: .35rem 0 0; }
.project-activities li { padding: .45rem 0; }
.project-activities li + li { border-top: 1px solid #e1d9ca; }
.project-activities li span { display: block; color: var(--muted); }

.admissions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.6rem, 5.6vw, 5rem); margin-top: clamp(3rem, 6vw, 5.25rem); padding: clamp(1.3rem, 4vw, 3.1rem); border-top: 3px solid #c49855; color: #fff; background: var(--navy); }
.admissions .eyebrow { color: var(--amber); }
.admissions .btn.whatsapp { border-color: #80baa6; }
.admissions-intro p:not(.eyebrow) { color: #e1e9f3; margin: .72rem 0 1.15rem; max-width: 29rem; }
.parent-list h3 { font: 400 1.55rem var(--serif); }
.parent-list ol { margin: .55rem 0 0; padding-left: 1.25rem; }
.parent-list li { padding: .5rem 0 .5rem .37rem; }
.parent-list li + li { border-top: 1px solid #4a5b71; }
.parent-list li::marker { color: var(--amber); font-weight: 700; }
.parent-list li span { display: block; color: #e1e9f3; }
.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 5rem); }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { padding-block: .88rem; font-weight: 700; }
.questions summary::after { right: .35rem; }
.questions p { padding: 0 1.75rem .82rem 0; color: var(--muted); }
.questions p a { color: #215740; font-weight: 650; }

footer { color: #fff; background: var(--navy-deep); border-top: 2px solid #a9854c; }
.footer-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(1.25rem, 4vw, 3.5rem); align-items: start; padding-block: 2.1rem; }
footer .brand small { color: var(--amber); }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1.05rem; }
.footer-links a { color: #e3eaf2; text-decoration: none; }
.school-address { color: #e3eaf2; font-style: normal; font-size: .92rem; }
.school-address strong { color: var(--amber); }

@media (max-width: 63rem) {
  .wrap { width: calc(100% - 3rem); }
  .stages { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1/-1; grid-row: 2; }
}
@media (max-width: 56rem) {
  .header-inner { min-height: 4.85rem; padding-block: .6rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; padding: .4rem .65rem; min-height: 2.45rem; }
  nav { flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .65rem; }
  .hero-inner { gap: 1.35rem; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .utility-inner { align-items: start; padding-block: .3rem; }
  .hero-inner, .enquiry-gateway, .school-story, .day-grid, .projects, .admissions, .faq { grid-template-columns: minmax(0,1fr); }
  .hero-inner { padding-block: 2rem 3.1rem; }
  .hero-photo img { aspect-ratio: 1.62; }
  .hero h1 { font-size: clamp(2.35rem, 8vw, 3.2rem); }
  .enquiry-gateway { margin-top: -1.45rem; }
  .class-picker { padding-inline: .8rem; }
  .projects { grid-template-areas: "project-intro" "project-photo" "project-activities"; }
  .footer-inner { grid-template-columns: minmax(0,1fr); }
  .footer-links { grid-column: auto; grid-row: auto; }
}
@media (max-width: 30rem) {
  .brand { gap: .5rem; }
  .brand-logo { width: 2.95rem; }
  .brand strong { font-size: 1.07rem; }
  .brand small { font-size: .7rem; }
  .stages { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.enquiry-overview > .btn { margin: 0 .35rem .4rem 0; }
.admission-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.admission-page .site-header { border-bottom: 2px solid var(--gold); }
.admission-home { font-size: .94rem; font-weight: 700; }
.application-main { flex: 1; padding-block: clamp(1.4rem, 5vw, 4rem); }
.application-card { max-width: 44rem; margin-inline: auto; padding: clamp(1rem, 4vw, 2.5rem); border: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--paper); }
.application-card h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.form-intro { margin: .75rem 0; color: var(--muted); }
.application-form { display: grid; gap: .4rem; margin-top: 1.3rem; }
.application-form > label { font-weight: 650; }
.application-form > label span { display: block; color: var(--muted); font-size: .88rem; font-weight: 500; }
.application-form > input:not([type="hidden"]), .application-form select { width: 100%; min-height: 2.85rem; margin-bottom: .58rem; padding: .45rem .66rem; border: 1px solid #a4b2c1; border-radius: .2rem; background-color: #fff; color: var(--navy); font: inherit; }
.application-form input:focus-visible { outline: 3px solid #bb8435; outline-offset: 3px; }
.application-form .application-consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.application-consent input { margin-top: .39rem; accent-color: var(--navy); }
.form-note { margin: .35rem 0 .45rem; color: var(--muted); font-size: .9rem; }
.application-form button { justify-self: start; }
.application-error, .receipt-ref { padding: .7rem; overflow-wrap: anywhere; }
.application-error { color: #922723; background: #fff0ec; }
.receipt-ref { margin: .6rem 0 1rem; background: var(--surface); }
.office-card { max-width: none; }
.office-table { width: 100%; overflow-x: auto; }
.office-table table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; }
.office-table th, .office-table td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.office-table th { font-size: .875rem; background: var(--surface); }
.office-table td a { white-space: nowrap; }
.record-reference { font-size: .875rem; overflow-wrap: anywhere; }
.office-pagination { margin-top: .85rem; }
.office-pagination:empty { display: none; }
.application-footer { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; padding-block: 1.2rem; }
