/* ============================================================
   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) -----
       NOTE: the -deep variants are pinned to the bright base hue so that
       text/accents across the site match the "dance, wiggle & shine"
       heading colours. (Button hovers use explicit darker hex values.) */
    --rose: #f0588c;
    --rose-deep: #f0588c;
    --rose-soft: #ffd6e6;
    --rose-wash: #fff3f7;

    --teal: #1fb6c4;
    --teal-deep: #1fb6c4;
    --teal-soft: #c4f0f5;
    --teal-wash: #effbfc;

    --marigold: #f6a828;
    --marigold-deep: #f6a828;
    --marigold-soft: #ffe6bd;
    --marigold-wash: #fff7ea;

    --lime: #7fc23f;
    --lime-deep: #5c9a28;
    --lime-soft: #ddf2c6;
    --lime-wash: #f4fbea;

    --grape: #9166c9;
    --grape-deep: #9166c9;
    --grape-soft: #e6daf6;
    --grape-wash: #f7f2fc;

    /* ----- Neutrals ----- */
    --cream: #fff8ee;
    --cream-2: #fbefdd;
    --surface: #ffffff;
    --ink: #2e2620;
    --ink-soft: #5c504a;
    --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, 0.16);
    --shadow-md: 0 16px 34px -18px rgba(70, 50, 33, 0.24);
    --shadow-lg: 0 30px 60px -28px rgba(70, 50, 33, 0.3);

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

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

    /* sparkle-star shape (used by section markers) */
    --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 6 5 10 12 12-7 2-11 6-12 12-1-6-5-10-12-12 7-2 11-6 12-12z'/%3E%3C/svg%3E");

    /* ----- 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: #fffdfa;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}
/* full-page backdrop of soft round gradient blobs, blurred for a dreamy wash.
   Sits behind all content; scrolls with the page (absolute, not fixed).
   inset:0 (not negative) so it can't add scroll height or horizontal overflow. */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle 720px at 90% 2%,
            rgba(246, 168, 40, 0.4) 0%,
            rgba(246, 168, 40, 0.32) 28%,
            rgba(246, 168, 40, 0) 55%
        ),
        radial-gradient(
            circle 440px at 8% 12%,
            rgba(240, 88, 140, 0.34) 0%,
            rgba(240, 88, 140, 0.26) 28%,
            rgba(240, 88, 140, 0) 55%
        ),
        radial-gradient(
            circle 600px at 96% 26%,
            rgba(70, 188, 203, 0.3) 0%,
            rgba(70, 188, 203, 0.22) 28%,
            rgba(70, 188, 203, 0) 55%
        ),
        radial-gradient(
            circle 820px at 2% 42%,
            rgba(145, 102, 201, 0.28) 0%,
            rgba(145, 102, 201, 0.2) 28%,
            rgba(145, 102, 201, 0) 55%
        ),
        radial-gradient(
            circle 460px at 94% 56%,
            rgba(240, 88, 140, 0.28) 0%,
            rgba(240, 88, 140, 0.2) 28%,
            rgba(240, 88, 140, 0) 55%
        ),
        radial-gradient(
            circle 720px at 6% 72%,
            rgba(246, 168, 40, 0.32) 0%,
            rgba(246, 168, 40, 0.24) 28%,
            rgba(246, 168, 40, 0) 55%
        ),
        radial-gradient(
            circle 520px at 92% 82%,
            rgba(70, 188, 203, 0.28) 0%,
            rgba(70, 188, 203, 0.2) 28%,
            rgba(70, 188, 203, 0) 55%
        ),
        radial-gradient(
            circle 820px at 10% 95%,
            rgba(145, 102, 201, 0.26) 0%,
            rgba(145, 102, 201, 0.18) 28%,
            rgba(145, 102, 201, 0) 55%
        );
    filter: blur(55px);
}
/* On small screens the big blobs swamp the narrow viewport: shrink them and
   anchor their centres past the edges so only the coloured rims hug the sides. */
@media (max-width: 600px) {
    body::before {
        background:
            radial-gradient(
                circle 416px at 104% 1%,
                rgba(246, 168, 40, 0.4) 0%,
                rgba(246, 168, 40, 0.32) 26%,
                rgba(246, 168, 40, 0) 56%
            ),
            radial-gradient(
                circle 338px at -6% 11%,
                rgba(240, 88, 140, 0.34) 0%,
                rgba(240, 88, 140, 0.26) 26%,
                rgba(240, 88, 140, 0) 56%
            ),
            radial-gradient(
                circle 390px at 106% 27%,
                rgba(70, 188, 203, 0.3) 0%,
                rgba(70, 188, 203, 0.22) 26%,
                rgba(70, 188, 203, 0) 56%
            ),
            radial-gradient(
                circle 416px at -8% 44%,
                rgba(145, 102, 201, 0.28) 0%,
                rgba(145, 102, 201, 0.2) 26%,
                rgba(145, 102, 201, 0) 56%
            ),
            radial-gradient(
                circle 338px at 108% 58%,
                rgba(240, 88, 140, 0.28) 0%,
                rgba(240, 88, 140, 0.2) 26%,
                rgba(240, 88, 140, 0) 56%
            ),
            radial-gradient(
                circle 390px at -6% 73%,
                rgba(246, 168, 40, 0.32) 0%,
                rgba(246, 168, 40, 0.24) 26%,
                rgba(246, 168, 40, 0) 56%
            ),
            radial-gradient(
                circle 338px at 106% 84%,
                rgba(70, 188, 203, 0.28) 0%,
                rgba(70, 188, 203, 0.2) 26%,
                rgba(70, 188, 203, 0) 56%
            ),
            radial-gradient(
                circle 416px at -8% 96%,
                rgba(145, 102, 201, 0.26) 0%,
                rgba(145, 102, 201, 0.18) 26%,
                rgba(145, 102, 201, 0) 56%
            );
    }
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 0.4em;
    color: var(--ink);
    letter-spacing: -0.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
   =========================================================== */
/* Playful "sparkle tag" section marker: a bold rounded label
   flanked by sparkle stars in the section accent colour. */
.eyebrow {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 14px;
    line-height: 1.1;
}
/* a sparkle star on each side, drawn from the same shape used on the cards */
.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 1.05em;
    height: 1.05em;
    flex: none;
    background: var(--accent);
    -webkit-mask: var(--spark) center / contain no-repeat;
    mask: var(--spark) center / contain no-repeat;
}
/* the two stars sit at slightly different sizes for a hand-made feel */
.eyebrow::before {
    transform: rotate(-8deg);
}
.eyebrow::after {
    width: 0.8em;
    height: 0.8em;
    transform: rotate(10deg);
    align-self: flex-start;
}
/* 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;
    justify-content: center;
    gap: 0.55em;
    transition:
        transform 0.18s ease,
        box-shadow 0.22s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
    white-space: nowrap;
}
.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--rose);
    color: #fff;
}
.btn-primary:hover {
    background: #d43a72;
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}

.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, 0.55);
}
.btn-green:hover {
    background: #0a8c9a;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -12px rgba(31, 182, 196, 0.6);
}

/* ---------- Card base ---------- */
.card {
    background: var(--surface);
    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: 14px;
    box-shadow: var(--shadow-sm);
}
.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;
}
/* Outline icons whose individual paths set their own fill/stroke to currentColor.
   Don't force fill:none at the svg level, or filled sub-paths would disappear. */
