/* ============================================================
   Tiny Acorns — preschool dance website
   Visual system: refined & warm. One coherent layer.

   Layers:  1 Tokens · 2 Themes · 3 Base/Reset · 4 Typography
            5 Components · 6 Layout · 7 Sections · 8 Motion
            9 Responsive · 10 Reduced motion

   Colour discipline: each section sets --accent / --accent-deep /
   --accent-tint once; everything inside references var(--accent).
   ============================================================ */

/* ===========================================================
   1 · TOKENS
   =========================================================== */
:root {
  /* ----- Brand hues (each: base / deep / soft tint / wash) ----- */
  --rose:        #F0588C;
  --rose-deep:   #D43A72;
  --rose-soft:   #ffd6e6;
  --rose-wash:   #fff3f7;

  --teal:        #1FB6C4;
  --teal-deep:   #0A8C9A;
  --teal-soft:   #c4f0f5;
  --teal-wash:   #effbfc;

  --marigold:    #F6A828;
  --marigold-deep:#D9870C;
  --marigold-soft:#ffe6bd;
  --marigold-wash:#fff7ea;

  --lime:        #7FC23F;
  --lime-deep:   #5C9A28;
  --lime-soft:   #ddf2c6;
  --lime-wash:   #f4fbea;

  --grape:       #9166C9;
  --grape-deep:  #6F45A8;
  --grape-soft:  #e6daf6;
  --grape-wash:  #f7f2fc;

  /* ----- Neutrals ----- */
  --cream:       #FFF8EE;
  --cream-2:     #FBEFDD;
  --surface:     #ffffff;
  --ink:         #463221;
  --ink-soft:    #846a54;
  --line:        #efe4d3;       /* hairline borders on cream */

  /* ----- Section accent (overridden per-section below) ----- */
  --accent:      var(--rose);
  --accent-deep: var(--rose-deep);
  --accent-soft: var(--rose-soft);
  --accent-tint: var(--rose-wash);

  /* ----- Depth ----- */
  --shadow-sm:  0 4px 14px -6px rgba(70,50,33,.16);
  --shadow-md:  0 16px 34px -18px rgba(70,50,33,.24);
  --shadow-lg:  0 30px 60px -28px rgba(70,50,33,.30);

  --radius:     22px;
  --radius-lg:  30px;
  --maxw:       1140px;

  --font-head:  'Fredoka', system-ui, sans-serif;
  --font-body:  'Nunito', system-ui, sans-serif;

  /* ----- Legacy aliases (kept so older references still resolve) ----- */
  --orange:      var(--rose);
  --orange-2:    var(--rose);
  --orange-deep: var(--rose-deep);
  --grass:       var(--teal);
  --grass-2:     var(--teal);
  --grass-deep:  var(--teal-deep);
  --pink:        var(--rose);
  --pink-soft:   var(--rose-soft);
  --daisy:       var(--marigold);
  --brown:       var(--ink);
  --brown-soft:  var(--ink-soft);
}

/* ===========================================================
   2 · THEMES  (override brand hues; --accent follows along)
   =========================================================== */
body[data-theme="candy"] {            /* Blossom — softer, cooler */
  --rose: #E0728D; --rose-deep: #BE4E6B; --rose-soft:#f6d4dd; --rose-wash:#fdf4f6;
  --teal: #2BA3AD; --teal-deep: #1B757E; --teal-soft:#c6eaed; --teal-wash:#f0fafb;
  --marigold:#EBA13D; --marigold-deep:#cf820e;
}
body[data-theme="woodland"] {         /* Marigold — earthier, warmer */
  --marigold:#F0A53D; --marigold-deep:#CC7F0F; --marigold-soft:#ffe6bd; --marigold-wash:#fff7ea;
  --lime:#8C9A43; --lime-deep:#6B7329; --lime-soft:#e2e6c2;
  --rose:#E37088; --rose-deep:#C25268;
}

/* ===========================================================
   3 · BASE / RESET
   =========================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 .4em;
  color: var(--ink);
  letter-spacing: -.015em;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===========================================================
   4 · TYPOGRAPHY HELPERS
   =========================================================== */
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 14px;
}
/* small dot before the eyebrow, in the section accent */
.eyebrow::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex: none;
}
/* per-eyebrow colour overrides (HTML uses eb-teal/eb-rose/eb-lime).
   Map each to a local --accent so the dot + text stay in sync. */
