/* ==========================================================================
   Kids DIY Studio — kidsdiystudio.com
   Playful craft-studio design system. Mobile-first, EN/ZH bilingual.
   ========================================================================== */

:root {
    /* Brand palette — candy bright, kid friendly */
    --sun: #FFC53D;
    --sun-soft: #FFE9A8;
    --coral: #FF6B6B;
    --coral-soft: #FFD9D6;
    --mint: #2EC4B6;
    --mint-soft: #C9F2EE;
    --grape: #7C5CFF;
    --grape-soft: #E3DBFF;
    --bubble: #FF8FC7;
    --bubble-soft: #FFDCEC;
    --sky: #4CB8FF;

    --ink: #2B2440;
    --ink-soft: #5C5470;
    --cream: #FFF8EF;
    --white: #FFFFFF;
    --line: #F0E4D4;

    --primary-color: var(--coral);
    --accent-color: var(--sun);
    --dark-color: #2B2440;

    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 34px;
    --shadow: 0 10px 30px rgba(43, 36, 64, 0.08);
    --shadow-lg: 0 18px 44px rgba(43, 36, 64, 0.14);
    --transition: all 0.25s ease;

    --font-display: 'Fredoka', 'Baloo 2', 'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'Nunito', 'Quicksand', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--coral); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--grape); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 68px 0; position: relative; }
.section--tight { padding: 46px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--sun { background: linear-gradient(160deg, #FFF3D6 0%, #FFE7C7 100%); }
.section--mint { background: linear-gradient(160deg, #E7FAF7 0%, #D9F3FF 100%); }
.section--grape { background: linear-gradient(160deg, #F1ECFF 0%, #FFE9F4 100%); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
    background: var(--mint-soft);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.eyebrow--coral { color: #D64545; background: var(--coral-soft); }
.eyebrow--grape { color: #5C3FD6; background: var(--grape-soft); }
.eyebrow--sun { color: #A9720A; background: var(--sun-soft); }

.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.10);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, 0.10); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.10); }

.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: #FF5A5A; color: var(--white); }
.btn-secondary { background: var(--sun); color: #4A3200; }
.btn-secondary:hover { background: #FFB800; color: #4A3200; }
.btn-mint { background: var(--mint); color: var(--white); }
.btn-mint:hover { background: #24AFA2; color: var(--white); }
.btn-grape { background: var(--grape); color: var(--white); }
.btn-grape:hover { background: #6A47FF; color: var(--white); }
.btn-outline {
    background: var(--white);
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { padding: 10px 22px; font-size: 0.94rem; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 3px solid var(--line);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo a { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo a:hover { opacity: 0.82; color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.05;
}
.logo-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}
.main-nav a:hover { background: var(--sun-soft); color: var(--ink); }
.main-nav a.active { background: var(--coral-soft); color: #C43C3C; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 15px;
    border: 2px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--mint); color: var(--mint); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: none;
    background: var(--sun-soft);
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: var(--transition);
}
.nav-toggle span { top: 50%; margin-top: -1.5px; }
.nav-toggle span::before { content: ''; top: -7px; left: 11px; }
.nav-toggle span::after { content: ''; top: 7px; left: 11px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; left: 11px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span::after { top: 0; left: 11px; transform: translateX(-50%) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(165deg, #FFF3D6 0%, #FFE2EC 55%, #E7F6FF 100%);
    padding: 56px 0 64px;
    overflow: hidden;
}
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}
.hero::before { width: 260px; height: 260px; background: var(--sun-soft); top: -90px; right: -70px; }
.hero::after { width: 200px; height: 200px; background: var(--mint-soft); bottom: -80px; left: -60px; }

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .hl {
    background: linear-gradient(transparent 62%, var(--sun) 62%);
    padding: 0 4px;
}
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; }

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}
.hero-badges li {
    background: var(--white);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    margin: 0;
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.hero-collage figure { margin: 0; }
.hero-collage img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}
.hero-collage figure:nth-child(2) { transform: rotate(3deg); }
.hero-collage figure:nth-child(3) { transform: rotate(-3deg); }

/* --------------------------------------------------------------------------
   Page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
    background: linear-gradient(165deg, #FFF1DC 0%, #FFE6F0 100%);
    padding: 46px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner h1 { margin-bottom: 0.3em; }
.page-banner p { color: var(--ink-soft); max-width: 720px; margin: 0 auto; }

.breadcrumb {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-soft); font-weight: 700; }
.breadcrumb a:hover { color: var(--coral); }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; }
.card-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.card-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { color: var(--ink-soft); font-size: 0.98rem; }
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.card-meta li {
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--cream);
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0;
    color: var(--ink-soft);
}
.card-foot { margin-top: auto; padding-top: 6px; }

.craft-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.feature {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    height: 100%;
}
.feature h3 { margin-bottom: 0.35em; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   Filters (classes page)
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 34px;
}
.filter-btn {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--mint); }
.filter-btn.active { background: var(--mint); border-color: var(--mint); color: var(--white); }

.is-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Pricing tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.price-table th,
.price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th {
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: #FFFBF5; }
.price-table td strong { color: var(--ink); }

.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
}
.price-card.featured { border-color: var(--sun); box-shadow: var(--shadow-lg); }
.price-card .price {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--coral);
    line-height: 1;
    margin: 8px 0 4px;
}
.price-card .price span { font-size: 1rem; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; }
.price-card ul li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.price-card ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--mint);
    font-weight: 800;
}
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.gallery-item {
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(30, 24, 46, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: min(92vw, 780px);
    max-height: 82vh;
    border-radius: var(--radius);
    border: 6px solid var(--white);
}
.lightbox-caption {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-size: 0.95rem;
    padding: 0 20px;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: var(--white);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--ink);
    display: grid;
    place-items: center;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    height: 100%;
}
.quote .stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; }
.quote blockquote { margin: 12px 0 16px; font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.quote cite { font-style: normal; font-weight: 800; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    padding: 20px 54px 20px 22px;
    cursor: pointer;
    position: relative;
}
.faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--coral);
    line-height: 1;
}
.faq-item.open .faq-q::after { content: '–'; }
.faq-a { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 900px; }
.faq-a p { color: var(--ink-soft); margin-bottom: 0.6em; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-lg);
}
.contact-form label {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 13px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    background: #FFFDFA;
    color: var(--ink);
    margin-bottom: 16px;
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--mint);
    background: var(--white);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* Injected captcha block from /submit-contact?js=1 */
.captcha-row,
.captcha-block { margin-bottom: 16px; }
.captcha-row img, .captcha-block img { display: inline-block; vertical-align: middle; }

/* --------------------------------------------------------------------------
   Info blocks
   -------------------------------------------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .ico { font-size: 1.25rem; line-height: 1.4; }
.info-list strong { display: block; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
    background: var(--white);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; }

.cta-band {
    background: linear-gradient(135deg, var(--grape) 0%, var(--bubble) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { opacity: 0.95; max-width: 660px; margin-left: auto; margin-right: auto; }

.notice {
    background: var(--sun-soft);
    border-left: 6px solid var(--sun);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.95rem;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 22px 60px;
    margin: 0;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}
.steps li h4 { margin-bottom: 0.25em; }
.steps li p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 54px 0 20px;
    margin-top: 0;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h3 { color: var(--white); margin-bottom: 0.8rem; font-size: 1.15rem; }
.footer-section p,
.footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; }
.footer-section p { margin-bottom: 0.7em; font-size: 0.95rem; }
.footer-section a:hover { color: var(--sun); }
.footer-brand img { width: 52px; height: 52px; margin-bottom: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--white);
}
.footer-social a:hover { background: var(--sun); color: var(--ink); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--sun); }
.footer-partner a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Sticky mobile book bar
   -------------------------------------------------------------------------- */
.mobile-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    display: none;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 2px solid var(--line);
    box-shadow: 0 -6px 20px rgba(43, 36, 64, 0.10);
}
.mobile-book-bar .btn { flex: 1; box-shadow: none; padding: 12px 10px; font-size: 0.95rem; }
.mobile-book-bar .btn:hover { transform: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   Bilingual switching
   -------------------------------------------------------------------------- */
.lang-zh { display: none; }
html[lang="zh"] .lang-en { display: none; }
html[lang="zh"] .lang-zh { display: inline; }
html[lang="zh"] p.lang-zh,
html[lang="zh"] div.lang-zh,
html[lang="zh"] li.lang-zh,
html[lang="zh"] h1.lang-zh,
html[lang="zh"] h2.lang-zh,
html[lang="zh"] h3.lang-zh,
html[lang="zh"] h4.lang-zh,
html[lang="zh"] ul.lang-zh,
html[lang="zh"] section.lang-zh { display: block; }
html[lang="zh"] body { font-family: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--white);
        border-bottom: 3px solid var(--line);
        transform: translateY(-140%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; }
    .main-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.02rem; }
    .nav-toggle { display: block; }
    body { padding-bottom: 70px; }
    .mobile-book-bar { display: flex; }
}

@media (min-width: 720px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr 1fr; gap: 40px; }
    .hero-inner { grid-template-columns: 1.05fr 1fr; }
    .section { padding: 82px 0; }
    .page-banner { padding: 62px 0 54px; }
    .form-card { padding: 38px 34px; }
    .cta-band { padding: 54px 40px; }
}

@media (min-width: 1000px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

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

/* --------------------------------------------------------------------------
   Active navigation state (driven by body[data-page])
   -------------------------------------------------------------------------- */
body[data-page="home"] .nav-home,
body[data-page="classes"] .nav-classes,
body[data-page="parties"] .nav-parties,
body[data-page="gallery"] .nav-gallery,
body[data-page="booking"] .nav-booking,
body[data-page="about"] .nav-about,
body[data-page="faq"] .nav-faq,
body[data-page="contact"] .nav-contact {
    background: var(--coral-soft);
    color: #C43C3C;
}

@media (max-width: 1080px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--white);
        border-bottom: 3px solid var(--line);
        transform: translateY(-140%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 20px; }
    .main-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.02rem; }
    .nav-toggle { display: block; }
    body { padding-bottom: 70px; }
    .mobile-book-bar { display: flex; }
}

@media (max-width: 560px) {
    .hide-sm { display: none; }
    .logo img { width: 40px; height: 40px; }
    .logo-text { font-size: 1.05rem; }
}

/* Chinese headlines run wider per character — hold them to fewer lines */
html[lang="zh"] .hero h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
html[lang="zh"] h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