.ico-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
/* Two-tone star: keeps the symbol's own baked yellows (no fill/stroke override) */
.ico-star {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    stroke: none;
    flex: none;
}
.btn .ico-svg {
    width: 1.15em;
    height: 1.15em;
}
.info-row .ic .ico-svg {
    width: 39px;
    height: 39px;
}
.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) ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 10px 16px;
    transition: padding 0.35s ease;
}
/* The inner pill */
.site-header .nav {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 4px 20px -6px rgba(70, 50, 33, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: 62px;
    padding: 0 8px 0 14px;
    transition:
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* docked: slightly more opaque + stronger shadow after scroll */
.site-header.is-floating .nav {
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 8px 32px -8px rgba(70, 50, 33, 0.2),
        0 2px 8px -2px rgba(70, 50, 33, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand img {
    height: 44px;
    width: auto;
    /* hidden until the hero logo scrolls away (JS adds .show-brand) so two
       logos are never on screen at once */
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.site-header.show-brand .brand img {
    opacity: 1;
    transform: translateY(0);
}
.brand .brand-text {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    /* centred in the bar regardless of the brand/button widths */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.nav-links a {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--teal-deep);
    padding: 8px 13px;
    border-radius: 12px;
    transition:
        color 0.15s,
        background 0.15s;
}
.nav-links a:hover {
    color: var(--teal-deep);
    background: rgba(31, 182, 196, 0.15);
}
.nav .btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    /* concentric with the pill: pill radius (20) minus the 8px gap */
    border-radius: 12px;
}
.nav-cta-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
/* icon drawn from an SVG mask so it takes the ink colour;
   hamburger by default, cross when open */
.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--ink);
    -webkit-mask: var(--menu-icon) center / contain no-repeat;
    mask: var(--menu-icon) center / contain no-repeat;
    --menu-icon: url("assets/hamburger-md-svgrepo-com.svg");
}
.nav-toggle.open .nav-toggle-icon {
    width: 20px;
    height: 20px;
    --menu-icon: url("assets/cross-svgrepo-com.svg");
}

/* ---------- 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: #2e2620;
    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: #2e2620;
}
.site-footer .brand .brand-text span {
    color: var(--teal-deep);
}
.site-footer a {
    color: #2e2620;
    text-decoration: none;
    transition: color 0.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: 0.04em;
}
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}
.foot-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.14);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: #2e2620;
}

/* ===========================================================
   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,
.summer {
    --accent: var(--teal);
    --accent-deep: var(--teal-deep);
    --accent-soft: var(--teal-soft);
    --accent-tint: var(--teal-wash);
}
.location {
    --accent: var(--rose);
    --accent-deep: var(--rose-deep);
    --accent-soft: var(--rose-soft);
    --accent-tint: var(--rose-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: transparent;
}
.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;
    padding-top: 92px;
}
.hero--story .hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 2;
}

/* Left: text panel (sits over the shared hero-sky background) */
.hero--story .hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Right: clickable photo stack (framed like "Meet your teacher") */
.hero--story .hero-photo {
    position: relative;
}
.photo-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 5/4;
    cursor: pointer;
    /* headroom so the randomly-nudged cards aren't clipped */
    margin: 24px 0;
}
.photo-stack:focus-visible {
    outline: 3px solid var(--rose);
    outline-offset: 12px;
    border-radius: var(--radius);
}
.photo-stack .ps-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    border-radius: var(--radius);
    border: 6px solid #fff;
    box-shadow: 0 10px 24px -16px rgba(70, 50, 33, 0.35);
    transform-origin: center center;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
    backface-visibility: hidden;
    /* each card keeps a fixed random tilt (--rot) so the pile edges peek out,
       but every card stays in the same spot so the pile never shifts */
    transform: rotate(var(--rot, 0deg));
    z-index: calc(20 - var(--i, 0));
}
/* the top card keeps its pile tilt; lifts a touch on hover to invite the click */
.photo-stack:hover .ps-card.is-top {
    transform: rotate(var(--rot, 0deg)) translateY(-5px) scale(1.01);
}
/* shuffling: the top card just fades away in place to reveal the next one */
.photo-stack .ps-card.is-leaving {
    opacity: 0;
}
/* hint under the stack */
.ps-hint {
    display: block;
    margin-top: 28px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft);
    opacity: 0.85;
}

