/* ==========================================================================
   Eleganz Kids International Preschool — site-wide design system
   Palette is locked to the approved style guide (Color.png):
     primary   #F6A6BF   secondary #07483D   teal #73C8B2
     text      #2B2B2B / #414042
     icon      #F4AD1A / #F7CB47
     logo only #EB2626 / #9F2122 / #FBD139
   The teal was added 2026-09-21 as a third brand colour and carries the
   large tinted surfaces the pink and green cannot.
   Type is Poppins throughout — 400/500 for body, 700 for headings and UI,
   800 for display sizes (h1, h2, stat figures).
   Every page of the site loads this file first, then its own page stylesheet.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* --- brand: baby pink (primary) ------------------------------------- */
  --pink-50:  #fef6f9;
  --pink-100: #fdeaf1;
  --pink-200: #fbd6e2;
  --pink-300: #f9c1d2;
  --pink-400: #f6a6bf;   /* style guide primary */
  --pink-500: #ef8ead;
  --pink-600: #e0708f;
  --pink-700: #c05372;
  --pink-800: #a94469;   /* derived — 5.6:1 with white, so a solid pink chip can
                            carry white label text. pink-700 is only 4.5:1. */

  /* --- brand: bottle green (secondary) -------------------------------- */
  --green-50:  #f0f7f5;
  --green-100: #dcede8;
  --green-200: #b6d9cf;
  --green-400: #2d8571;
  --green-600: #106b58;
  --green-700: #0b5a4a;
  --green-800: #085140;
  --green-900: #07483d;  /* style guide secondary */

  /* --- brand: soft teal (third brand colour, added 2026-09-21) ---------- */
  /* Ramp built around #73C8B2. It bridges the deep bottle green and the baby
     pink, so it can carry large surfaces the other two cannot: the pinks go
     washy at low opacity and the green is too dark for a whole band. */
  --teal-50:  #f0faf7;
  --teal-100: #dcf3ec;
  --teal-200: #b9e7da;
  --teal-300: #96dbc6;
  --teal-400: #73c8b2;   /* the brand teal */
  --teal-500: #4fb59c;
  --teal-600: #2f9a80;   /* surfaces and borders only — 3.5:1 on white */
  --teal-700: #1f7a65;   /* text-safe shade — 5.2:1 on white */

  /* --- icon accents ---------------------------------------------------- */
  --amber-100: #fdf3da;
  --amber-300: #f7cb47;  /* style guide icon 2 */
  --amber-500: #f4ad1a;  /* style guide icon 1 */
  --amber-700: #8a6104;  /* text-only shade — 5.6:1 on white. amber-500 is 1.9:1
                            and the old #b57c05 only 3.6:1, both under AA. */

  /* --- pastel accents -------------------------------------------------- */
  /* Tints only. They colour surfaces, icon tiles and card art so the site
     reads as a preschool rather than a corporate page. Brand pink and green
     still own every button, heading and body text — these never do. */
  --sky-50:  #f0f8fe;
  --sky-100: #dceffb;
  --sky-200: #bfe1f7;
  --sky-600: #1f7ba8;

  --lilac-50:  #f6f2fd;
  --lilac-100: #eae2fb;
  --lilac-200: #d6c9f5;
  --lilac-600: #6d51bd;

  --peach-50:  #fff5ee;
  --peach-100: #ffe7d8;
  --peach-200: #ffd0b4;
  --peach-600: #b0531f;

  /* --- logo-only colours (never used for UI) --------------------------- */
  --logo-red:      #eb2626;
  --logo-red-deep: #9f2122;
  --logo-yellow:   #fbd139;

  /* --- text ------------------------------------------------------------ */
  --ink:       #2b2b2b;  /* style guide text 1 */
  --ink-soft:  #414042;  /* style guide text 2 */
  --ink-muted: #6b6b6d;  /* derived — 5.2:1 on white */

  /* --- semantic surfaces ----------------------------------------------- */
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-soft:  var(--pink-50);
  --surface-mint:  var(--green-50);
  --surface-teal:  var(--teal-50);
  --surface-brand: var(--green-900);
  --border:        #f0e4e9;
  --border-strong: #e4d2da;

  /* --- shape ------------------------------------------------------------ */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* --- elevation (tinted with the brand green, never neutral black) ----- */
  --shadow-xs: 0 2px 6px rgba(7, 72, 61, .06);
  --shadow-sm: 0 6px 18px rgba(7, 72, 61, .07);
  --shadow-md: 0 14px 34px rgba(7, 72, 61, .10);
  --shadow-lg: 0 26px 60px rgba(7, 72, 61, .14);
  --shadow-pink: 0 14px 30px rgba(224, 112, 143, .32);

  /* --- spacing scale (4pt base) ----------------------------------------- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* --- layout ----------------------------------------------------------- */
  --shell: 1280px;
  --gutter: 24px;
  --header-h: 84px;

  /* --- motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(.22, .68, .32, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .48, 1);
  --t-fast: .16s;
  --t-base: .26s;
  --t-slow: .5s;

  /* --- z-index scale ----------------------------------------------------- */
  --z-decor: 1;
  --z-content: 2;
  --z-header: 100;
  --z-overlay: 200;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Poppins has a smaller x-height than the Nunito it replaced, so the same
     nominal size reads smaller — 16.5px with looser leading matches the old
     body text optically. */
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* One family across the site. Poppins is geometric, so headings need a touch
   of negative tracking and heavier weights than Fredoka did to hold the same
   presence: bold as the floor, extra-bold on the display sizes. */
