/* Indigo Meadow Learning Centre
   Style: nature distilled, on white. Tokens match the Indigo Meadow design system. */

:root {
  --surface: #FFFFFF;
  --surface-soft: #F6F7F2;
  --line: #E3E6DD;
  --ink: #25303B;
  --ink-muted: #5D6670;
  --indigo: #34406B;
  --indigo-hover: #2A3458;
  --on-indigo: #FFFFFF;
  --indigo-soft: #E9EBF4;
  --meadow: #56704B;
  --meadow-soft: #EAF0E4;
  --buttercup: #F2C14E;
  --buttercup-soft: #FCF3DC;
  --logo-navy: #253752;

  --font-display: "Nunito", ui-rounded, system-ui, sans-serif;
  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-16: 64px;
  --section: 64px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --shadow-soft: 0 2px 6px #25303B0F, 0 10px 24px -6px #25303B1F;
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #34406B;

  --content: 1160px;
  --measure: 62ch;
}

@media (min-width: 900px) {
  :root { --section: 96px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 76px; /* room for the mobile tour bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5.2vw, 50px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--content); margin: 0 auto; padding-inline: var(--space-4); }
@media (min-width: 640px) { .wrap { padding-inline: var(--space-6); } }

.section { padding-block: var(--section); }
.section--soft { background: var(--surface-soft); }
.section-head { display: grid; gap: var(--space-2); max-width: var(--measure); margin-bottom: var(--space-10); }
.section-head p { color: var(--ink-muted); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--meadow);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buttercup); }

.hand { font-family: var(--font-hand); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--meadow); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: var(--on-indigo); padding: 8px 14px; border-radius: var(--radius-full); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--indigo); color: var(--on-indigo); }
.btn--primary:hover { background: var(--indigo-hover); color: var(--on-indigo); }
.btn--outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--outline:hover { background: var(--indigo-soft); color: var(--indigo); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 12.5px; color: var(--ink-muted); }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--logo-navy); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 16px; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: var(--radius-full); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav a:hover { background: var(--indigo-soft); color: var(--indigo); }
.nav a[aria-current="page"] { color: var(--indigo); background: var(--indigo-soft); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn { display: none; }

.menu-toggle {
  width: 44px; height: 44px; border-radius: var(--radius-full); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-2) 0 var(--space-4); }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--indigo); }

@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-actions .btn { display: inline-flex; }
}

/* Mobile tour bar */
.tour-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; gap: var(--space-2);
}
.tour-bar .btn { flex: 1; min-height: 48px; }
@media (min-width: 960px) { .tour-bar { display: none; } }

/* Notice banner */
.notice { background: var(--buttercup-soft); font-size: 15px; }
.notice .wrap { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding-block: 8px; }
.notice .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--buttercup); }

/* Hero */
.hero { padding-block: var(--space-10) var(--section); }
.hero-grid { display: grid; gap: var(--space-10); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); }
.hero-copy .lede { font-size: 19px; color: var(--ink-muted); max-width: 40ch; }
.hero-media { position: relative; }
.hero-media .photo { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.hero-media .sun { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--buttercup); top: -18px; right: 22px; z-index: -1; }
.hero-media .hill { position: absolute; left: -18px; bottom: -18px; width: 180px; height: 90px; border-radius: 180px 180px 0 0; background: var(--meadow-soft); z-index: -1; }
.hero-media .note { position: absolute; left: 12px; bottom: -40px; transform: rotate(-4deg); }
@media (min-width: 900px) {
  .hero { padding-top: var(--space-16); }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: var(--space-16); }
}

/* Photos and placeholders */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); background: var(--meadow-soft); }
.ph {
  display: grid; place-items: center; text-align: center; padding: var(--space-4);
  background:
    radial-gradient(circle at 78% 26%, var(--buttercup-soft) 0 34px, transparent 35px),
    var(--meadow-soft);
  color: var(--meadow); font-size: 14px; font-weight: 700; border-radius: var(--radius-md);
  border: 1.5px dashed #C9D6BF;
}

