/* ==========================================================================
   Nanny Kids Preschool — site styles
   Palette and layout follow the client's reference video (deep green, cream,
   mint, gold); the playful layer (stickers, waves, toy blocks, confetti) is added on top.
   ========================================================================== */

/* ---- fonts (self-hosted) ------------------------------------------------ */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Tamil"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/noto-sans-tamil-tamil-wght-normal.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }

/* ---- tokens --------------------------------------------------------------- */
:root {
  --green-900: #163d2d;
  --green-700: #206147;
  --green-600: #2d7a5b;
  --mint: #e4f2e9;
  --mint-2: #d2e9da;
  --cream: #fdf9ef;
  --paper: #ffffff;
  --ink: #1d2b25;
  --muted: #586861;
  --line: #e7e1cf;

  --sun: #f2b63c;   --sun-soft: #fff1cc;   --sun-ink: #6b4700;
  --coral: #ef6a55; --coral-soft: #ffe2dc; --coral-ink: #a63421;
  --sky: #4aa3df;   --sky-soft: #dcf0fc;   --sky-ink: #17608f;
  --leaf: #3fb68b;  --leaf-soft: #d8f4e8;  --leaf-ink: #176b4b;
  --grape: #8e6bd1; --grape-soft: #ece3fb; --grape-ink: #55349a;
  --coral-text: #b23823;
  --wa: #35e06f;

  --font-head: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, "Noto Sans Tamil", "Nirmala UI", sans-serif;
  --radius: 28px;
  --shadow-sm: 0 6px 18px rgba(22, 61, 45, 0.08);
  --shadow: 0 14px 36px rgba(22, 61, 45, 0.14);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-tone="sun"]   { --tone: var(--sun);   --tone-soft: var(--sun-soft);   --tone-ink: var(--sun-ink); }
[data-tone="coral"] { --tone: var(--coral); --tone-soft: var(--coral-soft); --tone-ink: var(--coral-ink); }
[data-tone="sky"]   { --tone: var(--sky);   --tone-soft: var(--sky-soft);   --tone-ink: var(--sky-ink); }
[data-tone="leaf"]  { --tone: var(--leaf);  --tone-soft: var(--leaf-soft);  --tone-ink: var(--leaf-ink); }
[data-tone="grape"] { --tone: var(--grape); --tone-soft: var(--grape-soft); --tone-ink: var(--grape-ink); }

/* ---- base ----------------------------------------------------------------- */
*, *::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-body); font-size: 1.05rem; line-height: 1.65; color: var(--ink);
  background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); font-weight: 600; letter-spacing: 0.1px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.lead.center { margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -0.2em; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 200; transition: top 0.2s; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- buttons: chunky "toy" buttons ---------------------------------------- */
.btn {
  --btn-bg: var(--green-700); --btn-fg: #fff; --btn-edge: #123f2d; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.1; text-decoration: none; text-align: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 4px 0 var(--btn-edge), 0 10px 18px rgba(22, 61, 45, 0.16);
  transition: transform 0.18s var(--pop), box-shadow 0.18s ease, background 0.2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 7px 0 var(--btn-edge), 0 14px 22px rgba(22, 61, 45, 0.18); color: var(--btn-fg); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: var(--green-700); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--green-700); --btn-border: var(--green-700); --btn-edge: rgba(32, 97, 71, 0.35); }
