/* =====================================================================
   Isha Pre School — site styles
   Palette is taken from the school logo. Each class has its own colour:
   Play Group pink, Nursery gold, LKG green, UKG blue, Daycare red.
   ===================================================================== */

:root {
  --paper: #F8F2F2;        /* the logo's own background */
  --surface: #FFFFFF;
  --ink: #1B2B4B;
  --ink-soft: #4B5874;
  --line: #E8DCDC;

  --red: #E4513B;   --red-shade: #B23A26;   --red-tint: #FBE3DE;
  --gold: #F4B32A;  --gold-shade: #C98A0E;  --gold-tint: #FDF0CF;
  --pink: #EE8FA4;  --pink-shade: #C9637A;  --pink-tint: #FCE4EA;
  --blue: #2459A8;  --blue-shade: #173E7A;  --blue-tint: #DFE8F6;
  --green: #3A9358; --green-shade: #26693D; --green-tint: #DDEFE3;
  --sky: #7FA6DA;   --sky-shade: #4E78B1;

  --btn: #CF4430;  --btn-edge: #9E2F1E;

  --font: "Baloo Tamma 2", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;

  --wrap: 1160px;
  --gutter: 20px;
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-shade); }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 2.9rem); margin-bottom: .35em; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.nowrap { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.hand { font-family: var(--hand); font-weight: 400; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .55em 1.35em .45em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font); font-size: 1.0625rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 4px 0 var(--btn-edge); }
.btn--primary:hover { color: #fff; background: #C23C29; }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--ghost:hover { color: var(--ink); background: #fff8e8; }
.btn--ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--sm { min-height: 44px; padding-inline: 1.1em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* -------------------------------------------------------------- topbar */
.topbar { background: var(--ink); color: #fff; font-size: .95rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding-block: 6px; }
.topbar p { margin: 0; }
.topbar a { color: #FFD772; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar strong { font-weight: 700; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 242, 242, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 68px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav ul a {
  color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  padding-block: 6px; background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 0 4px;
  transition: background-size .2s ease;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { background-size: 100% 4px; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .8em; margin-bottom: .6em; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.hero__kicker [lang="kn"] { font-size: 1.5rem; color: var(--green-shade); }
.hero__place { color: var(--ink-soft); font-weight: 600; font-size: 1.0625rem; }
.hero__title { position: relative; margin: 0 0 .45em; font-size: clamp(3.4rem, 1.4rem + 7.4vw, 7.4rem); line-height: .8; padding-top: .3em; }
.hero__lede { font-size: clamp(1.15rem, 1rem + .45vw, 1.35rem); max-width: 32em; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin: 1.6em 0 2em; }

.crown {
  position: absolute; left: -.04em; top: 0;
  width: .62em; height: auto;
  transform: rotate(-14deg); transform-origin: 50% 100%;
  animation: crown-in .7s cubic-bezier(.34, 1.56, .64, 1) 1.45s both;
}

.facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; }
.facts div { padding: 2px 22px 2px 0; margin-right: 22px; border-right: 2px dashed var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; font-size: 1.15rem; }

.hero__photos { position: relative; padding-bottom: 40px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--main { width: 84%; margin-left: auto; aspect-ratio: 759 / 820; border-radius: 40px 40px 40px 140px; overflow: hidden; }
.photo--small {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4;
  border: 8px solid var(--surface); border-radius: 26px; overflow: hidden;
  transform: rotate(-5deg); box-shadow: 0 18px 40px -18px rgba(27, 43, 75, .45);
}
.hero__note { position: absolute; right: 2%; bottom: -6px; margin: 0; font-size: 1.25rem; color: var(--ink-soft); transform: rotate(-3deg); }

.doodle { position: absolute; pointer-events: none; }
.doodle--cloud { width: 150px; left: 47%; top: 22px; color: var(--sky); opacity: .9; }

/* ------------------------------------------- magnet letters (signature) */
.magnets { display: block; }
.magnets .word { display: block; white-space: nowrap; }
.magnets .m {
  --r: 0deg; --y: 0em; --n: 0; --w: 0ms;
  display: inline-block;
  margin-right: .015em;
  color: var(--c);
  text-shadow: 0 .045em 0 var(--cs), 0 .1em .12em rgba(27, 43, 75, .16);
  transform: translateY(var(--y)) rotate(var(--r));
  animation: magnet-drop .6s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--w) + var(--n) * 55ms);
}
.m.c0 { --c: var(--red);   --cs: var(--red-shade); }
.m.c1 { --c: var(--gold);  --cs: var(--gold-shade); }
.m.c2 { --c: var(--pink);  --cs: var(--pink-shade); }
.m.c3 { --c: var(--blue);  --cs: var(--blue-shade); }
.m.c4 { --c: var(--green); --cs: var(--green-shade); }
.m.c5 { --c: var(--sky);   --cs: var(--sky-shade); }
.magnets .m:nth-child(4n+1) { --r: -5deg; }
.magnets .m:nth-child(4n+2) { --r: 3deg; --y: -.03em; }
.magnets .m:nth-child(4n+3) { --r: -2deg; --y: .02em; }
.magnets .m:nth-child(4n)   { --r: 5deg; --y: -.02em; }
.magnets .m:nth-child(1) { --n: 1; } .magnets .m:nth-child(2) { --n: 2; } .magnets .m:nth-child(3) { --n: 3; }
.magnets .m:nth-child(4) { --n: 4; } .magnets .m:nth-child(5) { --n: 5; } .magnets .m:nth-child(6) { --n: 6; }
.magnets .m:nth-child(7) { --n: 7; } .magnets .m:nth-child(8) { --n: 8; } .magnets .m:nth-child(9) { --n: 9; }
.magnets .word:nth-child(2) .m { --w: 420ms; }
.magnets .word:nth-child(3) .m { --w: 760ms; }
.magnets--hero .m:nth-child(1) { margin-left: 0; }

@keyframes magnet-drop {
  from { opacity: 0; transform: translateY(-.55em) rotate(calc(var(--r) - 28deg)); }
  to   { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
}
@keyframes crown-in {
  from { opacity: 0; transform: translateY(-.4em) rotate(-40deg); }
  to   { opacity: 1; transform: rotate(-14deg); }
}
@keyframes wiggle {
  0%, 100% { transform: translateY(var(--y)) rotate(var(--r)); }
  30% { transform: translateY(calc(var(--y) - .06em)) rotate(calc(var(--r) - 9deg)); }
  65% { transform: translateY(var(--y)) rotate(calc(var(--r) + 7deg)); }
}
@media (hover: hover) and (pointer: fine) {
  .magnets--hero .m:hover { animation: wiggle .45s ease-in-out; }
}

/* ------------------------------------------------------------- sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; margin: 0; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------- about */
.about { background: var(--surface); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__photo img { border-radius: var(--radius-lg); aspect-ratio: 5 / 3.6; object-fit: cover; width: 100%; }
.about__photo figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 1.15rem; }
.about__text { max-width: 34em; }
.about__text > p { font-size: 1.15rem; }
.about__text .signature { font-size: 2rem; line-height: 1.1; margin: .2em 0 1.4em; color: var(--ink); }
.about__text .signature span { display: block; font-family: var(--font); font-size: 1rem; color: var(--ink-soft); margin-top: .35em; }
.about__subhead { font-size: 1.2rem; margin-bottom: .6em; }
.seen li { position: relative; padding-left: 1.6em; margin-bottom: .35em; }
.seen li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: .7em; height: .7em; border-radius: 50%;
  background: var(--dot, var(--ink));
}
.dot-red { --dot: var(--red); } .dot-gold { --dot: var(--gold); } .dot-green { --dot: var(--green); }
.dot-blue { --dot: var(--blue); } .dot-pink { --dot: var(--pink); }

/* ------------------------------------------------------------- classes */
.tint-pink  { --tile: var(--pink);  --tile-shade: var(--pink-shade);  --tile-tint: var(--pink-tint); }
.tint-gold  { --tile: var(--gold);  --tile-shade: var(--gold-shade);  --tile-tint: var(--gold-tint); }
.tint-green { --tile: var(--green); --tile-shade: var(--green-shade); --tile-tint: var(--green-tint); }
.tint-blue  { --tile: var(--blue);  --tile-shade: var(--blue-shade);  --tile-tint: var(--blue-tint); }
.tint-red   { --tile: var(--red);   --tile-shade: var(--red-shade);   --tile-tint: var(--red-tint); }

.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.class-tile { background: var(--tile-tint); border-radius: var(--radius-lg); padding: 26px 24px 28px; }
.class-tile h3 { font-size: 1.6rem; margin-bottom: .35em; }
.class-tile p { margin: 0; color: var(--ink); }
.class-tile__age { display: flex; align-items: flex-end; gap: .35em; margin-bottom: 14px !important; }
.magnets--age { display: inline-block; font-size: 4.2rem; font-weight: 800; line-height: .9; }
.magnets--age .word { display: inline; }
.magnets--age .m { --c: var(--tile); --cs: var(--tile-shade); animation: none; }
.class-tile__years { font-weight: 700; color: var(--tile-shade); padding-bottom: .35em; }

.daycare {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 18px; padding: 26px 30px; border-radius: var(--radius-lg); background: var(--tile-tint);
}
.daycare h3 { font-size: 1.6rem; margin-bottom: .25em; }
.daycare p { margin: 0; max-width: 40em; }

/* ----------------------------------------------------------------- day */
.day { background: var(--surface); }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 18px 0 0; }
.timeline li::before {
  content: ""; display: block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--gold); margin: 34px 0 18px; position: relative; z-index: 1;
}
.timeline li::after {
  content: ""; position: absolute; left: 11px; right: 0; top: 44px; border-top: 3px dashed var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li:nth-child(5)::after { border-top-style: dotted; border-top-color: var(--red); }
.timeline li:nth-child(1)::before, .timeline li:nth-child(5)::before { border-color: var(--blue); }
.timeline__daycare::before { border-color: var(--red) !important; }
.timeline__time { position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.timeline__daycare .timeline__time { color: var(--red); }
.timeline h3 { font-size: 1.2rem; margin-bottom: .3em; }
.timeline p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------- gallery */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; grid-auto-flow: dense; }
.photo-grid li.is-wide { grid-column: span 2; }
.photo-grid__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.photo-grid__btn img { width: 100%; height: clamp(220px, 22vw, 310px); object-fit: cover; object-position: 50% 22%; transition: transform .35s ease; }
.photo-grid__btn:hover img { transform: scale(1.035); }
.photo-grid figcaption { margin-top: 6px; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.3; }
.empty { padding: 32px; border: 2px dashed var(--line); border-radius: var(--radius); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0; overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 30, 54, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 10px; padding: 64px 72px 28px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; font-size: 1.35rem; text-align: center; }
.lightbox__btn {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox[open] figure { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- admissions */
.admissions__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.admissions__info > p { font-size: 1.2rem; color: var(--ink-soft); }
.steps { counter-reset: step; margin: 28px 0 32px; }
.steps li { position: relative; counter-increment: step; padding: 0 0 22px 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--blue);
  box-shadow: 0 3px 0 var(--blue-shade); padding-top: 3px;
}
.steps li:nth-child(2)::before { background: var(--green); box-shadow: 0 3px 0 var(--green-shade); }
.steps li:nth-child(3)::before { background: var(--gold); box-shadow: 0 3px 0 var(--gold-shade); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--red); box-shadow: 0 3px 0 var(--red-shade); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; border-left: 3px dashed var(--line); }
.steps h3 { font-size: 1.25rem; margin-bottom: .15em; }
.steps p { margin: 0; color: var(--ink-soft); }

.ages { width: 100%; border-collapse: collapse; margin-bottom: 28px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.ages caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding-bottom: 8px; }
.ages th, .ages td { text-align: left; padding: 12px 18px; border-bottom: 2px solid var(--paper); }
.ages tr:last-child th, .ages tr:last-child td { border-bottom: 0; }
.ages th { font-weight: 700; }
.ages td { color: var(--ink-soft); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .6em; vertical-align: .05em; }
.dot-pink.dot { background: var(--pink); } .dot-gold.dot { background: var(--gold); }
.dot-green.dot { background: var(--green); } .dot-blue.dot { background: var(--blue); }

.fees { padding: 20px 22px; border-radius: var(--radius); border: 2px dashed var(--gold); }
.fees h3 { font-size: 1.2rem; margin-bottom: .2em; }
.fees p { margin: 0; }
.fees__links { margin-top: .5em !important; display: flex; gap: 20px; font-weight: 700; }

.form-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--gold);
}
.form-card__title { font-size: 1.6rem; margin-bottom: 18px; }
.form-card__done h3 { font-size: 1.6rem; margin-bottom: .4em; color: var(--green-shade); }
.form-card__done:focus { outline: none; }
.field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #FCF9F9; border: 2px solid #DCCFCF; border-radius: var(--radius-sm);
  padding: 12px 14px 9px; min-height: 52px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 89, 168, .15); }
