/* Preschool template — Steenbok Solutions
   ========================================================================
   TO RE-SKIN FOR A NEW SCHOOL: change the eight values in the BRAND block
   below and nothing else in this file. Five ready-made palettes are in
   themes.css — paste one over the BRAND block.
   ======================================================================== */

:root {
  /* ---- BRAND ---------------------------------------------------------- */
  --primary:      #d95f43;   /* buttons, links, headings accent           */
  --primary-deep: #b04527;   /* hover state, dark bands                   */
  --primary-wash: #fcece7;   /* tinted card backgrounds                   */
  --accent:       #3f8f7a;   /* eyebrows, ticks, the second colour        */
  --accent-deep:  #2c6655;   /* dark sections                             */
  --paper:        #ffffff;   /* cards                                     */
  --page:         #fdf9f3;   /* page background                           */
  --line:         #ece2d4;   /* borders                                   */
  /* --------------------------------------------------------------------- */

  --ink:      #26201c;
  --ink-soft: #6b625a;

  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 1px 2px rgba(38,32,28,.05), 0 10px 26px rgba(38,32,28,.07);
  --shadow-lg: 0 2px 6px rgba(38,32,28,.06), 0 28px 58px rgba(38,32,28,.13);
  --wrap:      1160px;

  --sans:  "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.66; color: var(--ink); background: var(--page); }
img { max-width: 100%; display: block; }
a { color: var(--primary-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.17; letter-spacing: -.014em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
p  { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 790px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--primary); color: #fff; padding: .7rem 1.1rem; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

section[id] { scroll-margin-top: 92px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--primary); color: #fff; border: 2px solid var(--primary);
  padding: .62rem 1.2rem; border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); transform: translateY(-1px); }
.btn-sm { padding: .45rem 1.05rem; font-size: .92rem; white-space: nowrap; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--accent-deep); border-color: #fff; }
.btn-white:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.eyebrow { font-size: .77rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
.eyebrow.light { color: #ffd9c9; }
.fineprint { font-size: .86rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(253,249,243,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { fill: var(--accent); stroke: none; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 1.16rem; line-height: 1.2; }
.brand-text small { display: block; font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .94rem; font-weight: 550; }
.site-nav a:hover { color: var(--primary-deep); }
@media (max-width: 1020px) { .site-nav { display: none; } }
@media (max-width: 520px) { .brand-text small { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 55ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.3rem; }
.hero-note { font-size: .92rem; color: var(--ink-soft); border-left: 3px solid var(--accent); padding-left: .9rem; margin: 0; max-width: 48ch; }

.hero-visual { position: relative; aspect-ratio: 1 / .92; }
.blob { position: absolute; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; }
.blob.b1 { inset: 4% 10% 18% 4%;  background: linear-gradient(150deg, var(--primary), var(--primary-deep)); }
.blob.b2 { inset: 30% 2% 6% 34%;  background: linear-gradient(150deg, var(--accent), var(--accent-deep)); opacity: .92; border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%; }
.blob.b3 { inset: 12% 30% 48% 42%; background: var(--primary-wash); border-radius: 50%; }
.hero-badge {
  position: absolute; right: 2%; top: 8%; z-index: 2;
  background: var(--paper); border-radius: var(--radius); padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lg); text-align: center;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--primary-deep); line-height: 1; }
.hero-badge span { font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* ---------- strip ---------- */
.strip { background: var(--accent-deep); color: #c9ded7; padding: 1.9rem 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; text-align: center; }
.strip-item strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1.15; }
.strip-item span { font-size: .88rem; }
@media (max-width: 760px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--accent-deep); color: #c9ded7; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-lede { font-size: 1.05rem; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- age groups ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.group {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .17s ease, box-shadow .17s ease;
}
.group:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.group-alt { background: var(--primary-wash); border-color: transparent; }
.group-age { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--primary-deep); margin: 0 0 .3rem; }
.group h3 { margin-bottom: .25rem; font-size: 1.22rem; font-family: var(--serif); font-weight: 500; }
.group-ratio { font-size: .88rem; font-weight: 600; color: var(--accent-deep); margin: 0 0 .8rem; }
.group > p:last-child { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 980px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .groups { grid-template-columns: 1fr; } }

/* ---------- daily timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 1rem; padding-bottom: 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 1.6rem; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .t { font-size: .84rem; font-weight: 700; color: var(--primary-deep); padding-left: 20px; position: relative; font-variant-numeric: tabular-nums; }
.timeline .t::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--primary); }
.timeline strong { display: block; font-size: .98rem; }
.timeline p { margin: .1rem 0 0; font-size: .92rem; color: var(--ink-soft); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; color: var(--ink-soft); font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.callout { background: var(--primary-wash); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.callout h3 { margin-bottom: .4rem; }
.callout p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- safety ---------- */
.feature { background: linear-gradient(150deg, var(--accent-deep) 0%, #1e4a3d 100%); color: #c9ded7; }
.feature h2, .feature h3 { color: #fff; }
.feature .section-lede { color: #a7c5bb; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.safety { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.5rem 1.4rem; }
.safety p { margin: 0; font-size: .95rem; color: #bcd6cc; }
@media (max-width: 760px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------- fees ---------- */
.fees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fee { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow); }
.fee-feature { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.fee-group { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.fee-amt { font-family: var(--serif); font-size: 2rem; color: var(--ink); margin: 0 0 .9rem; line-height: 1; }
.fee-amt span { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.fee ul { list-style: none; padding: 0; margin: 0; }
.fee li { font-size: .9rem; color: var(--ink-soft); padding: .22rem 0 .22rem 1.1rem; position: relative; }
.fee li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.fee-foot { margin-top: 1.6rem; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 1000px) { .fees { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fees { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { margin-top: 1.8rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.5rem; width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 1.75rem; }
.faq p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .97rem; max-width: 68ch; }

/* ---------- form ---------- */
.contact-list { display: grid; gap: .9rem; margin: 1.8rem 0 0; }
.contact-list dt { font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; color: #ffd9c9; }
.contact-list dd { margin: .2rem 0 0; font-size: .96rem; line-height: 1.55; }

.form { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .79rem; font-weight: 600; letter-spacing: .06em; margin-bottom: .35rem; color: #b7d3c9; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .96rem; color: var(--ink); background: #fff; border: 1px solid transparent; border-radius: 10px; padding: .6rem .8rem; }
.field textarea { resize: vertical; }
.form .fineprint { color: #9bbcb1; text-align: center; margin: .9rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #1e4a3d; color: #9bbcb1; padding: 2.4rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-end; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.site-footer p { margin: .4rem 0 0; }
.site-footer a { color: #d6e8e1; }
.credit { font-size: .84rem; }

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