/* ===================================================================
   Music School demo — style.css
   Three templates from templates.ts (verbatim ids/names/swatches):
     default  = Grand Conservatory
     studio   = Studio Current
     afterglow = Afterglow Sessions
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 10px; background: var(--primary); color: var(--on-primary); padding: 10px 14px; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 10px; }

/* ===================== Theme: Grand Conservatory (default) ===================== */
:root {
  --primary: #183b56; --primary-dark: #102a3e; --primary-light: #dfeaf0;
  --accent: #f4b942; --accent-light: #fff3d1;
  --bg: #fbfaf6; --bg-alt: #f1f4f2; --surface: #fff; --soft: #e9efee; --border: #d6dfdc;
  --ink: #17242b; --ink-soft: #607078; --ink-faint: #8d9a9c; --on-primary: #fffaf0;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Inter, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px; --radius-lg: 24px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(125deg, #102a3e 0%, #183b56 55%, #2d6671 100%);
  --hero-overlay: rgba(16, 42, 62, 0.18); --hero-text: #fffaf0;
  --shadow-sm: 0 2px 8px rgba(24, 59, 86, .07);
  --shadow-md: 0 12px 30px rgba(24, 59, 86, .12);
  --shadow-lg: 0 22px 55px rgba(24, 59, 86, .2);
}
:root .brand-mark { border-radius: 50%; }
:root .hero { min-height: 560px; display: flex; align-items: center; }
:root .card h3 { color: var(--primary); }
:root .section-head h2 { font-style: italic; }
:root .btn-primary { border-radius: 10px; }

/* ===================== Theme: Studio Current ===================== */
html[data-theme="studio"] {
  --primary: #e35d3f; --primary-dark: #b9412b; --primary-light: #ffe5dc;
  --accent: #6fc2a7; --accent-light: #e0f3eb;
  --bg: #fffaf5; --bg-alt: #f7eee7; --surface: #fff; --soft: #f5e4db; --border: #e9d5c9;
  --ink: #2a201e; --ink-soft: #766562; --ink-faint: #a7958e; --on-primary: #fffaf5;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: Inter, -apple-system, 'Segoe UI', sans-serif;
  --radius: 7px; --radius-lg: 10px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(135deg, #2a201e 0%, #7d3930 58%, #e35d3f 100%);
  --hero-overlay: rgba(42, 32, 30, 0.22); --hero-text: #fffaf5;
  --shadow-sm: 0 3px 0 rgba(42, 32, 30, 0.08);
  --shadow-md: 0 12px 0 rgba(42, 32, 30, 0.08);
  --shadow-lg: 0 20px 0 rgba(42, 32, 30, 0.12);
}
html[data-theme="studio"] .site-header { border-bottom: 3px solid var(--ink); }
html[data-theme="studio"] .brand { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; }
html[data-theme="studio"] .brand-mark { border-radius: 4px; }
html[data-theme="studio"] .hero { padding: 100px 0; }
html[data-theme="studio"] .hero h1 { font-weight: 900; letter-spacing: -0.08em; text-transform: uppercase; }
html[data-theme="studio"] .card { box-shadow: 4px 4px 0 var(--ink); }
html[data-theme="studio"] .card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
html[data-theme="studio"] .btn { border-radius: 6px; }
html[data-theme="studio"] .section-head h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.07em; font-style: normal; }