.hero--story .hero-logo {
    width: min(240px, 60%);
    height: auto;
    margin-bottom: 22px;
}
.hero--story h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.8rem);
    line-height: 1.12;
    margin-bottom: 0.35em;
    position: relative;
}
/* per-word colour accents in the heading */
.hero--story h1 .hl {
    font-weight: 700;
}
.hl-rose {
    color: var(--rose);
}
.hl-marigold {
    color: var(--marigold);
}
.hl-teal {
    color: var(--teal);
}
.hl-grape {
    color: var(--grape);
}
/* short rose solid divider with a centred heart, under the heading */
.hero-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 240px;
    margin: 0 auto 26px;
    color: var(--rose);
}
.hero-rule::before,
.hero-rule::after {
    content: "";
    flex: 1;
    border-top: 2px solid var(--rose);
    opacity: 0.7;
}
.hero-rule .ico-svg {
    width: 1.05rem;
    height: 1.05rem;
}
.hero--story .lead {
    color: var(--ink-soft);
    font-size: 1.18rem;
    max-width: 40ch;
    margin: 0 auto 32px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

/* hero eyebrow: teal text (matching the "&" accent) but rose sparkles */
.hero--story .eyebrow {
    color: var(--teal);
}
.hero--story .eyebrow::before,
.hero--story .eyebrow::after {
    background: var(--rose);
}

/* hero CTAs: a touch more rounded; secondary is white w/ rose border + arrow */
.hero--story .hero-cta .btn {
    border-radius: 16px;
    padding: 14px 28px;
}
.btn-outline-rose {
    background: #fff;
    color: var(--rose-deep);
    border-color: var(--rose);
}
.btn-outline-rose:hover {
    background: var(--rose-wash);
    color: var(--rose-deep);
    transform: translateY(-1px);
}
.ico-arrow {
    width: 1.1em;
    height: 1.1em;
}

/* trust pill heart */
.trust-heart {
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 2px;
}

/* Variant: Split */
.hero--split .hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.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;
}
.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, 0.8) 0%,
        rgba(54, 38, 24, 0.46) 46%,
        rgba(54, 38, 24, 0.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, 0.3);
}
.hero--band .lead {
    color: #fff;
    opacity: 0.96;
    margin-bottom: 26px;
    max-width: 40ch;
}
.hero--band .hero-cta {
    justify-content: flex-start;
}
.hero--band .eyebrow {
    color: #fff;
}
.hero--band .eyebrow::before,
.hero--band .eyebrow::after {
    background: #fff;
}

/* 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: transparent;
}
.about-grid {
    display: grid;
    grid-template-columns: 0.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: 0.5em;
}

/* ---------- Classes ---------- */
.classes {
    background: transparent;
}
/* 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: 28px;
    overflow: hidden;
    box-shadow:
        0 22px 40px -18px rgba(80, 70, 90, 0.28),
        0 4px 12px rgba(80, 70, 90, 0.08);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
    position: relative;
}
/* colour variants: exact template hues (ballet/tap/street) */
.cc-rose {
    --cc: #ec5a9d;
    --cc-title: #e94a93;
    --cc-soft: #fbe1ee;
    --cc-tint: #fbd9e8;
}
.cc-marigold {
    --cc: #f4a02a;
    --cc-title: #f09620;
    --cc-soft: #fdecd2;
    --cc-tint: #fbe4c5;
}
.cc-teal {
    --cc: #46bccb;
    --cc-title: #33adc1;
    --cc-soft: #dcf1f4;
    --cc-tint: #cdebf0;
}

/* SVG wave fill helpers */
.w-white {
    fill: #ffffff;
}
.w-main {
    fill: var(--cc);
}
.w-tint {
    fill: var(--cc-tint);
}

/* photo wrap */
.class-photo-wrap {
    flex-shrink: 0;
    position: relative;
    line-height: 0;
    overflow: visible;
}
.class-photo {
    width: 100%;
    height: 312px;
    object-fit: cover;
    display: block;
    border-radius: 28px 28px 0 0;
}

/* 3-layer wave SVG overlapping photo bottom */
.class-wave-svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 104px;
    display: block;
}
/* Tap card: mirror the wave so it curves the opposite way */
.cc-marigold .class-wave-svg {
    transform: scaleX(-1);
}

/* badge circle: centred on the wave */
.class-icon-wrap {
    position: absolute;
    left: 50%;
    top: 192px;
    transform: translateX(-50%);
    z-index: 4;
}
.class-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--cc);
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px var(--cc-tint),
        0 9px 16px -6px rgba(80, 70, 90, 0.45);
}
.class-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

/* text body */
.class-body {
    padding: 10px 30px 0;
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.class-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.25;
    color: var(--cc-title);
    letter-spacing: 0.01em;
    margin-bottom: 11px;
    padding-bottom: 2px;
}
.class-body p {
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.62;
    color: #6f6a64;
    text-align: left;
    text-wrap: pretty;
    margin-bottom: 0;
}

/* character area: sits over the bottom coloured band */
.class-character-wrap {
    position: relative;
    height: 210px;
    margin-top: 29px;
}
.class-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    display: block;
}
.class-character {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 160px;
    height: 177px;
    object-fit: contain;
    z-index: 3;
}