.btn--outline:hover { --btn-bg: var(--mint); color: var(--green-900); }
.btn--gold { --btn-bg: var(--sun); --btn-fg: #3a2800; --btn-edge: #b7821a; }
.btn--gold:hover { color: #3a2800; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.85); --btn-edge: rgba(0, 0, 0, 0.25); box-shadow: 0 4px 0 var(--btn-edge); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); }
.btn--whatsapp { --btn-bg: var(--wa); --btn-fg: #06361b; --btn-edge: #1b9f4a; }
.btn--whatsapp:hover { color: #06361b; }
.btn--sm { padding: 10px 20px; font-size: 0.98rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--green-700); text-decoration: underline; cursor: pointer; font-weight: 700; }
.link-btn--danger { color: #b3261e; }

/* ---- announcement ticker ---------------------------------------------------- */
.ticker { background: var(--green-700); color: #fff; overflow: hidden; font-weight: 800; font-size: 0.93rem; white-space: nowrap; }
.ticker__track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item { padding: 8px 28px; display: inline-flex; gap: 8px; align-items: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(22, 61, 45, 0.15); overflow: hidden; transition: transform 0.4s var(--pop); }
.brand__mark img { width: 44px; height: 44px; object-fit: contain; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.brand__text small { font-size: 0.74rem; color: var(--muted); font-weight: 700; letter-spacing: 0.2px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a, .nav-cta { white-space: nowrap; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 0.95rem; color: var(--ink); transition: background 0.2s, transform 0.2s var(--pop); }
.site-nav ul a:hover { background: var(--sun-soft); transform: translateY(-2px) rotate(-2deg); }
.site-nav ul a.is-active { background: var(--mint); color: var(--green-700); }
.nav-toggle { display: none; }

.progress { position: relative; height: 5px; background: var(--mint-2); }
.progress__bar { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--leaf), var(--sun), var(--coral)); border-radius: 0 6px 6px 0; }
.progress__sprout { position: absolute; top: -17px; left: clamp(12px, calc(var(--p, 0) * 100%), calc(100% - 12px)); transform: translateX(-50%); font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15)); }

/* ---- sections, waves, headings ----------------------------------------------------- */
.section { position: relative; padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--cream { background-color: var(--cream); background-image: radial-gradient(rgba(32, 97, 71, 0.07) 1.5px, transparent 1.7px); background-size: 28px 28px; }
.section--mint { background: var(--mint); }
.section--wavy { padding-top: clamp(84px, 10vw, 128px); padding-bottom: clamp(84px, 10vw, 128px); }
.section--wavy::before, .section--wavy::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(30px, 4.6vw, 64px); background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.section--wavy::before { top: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fdf9ef' d='M0,0 L1440,0 L1440,42 C1280,12 1120,72 960,40 C800,8 640,76 480,38 C320,0 160,85 0,40 Z'/%3E%3C/svg%3E"); }
.section--wavy::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fdf9ef' d='M0,40 C160,85 320,0 480,38 C640,76 800,8 960,40 C1120,72 1280,12 1440,42 L1440,80 L0,80 Z'/%3E%3C/svg%3E"); }
.wave { display: block; width: 100%; height: clamp(30px, 5vw, 70px); }
.wave--cream { fill: var(--cream); position: absolute; left: 0; bottom: -1px; }
.wave--footer { fill: var(--cream); position: absolute; left: 0; top: -1px; height: clamp(24px, 4vw, 50px); }

.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-text); margin: 0 0 10px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 600; margin-bottom: 0.35em; position: relative; display: inline-block; }
.section-title::after { content: ""; display: block; height: 12px; margin: 8px auto 0; width: 120px; max-width: 60%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 6c8-8 14-8 22 0s14 8 22 0 14-8 22 0 14 8 22 0 14-8 22 0' fill='none' stroke='%23f2b63c' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.section-title--left { display: block; }
.section-title--left::after { margin-left: 0; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 0 auto; max-width: 62ch; }
.subhead { text-align: center; font-size: 1.5rem; margin: 40px 0 20px; color: var(--green-700); }

/* ---- floating decorations ------------------------------------------------------------ */
.float { position: absolute; pointer-events: none; user-select: none; animation: bob 6s ease-in-out infinite; }
.float--cloud { width: 120px; height: 75px; fill: #fff; opacity: 0.9; animation-name: drift; animation-duration: 22s; }
.float--star { width: 34px; height: 34px; fill: var(--sun); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 8deg)); } }
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(40px); } }