.field__error { color: var(--red-shade); font-weight: 600; font-size: .95rem; margin: 4px 0 0; min-height: 0; }
.field__error:empty { display: none; }
.has-error input { border-color: var(--red); }
.age-hint { margin: -6px 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--green-tint); color: var(--green-shade); font-weight: 600; font-size: 1rem; }
.age-hint:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 8px 16px 6px; border-radius: 999px; border: 2px solid #DCCFCF;
  font-weight: 600; font-size: 1rem; background: #FCF9F9; transition: background-color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--chip, var(--ink)); border-color: var(--chip-edge, var(--ink)); color: var(--chip-ink, #fff); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip--playgroup { --chip: var(--pink); --chip-edge: var(--pink-shade); --chip-ink: var(--ink); }
.chip--nursery { --chip: var(--gold); --chip-edge: var(--gold-shade); --chip-ink: var(--ink); }
.chip--lkg { --chip: var(--green); --chip-edge: var(--green-shade); }
.chip--ukg { --chip: var(--blue); --chip-edge: var(--blue-shade); }
.chip--daycare { --chip: var(--red); --chip-edge: var(--red-shade); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-shade); font-weight: 600; margin: 0 0 12px; }
.form-error:empty { display: none; }
.form-note { font-size: .95rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ----------------------------------------------------------------- faq */
.faq { background: var(--surface); }
.faq__wrap { max-width: 820px; }
.faq h2 { margin-bottom: .7em; }
.faq details { border-bottom: 2px solid var(--paper); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0 14px; font-weight: 700; font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-shade); font-size: 1.6rem; line-height: 1; padding-top: 4px;
}
.faq details[open] summary::after { content: "–"; background: var(--gold); color: var(--ink); }
.faq details p { color: var(--ink-soft); padding-bottom: 8px; max-width: 42em; }