/* decorative elements */
.cc-deco {
    position: absolute;
    color: var(--cc);
    pointer-events: none;
    z-index: 2;
    opacity: 0.9;
}
.cc-deco-spark1 {
    width: 22px;
    height: 22px;
}
.cc-deco-spark2 {
    width: 26px;
    height: 26px;
}
.cc-deco-note1 {
    width: 26px;
    height: 30px;
    background: var(--cc);
    -webkit-mask: var(--note-src) center / contain no-repeat;
    mask: var(--note-src) center / contain no-repeat;
}
.cc-deco-dot1,
.cc-deco-dot2 {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}

/* per-card positions: match the design template exactly */
/* Ballet */
.cc-rose .cc-deco-spark1 {
    left: 34px;
    bottom: 78px;
}
.cc-rose .cc-deco-spark2 {
    right: 30px;
    bottom: 96px;
}
.cc-rose .cc-deco-dot1 {
    right: 54px;
    bottom: 60px;
}
/* Tap */
.cc-marigold .cc-deco-note1 {
    --note-src: url("assets/music-note-svgrepo-com.svg");
    left: 36px;
    bottom: 72px;
}
.cc-marigold .cc-deco-spark1 {
    right: 34px;
    bottom: 96px;
}
.cc-marigold .cc-deco-dot1 {
    left: 64px;
    bottom: 54px;
}
.cc-marigold .cc-deco-dot2 {
    right: 60px;
    bottom: 62px;
}
/* Street */
.cc-teal .cc-deco-note1 {
    --note-src: url("assets/music-svgrepo-com.svg");
    left: 34px;
    bottom: 78px;
}
.cc-teal .cc-deco-spark1 {
    left: 58px;
    bottom: 54px;
    width: 16px;
    height: 16px;
}
.cc-teal .cc-deco-dot1 {
    right: 38px;
    bottom: 92px;
}

/* ---------- Timetable ---------- */
.timetable {
    background: transparent;
}
.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);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.tt-day:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tt-day-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    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, 0.6);
}
.tt-badge-teal {
    background: var(--teal);
    box-shadow: 0 10px 20px -10px rgba(31, 182, 196, 0.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: 0.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: 0.86rem;
}
.tt-age {
    background: var(--cream-2);
    color: var(--ink);
    padding: 5px 13px;
    border-radius: 12px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.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%;
}

/* ---------- Summer sessions ---------- */
.summer {
    background: transparent;
}
.summer-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.summer-book {
    padding: 8px 26px 28px;
    text-align: center;
}
.summer-book .btn {
    width: 100%;
    justify-content: center;
}

/* ---- Class schedule card (homepage display) ---- */
/* Two columns on desktop: calendars left, legend + CTA right. */
.summer-cal-card {
    max-width: 940px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 32px 34px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: center;
}
.cal-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: stretch;
    justify-content: center;
    padding-left: 34px;
    border-left: 1px solid var(--line);
}
.cal-side-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-side-cta .btn {
    justify-content: center;
    margin-top: 4px;
}
.cal-main {
    position: relative;
}
.cal-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}
.cal-nav-btn {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        opacity 0.15s;
}
.cal-nav-btn:hover:not(:disabled) {
    border-color: var(--rose);
    color: var(--rose);
}
.cal-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.cal-nav-btn .ico-svg {
    width: 16px;
    height: 16px;
}
.cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media (max-width: 820px) {
    .summer-cal-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cal-side {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 22px;
    }
}
.cal-month-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    margin: 0 0 12px;
    color: var(--ink);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Header row + a fixed 6 day-rows so the card never changes height between
       months (short months just leave the last row(s) empty). */
    grid-template-rows: auto repeat(6, 1fr);
    gap: 3px;
}
.cal-dow {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    text-align: center;
    padding-bottom: 4px;
}
.cal-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    border-radius: 50%;
}
.cal-day.is-empty {
    visibility: hidden;
}
/* Days in the past: faded. */
.cal-day.is-past {
    color: #c9beb0;
}
.cal-day.is-past .cal-dot {
    opacity: 0.4;
}
/* Today: circled outline. */
.cal-day.is-today {
    box-shadow: inset 0 0 0 2px var(--teal);
    font-weight: 700;
}
/* Summer session day: special filled pink marker with a ring (distinct from a
   plain class dot). */
