/* ==========================================================================
   Atawhai Kids — shared stylesheet
   Palette drawn straight from the Atawhai Kids logo: tamariki blue, the
   "Atawhai" leaf green, the grassy lime mound, and the warm logo sun.
   "Atawhai" = kindness / nurture.
   ========================================================================== */

:root {
  /* Colour — sampled from the logo */
  --bush:       #0C57A4;   /* tamariki blue ("Kids") — primary */
  --bush-deep:  #08467F;   /* deep blue — headings & footer */
  --fern:       #728938;   /* leaf green ("Atawhai") */
  --fern-soft:  #E7EFD2;   /* pale leaf wash */
  --sun:        #FAA71A;   /* logo sun — warm accent */
  --sun-soft:   #FDE7BC;
  --sky:        #ABD039;   /* grassy lime mound */
  --sky-soft:   #EDF5D2;
  --coral:      #E8801A;   /* deep amber — used sparingly */
  --paper:      #FCFBF6;   /* soft off-white page */
  --sand:       #F1EEE3;   /* soft section wash */
  --ink:        #21303A;   /* text — deep blue-slate */
  --ink-soft:   #566169;   /* secondary text */
  --white:      #FFFFFF;
  --line:       #E4E0D3;

  /* Type */
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body:    "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Rhythm */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -24px rgba(8, 70, 127, 0.42);
  --shadow-sm: 0 8px 22px -16px rgba(8, 70, 127, 0.48);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bush); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--bush-deep); }

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--bush-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p  { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); }

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--fern);
  margin: 0 0 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.6rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--bush { background: var(--bush); color: var(--sun-soft); }
.section--bush h2, .section--bush h3 { color: var(--white); }
.section--bush .eyebrow { color: var(--sun); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--body); font-weight: 800;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--bush-deep); box-shadow: var(--shadow-sm); }
.btn--sun:hover { background: #f6c25c; color: var(--bush-deep); }
.btn--bush { background: var(--bush); color: var(--white); }
.btn--bush:hover { background: var(--bush-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--bush); border-color: var(--bush); }
.btn--ghost:hover { background: var(--bush); color: var(--white); }
.btn--light { background: var(--white); color: var(--bush-deep); }
.btn--light:hover { background: var(--sun-soft); color: var(--bush-deep); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 249, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__logo { height: 58px; width: auto; display: block; }
@media (max-width: 900px) { .brand__logo { height: 46px; } }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--display); font-weight: 800;
  font-size: 1.35rem; color: var(--bush-deep); line-height: 1;
}
.brand__name small {
  display: block; font-family: var(--body); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fern); margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 0.92rem; padding: 0.5rem 0.7rem;
  border-radius: 999px; transition: background 0.15s ease, color 0.15s ease;
}
.nav__links a:hover { background: var(--fern-soft); color: var(--bush-deep); }
.nav__links a[aria-current="page"] { color: var(--bush-deep); background: var(--sun-soft); }
.nav__cta { margin-left: 0.4rem; }

.nav__toggle {
  display: none; border: 2px solid var(--line); background: var(--white);
  border-radius: 12px; width: 46px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--bush-deep);
}
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem 1.3rem 1.6rem;
    display: none; box-shadow: var(--shadow);
  }
  .nav__menu.open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav__links a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .nav__cta { margin: 0.8rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero — signature organic landscape
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero__title { margin-bottom: 0.4rem; }
.hero__title .kupu { color: var(--sun); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__media {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16 / 11; background: var(--fern-soft);
}
.hero__media iframe { width: 100%; height: 100%; border: 0; display: block; }

/* floating organic blobs behind hero */
.blob { position: absolute; z-index: 0; filter: blur(0.5px); opacity: 0.9; }
.blob--1 { top: -60px; right: -40px; width: 320px; color: var(--sun-soft); }
.blob--2 { bottom: -80px; left: -60px; width: 300px; color: var(--fern-soft); }
.blob--3 { top: 40%; right: 38%; width: 120px; color: var(--sky-soft); }

/* hand-drawn hills that anchor the hero to the ground */
.hills { display: block; width: 100%; margin-top: -2px; color: var(--sky); }
.hills--sand { color: var(--sand); }

/* quick facts strip */
.facts {
  background: var(--bush); color: var(--sun-soft);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  box-shadow: var(--shadow); margin-top: -3.5rem; position: relative; z-index: 3;
}
.fact { text-align: center; }
.fact b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--white); line-height: 1.1; }
.fact span { font-size: 0.82rem; letter-spacing: 0.03em; }
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
}