h1, h2, h3, h4 {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  color: var(--green-900);
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; line-height: 1.14; letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
h3 { font-size: clamp(18px, 1.45vw, 21px); }
h4 { font-size: 16.5px; }

p { margin: 0; text-wrap: pretty; }

::selection { background: var(--pink-300); color: var(--green-900); }

/* --------------------------------------------------------- accessibility */
:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
/* Keep the ring readable where the surface is already dark green. */
.on-dark :focus-visible,
.section--brand :focus-visible,
.cta-band :focus-visible,
.intro-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--pink-300); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -80px;
  z-index: var(--z-overlay);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus-visible { top: var(--sp-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.section--soft { background: var(--surface-soft); }
.section--mint { background: var(--surface-mint); }
.section--brand { background: var(--surface-brand); }

/* Brand-teal band. A flat tint reads washed out across a full-width strip, so
   this one is a soft gradient with a pink bloom in the corner — enough colour
   to hold the section without competing with the cards sitting on it. */
.section--teal {
  background:
    radial-gradient(56% 120% at 88% 8%, rgba(246, 166, 191, .30) 0%, transparent 62%),
    radial-gradient(48% 110% at 6% 96%, rgba(115, 200, 178, .42) 0%, transparent 60%),
    linear-gradient(118deg, var(--teal-100) 0%, var(--teal-50) 52%, var(--pink-50) 100%);
  border-block: 1px solid var(--teal-200);
}

.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p {
  margin-top: var(--sp-4);
  font-size: 17px;
  color: var(--ink-muted);
}
.section--brand .section-head p { color: rgba(255, 255, 255, .8); }
.section-head .section-flag { margin-top: var(--sp-5); }

/* Small pill that labels a section ("Our Programmes", "Why us"…). */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 16px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--pink-100);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink-600);
}
.section--brand .eyebrow,
.eyebrow--on-dark {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.section--brand .eyebrow::before { background: var(--amber-300); }

.section--brand h1,
.section--brand h2,
.section--brand h3,
.on-dark h2,
.on-dark h3 { color: #fff; }

/* Announcement pill — "Admissions Open", "NEP Aligned Curriculum". Amber so it
   stands apart from the pink .eyebrow it often sits beside. */
.flag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px 17px 7px 13px;
  border-radius: var(--r-pill);
  background: var(--amber-100);
  border: 2px solid var(--amber-300);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.flag svg { width: 15px; height: 15px; color: var(--amber-700); }

/* The live dot only pulses on the admissions flag, where it means "open now". */
.flag--live::before {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 0 rgba(16, 107, 88, .55);
  animation: flag-pulse 2.4s var(--ease-out) infinite;
}
@keyframes flag-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 107, 88, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 107, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 107, 88, 0); }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;              /* comfortably above the 44px touch floor */
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: "Poppins", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }

