/* ============================================================
   Script To Stage design system
   Warm, joyful, parent-trustworthy. Mobile-first, WCAG AA contrast.
   ============================================================ */
:root {
    --purple-950: #221540;
    --purple-900: #2E1D52;
    --purple-700: #46307E;
    --purple-600: #5A3E9B;
    --purple-100: #EDE7F8;
    --gold: #FFC53D;
    --gold-deep: #E8A61A;
    --cream: #FAF7F1;
    --white: #FFFFFF;
    --ink: #241C36;
    --ink-soft: #554A6E;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(46, 29, 82, 0.12);
    --shadow-lift: 0 12px 36px rgba(46, 29, 82, 0.18);
    --font-display: 'Fredoka', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.55rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--purple-600); }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold-deep);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--gold); color: var(--ink);
    padding: 0.6rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

.kicker {
    display: inline-block;
    font-weight: 800; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--purple-700);
    background: var(--purple-100);
    padding: 0.3rem 0.85rem; border-radius: 999px;
    margin-bottom: 0.9rem;
}

/* Buttons: gold on dark, purple on light. Text always high contrast. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 500; font-size: 1.05rem;
    line-height: 1;
    text-decoration: none; text-align: center;
    padding: 0.9rem 1.7rem 1rem;
    border-radius: 999px;
    border: none; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--purple-950); }
.btn-gold:hover { background: #FFD267; }
.btn-purple { background: var(--purple-600); color: var(--white); }
.btn-purple:hover { background: var(--purple-700); }
.btn-outline {
    background: transparent; color: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-large { font-size: 1.15rem; padding: 1rem 2.2rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(46, 29, 82, 0.08);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-top: 0.65rem; padding-bottom: 0.65rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; padding: 10px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
    display: block; height: 3px; width: 100%;
    background: var(--purple-900); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
    text-decoration: none; color: var(--ink);
    font-weight: 700; font-size: 0.98rem;
    padding: 0.35rem 0;
    border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--purple-600); }
.site-nav a[aria-current="page"] { color: var(--purple-600); border-bottom-color: var(--gold); }
.site-nav .nav-cta { border-bottom: none; padding: 0.55rem 1.3rem; font-weight: 500; }
.site-nav .nav-cta:hover { color: var(--purple-950); }

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--white);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        box-shadow: 0 14px 24px rgba(46, 29, 82, 0.15);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--purple-100); font-size: 1.05rem; }
    .site-nav .nav-cta { margin-top: 0.9rem; text-align: center; border-bottom: none; }
    .brand-text em { display: none; }
}

/* Light text on dark backgrounds: grayscale antialiasing avoids the color
   fringing that makes rounded glyphs look lumpy at some zoom levels */
.hero, .page-hero, .quote-card, .cta-band, .site-footer, .site-header {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(ellipse 90% 70% at 75% 0%, rgba(255, 197, 61, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 55% at 15% 100%, rgba(90, 62, 155, 0.55), transparent 60%),
        var(--purple-900);
    color: var(--white);
    overflow: hidden;
}
.hero-inner {
    display: grid; gap: 2.5rem;
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
    align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 .shine { color: var(--gold); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #EDE7F8; max-width: 34em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0 1.6rem; padding: 0; list-style: none; }
.hero-badges li {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white); font-weight: 700; font-size: 0.88rem;
    padding: 0.35rem 0.9rem; border-radius: 999px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.polaroid {
    background: var(--white); padding: 0.6rem 0.6rem 1rem;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
}
.polaroid img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption {
    font-family: var(--font-display); font-weight: 700;
    color: var(--ink); font-size: 0.9rem; text-align: center; padding-top: 0.55rem;
}
.polaroid-a { transform: rotate(-3deg); }
.polaroid-b { transform: rotate(2.5deg); margin-top: 2rem; }

@media (min-width: 880px) {
    .hero-inner { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--gold); }
.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; text-align: center;
    padding-top: 1.8rem; padding-bottom: 1.8rem;
}
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--purple-950); line-height: 1.1; }
.stat span { font-weight: 700; color: #453605; font-size: 0.92rem; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards & grids ---------- */
.section-head { max-width: 42em; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.card-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--white); border-radius: var(--radius);
    padding: 1.7rem; box-shadow: var(--shadow);
}
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 16px;
    background: var(--purple-100); color: var(--purple-600);
    margin-bottom: 0.9rem;
}
.icon-badge svg { width: 27px; height: 27px; }
.icon-inline {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: var(--gold); color: var(--purple-950);
}
.icon-inline svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 0.5rem; color: var(--purple-700); }
.card p { color: var(--ink-soft); font-size: 0.99rem; }