.cal-day.is-summer {
    background: var(--rose);
    color: #fff;
    font-weight: 700;
    box-shadow:
        0 0 0 3px rgba(240, 88, 140, 0.28),
        0 6px 14px -6px rgba(240, 88, 140, 0.7);
}
.cal-day.is-summer.is-today {
    box-shadow:
        0 0 0 3px rgba(31, 182, 196, 0.6),
        0 6px 14px -6px rgba(240, 88, 140, 0.7);
}
.cal-day.is-summer.is-past {
    background: #f5b6cd;
    color: #fff;
    box-shadow: none;
}
/* Small class-type dots beneath the day number. */
.cal-dots {
    display: flex;
    gap: 2px;
    height: 6px;
    line-height: 0;
}
.cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot-ballet {
    background: var(--rose);
}
.dot-tap {
    background: var(--marigold);
}
.dot-street {
    background: var(--teal);
}
/* Vertical legend in the sidebar. */
.cal-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-head);
    font-weight: 500;
}
.cal-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex: none;
}
.cal-dot-ballet {
    background: var(--rose);
}
.cal-dot-tap {
    background: var(--marigold);
}
.cal-dot-street {
    background: var(--teal);
}
/* Legend swatch matching the special summer-session day marker. */
.cal-legend-summer {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: none;
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(240, 88, 140, 0.28);
}
/* Legend swatch matching today's circled outline. */
.cal-legend-today {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex: none;
    box-shadow: inset 0 0 0 2px var(--teal);
}
.summer-cta-venue {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--ink);
}
.summer-cta-price {
    font-size: 0.95rem;
    color: var(--ink-soft);
}
@media (max-width: 560px) {
    .cal-months {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Booking form (inside summer card) ---- */
.book-step {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin: 18px 26px 4px;
}
/* Booking sub-sections (Summer sessions / Regular classes). */
.book-group + .book-group {
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
.book-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 18px 26px 2px;
}
.book-group-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex: none;
}
.dot-summer {
    background: var(--rose);
    box-shadow: 0 0 0 3px rgba(240, 88, 140, 0.28);
}
.book-coming-soon {
    list-style: none;
    padding: 12px 26px 18px;
    color: var(--ink-soft);
    font-size: 0.96rem;
}
.book-sessions {
    padding: 4px 0;
}
.book-row {
    padding: 0;
}
.book-row-label {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 26px 14px 22px;
    cursor: pointer;
}
.book-row-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--rose);
    cursor: pointer;
    flex: none;
}
.book-row:has(input:checked) {
    background: var(--rose-wash);
}
.book-fields {
    padding: 6px 26px 4px;
}
.book-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0 2px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.5;
    cursor: pointer;
}
.book-consent input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--rose);
    flex: none;
    cursor: pointer;
}
.book-consent a {
    color: var(--rose-deep);
    font-weight: 700;
}
.book-total {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 14px;
}
.book-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 12px 0 0;
}
.book-secure .ico-svg {
    width: 15px;
    height: 15px;
}
.book-loading {
    padding: 16px 26px;
    color: var(--ink-soft);
    list-style: none;
}
#bookError {
    margin-top: 12px;
}

/* ---- Two-column booking checkout ---- */
.page-narrow.page-wide {
    max-width: 1040px;
}
.checkout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* ---- Wizard stepper ---- */
.wiz-steps {
    display: flex;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    counter-reset: none;
}
/* Number stacked above label so the connector line (at circle height) never
   crosses the text. */
.wiz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: center;
    position: relative;
}
/* Connector line between this step's circle and the previous one. Runs from the
   left edge of the step to its centre (where the circle sits). */
.wiz-step + .wiz-step::before {
    content: "";
    position: absolute;
    left: -50%;
    right: 50%;
    top: 15px;
    height: 2px;
    background: var(--line);
    z-index: 0;
}
.wiz-step.is-done::before,
.wiz-step.is-active::before {
    background: var(--rose-soft);
}
.wiz-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    flex: none;
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}
.wiz-label {
    position: relative;
    z-index: 1;
    background: transparent;
    text-decoration: none;
}
.wiz-step.is-active .wiz-num {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}
.wiz-step.is-active {
    color: var(--ink);
}
.wiz-step.is-done .wiz-num {
    background: var(--rose-soft);
    border-color: var(--rose-soft);
    color: var(--rose-deep);
    cursor: pointer;
}
.wiz-step.is-done {
    cursor: pointer;
}
.wiz-label {
    white-space: nowrap;
}

/* Only the active panel shows. */
.wiz-panel {
    display: none;
}
.wiz-panel.is-active {
    display: block;
}
.wiz-nav {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}
.wiz-nav .wiz-back {
    flex: none;
}
.wiz-nav .btn-primary,
.wiz-nav #bookSubmit {
    flex: 1;
    justify-content: center;
}
.wiz-hint {
    display: none;
    margin: 12px 0 0;
    color: var(--rose-deep);
    font-weight: 600;
    font-size: 0.92rem;
}
.wiz-hint.show {
    display: block;
}

/* Review step */
.review-block {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 18px;
    margin-bottom: 18px;
}
.review-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    font-size: 1rem;
}
.review-row + .review-row {
    border-top: 1px dashed var(--line);
}
.review-row span {
    color: var(--ink-soft);
}
.review-row b {
    font-family: var(--font-head);
    font-weight: 600;
    text-align: right;
}

/* Persistent summary card (right column) */
.summary-card {
    padding: 24px 24px 22px;
}
.summary-logo {
    display: block;
    height: 72px;
    width: auto;
    margin: 0 auto 16px;
}
.summary-card h3 {
    font-size: 1.25rem;
    margin: 0 0 14px;
    text-align: center;
}
.summary-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.summary-note .ico-svg {
    width: 15px;
    height: 15px;
    flex: none;
}
.checkout-head {
    margin-bottom: 4px;
}
.checkout-head h3 {
    font-size: 1.5rem;
    margin: 0 0 4px;
}
.checkout-head .tt-venue {
    margin: 0;
}
.tile-group {
    margin-top: 22px;
}
.tile-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--ink);
    margin: 0 0 12px;
}
.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* Clickable session tile. The real checkbox is visually hidden but drives state. */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 118px;
    cursor: pointer;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 18px 20px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.tile:hover {
    border-color: var(--rose-soft);
}
.tile input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.tile-body {
    display: block;
    padding-right: 30px; /* clear space for the tick */
}
.tile-date {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--ink);
}
.tile-sub {
    display: block;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-top: 3px;
}
.tile-price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--rose-deep);
    margin-top: auto;
    padding-top: 12px;
}
/* Tick badge, top-right. Empty until selected. */
.tile-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    background: var(--surface);
    transition:
        background 0.15s,
        border-color 0.15s;
}
.tile-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.15s;
}
.tile.tile-block {
    grid-column: 1 / -1;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--rose-wash);
    border-color: var(--rose-soft);
}
.tile.tile-block .tile-body {
    padding-right: 0;
}
.tile.tile-block .tile-price {
    margin-top: 0;
    padding-top: 0;
    padding-right: 34px;
}
/* Selected state (checkbox :checked on the hidden input). */
.tile:has(input:checked) {
    border-color: var(--rose);
    background: var(--rose-wash);
}
.tile:has(input:checked) .tile-check {
    background: var(--rose);
    border-color: var(--rose);
}
.tile:has(input:checked) .tile-check svg {
    opacity: 1;
}
.tile-coming-soon {
    grid-column: 1 / -1;
    color: var(--ink-soft);
    font-size: 0.96rem;
    padding: 4px 2px;
}