.btn-pink {
  background: var(--pink-400);
  border-color: var(--pink-400);
  color: var(--green-900);
  box-shadow: var(--shadow-pink);
}
.btn-pink:hover { background: var(--pink-300); border-color: var(--pink-300); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--green-200);
  color: var(--green-900);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--green-600); background: var(--green-50); }

.btn-on-dark {
  background: #fff;
  border-color: #fff;
  color: var(--green-900);
}
.btn-on-dark:hover { background: var(--pink-200); border-color: var(--pink-200); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* Text link with a sliding arrow. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  font-size: 15px;
  color: var(--green-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover { color: var(--pink-700); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ------------------------------------------------------------------ cards */
/* Every card carries three tint variables. Add a .tint--* class to recolour a
   card's art, hover border and glow in one go without touching its markup;
   the default is brand pink, so an untinted card still looks intentional. */
.card,
.tint--pink {
  --tint-soft: var(--pink-50);
  --tint: var(--pink-100);
  --tint-deep: var(--pink-300);
  --tint-ink: var(--pink-800);   /* pink-700 is 4.5:1 — under AA for small text */
  --tint-glow: rgba(224, 112, 143, .26);
}
.tint--mint {
  --tint-soft: var(--green-50);
  --tint: var(--green-100);
  --tint-deep: var(--green-200);
  --tint-ink: var(--green-700);
  --tint-glow: rgba(16, 107, 88, .22);
}
.tint--amber {
  --tint-soft: #fffaee;
  --tint: var(--amber-100);
  --tint-deep: #f6dd9a;
  --tint-ink: var(--amber-700);
  --tint-glow: rgba(244, 173, 26, .28);
}
.tint--teal {
  --tint-soft: var(--teal-50);
  --tint: var(--teal-100);
  --tint-deep: var(--teal-300);
  --tint-ink: var(--teal-700);
  --tint-glow: rgba(79, 181, 156, .26);
}
.tint--sky {
  --tint-soft: var(--sky-50);
  --tint: var(--sky-100);
  --tint-deep: var(--sky-200);
  --tint-ink: var(--sky-600);
  --tint-glow: rgba(31, 123, 168, .24);
}
.tint--lilac {
  --tint-soft: var(--lilac-50);
  --tint: var(--lilac-100);
  --tint-deep: var(--lilac-200);
  --tint-ink: var(--lilac-600);
  --tint-glow: rgba(109, 81, 189, .24);
}
.tint--peach {
  --tint-soft: var(--peach-50);
  --tint: var(--peach-100);
  --tint-deep: var(--peach-200);
  --tint-ink: var(--peach-600);
  --tint-glow: rgba(194, 95, 36, .24);
}

.card {
  position: relative;
  padding: var(--sp-8);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--tint-glow);
  border-color: var(--tint-deep);
}
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-muted); font-size: 16px; }

/* Rounded icon tile used at the top of most cards. Follows the card's tint,
   and tips over playfully when the card is hovered. */
.icon-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: var(--sp-5);
  border-radius: 20px;
  background: var(--tint);
  color: var(--tint-ink);
  transition: transform var(--t-base) var(--ease-spring), background var(--t-base) var(--ease-out);
}
.icon-badge svg { width: 30px; height: 30px; }
.card:hover .icon-badge {
  background: var(--tint-deep);
  transform: rotate(-7deg) scale(1.07);
}

/* Legacy explicit variants, kept so older markup keeps working. */
.icon-badge--mint { background: var(--green-100); color: var(--green-700); }
.icon-badge--amber { background: var(--amber-100); color: var(--amber-700); }

/* ------------------------------------------------------------------ stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.stat {
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 2px solid var(--tint-deep);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.stat:hover {
  transform: translateY(-5px);
  border-color: var(--tint-deep);
  box-shadow: 0 16px 32px var(--tint-glow);
}
.stat b {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--green-900);
  font-variant-numeric: tabular-nums;
}
/* Hours read as a range, not a counted number, so they need to shrink. */
.stat b.stat-text { font-size: clamp(25px, 2.5vw, 33px); letter-spacing: -.02em; }
/* The caption carries the card's tint. On a tinted band the cards themselves
   are white for legibility, so this is what keeps each one colour-coded. */
