/* Treehouse Early Learning — combined design (Design 1 landing + Design 2 centre pages, cream base)
   Plain CSS, no build step. Tokens first, then layout, then components. */

:root {
  /* Base */
  --paper: #FBF7F2; /* Design 1 cream, Rosie 15 Oct */
  --ink: #2f3338;
  --ink-soft: #5e6168;
  --line: #e4e6e3;

  /* Logo palette (decorative use) */
  --pink: #ee7a8a;
  --teal: #7cc8c8;
  --lav: #a99bd0;
  --sun: #f7d774;
  --sage: #a9c2a0;
  --coral: #f29b8c;

  /* Text-safe deep versions (AA on white) */
  --pink-deep: #c2405a;
  --teal-deep: #2d7273;
  --lav-deep: #6b5ba8;
  --sun-deep: #8a6a0f;
  --sage-deep: #4f7a4a;
  --coral-deep: #b23f3a;

  /* Pale room tints */
  --pink-pale: #fdecef;
  --teal-pale: #e3f4f3;
  --lav-pale: #efebf8;
  --sun-pale: #fdf5d6;
  --sage-pale: #e9f1e5;

  /* Centre accent (Marsden default = sage) */
  --accent: var(--sage-deep);
  --accent-soft: var(--sage);
  --tint: #f1f6ee;
  --tint-2: #e4eedf;

  /* Type */
  --f-head: "Fredoka", "Trebuchet MS", sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Patrick Hand", "Comic Sans MS", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.8vw, 3.25rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
}