/* ---- hero --------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 120px); background: radial-gradient(1100px 500px at 85% 10%, #fff7da 0%, transparent 60%), linear-gradient(180deg, #e0f1e8 0%, #eaf5ee 70%, #f3f8ee 100%); }
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__cloud1 { top: 8%; left: 3%; }
.hero__cloud2 { top: 62%; right: 4%; width: 90px; height: 56px; animation-delay: -8s; }
.hero__star1 { top: 14%; left: 47%; --r: 10deg; animation-delay: -1s; }
.hero__star2 { bottom: 20%; left: 5%; width: 26px; height: 26px; fill: var(--coral); animation-delay: -3s; }
.hero__ball { top: 70%; left: 44%; font-size: 1.8rem; animation-delay: -2s; }
.hero__abc { top: 6%; right: 6%; font-size: 2rem; --r: -10deg; animation-delay: -4s; }
.hero__rainbow { bottom: 12%; left: 36%; font-size: 2.2rem; animation-delay: -5s; }
.hero__brand { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(10px, 2.4vw, 28px); }
/* The logo file has a white background, so it is shown as a rounded white card rather than a bare square. */
.hero__logo { display: block; width: auto; max-width: min(70vw, 240px); height: clamp(132px, 17vw, 200px); object-fit: contain; background: #fff; border: 6px solid #fff; border-radius: 30px; box-shadow: var(--shadow); transition: transform 0.5s var(--pop); }
.hero__logo:hover { transform: rotate(-3deg) scale(1.04); }
/* The tagline follows a smile-shaped curve (an SVG text path), so it scales perfectly at every screen width. */
.hero__motto { display: block; width: min(100%, 640px); height: auto; margin-top: -2px; overflow: visible; }
.hero__motto text { font-family: var(--font-head); font-weight: 600; fill: var(--green-700); letter-spacing: 0.01em; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.7rem, 6.4vw, 4.7rem); font-weight: 700; line-height: 1.04; margin-bottom: 0.3em; }
.hero__line { display: inline-block; }
.hero__line--accent { background: linear-gradient(transparent 62%, rgba(242, 182, 60, 0.6) 62%, rgba(242, 182, 60, 0.6) 92%, transparent 92%); padding: 0 6px; margin-left: -6px; animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
.hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.hero__admissions { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; background: var(--sun-soft); color: var(--sun-ink); border: 2px dashed var(--sun); padding: 6px 16px; border-radius: 999px; margin-bottom: 10px; transform: rotate(-1.5deg); }
.hero__programs { font-weight: 800; color: var(--green-700); background: rgba(255, 255, 255, 0.7); display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 0.92rem; margin-left: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 14px; }
.hero__actions--center { justify-content: center; }
.hero__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; margin: 0; }
.hero__loc .ico { color: var(--coral); }
.hero__art { position: relative; padding: 18px; }
.hero__photo { margin: 0; border-radius: 38px; overflow: hidden; transform: rotate(-2.2deg); border: 8px solid #fff; box-shadow: 14px 14px 0 var(--sun), 0 30px 60px rgba(22, 61, 45, 0.22); transition: transform 0.5s var(--pop); }
.hero__photo:hover { transform: rotate(0) scale(1.02); }
.hero__photo img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.starburst { position: absolute; top: -14px; right: -6px; width: 128px; height: 128px; display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-size: 0.95rem; line-height: 1.05; color: #fff; background: var(--coral); clip-path: polygon(50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%, 100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%); animation: spin 18s linear infinite; z-index: 3; }
.starburst span { transform: rotate(-12deg); animation: spin-rev 18s linear infinite; font-weight: 600; }
.starburst b { font-size: 1.5rem; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-372deg); } }
.sticker { position: absolute; z-index: 3; background: #fff; border: 3px solid var(--tone, var(--sun)); color: var(--tone-ink, var(--ink)); font-family: var(--font-head); font-weight: 600; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; animation: bob 5.5s ease-in-out infinite; }
.sticker--a { --tone: var(--coral); --tone-ink: var(--coral-ink); --r: -6deg; left: -6px; top: 14%; }
.sticker--b { --tone: var(--sky); --tone-ink: var(--sky-ink); --r: 5deg; right: -10px; top: 52%; animation-delay: -1.5s; }
.sticker--c { --tone: var(--leaf); --tone-ink: var(--leaf-ink); --r: 4deg; left: 6%; bottom: -4px; animation-delay: -3s; }
.sticker--d { --tone: var(--grape); --tone-ink: var(--grape-ink); --r: -5deg; right: 14%; bottom: -12px; animation-delay: -2s; }
.sticker--e { --tone: var(--sun); --tone-ink: var(--sun-ink); --r: 3deg; left: 38%; top: -14px; animation-delay: -4s; }
.sticker--f { --tone: var(--coral); --tone-ink: var(--coral-ink); --r: -4deg; left: -10px; top: 54%; animation-delay: -0.8s; }

/* Two sets of stickers take turns around the photo: one is showing, the other waits invisibly (site.js swaps them every ~2 seconds). */
.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sticker-set { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.sticker-set.is-active { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.sticker-set.is-active .sticker { animation: sticker-flash 0.55s var(--pop) backwards, bob 5.5s ease-in-out 0.55s infinite; }
.sticker-set.is-active .sticker--b { animation-delay: 0.08s, -1.5s; } .sticker-set.is-active .sticker--c { animation-delay: 0.16s, -3s; }
.sticker-set.is-active .sticker--d { animation-delay: 0.24s, -2s; } .sticker-set.is-active .sticker--e { animation-delay: 0.32s, -4s; } .sticker-set.is-active .sticker--f { animation-delay: 0.4s, -0.8s; }
@keyframes sticker-flash { 0% { opacity: 0; transform: scale(0.3) rotate(var(--r, 0deg)); } 60% { opacity: 1; transform: scale(1.2) rotate(var(--r, 0deg)); } 100% { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }

/* ---- inner-page banner ----------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 80px) 0 clamp(70px, 8vw, 104px); background: radial-gradient(800px 320px at 20% 0%, #fff6d6 0%, transparent 60%), linear-gradient(180deg, #dff0e7, #eaf5ee); }
.page-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.page-hero__deco .float { font-size: 2rem; }
.float--a { top: 18%; left: 8%; --r: -12deg; }
.float--b { top: 30%; right: 9%; --r: 10deg; animation-delay: -2s; }
.float--c { bottom: 24%; left: 22%; animation-delay: -4s; font-size: 1.6rem; }
.page-hero .float--cloud { top: 12%; right: 24%; width: 90px; height: 56px; }
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 700; margin-bottom: 0.2em; }
.page-hero__sub { font-size: 1.2rem; color: var(--muted); margin: 0; }

/* ---- cards ---------------------------------------------------------------------------------------- */
.icon-tile { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--tone-soft, var(--mint)); font-size: 1.7rem; margin-bottom: 12px; transition: transform 0.4s var(--pop); }
.why-card:hover .icon-tile, .approach-card:hover .icon-tile, .vm-card:hover .icon-tile, .avail-card:hover .icon-tile, .info-card:hover .icon-tile { transform: rotate(-12deg) scale(1.18); }

.approach-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
/* Card rows that stay centred whatever the number of cards: five reasons, or a school with five or more programs. */
.why-grid, .pcard-grid, .avail-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); --gap: 22px; --cols: 3; }
.why-grid > *, .pcard-grid > *, .avail-grid > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.pcard-grid { --cols: 4; }
.avail-grid { --cols: 4; --gap: 20px; }
.why-card, .approach-card, .vm-card { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 2px solid transparent; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--pop), border-color 0.2s, box-shadow 0.3s; }
.why-card:nth-child(odd) { transform: rotate(-1deg); }
.why-card:nth-child(even) { transform: rotate(1deg); }
.why-card:hover, .approach-card:hover, .vm-card:hover { transform: translateY(-6px) rotate(0); border-color: var(--tone); box-shadow: var(--shadow); }
.why-card h3, .approach-card h3, .vm-card h2 { font-size: 1.3rem; margin-bottom: 0.3em; }
.why-card p, .approach-card p, .vm-card p { color: var(--muted); margin: 0; }
.approach-card { border-top: 6px solid var(--tone); }