.stat span {
  display: block;
  margin-top: var(--sp-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--tint-ink);
}
.section--brand .stat {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
.section--brand .stat b { color: var(--amber-300); }
.section--brand .stat span { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------- page banner (inner pages) */
/* The strip under the header on About, Admissions, Programmes and Facilities.
   Rebuilt 2026-09-22 to the approved reference: a flat cream band carrying the
   page title and a breadcrumb on the left, with the crest on the right. It
   replaced a centred uppercase title on a pink-to-teal gradient with organic
   SVG shapes and dot grids — that version competed with whatever tinted
   section came next, and gave no sense of where in the site you were. */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(18px, 2.2vw, 30px);
  background: var(--peach-50);
  border-bottom: 1px solid var(--peach-100);
}

.page-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.page-banner-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--green-900);
}

/* Breadcrumb. The chevron is drawn in CSS on every item but the first, so the
   markup stays a plain ordered list with no separator characters in it for a
   screen reader to read out. */
.page-crumbs { margin-top: var(--sp-3); }
.page-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}
.page-crumbs a { color: var(--ink-soft); transition: color var(--t-base) var(--ease-out); }
.page-crumbs a:hover { color: var(--pink-800); }
.page-crumbs [aria-current] { font-weight: 700; color: var(--green-900); }
.page-crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: var(--sp-3);
  border-top: 2px solid var(--peach-600);
  border-right: 2px solid var(--peach-600);
  rotate: 45deg;
  vertical-align: middle;
}

/* Full-strength crest, not a watermark — on this band it is the one piece of
   brand furniture, the way the reference uses its own mark.
   Sized against the title block rather than to taste: the crest is the taller
   of the two flex items, so its height *is* the band's height. Much above 90px
   and it, not the title, decides how much room the banner takes. */
.page-banner-crest {
  flex: none;
  width: clamp(64px, 6.6vw, 88px);
}

/* ---------------------------------------------------------- enquiry block */
/* The parent enquiry block: photo collage on the left, form on the right.
   Shared — it is the closing section of Contact and the opening section of
   Admissions, and thank-you.html is where both of them land. Delivery is
   configured in the markup, not here. */
.contact-split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 4.4vw, 68px);
  margin-top: clamp(36px, 4vw, 56px);
}

/* Two photographs, the second overlapping the first at the bottom-left, with
   the badge sitting across the corner of it. Everything is positioned as a
   percentage of the column, so the composition holds its shape at any width
   instead of coming apart between breakpoints. */
.contact-visual {
  position: relative;
  /* Room for the front photo and badge, which both hang below the back one. */
  padding-bottom: 26%;
}

.visual-back,
.visual-front {
  margin: 0;
  overflow: hidden;
  background: var(--pink-100);
}
.visual-back {
  width: 86%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.visual-front {
  position: absolute;
  left: 0;
  top: 34%;
  width: 46%;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-md);
  border: 6px solid var(--surface);
  box-shadow: var(--shadow-lg);
}
.visual-back img,
.visual-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

/* The one amber surface on the site. It is the reference's orange badge, in
   the palette's icon yellow — with bottle-green type on it, because amber-500
   under white text is 1.9:1 and nowhere near legible. */
.visual-badge {
  position: absolute;
  left: 3%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-5) clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-md);
  background: var(--amber-500);
  color: var(--green-900);
  box-shadow: 0 16px 34px rgba(244, 173, 26, .40);
}
.visual-badge svg { width: 40px; height: 40px; flex: none; }
.visual-badge b {
  display: block;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.visual-badge i {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: clamp(13.5px, 1.3vw, 15.5px);
  font-weight: 700;
}

.enquiry-block h2 {
  margin-bottom: var(--sp-6);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.24;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.field--wide { grid-column: 1 / -1; }
.field { margin: 0; }

/* Wraps the control so the icon can be pinned inside the box. */
.field-input { position: relative; display: block; }

.field-input input,
.field-input select,
.field-input textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 50px 16px 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong);
  background-color: var(--surface);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.field-input input::placeholder,
.field-input textarea::placeholder { color: var(--ink-muted); }

.field-input input:focus,
.field-input select:focus,
.field-input textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(16, 107, 88, .12);
}
/* Keyboard users get the shared ring on top of the border change. */
.field-input input:focus-visible,
.field-input select:focus-visible,
.field-input textarea:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