/* ------------------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact address { font-size: 1.2rem; margin: 8px 0 20px; }
.contact-list li { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; padding: 8px 0; border-bottom: 2px dashed var(--line); }
.contact-list li span { color: var(--ink-soft); font-weight: 600; }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 32px; }
.front-photo img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; width: 100%; }
.front-photo figcaption { margin-top: 8px; font-size: 1.15rem; color: var(--ink-soft); }
.map { min-height: 420px; max-height: 760px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--sky); background: var(--blue-tint); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #E8ECF5; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFD772; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; align-items: start; }
.site-footer__brand img { width: 150px; background: var(--paper); border-radius: 22px; padding: 12px 14px; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; font-size: 1.05rem; }
.site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.site-footer nav a { text-decoration: none; font-weight: 600; }
.site-footer__contact p { margin: 0 0 12px; }
.site-footer__base { margin-top: 40px; font-size: .95rem; color: #B9C2D6; }
.site-footer__base p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }

/* ------------------------------------------------- mobile action bar */
.action-bar { display: none; }

/* ========================================================== responsive */
@media (max-width: 1060px) {
  .site-nav ul { gap: 16px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .timeline li:nth-child(3)::after { display: none; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px;
    border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink);
    font-weight: 700; cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
    display: block; width: 18px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative;
  }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 0; transform: rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--line);
    padding: 8px var(--gutter) 22px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; margin-bottom: 14px; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.25rem; border-bottom: 2px dashed var(--line); background: none; }

  .hero__grid, .about__grid, .admissions__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__photos { max-width: 560px; }
  .doodle--cloud { left: auto; right: 6%; top: 10px; width: 110px; }
  .doodle--squiggle { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; padding-bottom: 72px; }
  .topbar { font-size: .875rem; }
  .topbar__in { justify-content: center; text-align: center; }
  .topbar__phone { display: none; }
  .site-header__in { min-height: 72px; }
  .brand img { height: 56px; }
  .hero__kicker { font-size: 1.05rem; }
  .hero__title { font-size: clamp(3.1rem, 17vw, 4.6rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts div { padding-right: 14px; margin-right: 14px; }
  .facts dd { font-size: 1.02rem; }
  .class-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .class-tile { padding: 20px 16px 22px; }
  .class-tile h3 { font-size: 1.35rem; }
  .class-tile p { font-size: 1rem; }
  .magnets--age { font-size: 3.2rem; }
  .daycare { padding: 22px 20px; }
  .daycare .btn { width: 100%; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline li { padding: 0 0 22px 46px; }
  .timeline li::before { position: absolute; left: 0; top: 2px; margin: 0; }
  .timeline li::after { left: 9.5px; right: auto; top: 26px; bottom: 0; border-top: 0; border-left: 3px dashed var(--line); display: block !important; }
  .timeline li:nth-child(5)::after { border-left: 3px dotted var(--red); border-top: 0; }
  .timeline li:last-child::after { display: none !important; }
  .timeline__time { position: static; display: block; font-size: 1rem; }
  .timeline__time:empty { display: none; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .photo-grid__btn img { height: 200px; }
  .photo-grid figcaption { font-size: .95rem; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { box-shadow: 5px 5px 0 var(--gold); }
  .doodle--cloud { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .contact-list li span { font-size: .9rem; }
  .lightbox figure { padding: 70px 12px 90px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); } .lightbox__next { right: calc(50% - 64px); }
  .map, .map iframe { min-height: 320px; }
  .site-footer__grid { grid-template-columns: 1fr; }

  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 2px solid var(--line);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
    border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink); border: 2px solid var(--ink);
  }
  .action-bar .action-bar__main { background: var(--btn); border-color: var(--btn); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; }
.notfound img { width: 200px; margin-bottom: 12px; }
.notfound h1 { font-size: clamp(2rem, 6vw, 3rem); }
.notfound p { color: var(--ink-soft); max-width: 30em; }