.eyebrow.eb-rose  { --accent: var(--rose);     --accent-deep: var(--rose-deep); }
.eyebrow.eb-teal  { --accent: var(--teal);     --accent-deep: var(--teal-deep); }
.eyebrow.eb-lime  { --accent: var(--lime);     --accent-deep: var(--lime-deep); }

/* accent word inside a heading */
.uline { color: var(--accent-deep); }
.uline.u-teal     { color: var(--teal-deep); }
.uline.u-marigold { color: var(--marigold-deep); }
.uline.u-lime     { color: var(--lime-deep); }

.lead { font-size: 1.22rem; color: var(--ink-soft); }

/* ===========================================================
   5 · COMPONENTS
   =========================================================== */

/* ---------- Buttons (refined, soft, friendly) ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  transition: transform .18s ease, box-shadow .22s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(240,88,140,.6);
}
.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(240,88,140,.65);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 6px 14px -8px rgba(240,88,140,.6); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: var(--shadow-md);
}

/* secondary CTA used in band hero — teal-tinted to harmonise */
.btn-green {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(31,182,196,.55);
}
.btn-green:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(31,182,196,.6); }

/* ---------- Card base ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Trust pill ---------- */
.trust {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  background: var(--surface); padding: 9px 18px 9px 14px;
  border-radius: 999px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stars { color: var(--marigold); letter-spacing: 1px; font-size: 1.05rem; }

/* ---------- Icons ---------- */
.ico-svg {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico-fill { fill: currentColor; stroke: none; }
.btn .ico-svg { width: 1.15em; height: 1.15em; }
.info-row .ic .ico-svg { width: 24px; height: 24px; }
.socials .ico-svg { width: 26px; height: 26px; }
.rv-actions .ico-svg { width: 1.15em; height: 1.15em; }
.form-success .big .ico-svg { width: 56px; height: 56px; margin: 0 4px; }
.tt-badge .ico-svg { width: 28px; height: 28px; }
.tt-venue .ico-svg { width: 15px; height: 15px; color: var(--accent); }

/* ===========================================================
   6 · LAYOUT
   =========================================================== */

/* ---------- Header — floating island (always visible, floats on scroll) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 10px 16px;
  /* always visible */
  transform: translateY(0);
  transition: padding .35s ease;
}
/* The inner pill */
.site-header .nav {
  background: rgba(255,248,238,.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 999px;
  box-shadow:
    0 4px 20px -6px rgba(70,50,33,.14),
    inset 0 1px 0 rgba(255,255,255,.8);
  height: 62px;
  padding: 0 8px 0 14px;
  transition: box-shadow .3s ease, background .3s ease;
}

/* docked — slightly more opaque + stronger shadow after scroll */
.site-header.is-floating .nav {
  background: rgba(255,248,238,.95);
  box-shadow:
    0 8px 32px -8px rgba(70,50,33,.20),
    0 2px 8px -2px rgba(70,50,33,.10),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.nav { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand .brand-text { display: none; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--rose-deep); background: var(--rose-wash); }
.nav .btn { padding: 10px 18px; font-size: .95rem; border-radius: 999px; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: 92px 0; position: relative; }
.section > .wrap { position: relative; z-index: 1; }   /* content sits above section background */

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.section-head p  { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  --accent: var(--teal); --accent-deep: var(--teal-deep);
  background: #e8f3f2; color: var(--ink); padding: 56px 0 30px; position: relative;
}
.site-footer .brand img { height: 58px; width: auto; }
.footer-wave { line-height: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer .brand b { color: var(--ink); }
.site-footer .brand .brand-text span { color: var(--teal-deep); }
.site-footer a { color: var(--ink-soft); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--rose-deep); text-decoration: underline; }
.foot-col h4 { color: var(--teal-deep); font-size: 1.05rem; letter-spacing: .04em; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom { border-top: 1px solid rgba(70,50,33,.14); margin-top: 40px; padding-top: 20px; text-align: center; font-size: .88rem; color: var(--ink-soft); }

/* ===========================================================
   7 · SECTIONS
   =========================================================== */

/* Per-section accent assignment (one colour owns each) */
.hero      { --accent: var(--marigold); --accent-deep: var(--marigold-deep); --accent-soft: var(--marigold-soft); --accent-tint: var(--marigold-wash); }
.about     { --accent: var(--rose);     --accent-deep: var(--rose-deep);     --accent-soft: var(--rose-soft);     --accent-tint: var(--rose-wash); }
.classes   { --accent: var(--lime);     --accent-deep: var(--lime-deep);     --accent-soft: var(--lime-soft);     --accent-tint: var(--lime-wash); }
.timetable { --accent: var(--teal);     --accent-deep: var(--teal-deep);     --accent-soft: var(--teal-soft);     --accent-tint: var(--teal-wash); }
.reviews   { --accent: var(--grape);    --accent-deep: var(--grape-deep);    --accent-soft: var(--grape-soft);    --accent-tint: var(--grape-wash); }
.gallery   { --accent: var(--marigold); --accent-deep: var(--marigold-deep); --accent-soft: var(--marigold-soft); --accent-tint: var(--marigold-wash); }
.contact   { --accent: var(--rose);     --accent-deep: var(--rose-deep);     --accent-soft: var(--rose-soft);     --accent-tint: var(--rose-wash); }

/* ---------- HERO (shared) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 78% 10%, rgba(246,168,40,.28), transparent 52%),
    radial-gradient(ellipse 70% 55% at 18% 5%,  rgba(240,88,140,.18), transparent 52%),
    radial-gradient(ellipse 100% 70% at 50% 90%, rgba(31,182,196,.10), transparent 60%),
    linear-gradient(170deg, #fcecd8 0%, #fdf4e8 40%, #fdfaf5 75%, var(--cream) 100%);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.hero-variant { display: none; }
body[data-hero="story"] .hero--story,
body[data-hero="split"] .hero--split,
body[data-hero="band"]  .hero--band { display: block; }

/* Variant: Storybook — redesigned as a proper split hero */
.hero--story {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero--story .hero-inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Left: full-height photo */
.hero--story .hero-photo {
  position: relative;
  overflow: hidden;
}
.hero--story .hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
/* warm gradient bleed on the right edge so photo melts into the text side */
.hero--story .hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(252,237,216,.55) 100%);
  pointer-events: none;
}

/* Right: brand + text */
.hero--story .hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 64px 60px 56px;
  background: linear-gradient(135deg, #fcecd8 0%, #fdf6ec 55%, #fdfaf5 100%);
  position: relative;
}
/* subtle radial warmth behind the text */
.hero--story .hero-text-side::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 80% 20%, rgba(246,168,40,.22), transparent 60%);
}

.hero--story .hero-logo {
  width: min(240px, 70%);
  height: auto;
  margin-bottom: 28px;
}
.hero--story h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: .5em;
}
.hero--story .lead {
  color: var(--ink-soft);
  font-size: 1.18rem;
  max-width: 36ch;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

/* Variant: Split */
.hero--split .hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 24px 36px; max-width: var(--maxw); margin: 0 auto; }
.hero--split h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero--split .lead { max-width: 32ch; margin-bottom: 26px; }
.hero--split .hero-cta { justify-content: flex-start; }
.photo-blob { position: relative; }
.photo-blob img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: 44% 56% 52% 48% / 56% 50% 50% 44%;
  box-shadow: var(--shadow-lg), 0 0 0 10px #fff;
}
.blob-badge {
  position: absolute; background: var(--surface); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow-md); font-family: var(--font-head); font-weight: 600;
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
}
.blob-badge .emoji { font-size: 1.4rem; display: inline-flex; }
.blob-badge.b1 { top: 6%;  left: -5%;  color: var(--teal-deep); }
.blob-badge.b2 { bottom: 8%; right: -4%; color: var(--rose-deep); }