.chip { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: var(--tone-soft, var(--mint)); color: var(--tone-ink, var(--green-700)); font-weight: 800; font-size: 0.85rem; line-height: 1.3; }

.pcard-grid { margin-bottom: 40px; }
.pcard { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 3px solid transparent; display: flex; flex-direction: column; transition: transform 0.35s var(--pop), box-shadow 0.3s, border-color 0.2s; }
.pcard:hover, .pcard:focus-within { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--tone); }
.pcard__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-bottom: 6px solid var(--tone); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .pcard__media img { transform: scale(1.08) rotate(1deg); }
.pcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.pcard__tag { color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.pcard__link { margin-top: auto; font-weight: 800; color: var(--tone-ink); text-decoration: none; display: block; }
.pcard__link::after { content: ""; position: absolute; inset: 0; }
.pcard__link .ico { display: inline-block; margin-left: 4px; vertical-align: -0.15em; transition: transform 0.25s var(--pop); }
.pcard:hover .pcard__link .ico { transform: translateX(6px); }

/* ---- split layouts, polaroids, lists ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split--reverse { grid-template-columns: 1fr 1fr; }
.split--form { grid-template-columns: 1fr 1.05fr; }
.split__text p { color: var(--muted); }
.polaroid { position: relative; margin: 0; background: #fff; padding: 14px 14px 18px; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.5s var(--pop); }
.polaroid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.polaroid figcaption { font-family: var(--font-head); text-align: center; padding-top: 12px; color: var(--green-700); font-weight: 500; font-size: 1.05rem; }
.polaroid--tilt-left { transform: rotate(-2.5deg); }
.polaroid--tilt-right { transform: rotate(2.5deg); }
.polaroid:hover { transform: rotate(0) scale(1.02); }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(242, 182, 60, 0.55); border-left: 2px dashed rgba(255, 255, 255, 0.6); border-right: 2px dashed rgba(255, 255, 255, 0.6); z-index: 2; }
.checklist { display: grid; gap: 10px; margin: 18px 0 26px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.checklist .ico { color: #fff; background: var(--green-700); border-radius: 50%; padding: 3px; width: 1.4em; height: 1.4em; margin-top: 2px; }
.center .btn, p.center .btn { margin-inline: auto; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { padding: 32px; }
.vm-card:nth-child(1) { transform: rotate(-1deg); } .vm-card:nth-child(2) { transform: rotate(1deg); }
.facts { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 20px; background: var(--sun-soft); border-radius: 20px; }
.facts dt { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sun-ink); }
.facts dd { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.motto { position: relative; text-align: center; background: var(--green-700); color: #fff; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 40px; overflow: hidden; box-shadow: 0 8px 0 var(--green-900); }
.motto::before, .motto::after { content: "✨"; position: absolute; font-size: 2rem; animation: bob 5s ease-in-out infinite; }
.motto::before { top: 16%; left: 8%; } .motto::after { bottom: 14%; right: 9%; animation-delay: -2s; }
.motto__seed { display: block; font-size: 2.4rem; animation: sway 3s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.motto__label { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: #ffd36b; margin: 6px 0 0; }
.motto__text { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 600; margin: 4px 0 0; }

/* ---- programs page ---------------------------------------------------------------------------------------- */
.program { position: relative; padding: clamp(36px, 5vw, 64px) 0; }
.program:nth-child(even) { background: var(--tone-soft); }
.program__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.program--flip .program__photo { order: 2; }
.program__photo { position: relative; margin: 0; }
.program__photo img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: 34px; border: 8px solid #fff; box-shadow: 12px 12px 0 var(--tone), var(--shadow); transform: rotate(-1.5deg); transition: transform 0.5s var(--pop); }
.program--flip .program__photo img { transform: rotate(1.5deg); box-shadow: -12px 12px 0 var(--tone), var(--shadow); }
.program__photo:hover img { transform: rotate(0) scale(1.02); }
.program__badge { position: absolute; top: -16px; left: -10px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--tone); color: #fff; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; border: 4px solid #fff; box-shadow: var(--shadow-sm); transform: rotate(-10deg); }
.program__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.program__num { color: var(--tone); }
.program__desc { color: var(--muted); font-size: 1.12rem; }
.program .checklist .ico { background: var(--tone); }
.program .chip { font-size: 0.92rem; padding: 6px 16px; }
.program:nth-child(even) .chip { background: #fff; }

/* ---- gallery ------------------------------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.chips[hidden] { display: none; }
.chip-btn { cursor: pointer; border: 2px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: 0.98rem; color: var(--ink); transition: transform 0.2s var(--pop), background 0.2s, color 0.2s, border-color 0.2s; }
.chip-btn:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--tone, var(--green-700)); }
.chip-btn.is-active { background: var(--tone, var(--green-700)); border-color: var(--tone, var(--green-700)); color: #fff; transform: scale(1.06); }
.chip-btn[data-tone="sun"].is-active { color: #3a2800; }
.gallery-count { text-align: center; color: var(--muted); font-weight: 700; margin-bottom: 6px; min-height: 1.6em; }
.gallery-desc { text-align: center; font-family: var(--font-head); font-size: 1.25rem; color: var(--green-700); margin: 0 0 22px; animation: pop-in 0.4s var(--pop); }
.gallery-desc[hidden] { display: none; }
.cat-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 0 auto 34px; }
.cat-legend[hidden] { display: none; }
.cat-legend li { display: flex; gap: 12px; align-items: center; background: var(--tone-soft); border-radius: 18px; padding: 12px 16px; font-size: 0.92rem; line-height: 1.35; color: var(--ink); }
.cat-legend strong { font-family: var(--font-head); font-weight: 600; color: var(--tone-ink); font-size: 1rem; }
.cat-legend__icon { font-size: 1.6rem; flex: none; }
.gallery-grid--teaser { margin-bottom: 44px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.shot { background: #fff; padding: 10px 10px 12px; border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--pop), box-shadow 0.3s, opacity 0.3s; }
.shot:nth-child(4n + 1) { transform: rotate(-1.4deg); } .shot:nth-child(4n + 2) { transform: rotate(1.1deg); }
.shot:nth-child(4n + 3) { transform: rotate(-0.8deg); } .shot:nth-child(4n) { transform: rotate(1.5deg); }
.shot:hover { transform: rotate(0) translateY(-6px) scale(1.04); box-shadow: var(--shadow); z-index: 2; position: relative; }
.shot[hidden] { display: none; }
.shot.is-entering { animation: pop-in 0.45s var(--pop) backwards; }
.shot__link { display: block; overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.shot__link img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover .shot__link img { transform: scale(1.06); }
.shot__caption { display: block; text-align: center; font-family: var(--font-head); font-size: 0.95rem; color: var(--muted); padding-top: 10px; }
.disclaimer { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 32px 0 0; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(14, 30, 23, 0.92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; animation: pop-in 0.3s var(--pop); }
.lightbox figure { margin: 0; text-align: center; max-width: min(1100px, 92vw); }
.lightbox img { max-height: 78vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { font-family: var(--font-head); font-size: 1.25rem; margin-top: 14px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: var(--green-700); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--pop); }
.lightbox__btn:hover { transform: scale(1.12); }
.lightbox__btn svg { width: 28px; height: 28px; fill: currentColor; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -26px; }

/* ---- Little Learners' Corner: toy blocks -------------------------------------------------------------------------- */
.blocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: calc(5 * 104px + 4 * 18px + 24px); margin: 0 auto 26px; } /* five to a row: A–E, then 1–5 */
.block { position: relative; width: 104px; height: 104px; cursor: pointer; border: 0; border-radius: 22px; background: var(--tone); color: #fff; font-family: var(--font-head); font-size: 3.4rem; font-weight: 700; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2), inset 0 -8px 0 rgba(0, 0, 0, 0.1), inset 0 8px 0 rgba(255, 255, 255, 0.25); transition: transform 0.25s var(--pop), box-shadow 0.2s; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.block::before { content: ""; position: absolute; top: 9px; left: 9px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.block:nth-child(odd) { transform: rotate(-5deg); } .block:nth-child(even) { transform: rotate(4deg); }
.block:hover { transform: translateY(-8px) rotate(0) scale(1.08); }
.block:active, .block.is-popped { animation: block-pop 0.5s var(--pop); }
.block[data-tone="sun"] { color: #3a2800; text-shadow: 0 3px 0 rgba(255, 255, 255, 0.35); }
@keyframes block-pop { 0% { transform: scale(1); } 30% { transform: scale(0.85) rotate(-8deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1); } }
.bubble { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; width: fit-content; max-width: 92%; margin: 0 auto; padding: 14px 28px; background: #fff; border: 3px solid var(--green-700); border-radius: 999px; font-family: var(--font-head); font-size: 1.35rem; color: var(--green-700); box-shadow: 0 6px 0 rgba(32, 97, 71, 0.2); }
.bubble.is-new { animation: pop-in 0.4s var(--pop); }
.bubble__emoji { font-size: 2.2rem; line-height: 1; }
.bubble--inline { font-size: 1.1rem; margin: 22px auto; }

/* ---- admissions / contact bits ----------------------------------------------------------------------------------- */
.wide-photo { margin: 0 0 30px; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 40px; border: 8px solid #fff; box-shadow: 0 16px 0 var(--sun-soft), var(--shadow); }
.avail-card a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; background: #fff; padding: 22px 12px; border-radius: var(--radius); border: 3px solid transparent; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--pop), border-color 0.2s; color: var(--ink); }
.avail-card a:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: var(--tone); }
.avail-card .icon-tile { width: 64px; height: 64px; font-size: 2rem; margin: 0; }
.avail-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 40px 22px 24px; position: relative; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--pop); }
.step:nth-child(odd) { transform: rotate(-1deg); } .step:nth-child(even) { transform: rotate(1deg); }
.step:hover { transform: translateY(-6px) rotate(0); }
.step p { margin: 0; font-weight: 700; color: var(--ink); }
.step__num { position: absolute; top: -18px; left: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--sun); color: #3a2800; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.stack-buttons { display: grid; gap: 14px; justify-items: start; margin: 22px 0 10px; }
.stack-buttons--row { display: flex; flex-wrap: wrap; }
.info-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 26px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 24px; padding: 18px 20px; border-left: 8px solid var(--tone); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--pop); }
.info-card:hover { transform: translateX(6px); }
.info-card .icon-tile { margin: 0; flex: none; }
.info-card > div { min-width: 0; }
.info-card a, .info-card address { overflow-wrap: anywhere; }
.info-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.info-card address { font-style: normal; font-weight: 700; line-height: 1.5; }
.info-card p { margin: 0; }
.info-card__sub { font-size: 0.9rem; color: var(--muted); margin-top: 4px !important; }
.info-card a { font-weight: 800; }
.contact-chips { display: grid; gap: 10px; margin-top: 18px; }
.contact-chips li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.contact-chips .ico { color: var(--coral); margin-top: 3px; }
.contact-line { min-width: 0; overflow-wrap: anywhere; }

