/* Little Wonder ECD Centre
   Type: Petrona (headings) + Nunito Sans (body)
   Paper #FBF8F2, ink #1F1B24, grape #4B1E58, pink #E5007E */

:root {
  --paper: #FBF8F2;
  --sand: #F3EEE4;
  --ink: #1F1B24;
  --ink-2: #3A3341;
  --ink-3: #4A4353;
  --muted: #6B6274;
  --line: #DED6C8;
  --line-2: #D3C9B8;
  --line-3: #C9BEAC;
  --grape: #4B1E58;
  --pink-deep: #8E2168;
  --pink: #E5007E;
  --sun: #FFC20E;
  --serif: 'Petrona', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.page { background: var(--paper); overflow-x: hidden; }

a { color: var(--grape); }
a:hover { color: var(--pink-deep); }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--grape);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- reveal on scroll ---------- */

[data-reveal], [data-reveal-group] > * {
  transition: opacity 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 760ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.om-motion [data-reveal]:not(.om-in),
html.om-motion [data-reveal-group] > *:not(.om-in) {
  opacity: 0;
  transform: translateY(14px);
}
[data-reveal-group] > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-group] > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-group] > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-group] > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-group] > *:nth-child(n+6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.om-motion [data-reveal]:not(.om-in),
  html.om-motion [data-reveal-group] > *:not(.om-in) { opacity: 1; transform: none; }
}

/* ---------- shared ---------- */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap--hero { padding-top: 64px; }
.wrap--herophoto { padding-top: 44px; }
.wrap--stats { padding-top: 56px; padding-bottom: 56px; }
.wrap--about { padding-top: 24px; padding-bottom: 72px; }
.wrap--rhythm { padding-top: 72px; padding-bottom: 72px; }
.wrap--admissions { padding-top: 72px; padding-bottom: 72px; }

.band { padding: 72px 0; }
.band--sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--visit { border-bottom: none; }
.band--grape { background: var(--grape); color: var(--paper); }

.eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow--pink { color: var(--pink-deep); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--onDark { color: #fff; }

.h2 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.h2--onDark { color: #fff; }

.accent-rule { width: 52px; height: 2px; margin-top: 22px; }
.accent-rule--pink { background: var(--pink); }
.accent-rule--sun { background: var(--sun); }

.body-lg {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.body-lg + .body-lg { margin-top: 16px; }
.body-lg--onDark { color: #fff; max-width: 32em; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--grape);
  color: var(--paper);
  transition: background 240ms ease;
}
.btn--primary:hover { background: var(--pink-deep); color: var(--paper); }
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-3);
  transition: border-color 240ms ease, color 240ms ease;
}
.btn--secondary:hover { border-color: var(--grape); color: var(--grape); }
.btn--block { width: 100%; padding: 16px 22px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.brand { text-decoration: none; display: flex; flex-direction: column; gap: 4px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand__kicker {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-link { text-decoration: none; color: var(--ink-2); transition: color 220ms ease; }
.nav-link:hover { color: var(--pink-deep); }
.nav-cta {
  text-decoration: none;
  color: var(--paper);
  background: var(--grape);
  padding: 11px 20px;
  letter-spacing: 0.14em;
  transition: background 240ms ease;
}
.nav-cta:hover { background: var(--pink-deep); color: var(--paper); }

.nav-toggle {
  display: none;
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-3);
  padding: 10px 16px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero-meta { display: flex; align-items: stretch; gap: 26px; flex-wrap: wrap; }
.hero-logo { display: block; background: #fff; border: 1px solid var(--line); padding: 12px; line-height: 0; }
.hero-logo img { display: block; width: 172px; height: 145px; }
.hero-meta__right { display: flex; align-items: center; gap: 26px; }
.hero-rule { display: block; width: 1px; background: var(--line); align-self: stretch; }
.hero-facts { display: flex; flex-direction: column; gap: 10px; }

.hero-title {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 17em;
  text-wrap: balance;
}

.hero-lede {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: end;
}
.hero-lede__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 30em;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 55%;
  background: #EFE9DE;
}
.caption-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.caption-row__italic { font-style: italic; font-family: var(--serif); font-size: 14px; }

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat { padding: 26px 28px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: none; }
.stat__num { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; color: var(--grape); }
.stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 56px;
  align-items: start;
}
.pillars { display: grid; gap: 0; }
.pillar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  align-items: start;
}
.pillar--last { border-bottom: 1px solid var(--line); }
.pillar__dot { width: 10px; height: 10px; margin-top: 7px; }
.pillar__title { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.pillar__text { font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin-top: 5px; }

/* ---------- programme ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}
.section-head__note { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-3); max-width: 26em; }

.rooms {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.room__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #E7E0D3;
  transition: filter 420ms ease, transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.room__photo--high { object-position: center 30%; }
.room__photo:hover { filter: brightness(1.04); transform: translateY(-4px); }
.room__body { border-top: 2px solid var(--line); margin-top: 18px; padding-top: 14px; }
.room__kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.room__title { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin-top: 6px; }
.room__text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-3); }

.classes { margin-top: 56px; }
.classes__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 48px;
}
.class-row {
  border-top: 1px solid var(--line-2);
  padding: 18px 12px;
  margin: 0 -12px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: background 260ms ease;
}
.class-row--last { border-bottom: 1px solid var(--line-2); }
.class-row:hover { background: #EFE8DA; }
.class-row__swatch { width: 34px; height: 34px; border: 1px solid rgba(31, 27, 36, 0.18); }
.class-row__name { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.class-row__desc { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.class-row__colour {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- daily rhythm ---------- */

.rhythm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
}
.rhythm .body-lg { max-width: 32em; }
.rhythm__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #EFE9DE;
  margin-top: 30px;
}
.tl {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: baseline;
}
.tl--last { border-bottom: 1px solid var(--line); }
.tl__time { font-family: var(--serif); font-size: 19px; color: var(--grape); }
.tl__title { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.tl__text { font-size: 15px; line-height: 1.6; color: var(--ink-3); margin-top: 3px; }

/* ---------- team ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 52px;
  align-items: center;
}
.team__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #3A1544;
}
.team__caption { font-size: 12px; color: #fff; margin-top: 10px; font-style: italic; font-family: var(--serif); }

/* ---------- admissions ---------- */

.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step__num { font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; color: var(--pink-deep); }
.step__title { font-family: var(--serif); font-size: 24px; font-weight: 500; margin-top: 8px; }
.step__text { margin: 8px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------- visit ---------- */

.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
}
.visit .body-lg { max-width: 31em; }
.details { margin-top: 30px; max-width: 34em; }
.detail {
  border-top: 1px solid var(--line-2);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: baseline;
}
.detail--last { border-bottom: 1px solid var(--line-2); }
.detail__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail__value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--grape);
  text-decoration: none;
  border-bottom: 1px solid var(--line-3);
}
.detail__value--lg { font-size: 19px; }
.detail__value--break { word-break: break-all; }
.detail__plain { font-size: 16px; color: var(--ink); text-align: right; max-width: 22em; }

.enquiry { background: var(--paper); border: 1px solid var(--line); padding: 32px; }
.enquiry__title { font-family: var(--serif); font-size: 27px; font-weight: 500; color: var(--ink); }
.enquiry__lede { margin: 8px 0 24px; font-size: 15px; line-height: 1.65; color: var(--ink-3); }
.enquiry__form { display: grid; gap: 20px; }

.field {
  display: grid;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  font-family: var(--sans);
  font-size: 16px;
  padding: 9px 2px;
  border: none;
  border-bottom: 1px solid var(--line-3);
  background: transparent;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field__input:focus { border-bottom-color: var(--grape); }
.field__input--area { resize: vertical; }
.field__input:user-invalid { border-bottom-color: #C8102E; }

.enquiry__hint { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.enquiry__done {
  font-size: 15px;
  line-height: 1.6;
  color: #2F6B1C;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: #E6E1EC; padding: 52px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
}
.footer-logo { display: block; width: 150px; height: 127px; background: #fff; }
.footer-name { font-family: var(--serif); font-size: 24px; color: #fff; margin-top: 16px; }
.footer-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B6AEC4;
  margin-top: 8px;
}
.footer-col { font-size: 14.5px; line-height: 1.85; }
.footer-col__head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B6AEC4;
  margin-bottom: 8px;
}
.footer-col a { color: #EBD9F2; }
.footer-col a:hover { color: #fff; }
.footer-base {
  border-top: 1px solid #3A3341;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #B6AEC4;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stat { padding-left: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-link,
  .site-nav .nav-cta {
    width: 100%;
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }
  .site-nav .nav-cta { background: transparent; color: var(--grape); }
  .site-nav .nav-cta:hover { background: transparent; color: var(--pink-deep); }
}

@media (max-width: 700px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header__inner { padding-left: 20px; padding-right: 20px; }
  .wrap--hero { padding-top: 44px; }
  .band { padding: 52px 0; }
  .wrap--rhythm, .wrap--admissions { padding-top: 52px; padding-bottom: 52px; }
  .about, .rhythm, .visit, .team { gap: 40px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .enquiry { padding: 24px; }
  .detail { flex-direction: column; align-items: flex-start; gap: 6px; }
  .detail__plain { text-align: left; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

@media print {
  .site-header, .nav-toggle, .enquiry { display: none; }
  html.om-motion [data-reveal]:not(.om-in),
  html.om-motion [data-reveal-group] > *:not(.om-in) { opacity: 1; transform: none; }
}