/* Variant: Band (full photo) */
.hero--band .band-photo { position: relative; height: clamp(460px, 72vh, 660px); overflow: hidden; }
.hero--band .band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero--band .band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(54,38,24,.80) 0%, rgba(54,38,24,.46) 46%, rgba(54,38,24,.04) 100%);
  display: flex; align-items: center;
}
.hero--band .band-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero--band .band-card { max-width: 560px; color: #fff; }
.hero--band h1 { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.2rem); text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.hero--band .lead { color: #fff; opacity: .96; margin-bottom: 26px; max-width: 40ch; }
.hero--band .hero-cta { justify-content: flex-start; }
.hero--band .eyebrow { color: #fff; }
.hero--band .eyebrow::before { background: var(--rose); }

/* grass divider at base of hero — hidden for split story variant */
.hero-foot { position: relative; margin-top: -2px; line-height: 0; }
.hero-foot svg { display: block; width: 100%; }
body[data-hero="story"] .hero-foot { display: none; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.signature { font-family: var(--font-head); color: var(--rose-deep); font-size: 1.45rem; font-weight: 600; margin-top: .5em; }

/* ---------- Classes ---------- */
.classes { background: var(--cream); }
/* stretch makes all cards the same height */
.class-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; align-items: stretch; }

.class-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;          /* clip bottom wave to card shape */
  box-shadow: 0 8px 32px -8px rgba(70,50,33,.18);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
/* let the badge escape the overflow:hidden by living outside the card stacking context */
.class-top-wave { overflow: visible; }
.class-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px -14px rgba(70,50,33,.24); }

/* colour variants */
.cc-rose     { --cc: var(--rose);     --cc-deep: var(--rose-deep);     --cc-soft: #fde8f0; }
.cc-marigold { --cc: var(--marigold); --cc-deep: var(--marigold-deep); --cc-soft: #fef0d4; }
.cc-teal     { --cc: var(--teal);     --cc-deep: var(--teal-deep);     --cc-soft: #d8f5f8; }

/* photo wrap — photo sits on top, wave band overlaps below it */
.class-photo-wrap {
  flex-shrink: 0;
  position: relative;
  line-height: 0;
  overflow: visible;   /* badge must escape */
}
.class-photo {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
  border-radius: 24px 24px 0 0;
}

/* wave band: coloured below the photo, white wave cut from the top */
.class-wave-band {
  position: relative;
  line-height: 0;
  margin-top: -2px;   /* overlap photo bottom by 2px to prevent gap */
}
.class-wave-svg {
  width: 100%; height: 80px; display: block;
}

/* badge circle: centred on the wave seam */
.class-icon-wrap {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.class-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--cc);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,.25);
  border: 4px solid #fff;
}

/* text body — extra top padding to clear the badge */
.class-body {
  padding: 46px 26px 16px;
  text-align: center;
  flex: 1;
}
.class-body h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cc);
  margin-bottom: .3em;
}
.class-body p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0;
  text-align: left;
}