/* Right column: details card + order summary. */
.checkout-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 26px 26px 24px;
    position: sticky;
    top: 90px;
}
.checkout-card h3 {
    font-size: 1.35rem;
    margin: 0 0 16px;
}
.order-summary {
    margin: 18px 0 4px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--line);
}
.order-summary h4 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 10px;
    color: var(--ink);
}
.order-lines {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    min-height: 28px;
}
.order-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.96rem;
    padding: 5px 0;
    color: var(--ink);
}
.order-empty {
    color: var(--ink-soft) !important;
    justify-content: flex-start !important;
}
.order-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 12px 0 2px;
    border-top: 1px dashed var(--line);
    color: var(--ink);
}
@media (max-width: 860px) {
    .checkout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .checkout-card {
        position: static;
    }
}
@media (max-width: 480px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Standalone pages (success / cancel / login / account / privacy) ---- */
/* Lighter, calmer background for the standalone pages (login, booking-success,
   cancelled, account, privacy). Fewer, softer blobs anchored to the corners so
   they don't overlap and muddy in the middle. Overrides the busy site-wide
   body::before wash on pages that carry the .page-bg class. */
body.page-bg::before {
    background:
        radial-gradient(
            circle 620px at 2% 0%,
            rgba(240, 88, 140, 0.42) 0%,
            rgba(240, 88, 140, 0.28) 30%,
            rgba(240, 88, 140, 0) 62%
        ),
        radial-gradient(
            circle 620px at 100% 4%,
            rgba(246, 168, 40, 0.42) 0%,
            rgba(246, 168, 40, 0.28) 30%,
            rgba(246, 168, 40, 0) 62%
        ),
        radial-gradient(
            circle 660px at 98% 100%,
            rgba(70, 188, 203, 0.38) 0%,
            rgba(70, 188, 203, 0.24) 30%,
            rgba(70, 188, 203, 0) 62%
        ),
        radial-gradient(
            circle 660px at 0% 98%,
            rgba(145, 102, 201, 0.36) 0%,
            rgba(145, 102, 201, 0.22) 30%,
            rgba(145, 102, 201, 0) 62%
        );
    filter: blur(48px);
}

.page-narrow {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-narrow > .page-panel {
    width: 100%;
}
/* Wordmark logo centred above the card. */
.page-logo {
    display: inline-block;
    margin-bottom: 22px;
}
.page-logo img {
    height: 84px;
    width: auto;
    display: block;
}
/* Frosted-glass card matching the site navigation bar. */
.page-panel {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow:
        0 8px 32px -8px rgba(70, 50, 33, 0.2),
        0 2px 8px -2px rgba(70, 50, 33, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 44px 40px;
    text-align: center;
}
.page-panel h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 8px 0 12px;
}
.page-panel p {
    color: var(--ink-soft);
    font-size: 1.08rem;
}
.page-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 6px;
}
.page-icon .ico-svg {
    width: 58px;
    height: 58px;
}
.page-icon-muted {
    opacity: 0.85;
}
.page-muted {
    font-size: 0.98rem !important;
    margin-top: 18px;
}
.page-muted a {
    color: var(--rose-deep);
    font-weight: 700;
}
.page-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
/* Left-aligned prose (privacy policy etc.) inside a page panel. */
.page-prose {
    text-align: left;
}
.page-prose h1 {
    text-align: center;
}
.page-prose h2 {
    font-family: var(--font-head);
    font-size: 1.28rem;
    margin: 26px 0 8px;
    color: var(--ink);
}
.page-prose p,
.page-prose li {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.65;
}
.page-prose ul {
    padding-left: 20px;
    margin: 8px 0;
}
.page-prose li {
    margin-bottom: 6px;
}
.page-prose a {
    color: var(--rose-deep);
    font-weight: 700;
}
.page-prose .prose-updated {
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 0;
}

.page-panel .field {
    text-align: left;
}
.page-panel .form-error,
.page-panel .form-success-msg {
    text-align: left;
}

/* ---- Split login card: logo left, form right (stacks on mobile) ---- */
/* The login card is wider than the default narrow column, so widen the
   wrapper on pages that contain it. */
.page-narrow:has(.login-panel) {
    max-width: 860px;
}
.login-panel {
    padding: 0;
    overflow: hidden;
    text-align: left;
}
.login-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: stretch;
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 28px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.55);
}
.login-brand img {
    width: 100%;
    max-width: 302px;
    height: auto;
    display: block;
}
.login-body {
    padding: 44px 42px;
}
.login-body h1 {
    margin-top: 0;
}
@media (max-width: 640px) {
    .login-grid {
        grid-template-columns: 1fr;
    }
    .login-brand {
        border-right: 0;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
        padding: 30px 28px 24px;
    }
    .login-brand img {
        max-width: 248px;
    }
    .login-body {
        padding: 32px 28px 34px;
    }
}
/* Account bookings list */
.acct-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 12px;
}
.acct-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.acct-item b {
    font-family: var(--font-head);
}
.acct-status {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.acct-status.paid {
    background: var(--lime-soft);
    color: var(--lime-deep);
}
.acct-status.pending {
    background: var(--marigold-soft);
    color: var(--marigold-deep);
}
.acct-change {
    background: none;
    border: 0;
    color: var(--rose-deep);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 4px;
    white-space: nowrap;
}
.acct-change:hover {
    text-decoration: underline;
}

/* ---------- Parent dashboard ---------- */
.dash-loading {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-family: var(--font-head);
}
.dashboard {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}
.dash-side {
    position: sticky;
    top: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 24px 20px;
}
.dash-logo {
    display: block;
    text-align: center;
    margin-bottom: 16px;
}
.dash-logo img {
    height: 54px;
    width: auto;
}
.dash-greeting {
    text-align: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin: 0 0 20px;
    line-height: 1.5;
}
.dash-greeting b {
    color: var(--ink);
    word-break: break-word;
}
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
}
.dash-nav-item .ico-svg {
    width: 20px;
    height: 20px;
    color: var(--ink-soft);
    flex: none;
}
.dash-nav-item:hover {
    background: var(--rose-wash);
}
.dash-nav-item.is-active {
    background: var(--rose);
    color: #fff;
}
.dash-nav-item.is-active .ico-svg {
    color: #fff;
}
.dash-content {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 34px 36px;
}
.dash-panel {
    display: none;
}
.dash-panel.is-active {
    display: block;
}
.dash-panel h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    margin: 0 0 6px;
}
.dash-sub {
    color: var(--ink-soft);
    margin: 0 0 8px;
}
.dash-empty {
    color: var(--ink-soft);
    margin: 18px 0 14px;
}
.dash-hint {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 6px 0 0;
}
.dash-hint a {
    color: var(--rose-deep);
    font-weight: 700;
}
.dash-saved {
    display: none;
    color: var(--lime-deep);
    font-weight: 700;
    margin: 12px 0 0;
}
.dash-saved.show {
    display: block;
}