.field-input textarea {
  min-height: 176px;
  line-height: 1.6;
  resize: vertical;
}

/* The class dropdown. The browser's own arrow is dropped so the chevron in
   the markup can sit where every other field's icon sits; without that the
   two would stack up in the same corner. */
.field-input select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
/* Styled as placeholder text until a real choice is made. It is `disabled`,
   so :invalid holds until then — the field is required. */
.field-input select:invalid { color: var(--ink-muted); }
.field-input select option { color: var(--ink); }

/* Pinned to the top rather than centred, so it holds still on the textarea
   and lines up with the first line of text in both. */
.field-input > svg {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  color: var(--green-700);
  pointer-events: none;
}

/* Centred on this control rather than pinned to the top: a select is one line
   tall and always will be, unlike the textarea the shared rule is built for.
   This has to come AFTER the rule above — both selectors carry the same
   specificity, so whichever is written last wins, and while it was written
   first the chevron stayed stuck at the 18px top offset. */
.field-input--select > svg {
  top: 50%;
  translate: 0 -50%;
}

.enquiry-form .btn {
  width: 100%;
  margin-top: var(--sp-6);
}

.enquiry-note {
  margin-top: var(--sp-4);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-muted);
}
.enquiry-note a { font-weight: 700; color: var(--green-800); }
.enquiry-note a:hover { color: var(--pink-800); }

/* -------------------------------------------------------------- dot rule */
/* Three brand dots standing in for a horizontal rule. A hairline across a
   centred column reads as a divider between two sections; this reads as a
   breath inside one, and puts the three accents on an otherwise quiet block.
   Used on the Facilities closing passage and the enquiry thank-you page. */
.dot-rule {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: clamp(30px, 3.6vw, 46px);
}
.dot-rule i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-400);
}
.dot-rule i:nth-child(2) { background: var(--teal-400); }
.dot-rule i:nth-child(3) { background: var(--amber-500); }

/* ------------------------------------------------------------ label pill */
/* Solid pink chip with white text, tilted a degree or two. The heavier
   alternative to .eyebrow, used to head a feature section. */
.pill-label {
  display: inline-block;
  padding: 11px 30px 12px;
  border-radius: var(--r-pill);
  background: var(--pink-800);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  rotate: -1.6deg;
  box-shadow: 0 9px 20px rgba(169, 68, 105, .32);
}

/* ------------------------------------------------------------- programmes */
/* The programme cards, shared by the home page and the Programmes page. */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(36px, 4vw, 56px);
}

.programme {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-color: var(--tint);
  background: var(--surface);
}

/* Photo panel. Height comes from aspect-ratio alone, so all three panels match
   whatever shape the source photos happen to be — hence `min-height: 0` (this
   is a flex item, and its auto minimum would otherwise be the image's height)
   and the absolutely positioned image, which is out of flow and so cannot size
   the panel at all. A taller source photo previously made its card's text
   start ~30px lower than its neighbours'. The tinted dot pattern shows through
   as the placeholder while the photo loads.
   No `overflow: hidden` here — the ::after lip below bleeds past the edges on
   purpose, and .programme already clips the card's rounded corners. */
.programme-art {
  position: relative;
  aspect-ratio: 5 / 3.4;
  min-height: 0;
  background:
    radial-gradient(var(--tint-deep) 2.2px, transparent 2.3px) 0 0 / 34px 34px,
    radial-gradient(var(--tint-deep) 1.6px, transparent 1.7px) 17px 17px / 34px 34px,
    var(--tint);
}
.programme-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The subjects sit at or above the middle in all three photos, so a slightly
     high crop keeps faces in frame as the card narrows. */
  object-position: center 42%;
}