/* ==========================================================================
   Content building blocks
   ========================================================================== */
.section__head { max-width: 640px; margin-bottom: 2.4rem; }
.section__head.center { margin-inline: auto; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; color: var(--bush); }
.prose > :first-child { margin-top: 0; }

/* card grid */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1rem;
  display: grid; place-items: center; background: var(--fern-soft); color: var(--bush);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card--sun .card__icon { background: var(--sun-soft); color: var(--coral); }
.card--sky .card__icon { background: var(--sky-soft); color: var(--sky); }

/* value chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chips li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 1rem; font-weight: 700; font-size: 0.9rem;
  color: var(--bush-deep);
}

/* pull quote */
.pull {
  border-left: 4px solid var(--sun); padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--bush-deep); line-height: 1.35; margin: 2rem 0;
}
.pull span { color: var(--fern); }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.split__media {
  border-radius: var(--radius); overflow: hidden; min-height: 260px;
  box-shadow: var(--shadow); position: relative;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.split__media--fern { background: linear-gradient(150deg, var(--fern), var(--bush)); color: var(--white); }
.split__media--sun  { background: linear-gradient(150deg, var(--sun), var(--coral)); color: var(--bush-deep); }
.split__media--sky  { background: linear-gradient(150deg, var(--sky), var(--bush)); color: var(--white); }
.split__media svg.motif { width: 120px; height: 120px; opacity: 0.9; }

/* fee highlight */
.pricebar {
  display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0;
}
.pricebar .price {
  flex: 1 1 200px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
}
.pricebar .price .num { font-family: var(--display); font-size: 2.3rem; color: var(--bush); line-height: 1; }
.pricebar .price .num small { font-size: 1rem; color: var(--ink-soft); font-family: var(--body); font-weight: 700; }
.pricebar .price p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

/* callout */
.callout {
  background: var(--sun-soft); border: 1px solid #ecd28a;
  border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 1.8rem 0;
}
.callout h3 { margin-top: 0; color: var(--coral); }
.callout p:last-child { margin-bottom: 0; }

/* interior page hero band */
.page-hero { position: relative; background: var(--bush); color: var(--white); overflow: hidden; }
.page-hero__inner { position: relative; z-index: 2; padding: clamp(2.6rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--sun-soft); }
.page-hero .eyebrow { color: var(--sun); }
.crumbs { font-size: 0.85rem; margin-bottom: 1rem; color: var(--fern-soft); }
.crumbs a { color: var(--sun-soft); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.page-hero .blob--1 { color: rgba(244, 183, 64, 0.18); }
.page-hero .blob--2 { color: rgba(125, 174, 114, 0.22); }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: saturate(1.05); }
.contact__list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.contact__list li { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1rem; }
.contact__list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--fern-soft); color: var(--bush); display: grid; place-items: center; }
.contact__list .ic svg { width: 20px; height: 20px; }
.contact__list b { display: block; color: var(--bush-deep); font-family: var(--display); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.site-footer { background: var(--bush-deep); color: var(--fern-soft); padding: 3rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.site-footer h4 { color: var(--sun); font-size: 1rem; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.site-footer a { color: var(--fern-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__name small { color: var(--fern); }
.footer__logo { height: 74px; width: auto; display: block; }
.footer__mihi { font-family: var(--display); color: var(--sun-soft); font-size: 1.05rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.2rem; padding-top: 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* hero grid collapse */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media { order: -1; }
}

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--bush-deep);
  padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 800; z-index: 100;
}
.skip:focus { left: 0; }

/* focus visibility */
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