/* Day timeline */
.day-list { list-style: none; display: grid; gap: 0.9rem; max-width: 640px; }
.day-list li {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--white); border-radius: var(--radius-sm);
    padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.day-list .time {
    font-family: var(--font-display); font-weight: 600;
    color: var(--purple-950); background: var(--gold);
    border-radius: 8px; padding: 0.2rem 0.6rem;
    font-size: 0.85rem; white-space: nowrap; margin-top: 0.15rem;
}
.day-list p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.day-list strong { color: var(--ink); }

/* Split feature */
.split { display: grid; gap: 2rem; align-items: center; }
.photo-compact { max-width: 400px; margin: 0 auto; }
.team-teaser { max-width: 560px; margin: 0 auto; text-align: center; }
.team-teaser .icon-badge { background: var(--gold); color: var(--purple-950); }
.split .photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.split .photo-frame img { width: 100%; object-fit: cover; }
@media (min-width: 880px) {
    .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .split.flip .photo-frame { order: 2; }
}

/* Testimonial */
.quote-card {
    background: var(--purple-900); color: var(--white);
    border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem);
    box-shadow: var(--shadow-lift); position: relative;
}
.quote-card .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; line-height: 1.45; }
.quote-card figcaption { margin-top: 1.2rem; color: var(--purple-100); font-weight: 700; }
.quote-card figcaption span { color: var(--gold); }
.quote-card figcaption a { color: var(--gold); text-underline-offset: 3px; }
.quote-card figcaption a:hover { color: #FFD267; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-list details {
    background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); overflow: hidden;
}
.faq-list summary {
    cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
    padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative; color: var(--purple-700);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+'; position: absolute; right: 1.2rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem; color: var(--gold-deep); font-weight: 800;
}
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* Location strip */
.info-strip { background: var(--purple-100); }
.info-grid { display: grid; gap: 1.4rem; padding-top: 2rem; padding-bottom: 2rem; grid-template-columns: 1fr; }
.info-grid > div { display: flex; gap: 0.85rem; align-items: flex-start; }

.info-grid b { font-family: var(--font-display); font-weight: 500; color: var(--purple-900); display: block; }
.info-grid p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
@media (min-width: 780px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- CTA band & footer ---------- */
.cta-band {
    background:
        radial-gradient(ellipse 70% 90% at 85% 20%, rgba(255, 197, 61, 0.3), transparent 55%),
        var(--purple-700);
    color: var(--white);
}
.cta-band-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-top: 2.8rem; padding-bottom: 2.8rem;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }
.cta-band p { color: var(--purple-100); max-width: 34em; margin: 0; }

.site-footer { background: var(--purple-950); color: var(--purple-100); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 1.25rem 2rem; grid-template-columns: 1fr; }
.site-footer h3 { color: var(--gold); font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; }
.site-footer p { font-size: 0.95rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--purple-100); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1.2rem; padding-bottom: 1.4rem; }
.footer-legal p { font-size: 0.85rem; color: rgba(237, 231, 248, 0.72); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 720px; margin: 0 auto;
}
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
label { font-weight: 700; font-size: 0.95rem; display: block; margin-bottom: 0.35rem; }
label .req { color: #B3261E; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: 0.7rem 0.9rem;
    border: 2px solid #D9D2E9; border-radius: var(--radius-sm);
    background: var(--white);
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--purple-600);
    box-shadow: 0 0 0 3px rgba(90, 62, 155, 0.18);
}
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; }
.alert-ok { background: #E7F6EC; color: #14532D; border: 1px solid #A7DFC0; }
.alert-err { background: #FDECEA; color: #7F1D1D; border: 1px solid #F5C2BD; }

/* Page hero (inner pages) */
.page-hero { background: var(--purple-900); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--purple-100); max-width: 40em; font-size: 1.1rem; margin-top: 0.6rem; }

/* Reveal animation: only when JS is running (html.js), so content is
   never hidden without it. Disabled for reduced motion. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}