.centre-manly {
  --accent: var(--coral-deep);
  --accent-soft: var(--coral);
  --tint: #fff2ee;
  --tint-2: #fde3dc;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }
.hero + .section { padding-top: clamp(32px, 4vw, 48px); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.hand { font-family: var(--f-hand); font-weight: 400; letter-spacing: 0.01em; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Wavy top edge for tinted sections (one or two per page) */
.wave-top { position: relative; }
.wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 36px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V22C180 4 360 0 560 12s420 26 620 10c110-9 190-16 260-14v28z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36V22C180 4 360 0 560 12s420 26 620 10c110-9 190-16 260-14v28z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-tour { background: var(--pink-deep); color: #fff; }
.btn-tour:hover { background: #a8344c; color: #fff; }
.btn-enrol { background: var(--teal); color: var(--ink); }
.btn-enrol:hover { background: #69bcbc; color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,242,.96); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; margin-right: auto; padding-right: 64px; }
.brand-logo { position: relative; display: inline-block; }
.brand-logo img { height: 64px; width: auto; }
.brand-centre {
  position: absolute; left: 89%; top: 88%; transform: translateY(-50%);
  font-family: var(--f-head); font-weight: 500; font-size: 13.5px; color: var(--pink-deep); white-space: nowrap; letter-spacing: .01em;
}
.brand-manly .brand-logo img { height: 80px; margin: -8px 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; list-style: none; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 11px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent-soft); border-radius: 10px 10px 2px 2px; }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.menu-btn { display: none; }

@media (max-width: 1120px) {
  .brand-logo img { height: 52px !important; }
  .header-in { flex-wrap: wrap; min-height: 72px; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .brand { padding-right: 56px; }
  .brand-logo img { height: 50px; }
  .brand-manly .brand-logo img { height: 64px !important; margin: -6px 0; }
  .brand-centre { font-size: 12px; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-links { flex-wrap: wrap; }
  .nav-cta { margin: 0 0 6px; }
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 14px;
    border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 700 0.95rem var(--f-body); cursor: pointer;
  }
  .menu-btn svg { width: 20px; height: 20px; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; padding-bottom: 12px; }
  .js .nav-links { flex-direction: column; }
  .js .nav-links a { width: 100%; font-size: 1.05rem; padding: 10px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent-soft); }
  .nav-cta .btn { flex: 1; }
}

/* ---------- Hero (centre home) ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem); text-wrap: balance; }
.hero .lede { margin-bottom: 26px; }
.hero-note { margin: 18px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.hero-photo { position: relative; }
.hero-photo > img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 28px 28px 28px 140px;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 22px; background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(47, 51, 56, .12); display: flex; align-items: center; gap: 10px; max-width: 260px;
}
.hero-badge img { width: 118px; height: auto; }
.hero-badge span { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-soft); }
.hero-tag { position: absolute; right: 8px; top: -36px; font-family: var(--f-hand); font-size: 1.35rem; color: var(--accent); transform: rotate(-3deg); }
.hero-tag svg { width: 18px; height: 18px; vertical-align: -2px; color: var(--pink); }

/* ---------- Facts rail ---------- */
.facts { margin-top: clamp(28px, 4vw, 44px); background: var(--tint); border-radius: var(--r-md); padding: 6px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.fact { padding: 16px 14px; border-left: 1px solid var(--tint-2); }
.fact:first-child { border-left: 0; }
.fact dt { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 2px; }
.fact dd { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.25; }
.fact dd small { display: block; font-family: var(--f-body); font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; margin-top: 2px; }
@media (max-width: 1000px) { .facts dl { grid-template-columns: repeat(3, 1fr); } .fact:nth-child(4) { border-left: 0; } .fact:nth-child(n+4) { border-top: 1px solid var(--tint-2); } }
@media (max-width: 560px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px 12px; }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(4) { border-left: 1px solid var(--tint-2); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--tint-2); }
}

/* ---------- Room picker: the growth chart ---------- */
.picker-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.picker-head .section-head { margin: 0; }
.age-chips { display: none; flex-wrap: wrap; gap: 8px; }
.js .age-chips { display: flex; }
.age-label { width: 100%; font-weight: 700; font-size: 0.95rem; margin: 0 0 2px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font: 600 0.95rem var(--f-body); cursor: pointer;
}
.chip:hover { background: var(--tint-2); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; }

.growth { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; position: relative; padding-left: 34px; }
.growth::before { /* height-chart ruler */
  content: ""; position: absolute; left: 0; bottom: 0; top: 0; width: 22px;
  background: repeating-linear-gradient(to top, var(--ink-soft) 0 2px, transparent 2px 16px) right / 10px 100% no-repeat,
              repeating-linear-gradient(to top, var(--ink-soft) 0 2px, transparent 2px 64px) right / 20px 100% no-repeat;
  opacity: .35;
}
.room { display: flex; flex-direction: column; justify-content: flex-end; transition: opacity .25s ease; }
.room-bar {
  border-radius: 22px 22px 6px 6px; padding: 18px 16px 16px; min-height: var(--h, 160px);
  display: flex; flex-direction: column; justify-content: flex-start; background: var(--rp); color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.room-bar h3 { margin: 0 0 2px; font-size: 1.3rem; }
.room-age { font-family: var(--f-hand); font-size: 1.2rem; line-height: 1.2; color: var(--rd); }
.room-blurb { font-size: 0.9375rem; color: var(--ink-soft); margin: 14px 2px 6px; min-height: 4.5em; }
.room-link { font-weight: 700; font-size: 0.9375rem; color: var(--rd); display: inline-flex; min-height: 44px; align-items: center; }
.room--nursery { --rp: var(--pink-pale); --rc: var(--pink); --rd: var(--pink-deep); --h: 150px; }
.room--toddlers { --rp: var(--teal-pale); --rc: var(--teal); --rd: var(--teal-deep); --h: 185px; }
.room--seniors { --rp: var(--sun-pale); --rc: var(--sun); --rd: var(--sun-deep); --h: 220px; }
.room--kindy1 { --rp: var(--lav-pale); --rc: var(--lav); --rd: var(--lav-deep); --h: 255px; }
.room--kindy2 { --rp: var(--sage-pale); --rc: var(--sage); --rd: var(--sage-deep); --h: 290px; }
.growth.has-pick .room { opacity: .5; }
.growth.has-pick .room.is-match { opacity: 1; }
.room.is-match .room-bar { background: var(--rc); transform: translateY(-8px); box-shadow: 0 12px 26px rgba(47,51,56,.16); }
.room.is-match .room-age { color: var(--ink); }
.picker-result { min-height: 1.6em; margin: 22px 0 0; font-weight: 600; }
.picker-result:empty { display: none; }
.picker-note { margin: 18px 0 0; font-size: var(--step--1); color: var(--ink-soft); max-width: 60em; }
@media (max-width: 820px) {
  .growth { grid-template-columns: 1fr; gap: 10px; padding-left: 0; }
  .growth::before { display: none; }
  .room { display: grid; grid-template-columns: 1fr; }
  .room-bar { min-height: 0; width: var(--w, 100%); padding: 12px 16px; border-radius: 6px 22px 22px 6px; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
  .room-bar h3 { font-size: 1.15rem; }
  .room--nursery { --w: 72%; } .room--toddlers { --w: 79%; } .room--seniors { --w: 86%; } .room--kindy1 { --w: 93%; } .room--kindy2 { --w: 100%; }
  .room-blurb { min-height: 0; margin: 6px 4px 0; }
  .room-link { margin-left: 4px; }
  .room.is-match .room-bar { transform: translateX(6px); }
}

/* ---------- Programs teaser ---------- */
.prog-teaser { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prog-list { list-style: none; margin: 8px 0 24px; }
.prog-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 12px; }
.prog-list li:first-child { border-top: 1px solid var(--line); }
.prog-list b { font-family: var(--f-head); font-weight: 500; font-size: 1.0625rem; }
.prog-list span { color: var(--ink-soft); font-size: 0.95rem; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.mosaic figure { margin: 0; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.mosaic .m-big { grid-row: span 2; }
.mosaic .m-big img { border-radius: var(--r-md) var(--r-md) var(--r-md) 90px; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 560px) { .prog-list li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Enrolment steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 25px; left: 6%; right: 6%; border-top: 3px dashed var(--accent-soft); }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); color: var(--accent); font: 600 1.4rem var(--f-head); margin-bottom: 14px; position: relative;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.steps-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.steps-foot p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 10px; bottom: 30px; left: 25px; right: auto; border-top: 0; border-left: 3px dashed var(--accent-soft); }
  .step { padding: 0 0 22px 72px; min-height: 64px; }
  .step::before { position: absolute; left: 0; top: 0; }
}

/* ---------- Reviews placeholder ---------- */
.reviews { border: 2px dashed #c9cbc8; border-radius: var(--r-md); padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.placeholder-tag { display: inline-block; background: var(--sun-pale); color: var(--sun-deep); font-weight: 700; font-size: 0.8125rem; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.reviews blockquote { margin: 0; padding: 18px 20px; background: var(--tint); border-radius: var(--r-md); }
.reviews blockquote p { font-size: 1.05rem; margin-bottom: 6px; }
.reviews cite { font-style: normal; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Visit / contact block ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.details { list-style: none; margin: 0 0 24px; }
.details li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tint-2); }
.details li:last-child { border-bottom: 0; }
.details svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.details b { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.details a { color: var(--ink); font-weight: 600; }
.map {
  min-height: 300px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,.9) 46% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 60%, rgba(255,255,255,.9) 60% 63%, transparent 63%),
    linear-gradient(120deg, transparent 0 70%, rgba(255,255,255,.75) 70% 72%, transparent 72%),
    var(--tint-2);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.map-card { background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 8px 22px rgba(47,51,56,.12); max-width: 300px; }
.map-card svg { width: 28px; height: 28px; color: var(--pink-deep); }
.map-card p { margin: 4px 0 8px; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } .map { min-height: 240px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(28px, 4vw, 44px); }
.page-hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .sub { font-family: var(--f-hand); font-size: 1.5rem; color: var(--accent); margin: 0 0 10px; line-height: 1.25; }
.page-hero-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 28px 28px 120px 28px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.jump a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 16px; border-radius: 14px; background: var(--rp, var(--tint)); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.2; font-size: .95rem; }
.jump a span { font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.jump a:hover { background: var(--rc, var(--tint-2)); }

/* ---------- Rooms page ---------- */
.room-row { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.room-row:nth-child(even) { grid-template-columns: 1fr minmax(0, 520px); }
.room-row:nth-child(even) .room-row-photo { order: 2; }
.room-row-photo img { width: 100%; aspect-ratio: 2 / 1.05; object-fit: cover; border-radius: var(--r-md); border-bottom: 8px solid var(--rc); }
.age-sticker { display: inline-block; font-family: var(--f-hand); font-size: 1.3rem; background: var(--rp); color: var(--rd); padding: 2px 14px; border-radius: 10px; transform: rotate(-1.5deg); margin-bottom: 10px; }
.room-row h2 { margin-bottom: 8px; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 24px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--rc, var(--accent-soft)); }
@media (max-width: 820px) {
  .room-row, .room-row:nth-child(even) { grid-template-columns: 1fr; }
  .room-row:nth-child(even) .room-row-photo { order: 0; }
}
@media (max-width: 480px) { .ticks { grid-template-columns: 1fr; } }

.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; list-style: none; }
.included li h3 { font-size: 1.1rem; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.included li h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.included li p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Programs page ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; list-style: none; }
.program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.program img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.program h3 { margin-bottom: 4px; font-size: 1.3rem; }
.program .who { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.program p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.program-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.program-wide img { aspect-ratio: 888 / 300; }
@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .program, .program-wide { grid-template-columns: 1fr; gap: 12px; } .program img { aspect-ratio: 16 / 9; } }

.kindy-band { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.kindy-band img { width: 190px; }
@media (max-width: 680px) { .kindy-band { grid-template-columns: 1fr; } .kindy-band img { width: 160px; } }

.everyday { columns: 2; column-gap: 48px; list-style: none; }
.everyday li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.everyday b { font-family: var(--f-head); font-weight: 500; font-size: 1.1rem; display: block; }
.everyday span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 680px) { .everyday { columns: 1; } }

/* ---------- About page ---------- */
.director {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.director > div { max-width: 760px; }
.director-photo { margin: 0; }
.director-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
  background: var(--tint-2);
}
.director .sign { font-family: var(--f-hand); font-size: 1.6rem; color: var(--accent); margin: 8px 0 0; }
.director .sign svg { width: 20px; height: 20px; color: var(--pink); vertical-align: -2px; }
@media (max-width: 820px) {
  .director { grid-template-columns: 1fr; }
  .director-photo { max-width: 240px; }
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; list-style: none; }
.values li { border-top: 4px solid var(--vc, var(--accent-soft)); padding-top: 12px; }
.values h3 { margin-bottom: 4px; }
.values p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.wide-photo img { width: 100%; height: clamp(180px, 26vw, 340px); object-fit: cover; border-radius: var(--r-lg); }
.outdoor { columns: 2; column-gap: 40px; list-style: none; margin: 16px 0 0; }
.outdoor li { padding: 6px 0 6px 24px; position: relative; break-inside: avoid; }
.outdoor li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-soft); }
@media (max-width: 340px) { .outdoor { columns: 1; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.two-col-photo img { width: 100%; border-radius: var(--r-md); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.mission { font-size: var(--step-1); line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } }

/* ---------- Parent Hub ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.action {
  display: flex; flex-direction: column; gap: 6px; min-height: 150px; padding: 20px; border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); background: var(--ap); border: 2px solid transparent;
}
.action:hover { border-color: var(--ink); color: var(--ink); }
.action svg { width: 34px; height: 34px; color: var(--ad); margin-bottom: 4px; }
.action b { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.action span { font-size: .93rem; color: var(--ink-soft); }
.action-app { --ap: var(--teal-pale); --ad: var(--teal-deep); }
.action-pay { --ap: var(--sun-pale); --ad: var(--sun-deep); }
.action-story { --ap: var(--pink-pale); --ad: var(--pink-deep); }
.action-xplor { --ap: var(--lav-pale); --ad: var(--lav-deep); }
@media (max-width: 960px) { .actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .actions { grid-template-columns: 1fr; } .action { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; } .action span { width: 100%; padding-left: 48px; margin-top: -6px; } .action svg { margin: 0; } }

.hub-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: 1fr; } }
.events { list-style: none; }
.event { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event:first-child { border-top: 1px solid var(--line); }
.date { width: 64px; height: 64px; border-radius: 16px; background: var(--ep, var(--tint)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date small { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.date b { font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; margin-top: 3px; }
.date b.range { font-size: 1rem; }
.event h3 { font-size: 1.08rem; margin: 0 0 2px; }
.event p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.event-time { font-size: .92rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .event { grid-template-columns: 56px 1fr; } .date { width: 56px; height: 56px; } .event-time { grid-column: 2; margin-top: -8px; font-weight: 400; color: var(--ink-soft); } }
.panel { background: var(--tint); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); }
.panel h2 { font-size: 1.5rem; }
.terms { width: 100%; border-collapse: collapse; font-size: .95rem; }
.terms th, .terms td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--tint-2); vertical-align: top; }
.terms th { font-weight: 600; padding-right: 12px; }
.tbc { color: var(--ink-soft); font-style: italic; }
.links-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.links-groups h3 { font-size: 1.1rem; margin-bottom: 8px; }
.links-groups ul { list-style: none; }
.links-groups a { display: flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 600; text-decoration-color: var(--accent-soft); text-decoration-thickness: 2px; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .links-groups { grid-template-columns: 1fr; } }
.fee-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); }
@media (max-width: 820px) { .fee-cols { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input[type=text], .field input[type=tel], .field input[type=time], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #c7cac6; border-radius: 12px; background: #fff;
  font: 400 1rem var(--f-body); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-deep); outline: 3px solid rgba(45,114,115,.25); outline-offset: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 2px solid #c7cac6; border-radius: 999px; font-weight: 600; margin: 0; cursor: pointer; background: #fff; }
.checks input { width: 18px; height: 18px; accent-color: var(--pink-deep); margin: 0; }
.checks label:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.form-done { display: none; background: var(--teal-pale); border-radius: 14px; padding: 16px 18px; font-weight: 600; }
.form-done.is-shown { display: block; }
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(47,51,56,.07); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--tint); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--ink-soft); }
.cta-band .hand { color: var(--accent); font-size: 1.35rem; }

/* ---------- Landing page ---------- */
.landing-top { text-align: center; padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 36px); position: relative; }
.landing-top .logo-big { width: min(300px, 76vw); margin: 0 auto 22px; }
.landing-top h1 { margin-bottom: 12px; }
.landing-top .lede { margin: 0 auto; }
.centres { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.centre { border-radius: var(--r-lg); overflow: hidden; background: var(--ct); display: flex; flex-direction: column; }
.centre-marsden { --ct: #f1f6ee; --cd: var(--sage-deep); --cl: #dfe9da; }
.centre-manly { --ct: #fff2ee; --cd: var(--coral-deep); --cl: #f8ddd5; }
.centre-photo img { width: 100%; aspect-ratio: 876 / 420; object-fit: cover; }
.centre-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.centre-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.centre-name h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); color: var(--cd); }
.centre-name .hand { font-size: 1.25rem; color: var(--ink-soft); }
.centre-body > p { color: var(--ink-soft); margin: 0 0 10px; }
.centre .details li { border-bottom-color: var(--cl); padding: 10px 0; }
.centre .details svg { color: var(--cd); }
.centre .btn-row { margin-top: auto; padding-top: 8px; }
.both { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; align-items: center; }
.both-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.both-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.both-list svg { width: 22px; height: 22px; color: var(--pink-deep); margin-top: 2px; }
.both-badge { width: 170px; margin-top: 16px; }
@media (max-width: 860px) { .centres { grid-template-columns: 1fr; } .both { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .both-list { grid-template-columns: 1fr; } }
.sprig { position: absolute; width: 120px; color: var(--sage); opacity: .7; pointer-events: none; }
.sprig-l { left: 2%; top: 30px; transform: rotate(-18deg); }
.sprig-r { right: 2%; top: 60px; transform: scaleX(-1) rotate(-12deg); color: var(--pink); }
@media (max-width: 760px) { .sprig { display: none; } }

/* ---------- Note box ---------- */
.next-note { border: 2px dashed #d8c6c2; border-radius: var(--r-md); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
.next-note p { margin: 0; }
.next-note svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: #f6f7f5; margin-top: 0; padding: 48px 0 28px; font-size: .95rem; }
.footer-in { display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.9fr; gap: 32px; }
.footer-brand img { width: 120px; margin-bottom: 10px; }
.footer-brand .hand { font-size: 1.3rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-brand .hand svg { width: 14px; height: 14px; color: var(--pink); }
.site-footer h2 { font-size: 1.1rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0 0 4px; }
.site-footer a { color: var(--ink); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-links li { margin: 0; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-soft); font-size: .85rem; }
.footer-kindy { width: 150px; margin-top: 10px; }
@media (max-width: 900px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .has-bar { padding-bottom: 76px; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,247,242,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(47,51,56,.08);
  }
  .action-bar .btn { min-height: 50px; }
}

/* ---------- Layout helpers for small screens ---------- */
@media (max-width: 860px) {
  .hero-in, .page-hero-in, .prog-teaser { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-top: 18px; }
  .hero-photo img { aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 90px; }
  .hero-badge { left: auto; right: 10px; bottom: -18px; padding: 8px 10px; max-width: 220px; }
  .hero-badge img { width: 76px; }
  .hero-tag { display: none; }
  .hero h1 { margin-top: 18px; }
  .page-hero-photo { order: -1; }
  .page-hero-photo img { max-height: 260px; border-radius: 22px 22px 80px 22px; }
}
@media (max-width: 420px) {
  .hero .btn-row .btn, .cta-band .btn { width: 100%; }
}

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

/* ---------- Production additions (Oct 2026) ---------- */
.facts-more { margin: 0; padding: 12px 14px 10px; border-top: 1px solid var(--tint-2); font-size: var(--step--1); }
.facts-more a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.tbc-note { margin: 12px 0 0; font-size: var(--step--1); font-style: italic; color: var(--ink-soft); }

/* Gallery page */
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--tint); }
@media (max-width: 1000px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* Fees calculator: the form only shows when JS can run it */
.calc { display: none; }
.js .calc { display: grid; }
.js .calc-nojs { display: none; }
.field-hint { font-size: .875rem; margin: 6px 0 0; color: var(--ink-soft); }
.field-err { color: var(--coral-deep); font-weight: 700; font-size: .9rem; margin: 6px 0 0; }
.field-err:empty { display: none; }
.form > .field-err { margin-top: -10px; }
.field input[aria-invalid="true"] { border-color: var(--coral-deep); }
.affix { display: flex; align-items: center; gap: 8px; max-width: 240px; }
.affix span { font-weight: 700; color: var(--ink-soft); }
.calc-result:not(:empty) { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--tint); }
.calc-result h3 { font-size: 1.2rem; margin-bottom: 4px; }
.calc-result dl { margin: 0; }
.calc-result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--tint-2); }
.calc-result dt { color: var(--ink-soft); }
.calc-result dd { margin: 0; font-weight: 700; white-space: nowrap; }
.calc-result .total { border-bottom: 0; }
.calc-result .total dt { color: var(--ink); font-weight: 700; }
.calc-result .total dd { font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; color: var(--accent); }
.calc-fine { margin: 6px 0 0; font-size: .875rem; color: var(--ink-soft); }
.calc-steps { padding-left: 1.3em; display: grid; gap: 8px; margin: 0; }
.kindy-note { margin-top: 18px; }
.calc-disclaimer { margin: 18px 0 0; padding: 14px 16px; border: 2px dashed #c9cbc8; border-radius: var(--r-sm); font-size: .95rem; }

/* Header: "Join the waitlist" is longer than the old "Enrol now", so tighten spacing to keep one row on desktop */
.nav-links a, .nav-cta .btn { white-space: nowrap; }
@media (min-width: 1121px) {
  .header-in { gap: 16px; }
  .brand { padding-right: 48px; }
  .brand-manly { padding-right: 0; }
  .nav-links a { padding: 6px 8px; }
  .nav-cta { margin-left: 6px; }
  .nav-cta .btn-sm { padding: 8px 14px; }
}

/* ---------- Manly content (Oct 2026): new classes only ---------- */
.room-sub { font-family: var(--f-hand); font-size: 1.4rem; line-height: 1.25; color: var(--rd, var(--accent)); margin: -2px 0 12px; }
@media (min-width: 481px) { .actions.actions-2 { grid-template-columns: 1fr 1fr; } }
/* Manly room blurbs vary in length: keep the growth-chart bars bottom-aligned on one baseline */
@media (min-width: 821px) {
  .centre-manly .growth { grid-template-rows: auto auto auto; align-items: stretch; }
  .centre-manly .room { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
  .centre-manly .room-bar { align-self: end; }
  .centre-manly .room-blurb, .centre-manly .room-link { align-self: start; }
}

/* ---------- Cannon Hill (12 Nov 2026): new classes only ---------- */
.centre-cannonhill {
  --accent: var(--lav-deep);
  --accent-soft: var(--lav);
  --tint: #f4f1fa;
  --tint-2: #e9e4f5;
}
.centre-cannonhill { --ct: #f4f1fa; --cd: var(--lav-deep); --cl: #e3ddf2; }
.soon-flag { display: inline-block; background: var(--lav-pale); color: var(--lav-deep); font-weight: 700; font-size: 0.875rem; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; margin: 0 0 12px; }
.tbc-text { color: var(--ink-soft); font-style: italic; }
/* footer now lists three centres */
.footer-in { grid-template-columns: 1.1fr 1fr 1fr 1fr 0.9fr; gap: 28px; }
@media (max-width: 1100px) { .footer-in { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-in { grid-template-columns: 1fr; } }