/* character area — fixed height, sits over the bottom coloured pool */
.class-character-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 210px;
  z-index: 2;
}
.class-character {
  width: 175px; height: 175px;
  object-fit: contain;
  position: relative; z-index: 2;
}

/* bottom wave — coloured soft pool behind character */
.class-bottom-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 1;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}
.class-bottom-wave svg { width: 100%; height: 80px; display: block; }

/* decorative music/sparkle icons scattered around character */
.cc-deco {
  position: absolute;
  color: var(--cc);
  pointer-events: none;
  z-index: 3;
}
.cc-deco-spark1 { width: 18px; height: 18px; top: 20px; left: 18px; opacity: .7; }
.cc-deco-spark2 { width: 12px; height: 12px; top: 50px; right: 22px; opacity: .5; }
.cc-deco-note1  { width: 22px; height: 22px; bottom: 60px; left: 14px; opacity: .65; }
.cc-deco-dot1   { width: 10px; height: 10px; bottom: 30px; right: 30px; opacity: .45; }

/* ---------- Timetable ---------- */
.timetable { background: linear-gradient(180deg, var(--cream), var(--teal-wash) 130%); }
.tt-grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tt-day { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tt-day:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tt-day-head { display: flex; align-items: center; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.tt-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }
.tt-badge-rose { background: var(--rose); box-shadow: 0 10px 20px -10px rgba(240,88,140,.6); }
.tt-badge-teal { background: var(--teal); box-shadow: 0 10px 20px -10px rgba(31,182,196,.55); }
.tt-dayinfo h3 { margin: 0; font-size: 1.45rem; line-height: 1.1; }
.tt-venue { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-family: var(--font-head); font-weight: 500; font-size: .92rem; margin-top: 2px; }
.tt-list { list-style: none; margin: 0; padding: 8px 0; }
.tt-item { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 26px 16px 22px; position: relative; }
.tt-item + .tt-item { border-top: 1px dashed var(--line); }
.tt-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; }
.tt-ballet::before { background: var(--rose); }
.tt-tap::before    { background: var(--marigold); }
.tt-street::before { background: var(--teal); }
.tt-time { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; color: var(--ink); background: var(--cream-2); padding: 8px 14px; border-radius: 12px; min-width: 78px; text-align: center; }
.tt-info { display: flex; flex-direction: column; }
.tt-info b { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.15; }
.tt-info small { font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: .86rem; }
.tt-age { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); padding: 5px 13px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.tt-note { text-align: center; color: var(--ink-soft); margin-top: 30px; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%; }