/* ===================== Theme: Afterglow Sessions ===================== */
html[data-theme="afterglow"] {
  --primary: #b9733f; --primary-dark: #8d512d; --primary-light: #f4e5d5;
  --accent: #8b9b68; --accent-light: #ebf0df;
  --bg: #f8f5ee; --bg-alt: #ece9df; --surface: #fffdf8; --soft: #e2e0d5; --border: #d7d4c6;
  --ink: #262821; --ink-soft: #696a5f; --ink-faint: #99998a; --on-primary: #fffaf1;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: Inter, -apple-system, 'Segoe UI', sans-serif;
  --radius: 2px; --radius-lg: 2px; --radius-pill: 999px;
  --hero-gradient: linear-gradient(115deg, #262821 0%, #4c4d3e 50%, #b9733f 100%);
  --hero-overlay: rgba(38, 40, 33, 0.28); --hero-text: #fffaf1;
  --shadow-sm: 0 1px 0 rgba(38, 40, 33, 0.16);
  --shadow-md: 0 10px 25px rgba(38, 40, 33, 0.12);
  --shadow-lg: 0 22px 50px rgba(38, 40, 33, 0.18);
}
html[data-theme="afterglow"] .site-header { background: var(--bg); backdrop-filter: none; }
html[data-theme="afterglow"] .brand { font-size: 1.05rem; }
html[data-theme="afterglow"] .hero { min-height: 500px; }
html[data-theme="afterglow"] .hero h1 { font-size: clamp(3rem, 8vw, 7.2rem); font-weight: 400; }
html[data-theme="afterglow"] .card { border-radius: 2px; }
html[data-theme="afterglow"] .card-media { aspect-ratio: 3 / 2; }
html[data-theme="afterglow"] .section-head h2 { font-weight: 400; font-style: normal; }

/* ===================== Header / nav ===================== */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.nav-link { font-size: 0.9rem; color: var(--ink-soft); transition: color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); min-width: 44px; min-height: 44px; border-radius: 8px; }
.nav-toggle:hover { background: var(--soft); }

/* ===================== Buttons ===================== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--radius); border: 1.5px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: var(--hero-text); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--hero-text); }

/* ===================== Hero ===================== */
.hero { position: relative; overflow: hidden; background: var(--hero-gradient); color: var(--hero-text); padding: clamp(88px, 12vw, 150px) 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 20px; margin: 0 auto; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.hero .eyebrow { color: var(--hero-text); opacity: 0.74; }
.hero h1 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.055em; font-size: clamp(2.7rem, 8vw, 6.7rem); line-height: 0.96; margin: 18px 0; }
.hero p { font-size: 1.12rem; opacity: 0.85; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ===================== Sections ===================== */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 0; }
.section-head p { color: var(--ink-soft); max-width: 380px; margin: 0; }

/* ===================== Cards ===================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card a { display: block; color: inherit; }
.card-media { overflow: hidden; }
.card-media img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 22px 26px; }
.card-body .meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 10px; }
.card-body h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 16px; }
.tag { background: var(--primary-light); color: var(--primary); padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 600; }
.card .btn-outline { padding: 7px 0; border: 0; color: var(--primary); background: none; font-weight: 600; }
.card .btn-outline:hover { color: var(--primary-dark); transform: none; box-shadow: none; }

/* ===================== Detail pages ===================== */
.detail-hero { background: var(--bg-alt); padding: clamp(48px, 7vw, 84px) 0; border-bottom: 1px solid var(--border); }
.detail-hero h1 { font-family: var(--font-head); font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -0.04em; margin: 10px 0 16px; }
.section-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 620px; margin: 0; }
.detail-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-faint); font-size: 0.88rem; }
.detail-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.prose { max-width: none; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); }
.prose h2 { font-family: var(--font-head); font-size: 1.7rem; margin: 32px 0 14px; color: var(--ink); }
.prose h3 { font-family: var(--font-head); font-size: 1.3rem; margin: 26px 0 10px; color: var(--ink); }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 22px 0; font-style: italic; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.aside-card h3 { font-family: var(--font-head); margin: 8px 0 12px; font-size: 1.3rem; }
.aside-card p { color: var(--ink-soft); margin: 0 0 16px; font-size: 0.92rem; }
.aside-card p a { display: block; padding: 8px 0; border-top: 1px solid var(--border); color: var(--ink); }
.aside-card p a:hover { color: var(--primary); }
.aside-card p a strong { color: var(--primary); }
.aside-card .btn-primary { width: 100%; justify-content: center; }

/* ===================== Testimonials / quote ===================== */
.quote-section { background: var(--bg-alt); padding: clamp(56px, 9vw, 96px) 0; }
.quote { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; font-weight: 500; max-width: 760px; color: var(--ink); }
.quote small { display: block; margin-top: 20px; font-family: var(--font-body); font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }

/* ===================== Stats / steps ===================== */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--primary); margin-bottom: 6px; }

/* ===================== Fees ===================== */
.fees-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fee-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.fee-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.fee-card h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 6px 0 8px; }
.fee-price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; color: var(--primary); line-height: 1; margin-bottom: 16px; }
.fee-card .prose p { font-size: 0.9rem; }
.fee-card ul { list-style: none; padding: 0; margin: 16px 0; }
.fee-card li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); font-size: 0.92rem; }
.fee-card li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.fee-card .btn-primary { width: 100%; justify-content: center; }

/* ===================== Gallery ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.35s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ===================== FAQ ===================== */
.faq-list { max-width: 760px; }
details.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 0; box-shadow: var(--shadow-sm); }
details.faq-item summary { cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: transform 0.2s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-answer { padding: 0 24px 22px; color: var(--ink-soft); }

/* ===================== Forms ===================== */
.form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.15s; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-light); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23607078' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.form .btn-primary { justify-content: center; padding: 14px; }
.notice { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); }
.notice h3 { margin: 0 0 6px; font-family: var(--font-head); }
.notice p { margin: 0; color: var(--ink-soft); }
.success-box { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.success-box h3 { font-family: var(--font-head); margin: 0 0 8px; }
.success-box p { color: var(--ink-soft); margin: 0 0 16px; }
.honeypot { position: absolute; left: -10000px; }

/* ===================== Footer ===================== */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.82); padding: 56px 0 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 0 20px 44px; max-width: 1120px; margin: 0 auto; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: var(--accent); color: var(--ink); }
.footer-col p { font-size: 0.88rem; margin: 6px 0; line-height: 1.6; }
.footer-col a { color: rgba(255, 255, 255, 0.82); display: inline-block; padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col h3 { font-family: var(--font-head); color: #fff; font-size: 1.02rem; margin: 0 0 10px; font-weight: 600; }
.social-links { display: flex; gap: 8px; margin-top: 12px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font-size: 0.72rem; font-weight: 600; }
.social-links a:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 20px; text-align: center; font-size: 0.82rem; max-width: 1120px; margin: 0 auto; color: rgba(255, 255, 255, 0.66); }
.footer-bottom a { color: inherit; }
.footer-sep { margin: 0 6px; opacity: 0.5; }

/* ===================== WhatsApp float ===================== */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 52px; height: 52px; background: #25d366; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); z-index: 100; font-size: 1.3rem; transition: background 0.15s, transform 0.15s; }
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ===================== Theme switcher ===================== */
.theme-btn { position: fixed; bottom: 88px; right: 24px; z-index: 110; width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: background 0.15s, transform 0.15s; }
.theme-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-panel { position: fixed; bottom: 152px; right: 24px; z-index: 120; width: 300px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; display: none; text-align: left; }
.theme-panel.open { display: block; }
.theme-panel h3 { font-family: var(--font-head); font-size: 1.05rem; margin: 0 0 4px; }
.theme-sub { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 14px; }
.theme-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--soft); border: 2px solid transparent; border-radius: var(--radius); padding: 11px 12px; margin-bottom: 9px; cursor: pointer; font-family: var(--font-body); color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.theme-card:hover { background: color-mix(in srgb, var(--soft) 60%, var(--primary-light)); }
.theme-card.active { border-color: var(--primary); background: var(--primary-light); }
.theme-swatches { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatches .sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.12); }
.theme-card .t-name { font-weight: 700; font-size: 0.9rem; }
.theme-card .t-desc { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.35; }
.theme-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 0.72rem; color: var(--ink-faint); line-height: 1.4; }

/* ===================== Empty state ===================== */
.empty { color: var(--ink-soft); padding: 40px 0; text-align: center; font-style: italic; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fees-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 20px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav-link { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .card-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .theme-panel { right: 16px; bottom: 144px; }
  .theme-btn { right: 16px; bottom: 80px; }
  .wa-float { right: 16px; bottom: 16px; }
}
