/* Sanskriti School — static site styles
   Palette: light green + white, with blue as a small accent. Change the variables below to re-theme. */
:root {
  --blue: #0b4a9f;
  --blue-dark: #083577;
  --green: #237342;
  --green-dark: #195b34;
  --green-deep: #123e2a;
  --green-light: #eaf3e9;
  --green-soft: #f4f7f1;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --line: #e1e7de;
  --bg: #fffefa;
  --bg-soft: #f2f6ee;
  --radius: 20px;
  --shadow: 0 12px 36px rgba(24, 55, 35, .07);
  --max: 1180px;
  --admission: #ffd36d;
  --admission-hover: #ffe19a;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
.grid > *, .split > *, .form .row > * { min-width: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: rgba(35,115,66,.15); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: "Roboto Slab", Georgia, serif; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .6rem; }
.center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 760px; }
.center .lead { margin-inline: auto; }
.mb-lg { margin-bottom: 56px; }
.mb-md { margin-bottom: 28px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  border: 2px solid var(--green); background: var(--green); color: #fff; cursor: pointer; transition: .2s;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn { text-align: center; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--green-dark); }
.btn.outline { background: transparent; color: var(--green-dark); }
.btn.outline:hover { background: var(--green-light); color: var(--green-dark); }
.btn.admission-cta, .hero .btn.admission-cta, .nav .cta a {
  background: var(--admission); border-color: var(--admission); color: #203526;
  font-weight: 700; box-shadow: 0 5px 18px rgba(196,139,32,.2);
}
.btn.admission-cta::after, .nav .cta a::after { content: "\2192"; margin-left: 8px; font-size: 1.15em; }
.btn.admission-cta:hover, .hero .btn.admission-cta:hover, .nav .cta a:hover { background: var(--admission-hover); border-color: var(--admission-hover); color: #203526; }
.btn.admission-cta:focus-visible, .nav .cta a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.hero .btn.admission-cta { min-height: 56px; padding-inline: 30px; box-shadow: 0 0 0 4px rgba(255,211,109,.15), 0 8px 24px rgba(0,0,0,.18); }
.mobile-actions { display: none; }

/* Unified school header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 254, 250, .97); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.brand img { height: 56px; width: auto; }
.header-identity { flex: none; padding-block: 12px; }
.header-motto { display: block; font-size: .62rem; line-height: 1.4; color: var(--green-dark); margin-top: 4px; }
.header-admissions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-connect { position: relative; }
.connect-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid #cbdac6; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); font-size: .88rem; font-weight: 700; cursor: pointer; list-style: none; }
.connect-toggle::-webkit-details-marker { display: none; }
.connect-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.header-connect[open] > .connect-toggle { background: var(--green-light); border-color: var(--green); }
.header-connect[open] > .connect-toggle::after { transform: rotate(225deg); margin-top: 3px; }
.connect-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 290px; max-width: calc(100vw - 32px); padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fffefa; box-shadow: 0 16px 48px rgba(16,38,30,.18); }
.header-connect:not([open]) > .connect-panel { display: none; }
.connect-heading { margin: 0 0 14px; color: var(--green-deep); font-family: "Roboto Slab", Georgia, serif; font-size: 1.2rem; font-weight: 700; }
.connect-call, .connect-option { display: flex; align-items: center; gap: 12px; min-height: 54px; border-radius: 10px; color: var(--ink); }
.connect-call { padding: 12px 8px; background: var(--green-light); }
.connect-call:hover, a.connect-option:hover { color: var(--green-dark); background: var(--green-light); text-decoration: none; }
.connect-call strong { display: block; font-size: .95rem; white-space: nowrap; }
.connect-call small, .connect-option small { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.connect-symbol { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); }
.connect-symbol svg, .connect-symbol img { width: 20px; height: 20px; }
.connect-whatsapp { background: #128c4b; }
.connect-channels { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.connect-option { padding: 8px; font-size: .86rem; font-weight: 500; }
.connect-option.is-unavailable { color: var(--muted); }
.connect-option.is-unavailable .connect-symbol { background: #f0f1ed; color: var(--muted); }
.connect-arrow { margin-left: auto; color: var(--green-dark); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 11px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .9rem; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.active { color: var(--green-dark); background: var(--green-light); }
.nav-programme { position: relative; }
.programme-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 11px; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; list-style: none; cursor: pointer; }
.programme-toggle::-webkit-details-marker { display: none; }
.programme-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
.nav-programme[open] > .programme-toggle::after { transform: rotate(225deg); margin-top: 4px; }
.programme-toggle:hover, .nav-programme[open] > .programme-toggle, .programme-toggle.active { color: var(--green-dark); background: var(--green-light); }
.nav .programme-links { position: absolute; left: 0; top: calc(100% + 8px); min-width: 190px; display: grid; gap: 4px; padding: 8px; background: #fffefa; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 2; }
.nav-programme:not([open]) > .programme-links { display: none; }
.programme-links a { min-height: 44px; }
.nav .cta a { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; border-radius: 10px; margin-left: 10px; line-height: 1.3; }
.nav .cta a small { grid-column: 1; font-size: .6rem; margin-top: 3px; white-space: nowrap; }
.nav .cta a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-left: 0; }
.menu-toggle { display: none; background: var(--green-soft); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 8px; min-width: 48px; min-height: 48px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero {
  position: relative; color: #fff; padding: 120px 0 130px; background-color: var(--green-deep);
  background-image: linear-gradient(rgba(24, 92, 40, .55), rgba(24, 92, 40, .55));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero--home { background-image: linear-gradient(90deg, rgba(9, 36, 25, .92), rgba(9, 36, 25, .65) 52%, rgba(9, 36, 25, .25)), url("../assets/images/hero-home.jpg"); }
.hero--academics { background-image: linear-gradient(rgba(9, 36, 25, .7), rgba(9, 36, 25, .6)), url("../assets/images/hero-academics.jpg"); }
.hero--activities { background-image: linear-gradient(rgba(9, 36, 25, .7), rgba(9, 36, 25, .6)), url("../assets/images/hero-activities.jpg"); }
.hero h1, .hero h2 { color: #fff; }
.hero .badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .75rem; letter-spacing: .1em; margin-bottom: 24px; }
.hero .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c5df9f; }
.hero p { font-size: 1.12rem; max-width: 580px; line-height: 1.85; color: #eef4ea; }
.hero:not(.page-hero) { padding: 130px 0 150px; }
.hero .btn:not(.ghost):not(.admission-cta) { background: #e2edcb; border-color: #e2edcb; color: #173f2b; }
.hero .btn:not(.ghost):not(.admission-cta):hover { background: #f0f6e4; border-color: #f0f6e4; }
.hero .btn.ghost { border-color: rgba(255,255,255,.55); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.page-hero { padding: 80px 0; text-align: center; }
.page-hero p { margin-inline: auto; }
.page-hero .actions { justify-content: center; }
.page-intro { padding: 56px 0; text-align: center; background: var(--green-soft); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); max-width: 780px; margin-inline: auto; }
.page-intro p:last-of-type { max-width: 620px; margin: 0 auto; }
.page-intro .btn { margin-top: 24px; }

/* Quick facts strip */
.facts { background: transparent; margin-top: -48px; position: relative; z-index: 5; }
.facts .grid { background: #fffefa; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 20px; gap: 0; }
.fact { text-align: center; padding: 4px 16px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; color: var(--green-deep); font-family: "Roboto Slab", serif; font-size: clamp(1.05rem, 1.65vw, 1.3rem); line-height: 1.4; margin-bottom: 6px; }
.fact span { font-size: .8rem; }

/* Layout helpers */
.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.start { align-items: start; }
.split.reverse > :first-child { order: 2; }
.split > img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.emblem { max-width: 340px; margin-inline: auto; }
.split img.emblem { box-shadow: none; border-radius: 0; }
.about-intro .emblem { max-width: 260px; }
.school-emblem { margin: 0; text-align: center; padding: 24px; border-radius: 28px; background: radial-gradient(circle at 50% 35%, #eef3e6, #fffefa 72%); }
.logo-stage { width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto 18px; }
.school-emblem-image { width: 100%; height: auto; }
.school-emblem figcaption { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.school-emblem figcaption strong { color: var(--green-deep); font-weight: 500; }
.profile-heading { margin-bottom: 30px; max-width: 600px; }
.profile-heading > p:last-child { margin-bottom: 0; }
.school-profile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; }
.profile-fact { padding: 26px 22px; border: 1px solid #dce5d6; border-radius: 16px; background: #fffefa; }
.profile-fact .profile-label { color: var(--muted); font-size: .75rem; margin-bottom: 18px; }
.profile-fact h3 { color: var(--green-deep); font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 12px; overflow-wrap: anywhere; }
.profile-fact p { font-size: .85rem; margin: 0; }
.profile-fact > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--green-dark); font-size: .8rem; font-weight: 700; }
.profile-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 26px; border-top: 1px solid #d5dfce; }
.profile-footer .eyebrow { font-size: .65rem; }
.profile-footer p { color: var(--green-deep); margin: 4px 0 0; font-size: 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .8rem; display: grid; place-items: center; line-height: 1; margin-top: 4px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(24,55,35,.03); overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .body { padding: 28px; }
.card .body p { margin: 0; }
.card.plain { padding: 28px; }
.card.plain p:last-child { margin-bottom: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-light); color: var(--green-dark); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; }
.card .ico svg { width: 25px; height: 25px; }
.card.plain { box-shadow: none; }
.card.plain h3 { font-size: 1.15rem; }
.card.plain p { font-size: .94rem; }
.subject-card h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.subject-card p { font-size: .92rem; }
.subject-card > img { aspect-ratio: 16 / 10; }
.subject-grid { align-items: stretch; }
.split.activity-story { gap: 0; background: #fffefa; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.activity-story:last-child { margin-bottom: 0; }
.activity-story > img { height: 100%; min-height: 300px; object-fit: cover; border-radius: 0; box-shadow: none; }
.activity-story > div { padding: 36px; }
.activity-story h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
.activity-story p:last-child { margin-bottom: 0; }
.card.action { text-align: center; }
.card.action .ico { margin-inline: auto; }

/* School family */
.school-family { padding: 0 0 72px; }
.family-panel { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding: 40px; border: 1px solid #d7e4cf; border-left: 5px solid var(--green); border-radius: var(--radius); background: linear-gradient(120deg, #f0f5e9, #fafbf5); }
.family-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.family-copy p:last-child { margin-bottom: 0; max-width: 620px; }
.family-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.family-note { color: var(--green-deep); font-size: .9rem; font-weight: 700; }
.family-action .btn { background: #fffefa; border-width: 1px; text-align: center; }
.family-action .btn:hover { background: var(--green-light); }
.site-footer .footer-group-link { color: #e2edcb; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Stats */
.stats { background: var(--green-deep); color: #dbe7d9; padding: 64px 0; }
.stats .grid { text-align: center; }
.stat .num { font-family: "Roboto Slab", serif; font-size: clamp(2.5rem, 4vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.1; color: #e2edcb; }
.stat .label { font-weight: 400; margin-top: 12px; font-size: .9rem; }
.stat + .stat { border-left: 1px solid rgba(226,237,203,.2); }

/* Learning and possibility */
.learning-freedom { text-align: center; padding: 60px 0 70px; background: radial-gradient(ellipse at 50% 0%, #f5ecd5 0%, #faf8ef 60%); border-bottom: 1px solid #eae6d8; }
.learning-art { display: block; width: 150px; height: auto; margin: 0 auto 24px; }
.learning-freedom .eyebrow { font-size: .72rem; letter-spacing: .16em; margin-bottom: 16px; }
.learning-freedom h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.25; color: var(--green-deep); margin-bottom: 20px; }
.learning-message { max-width: 510px; margin: 0 auto; font-size: 1rem; line-height: 1.8; }
.learning-attribution { margin: -6px 0 22px; color: var(--green-dark); font-size: .85rem; }
.learning-attribution cite { font-style: normal; }
.learning-rule { display: block; width: 44px; height: 3px; margin: 28px auto 0; border-radius: 999px; background: #bd9341; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--ink); font-family: "Roboto Slab", serif; font-size: 1.1rem; margin-bottom: 4px; }

/* At a glance table */
.glance { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.glance th, .glance td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.glance th { width: 36%; color: var(--ink); font-weight: 500; background: var(--green-soft); }
.glance { box-shadow: 0 0 0 1px var(--line); }
.glance a { overflow-wrap: anywhere; }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }

/* Admissions */
.age-card { text-align: center; }
.age-card .age { font-size: 2.6rem; font-family: "Roboto Slab", serif; color: var(--green-deep); font-weight: 700; line-height: 1; margin: 18px 0; }
.age-card .born { color: var(--green-dark); font-weight: 700; }
.priority { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 14px; }
.priority li { counter-increment: p; display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; }
.priority li::before { content: counter(p); flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.priority strong { display: block; color: var(--ink); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--green); box-shadow: var(--shadow); }
.faq .answer { padding: 0 22px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
form.form { display: grid; gap: 18px; background: #fff; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(16,38,30,.05); }
.enquiry-submit { min-height: 52px; width: 100%; }
.enquiry-submit img { width: 20px; height: 20px; flex: none; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.form input:user-invalid, .form select:user-invalid, .form textarea:user-invalid { border-color: #dc2626; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.form .consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green); }
.form .consent label { font-weight: 400; margin: 0; }
.field-hint { font-size: .88rem; margin: -4px 0 0; }
.field-hint:empty { display: none; }
.field-hint.ok { color: var(--green-dark); }
.field-hint.warn { color: #b45309; }
.form-note { font-size: .9rem; margin: 0; }
.form-status { padding: 12px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: var(--green-light); color: #1f5d1f; }
.form-status.err { display: block; background: #fee2e2; color: #991b1b; }
.form-status.full { width: 100%; }

/* Contact info */
.contact-hero { text-align: center; padding: 56px 0 70px; background: var(--green-soft); border-bottom: 1px solid var(--line); }
.contact-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
.contact-hero p:last-child { max-width: 580px; margin: 0 auto; }
.contact-methods { position: relative; margin-top: -30px; }
.contact-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-method { display: flex; align-items: flex-start; gap: 16px; padding: 26px 22px; background: #fffefa; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(16,38,30,.05); color: var(--text); }
.contact-method:hover { text-decoration: none; background: #f6faef; border-color: #a9c4a0; }
.contact-method-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--green-light); color: var(--green-dark); }
.contact-method-icon svg, .contact-method-icon img { width: 22px; height: 22px; }
.contact-method-whatsapp { background: #128c4b; }
.contact-method-content { display: grid; gap: 4px; min-width: 0; font-size: .86rem; overflow-wrap: anywhere; }
.contact-method-content strong { color: var(--green-deep); font-size: 1rem; }
.contact-method-action { display: flex; align-items: center; gap: 8px; padding-top: 10px; color: var(--green-dark); font-weight: 700; font-size: .8rem; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-details > p { max-width: 420px; }
.contact-details h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-address { display: flex; gap: 16px; padding: 24px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.contact-address h3 { font-family: inherit; font-size: 1rem; }
.contact-address address { font-style: normal; font-size: .92rem; }
.contact-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--green-dark); font-weight: 700; font-size: .88rem; }
.contact-admissions-note { padding: 24px; background: var(--green-soft); border: 1px solid var(--line); border-radius: 16px; }
.contact-admissions-note h3 { font-size: 1.15rem; margin-top: 8px; }
.contact-admissions-note p { font-size: .9rem; margin-bottom: 4px; }
form.contact-form { padding: 34px; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(16,38,30,.05); }
.contact-form-heading h2 { font-size: 1.5rem; }
.contact-form-heading p { font-size: .88rem; margin-bottom: 4px; }
.contact-form .contact-submit { width: 100%; min-height: 52px; border-radius: 12px; gap: 10px; }
.contact-submit img { width: 20px; height: 20px; flex: none; }
.contact-form-note { margin: 0; text-align: center; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.contact-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.contact-map-heading h2 { margin: 0; }
.contact-map-heading .btn { flex: none; }
.info { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; font-size: 1.2rem; }
.info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.info p { margin: 0; }

/* Subscribe */
.subscribe { background: var(--green-light); padding: 56px 0; }
.subscribe h2 { font-size: 1.6rem; }
.subscribe form { display: flex; gap: 12px; max-width: 560px; margin: 18px auto 0; flex-wrap: wrap; }
.subscribe input[type="email"] { flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: 1px solid #c7e3bd; font: inherit; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #123e2a, #245c3d); color: #fff; padding: 80px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin-inline: auto; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cta-band .eyebrow { color: #d3e4bd; }
.cta-band .btn:not(.ghost) { background: #e2edcb; border-color: #e2edcb; color: #173f2b; }
.cta-band .btn:not(.ghost):hover { background: #f2f7e7; border-color: #f2f7e7; }
.cta-band .btn.ghost { border-color: rgba(255,255,255,.5); }
.cta-message { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; color: #e2edcb; font-size: .88rem; text-underline-offset: 4px; }
.policy-content { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffefa; }
.policy-content h2 { font-size: 1.35rem; margin-top: 32px; }
.policy-content .policy-updated { color: var(--muted); font-size: .85rem; }
.policy-content p:last-child { margin-bottom: 0; }
.policy-content a { overflow-wrap: anywhere; }
.error-page { max-width: 740px; padding-block: 20px; }
.error-number { font-size: clamp(5rem, 14vw, 9rem); font-family: "Roboto Slab", Georgia, serif; color: var(--green); line-height: 1; font-weight: 700; margin-bottom: 24px; }
.error-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 28px 0 0; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 440px; border: 0; }
.map-link { display: inline-block; margin-top: 14px; font-weight: 500; }

/* Footer */
.site-footer { background: #10261e; color: #cbd5ce; padding: 64px 0 24px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #cbd5e1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo-box { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.site-footer .logo-box img { height: 48px; width: auto; }
.footer-bottom { border-top: 1px solid #30463b; margin-top: 40px; padding-top: 24px; text-align: center; font-size: .8rem; color: #a4b7a9; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }

/* Floating "Apply now" button (desktop). On phones the .mobile-actions bar is used instead. */
.apply-float {
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  background: var(--admission); color: #203526; min-height: 58px; padding: 12px 26px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 26px rgba(196,139,32,.28), 0 0 0 4px rgba(255,255,255,.85); transition: transform .2s, background .2s;
}
.apply-float::after { content: "\2192"; margin-left: 8px; font-size: 1.15em; }
.apply-float:hover { text-decoration: none; transform: translateY(-3px); background: var(--admission-hover); color: #203526; }
.whatsapp-icon { width: 28px; height: 28px; flex: none; }
.card.action .ico:has(.whatsapp-icon) { background: #128c4b; }
.btn .whatsapp-icon { width: 20px; height: 20px; }
.apply-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.to-top {
  position: fixed; right: 24px; bottom: 90px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* Scroll reveal (only hides content when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .apply-float { transition: none; }
  .card:hover, .apply-float:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .school-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-story > img { min-height: 0; max-height: 380px; aspect-ratio: 16 / 10; }
  .stat:nth-child(3) { border-left: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-method { padding: 20px 16px; gap: 10px; }
  .contact-method-icon { width: 38px; height: 38px; }
  .family-panel { grid-template-columns: 1fr; gap: 24px; }
  .grid.three, .grid.four, .footer-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .grid.two { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 1280px) {
  .header-connect { position: static; }
  .connect-panel { right: 20px; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
  .menu-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav { max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav .programme-links { position: static; min-width: 0; padding: 4px 0 4px 16px; margin: 4px 10px 8px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .nav .cta a { margin-left: 0; text-align: center; }
  .site-header .container { min-height: 76px; }
  .header-motto { display: none; }
  .header-admissions { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; font-size: .68rem; font-weight: 700; line-height: 1.4; color: var(--green-deep); }
  .header-admissions span { padding: 1px 6px; border-radius: 4px; background: #fff0c4; }
  .brand img { height: 44px; }
  .header-identity { padding-block: 8px; }
  .page-hero { padding: 64px 0; }
}
@media (max-width: 820px) {
  .hero { padding: 80px 0 90px; }
  .section { padding: 52px 0; }
  .facts { margin-top: -30px; }
  .hero:not(.page-hero) { padding: 88px 0 108px; }
  .fact { padding: 12px; }
  .grid.four.facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .school-emblem { padding: 24px 16px; }
  .logo-stage { max-width: 230px; }
  .profile-fact { padding: 22px 18px; }
  .profile-fact h3 { font-size: 1.15rem; }
  .school-profile-grid { gap: 12px; }
  .profile-footer { flex-direction: column; align-items: flex-start; gap: 18px; }
  .learning-freedom { padding: 40px 0 44px; }
  .learning-art { width: 118px; margin-bottom: 20px; }
  .learning-freedom h2 { font-size: clamp(1.65rem, 7.5vw, 2rem); }
  .learning-message { font-size: .94rem; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .page-intro { padding: 32px 0; }
  .page-intro h1 { font-size: 2.1rem; line-height: 1.2; }
  .page-intro p:last-of-type { font-size: .94rem; }
  .page-intro .btn { width: 100%; }
  .about-intro .emblem { max-width: 180px; }
  .activity-story > div { padding: 24px 22px; }
  .activity-story > img { aspect-ratio: 3 / 2; }
  .policy-content { padding: 24px 20px; width: calc(100% - 32px); }
  .policy-content h2 { font-size: 1.25rem; margin-top: 26px; }
  .glance th { padding-bottom: 4px; font-size: .78rem; color: var(--muted); }
  .glance td { padding-top: 4px; }
  .error-actions .btn { width: 100%; }
  .contact-hero { padding: 32px 0 52px; }
  .contact-hero h1 { font-size: 2.1rem; line-height: 1.2; }
  .contact-hero p:last-child { font-size: .92rem; }
  .contact-method-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-method { align-items: center; padding: 18px; gap: 14px; border-radius: 14px; }
  .contact-method-icon { width: 44px; height: 44px; }
  .contact-method-action { padding-top: 3px; }
  .contact-method-content { font-size: .82rem; }
  .contact-method-content strong { font-size: .95rem; }
  form.contact-form { padding: 22px 18px; }
  .contact-form .row { gap: 20px; }
  .contact-admissions-note { padding: 22px; }
  .contact-map-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .contact-map-heading .btn { align-self: flex-start; }
  .school-family { padding-bottom: 40px; }
  .family-panel { padding: 26px 22px; gap: 22px; border-left-width: 4px; }
  .family-action { align-items: stretch; }
  .family-action .btn { width: 100%; padding-inline: 14px; font-size: .85rem; }
  .grid.three, .grid.four, .footer-grid, .form .row, .steps { grid-template-columns: 1fr; }
  .grid.four.facts-grid { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 0; }
  html { scroll-padding-top: 92px; }
  .glance th, .glance td { display: block; width: 100%; }
  .glance th { border-bottom: 0; padding-bottom: 4px; }
  .container { width: calc(100% - 32px); }
  .brand img { height: 40px; }
  .site-header .container { min-height: 84px; gap: 10px; }
  .connect-toggle { padding: 10px; font-size: .8rem; gap: 8px; }
  .connect-panel { right: 16px; padding: 20px; }
  .header-actions { gap: 8px; }
  .header-admissions { font-size: .62rem; }
  .hero:not(.page-hero) { padding: 42px 0 68px; }
  .hero h1 { font-size: clamp(2rem, 8.8vw, 2.75rem); line-height: 1.16; margin-bottom: 20px; }
  .hero p { font-size: 1rem; line-height: 1.65; }
  .hero .badge { margin-bottom: 20px; font-size: .65rem; letter-spacing: .06em; padding: 7px 12px; }
  .hero--home { background-image: linear-gradient(90deg, rgba(9,36,25,.9), rgba(9,36,25,.6)), url("../assets/images/hero-home.jpg"); }
  .page-hero { padding: 36px 0; }
  .hero .actions { gap: 10px; }
  .hero .actions .btn { width: 100%; }
  .hero .actions { margin-top: 24px; }
  .hero .btn.ghost { min-height: 48px; font-size: .88rem; }
  .facts .grid { padding: 12px; border-radius: 16px; }
  .fact { padding: 14px 6px; overflow-wrap: anywhere; }
  .fact strong { font-size: 1rem; }
  .fact span { font-size: .75rem; }
  .stats .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .split { gap: 30px; }
  .section { padding: 40px 0; }
  .grid { gap: 20px; }
  .mb-lg { margin-bottom: 32px; }
  .mb-md { margin-bottom: 24px; }
  .mt-lg { margin-top: 28px; }
  .lead { font-size: 1rem; }
  h2 { font-size: clamp(1.65rem, 6.8vw, 2rem); }
  .card.plain, form.form { padding: 22px; }
  .card .body { padding: 22px; }
  form.form { gap: 20px; }
  .form input, .form select, .form textarea { font-size: 16px; min-height: 50px; min-width: 0; max-width: 100%; }
  .form textarea { min-height: 140px; resize: vertical; }
  .form .consent input { min-height: 24px; width: 24px; height: 24px; }
  .form .consent label { padding-block: 2px; }
  .form button[type="submit"] { width: 100%; min-height: 54px; }
  .faq summary { min-height: 60px; padding: 18px; }
  .faq .answer { padding-inline: 18px; }
  .priority li { padding: 18px; gap: 12px; }
  .stats { padding: 44px 0; }
  .cta-band { padding: 44px 0; }
  .cta-band .actions { flex-direction: column; }
  .cta-band .btn { width: 100%; }
  .map iframe { height: 300px; }
  .info p, .site-footer address, .site-footer p { overflow-wrap: anywhere; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .apply-float { display: none; }
  .mobile-actions {
    position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); z-index: 70;
    display: flex; align-items: center; gap: 10px; pointer-events: none;
  }
  .mobile-actions > a { pointer-events: auto; box-shadow: 0 5px 18px rgba(16,38,30,.2), 0 0 0 3px rgba(255,254,250,.9); }
  .mobile-actions .admission-cta { min-height: 52px; padding: 12px 20px; border-radius: 999px; font-size: .9rem; gap: 6px; }
  .mobile-actions .admission-cta::after { margin-left: 0; }
  .mobile-chat { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #128c4b; }
  .mobile-chat:hover { background: #0b703c; }
  .mobile-actions .whatsapp-icon { width: 27px; height: 27px; }
  body.editing-form .mobile-actions, body.editing-form .to-top { display: none; }
  .site-header:has(.nav.open) ~ .mobile-actions { display: none; }
  .site-header:has(.header-connect[open]) ~ .mobile-actions { display: none; }
  .to-top { right: 20px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .site-footer { padding: 44px 0 calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .school-profile-grid { grid-template-columns: 1fr; }
}