/* Modal */
.dash-modal {
    position: fixed;
    inset: 0;
    background: rgba(46, 38, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}
.dash-modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 460px;
    text-align: left;
}
.dash-modal-card h3 {
    font-size: 1.4rem;
    margin: 0 0 4px;
}

@media (max-width: 780px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dash-side {
        position: static;
    }
    .dash-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .dash-nav-item {
        width: auto;
    }
    .dash-content {
        padding: 26px 22px;
    }
}

/* ---------- Location map (inside contact info) ---------- */
/* Find us section: address left, map right. Map stretches to the left column's
   height on desktop. */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.location-info {
    display: flex;
    flex-direction: column;
}
.location-info .info-list {
    margin: 0 0 20px;
}
.location-info .btn-outline-rose {
    display: inline-flex;
    align-self: flex-start;
}
.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 340px;
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 820px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .map-embed {
        height: 300px;
        min-height: 0;
    }
}

/* ---------- Reviews ---------- */
.reviews {
    background: transparent;
}

/* Avatar: background colour is injected per-review by app.js */
.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);
}
.avatar-lg {
    width: 58px;
    height: 58px;
    font-size: 1.35rem;
}

/* ---------- Reviews marquee (MagicUI-style, single auto-scrolling row) ---------- */
.rv-marquee {
    /* Tunable like MagicUI's props */
    --duration: 60s;
    --gap: 28px;
    margin-top: 8px;
    /* Opacity mask on the section edges: as a card scrolls off-screen its
       opacity falls to 0, revealing the page background behind it. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.mar-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: var(--gap);
    /* Generous vertical padding so card drop-shadows aren't clipped by overflow:hidden.
       Negative margins keep the section's vertical rhythm unchanged. */
    padding: 30px 0 40px;
    margin: -30px 0 -16px;
    cursor: grab;
    touch-action: pan-y; /* allow vertical page scroll; we handle horizontal drag */
}
.mar-row.is-dragging {
    cursor: grabbing;
    user-select: none;
}
/* Each repeated group is its own flex row, all animating identically. The
   gap-aware translate (-100% minus one gap) chains the groups seamlessly. */
.mar-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: var(--gap);
    min-width: max-content;
    animation: marquee-left var(--duration) linear infinite;
}
.mar-row:hover .mar-group,
.rv-marquee.is-paused .mar-group {
    animation-play-state: paused;
}
/* --drag is a live offset (px) set by JS while dragging; it shifts every group
   uniformly on top of the animated position, so a drag scrolls through the
   cards instead of sliding the whole row. */
.rv-marquee {
    --drag: 0px;
}
@keyframes marquee-left {
    from { transform: translateX(var(--drag)); }
    to   { transform: translateX(calc(-100% - var(--gap) + var(--drag))); }
}

/* Spotlight-style card */
.mar-card {
    flex: 0 0 460px;
    box-sizing: border-box;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    padding: 34px 40px 32px;
    position: relative;
    white-space: normal;
}
.mar-card::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: 24px;
    font-family: var(--font-head);
    font-size: 6rem;
    line-height: 1;
    color: var(--grape);
    opacity: 0.16;
    pointer-events: none;
}
/* Stars sit in normal flow at the top, right-aligned, so review text always
   starts below them (no overlap at any width). */
.mar-stars {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin-bottom: 14px;
    position: relative;
}
.mar-text {
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.6;
    margin: 0 0 24px;
}
.mar-foot {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mar-who {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.mar-who b {
    font-size: 1.05rem;
}
.mar-fam {
    color: var(--grape);
    font-weight: 700;
    font-size: 0.88rem;
}
.mar-who .date {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- Gallery ---------- */
.gallery {
    background: transparent;
}
.section-head .section-sub {
    margin-top: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted, #6b6b6b);
}
.section-head .section-sub a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ig-feed {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}
.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 0.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, 0.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, 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: transparent;
}
.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);
}
.info-row .ic {
    width: 44px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: none;
}
.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 0.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);
}
.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: 1.5px solid #e6e0d6;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #ffffff;
    color: var(--ink);
    transition:
        border-color 0.15s,
        background 0.15s,
        box-shadow 0.15s;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
    color: #a89f93;
}
.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: 0.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: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fill the space the form occupied so the message sits centred in the card */
    min-height: 360px;
}
.form-success .big {
    font-size: 3.4rem;
}
.form-success h3 {
    color: var(--teal-deep);
}
.form-error {
    display: none;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--rose-wash);
    color: var(--rose-deep);
    font-size: 0.95rem;
    font-weight: 600;
}
.form-error.show {
    display: block;
}
.form-error a {
    color: var(--rose-deep);
    font-weight: 700;
}

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