/* ---------- Reviews (Facebook-style cards) ---------- */
.reviews { background: var(--cream); }
.review-cols { columns: 3; column-gap: 24px; }
.review {
  break-inside: avoid; background: var(--surface); border-radius: 16px; padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px; border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
}
.rv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* avatar background colour is injected per-review by app.js — do not set it here */
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; flex: none; box-shadow: var(--shadow-sm); }
.rv-meta b { font-size: 1rem; }
.rv-meta .rec { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.rv-meta .rec .star { color: var(--rose); }
.rv-meta .date { color: var(--ink-soft); font-size: .82rem; }
.rv-text { color: var(--ink); font-size: 1.02rem; margin: 0; }
.reviews-cta { text-align: center; margin-top: 36px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--cream); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gal-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); cursor: pointer; border: 4px solid #fff; position: relative; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(43,30,18,.86); display: none; align-items: center; justify-content: center; padding: 30px; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 5px solid #fff; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-md); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.5rem; }
.info-list { display: grid; gap: 14px; margin: 22px 0; }
.info-row { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 16px 18px; border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.info-row .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--cream-2); color: var(--accent-deep); }
.info-row b { font-family: var(--font-head); font-weight: 600; }
.info-row a { color: var(--rose-deep); text-decoration: none; font-weight: 700; word-break: break-word; }
.info-row a:hover { text-decoration: underline; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s; }
.socials a:hover { transform: translateY(-3px); }
.s-fb { background: #1877f2; }
.s-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.s-email { background: var(--teal); }

.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h3 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; margin-bottom: 7px; font-size: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line);
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.field.bad input, .field.bad select, .field.bad textarea { border-color: #e0556a; background: #fff4f5; }
.field .err { color: #cc3b50; font-size: .85rem; margin-top: 6px; display: none; font-weight: 700; }
.field.bad .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; text-align: center; padding: 20px 10px; }
.form-success.show { display: block; }
.form-success .big { font-size: 3.4rem; }
.form-success h3 { color: var(--teal-deep); }


/* ===========================================================
   8 · MOTION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   9 · RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  /* Mobile nav drops below the floating pill */
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(255,248,238,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,.7);
    border-radius: 24px;
    flex-direction: column; align-items: stretch;
    padding: 12px 14px 16px; gap: 2px;
    box-shadow: 0 16px 40px -12px rgba(70,50,33,.22);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.34,1.4,.64,1), opacity .22s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 11px 14px; font-size: 1.05rem; border-radius: 14px; }
  .nav-links .btn { margin-top: 6px; justify-content: center; border-radius: 14px; }
  .nav-toggle { display: flex; }
  .nav .btn.nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; }

  /* Story hero: stack on tablet */
  .hero--story .hero-inner { grid-template-columns: 1fr; }
  .hero--story .hero-photo { height: 52vw; min-height: 260px; max-height: 420px; }
  .hero--story .hero-text-side { padding: 40px 32px 50px; text-align: center; align-items: center; }
  .hero--story .hero-cta { justify-content: center; }
  .hero--story .lead { margin-left: auto; margin-right: auto; }

  .hero--split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero--split .lead { margin-left: auto; margin-right: auto; }
  .hero--split .hero-cta { justify-content: center; }
  .hero--split .photo-blob { max-width: 440px; margin: 10px auto 0; }
  .blob-badge.b1 { left: 0; } .blob-badge.b2 { right: 0; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { max-width: 520px; }
  .class-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .tt-grid { grid-template-columns: 1fr; max-width: 560px; }
  .review-cols { columns: 2; }
  .gal-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 62px 0; }
  .wrap { padding: 0 18px; }
  .hero--story .hero-logo { width: min(200px, 60%); }
  .hero--story .hero-text-side { padding: 32px 20px 44px; }
  .hero--story h1 { font-size: clamp(2rem, 6.5vw, 2.8rem); }
  .review-cols { columns: 1; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .form-row { grid-template-columns: 1fr; }
  .tt-item { grid-template-columns: auto 1fr auto; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero--band .band-overlay { background: linear-gradient(180deg, rgba(54,38,24,.25), rgba(54,38,24,.82)); align-items: flex-end; padding-bottom: 30px; }
}

/* ===========================================================
   10 · REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
  .hero-scroll-hint { animation: none; }
  .reveal { transition: opacity .3s ease; transform: none; }
  .reveal.in { transform: none; }
  .btn:hover, .class-card:hover, .tt-day:hover, .gal-item:hover img, .socials a:hover { transform: none; }
  .gal-item img { transition: none; }
}