/* ---- forms ----------------------------------------------------------------------------------------------------------------- */
.form-card { position: relative; background: #fff; border-radius: 32px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); border: 3px solid var(--sun-soft); }
.form-card::before { content: "✏️"; position: absolute; top: -22px; right: 26px; font-size: 2.2rem; transform: rotate(18deg); }
.form-card--plain::before { content: "🎉"; }
.form-card__title { font-size: 1.5rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 0.93rem; margin-bottom: 6px; }
.req { color: var(--coral-text); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; background: var(--cream); border: 2px solid var(--line); border-radius: 16px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(32, 97, 71, 0.15); background: #fff; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); background: #fff7f5; }
.field-error { color: #b3261e; font-weight: 800; font-size: 0.88rem; margin: 6px 0 0; }
.field-error[hidden] { display: none; }
.star-meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; padding: 8px 14px; background: var(--sun-soft); border-radius: 999px; font-family: var(--font-head); color: var(--sun-ink); font-size: 0.95rem; }
.star-meter__stars { display: inline-flex; gap: 4px; font-size: 1.4rem; line-height: 1; }
.star-meter__stars span { color: #e3d8b8; transition: color 0.25s, transform 0.4s var(--pop); }
.star-meter__stars span.is-lit { color: var(--sun); transform: scale(1.3) rotate(-12deg); text-shadow: 0 2px 0 rgba(183, 130, 26, 0.4); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 800; color: #b3261e; }
.form-status.is-ok { color: var(--green-700); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.form-success { text-align: center; padding: 8px 0; }
.form-success[hidden] { display: none; }
.form-success .form-actions { justify-content: center; margin: 18px 0 8px; }
.form-success__badge { font-size: 3.4rem; animation: block-pop 0.8s var(--pop); }
.summary { text-align: left; background: var(--cream); border: 2px dashed var(--line); border-radius: 16px; padding: 14px 18px; white-space: pre-wrap; font-family: var(--font-body); font-size: 0.95rem; margin: 16px 0; }
.error-list { background: #fff7f5; border: 2px solid var(--coral); border-radius: 18px; padding: 14px 22px 14px 40px; margin: 0 0 24px; list-style: disc; color: #8a2517; font-weight: 700; }
.thanks { min-height: 50vh; }

/* ---- CTA band ---------------------------------------------------------------------------------------------------------------- */
.cta-band-wrap { padding: 0 0 clamp(60px, 8vw, 96px); background: var(--cream); }
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; background: radial-gradient(600px 240px at 15% 0%, rgba(255, 255, 255, 0.12), transparent 70%), var(--green-700); border-radius: 44px; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px); box-shadow: 0 10px 0 var(--green-900); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.cta-band p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; }
.cta-band__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 4px 0 22px; font-weight: 800; }
.cta-band__contact li { display: inline-flex; align-items: center; gap: 8px; }
.cta-band__contact .ico { color: var(--sun); }
.cta-band__contact a { color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta-band__star { position: absolute; font-size: 2rem; animation: bob 5s ease-in-out infinite; }
.cta-band__star--1 { top: 12%; left: 6%; } .cta-band__star--2 { top: 20%; right: 8%; animation-delay: -2s; } .cta-band__star--3 { bottom: 12%; left: 12%; animation-delay: -3s; }

/* ---- footer ------------------------------------------------------------------------------------------------------------------------------- */
.site-footer { position: relative; background: var(--green-900); color: #dcebe3; padding: clamp(64px, 8vw, 96px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.4fr; gap: clamp(24px, 4vw, 48px); }
.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer .brand__text small { color: #b9d3c6; }
.footer-about p { color: #cfe3d8; max-width: 34ch; }
.footer-h { font-family: var(--font-head); color: var(--sun); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: #e8f4ee; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: var(--coral); margin-top: 4px; }
.footer-open { font-family: var(--font-head); color: #fff; font-weight: 600; margin: 18px 0 12px; }
.footer-bottom { margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: #b9d3c6; }
.footer-bottom p { margin: 0; }
.fab-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #06361b; box-shadow: 0 5px 0 #1b9f4a, 0 12px 24px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--pop); animation: fab-pulse 3.2s ease-in-out infinite; }
.fab-whatsapp:hover { transform: scale(1.12) rotate(-8deg); color: #06361b; }
.fab-whatsapp svg { width: 34px; height: 34px; fill: currentColor; stroke: none; }
/* Chat bubble that pops up beside the WhatsApp button (shown by site.js; hidden without JavaScript). */
.wa-bubble { position: fixed; right: 18px; bottom: 92px; z-index: 69; width: min(280px, calc(100vw - 36px)); opacity: 0; transform: translateY(12px) scale(0.92); transform-origin: 90% 100%; transition: opacity 0.3s ease, transform 0.45s var(--pop); }
.wa-bubble[hidden] { display: none; }
.wa-bubble.is-visible { opacity: 1; transform: none; }
.wa-bubble__link { display: block; position: relative; padding: 12px 42px 14px 16px; background: #fff; color: var(--ink); text-decoration: none; border: 3px solid var(--wa); border-radius: 22px 22px 6px 22px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
.wa-bubble__link:hover { color: var(--ink); background: #f4fff8; }
.wa-bubble__link::after { content: ""; position: absolute; right: 22px; bottom: -11px; width: 16px; height: 16px; background: #fff; border-right: 3px solid var(--wa); border-bottom: 3px solid var(--wa); border-bottom-right-radius: 4px; transform: rotate(45deg); }
.wa-bubble__link:hover::after { background: #f4fff8; }
.wa-bubble__name { display: block; margin-bottom: 2px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--green-700); }
.wa-bubble__text { display: block; font-size: 0.97rem; font-weight: 700; line-height: 1.4; }
.wa-bubble__typing { display: none; gap: 5px; padding: 8px 0 6px; }
.wa-bubble.is-typing .wa-bubble__typing { display: flex; }
.wa-bubble.is-typing .wa-bubble__text { display: none; }
.wa-bubble__typing i { width: 9px; height: 9px; border-radius: 50%; background: #9fb3a9; animation: wa-dot 1s ease-in-out infinite; }
.wa-bubble__typing i:nth-child(2) { animation-delay: 0.15s; } .wa-bubble__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.55; } 30% { transform: translateY(-5px); opacity: 1; } }
.wa-bubble__close { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wa-bubble__close:hover { background: var(--mint); color: var(--green-700); }
@keyframes fab-pulse { 0%, 100% { box-shadow: 0 5px 0 #1b9f4a, 0 12px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(53, 224, 111, 0.5); } 50% { box-shadow: 0 5px 0 #1b9f4a, 0 12px 24px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(53, 224, 111, 0); } }

/* ---- 404 / balloons ------------------------------------------------------------------------------------------------------------------------------ */
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound__num { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 9rem); font-weight: 700; line-height: 1; color: var(--green-700); margin: 0; }
.notfound__zero { display: inline-block; animation: bob 3s ease-in-out infinite; }
.balloons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0 8px; min-height: 90px; }
.balloon { border: 0; background: none; cursor: pointer; font-size: 4rem; line-height: 1; padding: 0; animation: bob 4s ease-in-out infinite; transition: transform 0.2s var(--pop); filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.12)); }
.balloon:nth-child(2) { animation-delay: -1s; } .balloon:nth-child(3) { animation-delay: -2s; } .balloon:nth-child(4) { animation-delay: -3s; }
.balloon:hover { transform: scale(1.2); }
.balloon[data-tone="sun"] span { filter: hue-rotate(55deg) saturate(1.3); }
.balloon[data-tone="sky"] span { filter: hue-rotate(195deg); }
.balloon[data-tone="leaf"] span { filter: hue-rotate(125deg); }
.balloon[data-tone="grape"] span { filter: hue-rotate(255deg); }
.balloon.is-popped { animation: none; transform: scale(0); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; pointer-events: none; }

/* ---- scroll reveal + confetti ------------------------------------------------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(28px) scale(0.97); transition: opacity 0.6s ease, transform 0.75s var(--pop); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .why-card.reveal.is-in:nth-child(odd), .js .vm-card.reveal.is-in:nth-child(1), .js .step.reveal.is-in:nth-child(odd) { transform: rotate(-1deg); }
.js .why-card.reveal.is-in:nth-child(even), .js .vm-card.reveal.is-in:nth-child(2), .js .step.reveal.is-in:nth-child(even) { transform: rotate(1deg); }
.js .polaroid--tilt-left.reveal.is-in { transform: rotate(-2.5deg); } .js .polaroid--tilt-right.reveal.is-in { transform: rotate(2.5deg); }
.js .shot.reveal.is-in:nth-child(4n + 1) { transform: rotate(-1.4deg); } .js .shot.reveal.is-in:nth-child(4n + 2) { transform: rotate(1.1deg); }
.js .shot.reveal.is-in:nth-child(4n + 3) { transform: rotate(-0.8deg); } .js .shot.reveal.is-in:nth-child(4n) { transform: rotate(1.5deg); }
.js .reveal:nth-child(2) { transition-delay: 0.07s; } .js .reveal:nth-child(3) { transition-delay: 0.14s; } .js .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .reveal:nth-child(5) { transition-delay: 0.07s; } .js .reveal:nth-child(6) { transition-delay: 0.14s; } .js .reveal:nth-child(7) { transition-delay: 0.21s; } .js .reveal:nth-child(8) { transition-delay: 0.28s; }
.no-reveal .reveal { opacity: 1 !important; transform: none !important; }
.form-card.is-highlight { animation: glow 1.3s ease 2; }
@keyframes glow { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 10px rgba(242, 182, 60, 0.45), var(--shadow); } }
.confetti { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; font-size: 1.5rem; line-height: 1; animation: confetti 1.15s cubic-bezier(0.15, 0.7, 0.3, 1) forwards; will-change: transform, opacity; }
@keyframes confetti { 0% { transform: translate(-50%, -50%) scale(0.3) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); opacity: 0; } }

/* ---- programs added by the school without photos, schedule + fees, custom sections ------------------ */
.pcard__media--empty { display: grid; place-items: center; background: var(--tone-soft); font-size: 4rem; }
.program__placeholder { aspect-ratio: 3 / 2; width: 100%; display: grid; place-items: center; font-size: clamp(4rem, 12vw, 6.5rem); background: var(--tone-soft); border-radius: 34px; border: 8px solid #fff; box-shadow: 12px 12px 0 var(--tone), var(--shadow); transform: rotate(-1.5deg); }
.program--flip .program__placeholder { transform: rotate(1.5deg); box-shadow: -12px 12px 0 var(--tone), var(--shadow); }
.program__facts { display: grid; gap: 8px 22px; grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); margin: 0 0 6px; }
.program__facts div { background: #fff; border: 2px solid var(--tone); border-radius: 16px; padding: 6px 14px; }
.program__facts dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone-ink); }
.program__facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.programs-enquire .lead { margin-bottom: 18px; }
.custom-section__text { max-width: 820px; text-align: center; }
.custom-section__text .checklist { display: inline-grid; text-align: left; justify-items: start; }
.custom-section__text p { color: var(--muted); font-size: 1.1rem; margin-inline: auto; }
.custom-section__cta { margin: 20px 0 0; }
.custom-section .split__text p { font-size: 1.08rem; }
.custom-section__photo--right { order: 2; }
.preview-ribbon { position: relative; z-index: 200; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; align-items: center; padding: 6px 14px; background: #3a2800; color: #fff3cf; font-size: 0.9rem; text-align: center; }
.preview-ribbon strong { background: var(--sun); color: #3a2800; border-radius: 999px; padding: 0 10px; font-family: var(--font-head); }
.preview-ribbon a { color: #fff; font-weight: 800; }

/* ---- responsive ------------------------------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .why-grid, .pcard-grid, .avail-grid { --cols: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-legend { grid-template-columns: repeat(2, 1fr); }
}
/* The inline nav needs ~1040px to fit on one line; switch to the menu button a little before that. */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--mint); cursor: pointer; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--green-700); transition: transform 0.3s var(--pop), opacity 0.2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; padding: 14px 16px 20px; border-bottom: 4px solid var(--sun); box-shadow: 0 18px 30px rgba(22, 61, 45, 0.16); border-radius: 0 0 28px 28px; }
  .js .site-nav.is-open { display: flex; animation: pop-in 0.25s var(--pop); }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 16px; font-size: 1.05rem; }
  .nav-cta { align-self: stretch; }
  html:not(.js) .site-header .header-inner { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .split--form, .split--reverse, .program__grid { grid-template-columns: 1fr; }
  .program--flip .program__photo { order: 0; }
  .custom-section__photo--right { order: 0; }
  .split--reverse .polaroid { order: -1; }
  .hero__art { max-width: 560px; margin: 8px auto 0; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-grid { grid-template-columns: 1fr; }
  .hero__lead { max-width: none; }
}
/* Two-column layout with an odd number of cards (nine learning-approach cards): the last one sits centred under the pair, not alone at the left. */
@media (min-width: 641px) and (max-width: 960px) {
  .approach-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 11px); }
}
/* On anything narrower than a wide desktop there is no free margin beside the big headings, so the
   decorative stickers (positioned by %) would land on top of text. Park them in the top corners, above
   the headings, and drop the ones that can't be placed safely. */
@media (max-width: 1200px) {
  .page-hero { padding-top: 60px; }
  .page-hero__deco .float--a { top: 14px; left: 6%; font-size: 1.7rem; }
  .page-hero__deco .float--b { top: 14px; right: 6%; font-size: 1.7rem; }
  .page-hero__deco .float--c { display: none; }
  .cta-band { padding-top: clamp(52px, 8vw, 72px); }
  .cta-band__star { font-size: 1.5rem; }
  .cta-band__star--1 { top: 14px; left: 20px; } .cta-band__star--2 { top: 14px; right: 20px; } .cta-band__star--3 { display: none; }
  .hero__star1, .hero__star2 { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .why-grid, .pcard-grid, .avail-grid { --cols: 1; }
  .approach-grid, .steps, .cat-legend { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__programs { margin-left: 0; }
  .starburst { width: 96px; height: 96px; font-size: 0.72rem; top: -8px; right: -2px; }
  .starburst b { font-size: 1.1rem; }
  .sticker { font-size: 0.82rem; padding: 4px 10px; }
  .sticker--e { left: 30%; top: -12px; } .sticker--f { left: -6px; top: 50%; }
  .hero__logo { height: 124px; border-width: 4px; border-radius: 24px; }
  .custom-section__photo--right { order: 0; }
  .blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: none; }
  .block { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(1.5rem, 8vw, 2.3rem); border-radius: 14px; }
  .block::before { top: 6px; left: 6px; width: 9px; height: 9px; }
  .bubble { font-size: 1.05rem; padding: 12px 20px; border-radius: 28px; }
  .form-actions .btn { flex: 1 1 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } .lightbox__close { top: 10px; right: 10px; }
  .wide-photo img { aspect-ratio: 16 / 10; border-radius: 28px; }
  .float--cloud, .hero__rainbow, .hero__abc { display: none; }
  .fab-whatsapp { width: 54px; height: 54px; right: 12px; bottom: 12px; }
  .wa-bubble { right: 12px; bottom: 78px; }
  .wa-bubble__link::after { right: 19px; }
  .motto { border-radius: 28px; }
}

/* ---- people who prefer calm: no motion ------------------------------------------------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .confetti { display: none; }
}
@media print {
  .ticker, .site-header, .fab-whatsapp, .wa-bubble, .float, .starburst, .sticker { display: none !important; }
}