/* ===========================================================
   9 · RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
    /* The nav pill itself becomes the expanding container: brand + toggle on
       the top row, links revealed inside the SAME glass panel when open. */
    .site-header .nav {
        flex-wrap: wrap;
        height: auto;
        min-height: 62px;
        padding: 0 8px 0 14px;
        align-items: center;
        align-content: flex-start;
        row-gap: 0;
        /* expanding panel grows downward */
        overflow: hidden;
        transition:
            box-shadow 0.3s ease,
            background 0.3s ease;
    }
    /* keep brand + toggle on the first row; links wrap to a row below */
    .brand {
        order: 1;
        min-height: 62px;
    }
    .nav-toggle {
        order: 2;
    }
    .nav-links {
        order: 3;
    }

    /* links: a full-width block below the top row, collapsed by default */
    .nav-links {
        /* reset the desktop absolute-centering */
        position: static;
        transform: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0 6px;
        /* collapse animation via max-height + opacity */
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transition:
            max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.22s ease,
            padding 0.32s ease;
    }
    .nav-links.open {
        max-height: 70vh;
        opacity: 1;
        pointer-events: auto;
        padding: 6px 6px 12px;
    }
    .nav-links a {
        padding: 12px 14px;
        font-size: 1.05rem;
        border-radius: 14px;
    }
    .nav-links .btn {
        margin-top: 6px;
        justify-content: center;
        border-radius: 14px;
    }
    .nav-links .btn-primary {
        color: #fff;
    }
    .nav-toggle {
        display: flex;
    }
    .nav .btn.nav-cta-desktop {
        display: none;
    }
    /* when the menu is open, make the panel more opaque for readability */
    .site-header .nav:has(.nav-links.open) {
        background: rgba(255, 255, 255, 0.82);
    }
    .nav-cta-mobile {
        display: inline-flex;
    }

    /* Story hero: stack on mobile: size to content, no forced full height.
       Flatten the text panel (display:contents) so the photo stack can be
       ordered to sit between the lead paragraph and the buttons. */
    .hero--story {
        min-height: 0;
    }
    .hero--story .hero-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 24px 24px 50px;
        flex: none;
    }
    .hero--story .hero-text-side {
        display: contents;
    }
    /* sequence the now-flattened items; zero their own margins so the flex
       gap is the ONLY thing controlling spacing (consistent everywhere) */
    .hero--story .hero-logo,
    .hero--story h1,
    .hero--story .hero-rule,
    .hero--story .lead,
    .hero--story .hero-photo,
    .hero--story .hero-cta {
        margin: 0 auto;
    }
    .hero--story .hero-logo   { order: 1; }
    .hero--story h1           { order: 2; }
    .hero--story .hero-rule   { order: 3; }
    .hero--story .lead        { order: 4; }
    /* bigger gap above AND below the photo stack: flex gap (18px) + 18px = ~36px */
    .hero--story .hero-photo  { order: 5; width: 100%; max-width: none; margin: 18px auto; }
    /* buttons side-by-side, not stacked */
    .hero--story .hero-cta    {
        order: 6;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
    }
    .hero--story .hero-cta .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
        white-space: nowrap;
    }

    .photo-stack {
        width: 100%;
        margin: 0;
    }

    .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;
    }
    .map-embed {
        height: 260px;
    }
    .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;
    }
    .mar-card {
        flex-basis: 400px;
        padding: 32px 32px 28px;
    }
    .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-text-side {
        padding: 32px 20px 44px;
    }
    .hero--story h1 {
        font-size: clamp(2rem, 6.5vw, 2.8rem);
    }
    .rv-marquee {
        /* Narrower fade on mobile so the single in-view card isn't dimmed by the mask */
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    }
    .mar-card {
        /* 10% smaller than before (was 84vw / max 340px) */
        flex-basis: 76vw;
        max-width: 306px;
        padding: 27px 22px 24px;
    }
    .mar-text {
        font-size: 1rem;
    }
    /* Compact dance cards on mobile so they don't dominate the screen */
    .class-grid {
        max-width: 320px;
        gap: 22px;
    }
    .class-photo {
        height: 208px;
    }
    .class-wave-svg {
        height: 78px;
    }
    .class-icon-wrap {
        top: 120px;
    }
    .class-icon {
        width: 72px;
        height: 72px;
        border-width: 4px;
    }
    .class-icon img {
        width: 40px;
        height: 40px;
    }
    .class-body {
        padding: 8px 22px 0;
    }
    .class-body h3 {
        font-size: 29px;
        margin-bottom: 8px;
    }
    .class-body p {
        font-size: 15.5px;
        line-height: 1.55;
    }
    .class-character-wrap {
        height: 150px;
        margin-top: 20px;
    }
    .class-band {
        height: 110px;
    }
    .class-character {
        width: 116px;
        height: 128px;
    }
    .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, 0.25),
            rgba(54, 38, 24, 0.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 0.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;
    }
    .photo-stack .ps-card {
        transition: opacity 0.2s ease;
    }
    .photo-stack:hover .ps-card.is-top {
        transform: rotate(0deg);
    }
}