/* Curved lip where the art meets the body — a soft, non-rectangular seam. */
.programme-art::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: -1px;
  height: 22px;
  background: var(--surface);
  border-radius: 50% 50% 0 0 / 22px 22px 0 0;
}

.programme-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-6); }
.age-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: var(--sp-3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--green-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.age-chip svg { width: 14px; height: 14px; color: var(--amber-300); }

.programme h3 { margin-bottom: var(--sp-3); }
.programme:hover h3 { color: var(--tint-ink); transition: color var(--t-base) var(--ease-out); }
.programme p { flex: 1; font-size: 15.5px; }
.programme .btn { margin-top: var(--sp-6); width: 100%; }

/* Confetti dusted across the programmes section background. */
.programmes-confetti { position: absolute; inset: 0; z-index: var(--z-decor); pointer-events: none; }
.programmes-confetti span { position: absolute; border-radius: 50%; opacity: .55; }
.programmes-confetti .c1 { width: 16px; height: 16px; top: 12%; left: 5%;  background: var(--sky-200); }
.programmes-confetti .c2 { width: 11px; height: 11px; top: 30%; left: 92%; background: var(--amber-300); }
.programmes-confetti .c3 { width: 20px; height: 20px; bottom: 16%; left: 3%; background: var(--lilac-200); }
.programmes-confetti .c4 { width: 13px; height: 13px; bottom: 9%; right: 7%; background: var(--pink-300); }
.programmes-confetti .c5 { width: 9px;  height: 9px;  top: 60%; left: 96%; background: var(--teal-400); }

/* --------------------------------------------------------- final CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  /* Tightened 2026-09-22. The band holds one heading, one line and two
     buttons — at 80px of vertical padding it read as a section rather than a
     call to action. Shared by the home, Admissions and Programmes pages, so
     all three shrink together. */
  padding: clamp(34px, 4.2vw, 58px) clamp(26px, 4.4vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 92% 12%, rgba(246, 166, 191, .30) 0%, transparent 58%),
    linear-gradient(140deg, var(--green-800) 0%, var(--green-900) 70%);
  box-shadow: var(--shadow-lg);
}
.cta-inner {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
/* The band is dark green, so its own type has to invert — it sits inside a
   plain .section, not a .section--brand. */
.cta-band h2 { max-width: 26ch; color: #fff; }
.cta-band p { margin-top: var(--sp-4); color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-band .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.cta-band .eyebrow::before { background: var(--amber-300); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.cta-seal {
  position: absolute;
  right: -40px; bottom: -60px;
  width: 260px;
  opacity: .12;
  z-index: var(--z-decor);
  pointer-events: none;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease-out);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); margin-right: auto; }
.brand-mark { width: 56px; height: 54px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Poppins", sans-serif;
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--green-900);
}
.brand-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--pink-700);
}

.primary-nav { display: flex; align-items: center; gap: var(--sp-4); }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }

.primary-nav a.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--green-900);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.primary-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--pink-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.primary-nav a.nav-link:hover { background: var(--pink-50); }
.primary-nav a.nav-link:hover::after,
.primary-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a.nav-link[aria-current="page"] { color: var(--pink-700); }

/* burger ---------------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 14px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--pink-100);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-900);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, .78);
  padding-top: clamp(56px, 6vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--sp-10) var(--sp-8);
}
.site-footer h4 {
  margin-bottom: var(--sp-5);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.footer-brand img { width: 62px; height: 60px; object-fit: contain; }
.footer-brand .brand-name { color: #fff; font-size: 22px; }
.footer-brand .brand-tag { color: var(--pink-300); }
.footer-about { font-size: 15.5px; max-width: 36ch; }

.footer-links li + li { margin-top: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15.5px;
}
.footer-links a:hover { color: var(--pink-300); }

.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: 15.5px;
}
.footer-contact li + li { margin-top: var(--sp-4); }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--amber-300); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.footer-social a:hover { background: var(--pink-400); color: var(--green-900); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  align-items: center;
  font-size: 14.5px;
}
.footer-bottom nav { margin-left: auto; display: flex; gap: var(--sp-5); }
.footer-bottom a:hover { color: #fff; }

/* ----------------------------------------------------------------- mascot */
/* The phoenix mascot. Purely decorative, so it never takes pointer events and
   is hidden from assistive tech in the markup. The motion is a slow, shallow
   hover — transform only, so it stays off the main thread. Page-specific
   placements (e.g. .mascot--hero) live in that page's stylesheet. */