/* Quick facts */
.facts { background: var(--indigo-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; line-height: 1.3; }
.facts li span { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-muted); margin-top: 2px; }
.facts svg { flex: none; width: 28px; height: 28px; color: var(--meadow); }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts { padding: var(--space-6) var(--space-10); } }

/* Cards */
.cards { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.card--meadow { background: var(--meadow-soft); border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; }
.card-media .photo, .card-media .ph { border-radius: 0; height: 100%; border: 0; }
.card-body { padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.card-body p { color: var(--ink-muted); }
.card-link { margin-top: var(--space-2); font-weight: 700; }

.icon-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--meadow-soft); color: var(--meadow); display: grid; place-items: center; }
.icon-badge svg { width: 24px; height: 24px; }

/* Split feature */
.split { display: grid; gap: var(--space-10); align-items: center; }
.split-media .photo, .split-media .ph { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); }
.split-copy { display: grid; gap: var(--space-4); max-width: var(--measure); }
.split-copy p { color: var(--ink-muted); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); } .split--flip .split-media { order: 2; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--meadow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2356704B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--meadow-soft); color: var(--meadow); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: var(--radius-sm); }

/* Day timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: var(--space-4); padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--font-display); font-weight: 800; color: var(--indigo); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-family: var(--font-display); }
.timeline span { color: var(--ink-muted); font-size: 15.5px; }

/* Reviews */
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.stars { display: flex; gap: 2px; color: var(--buttercup); }
.stars svg { width: 18px; height: 18px; }
.quote blockquote { margin: 0; font-size: 17px; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink-muted); font-size: 15px; }

/* Gallery */
.gallery { display: grid; grid-auto-flow: dense; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery .photo, .gallery .ph { aspect-ratio: 1 / 1; }
.gallery figcaption { font-size: 14px; color: var(--ink-muted); }
.gallery .wide { grid-column: span 2; }
.gallery .wide .photo, .gallery .wide .ph { aspect-ratio: 2 / 1; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--indigo); color: var(--on-indigo); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; margin-bottom: var(--space-2); }
.steps p { color: var(--ink-muted); }

/* Fee note */
.fee-note { background: var(--buttercup-soft); border-radius: var(--radius-md); padding: var(--space-6); display: grid; gap: var(--space-2); }

/* FAQ */
.faq { display: grid; gap: var(--space-2); max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); max-width: var(--measure); }

/* Action panel */
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 640px) { .panel { padding: var(--space-10); } }
.panel p { color: var(--ink-muted); }
.panel--indigo { background: var(--indigo-soft); border-color: transparent; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-list strong { display: block; font-family: var(--font-display); }
.contact-list a { word-break: break-word; }

/* CTA band */
.cta-band { background: var(--indigo-soft); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-6); display: grid; gap: var(--space-6); text-align: center; justify-items: center; position: relative; overflow: hidden; }
.cta-band p { color: var(--ink-muted); max-width: 48ch; }
.cta-band .hills { position: absolute; inset: auto 0 0 0; height: 40px; pointer-events: none; }
.cta-band .hills i { position: absolute; bottom: -40px; width: 160px; height: 80px; border-radius: 160px 160px 0 0; background: var(--meadow-soft); }

/* Page header */
.page-head { padding-block: var(--space-10) var(--space-6); }
.page-head .wrap { display: grid; gap: var(--space-4); }
.page-head p { font-size: 19px; color: var(--ink-muted); max-width: var(--measure); }
.crumbs { font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-10); font-size: 15.5px; }
.footer-grid { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font-size: 16px; margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--indigo); text-decoration: underline; }
.site-footer .muted { color: var(--ink-muted); }
.legal { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; color: var(--ink-muted); font-size: 14px; }

.stack-6 { display: grid; gap: var(--space-6); }
.stack-4 { display: grid; gap: var(--space-4); }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mt-10 { margin-top: var(--space-10); }