.mascot {
  position: absolute;
  z-index: var(--z-content);
  pointer-events: none;
  animation: mascot-hover 9s ease-in-out infinite;
  will-change: transform;
}
.mascot picture { display: block; }
.mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(193, 18, 26, .20));
}

@keyframes mascot-hover {
  0%   { transform: translate(0, 0) rotate(-2deg); }
  33%  { transform: translate(6px, -13px) rotate(1.5deg); }
  66%  { transform: translate(-5px, -6px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}

/* Straddles a section boundary. It is anchored to the top of the *later*
   section so it paints over the section it overhangs into, and `translate`
   lifts it by a share of its own height (which a % `top` cannot do).
   The max() keeps it level with the shell's inner edge at any viewport. */
.mascot--divider {
  width: clamp(84px, 9vw, 116px);
  top: 0;
  translate: 0 -55%;
}
.mascot--divider-right {
  right: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  animation-duration: 10.5s;
  animation-delay: -3s;
}
.mascot--divider-left {
  left: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  animation-duration: 11.5s;
  animation-delay: -6s;
}

@media (max-width: 900px) {
  /* Narrow sections have no free margin beside the centred heading, so the
     boundary mascots would land on top of the text. */
  .mascot--divider { display: none; }
}

/* ------------------------------------------------------- scroll reveal */
/* Only arms itself once JS is present, so no-JS visitors never see blanks. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .primary-nav a.nav-link { padding: 0 8px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .footer-grid > :nth-child(3) { grid-row: 2; }
}

/* Eight top-level items plus a CTA stop fitting on one line here. */
@media (max-width: 1080px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-4);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--sp-5) var(--gutter) var(--sp-8);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a.nav-link { min-height: 50px; padding-inline: var(--sp-4); }
  .primary-nav a.nav-link::after { display: none; }
  .primary-nav a.nav-link[aria-current="page"] { background: var(--pink-50); }

  .header-inner { position: relative; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :nth-child(3) { grid-row: auto; }
}

@media (max-width: 960px) {
  .cta-inner { grid-template-columns: 1fr; }
}

/* Three programme cards hold their row longer than the four-up grids do —
   they only need to break once they get genuinely narrow. */
@media (max-width: 980px) {
  .contact-split { grid-template-columns: 1fr; }
  /* Stacked, the photo column no longer has a form beside it to balance, so
     it stops short of the full width. */
  .contact-visual { max-width: 560px; margin-inline: auto; }
}

@media (max-width: 900px) {
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .card { padding: var(--sp-6); }
  /* The longest eyebrows — "A Homely & Caring Environment" and "Admissions ·
     Academic Year 2026–2027" — wrap at this width, and a wrapped pill leaves
     its dot floating against the vertical middle of a two-line block with the
     text beside it. Tightened just enough to hold one line; the short ones are
     unaffected by the smaller size. */
  .eyebrow { font-size: 11.5px; letter-spacing: .06em; }
  /* At this width the badge would cover most of the front photo. */
  .visual-badge { padding: var(--sp-4) var(--sp-5); gap: var(--sp-3); }
  .visual-badge svg { width: 32px; height: 32px; }
  /* Two fields side by side leaves neither wide enough to type into. */
  .field-grid { grid-template-columns: 1fr; }
  /* The crest is the first thing to go — the title and its breadcrumb need the
     whole gutter-to-gutter width before it does. */
  .page-banner-crest { display: none; }
  .page-crumbs ol { font-size: 15px; }
  .pill-label { font-size: 14px; padding: 10px 22px; letter-spacing: .1em; }
  .cta-actions .btn { width: 100%; }
  .programme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom nav { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}
