/* =========================================================================
   Modern Classical — viola studio landing page
   Hand-written CSS. No build step. Design tokens mirror the Stitch prototype.
   ========================================================================= */

:root {
  /* Colors */
  --background: #f9f9ff;
  --surface-container-low: #f0f3ff;
  --surface-container: #e7eeff;
  --surface-container-high: #dee8ff;
  --surface-container-highest: #d8e3fb;
  --primary: #111c2d;          /* deep midnight ink for text & primary buttons */
  --primary-container: #131b2e;
  --on-primary: #ffffff;
  --on-surface: #111c2d;
  --on-surface-variant: #45464d;
  --secondary: #7f5702;        /* rosin gold accent */
  --secondary-container: #fdc66e;
  --secondary-fixed: #ffddae;
  --outline: #76777d;
  --outline-variant: #c6c6cd;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container-max: 1140px;
  --section-gap: 80px;
  --radius: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--secondary-fixed); }

/* ---------- Utilities ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-gap) 0; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary); margin: 0 0 12px;
}
.rule { height: 3px; width: 72px; background: var(--secondary); border: 0; margin: 16px 0 0; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--primary); margin: 0; line-height: 1.2; }
h2 { font-size: clamp(28px, 4vw, 34px); font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 16px 28px; border-radius: var(--radius); border: 2px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--secondary); }
.btn-outline:hover { background: var(--secondary-fixed); }
.btn-lg { padding: 18px 40px; font-size: 15px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* Top state: subtle dark gradient so light text reads over the hero video */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(17,28,45,0.55), rgba(17,28,45,0));
  opacity: 1; transition: opacity .3s ease;
}
/* Scrolled state: solid light bar */
.site-header.scrolled {
  background-color: rgba(249,249,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom-color: rgba(17,28,45,0.10);
}
.site-header.scrolled::before { opacity: 0; }

/* Mobile menu open: bar goes solid so it matches the dropdown panel below it */
.site-header.menu-open { background-color: rgba(17,28,45,0.97); }
.site-header.menu-open::before { opacity: 0; }
.site-header.scrolled.menu-open { background-color: rgba(249,249,255,0.97); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; transition: .3s; }

/* Top (over the hero) — light on dark */
.site-header .brand { color: #ffffff; }
.site-header .nav-links a:not(.btn) { color: rgba(255,255,255,0.88); }
.site-header .nav-links a:not(.btn):hover { color: #ffddae; }
.site-header .nav-toggle span { background: #ffffff; }

/* Scrolled — dark on light */
.site-header.scrolled .brand { color: var(--primary); }
.site-header.scrolled .nav-links a:not(.btn) { color: var(--on-surface-variant); }
.site-header.scrolled .nav-links a:not(.btn):hover { color: var(--secondary); }
.site-header.scrolled .nav-toggle span { background: var(--primary); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }

/* Full-bleed video hero with overlaid content */
.hero-video-section {
  position: relative;
  height: 100vh;               /* fallback */
  height: 100dvh;              /* always EXACTLY the visible window height (no overflow, tracks mobile bars) */
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(17,28,45,0.85) 0%, rgba(17,28,45,0.60) 45%, rgba(17,28,45,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-video-section h1 { color: #ffffff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero.hero-video-section h1 .accent { color: #ffddae; }
.hero-video-section .hero-lead { color: rgba(255,255,255,0.92); text-shadow: 0 1px 10px rgba(0,0,0,0.40); }
.hero-video-section .hero-lead strong { color: #ffffff; }
.hero-video-section .btn-outline { color: #ffffff; }
.hero-content .hero-lead-offer { margin-bottom: 14px; }
@media (max-width: 640px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(17,28,45,0.70) 0%, rgba(17,28,45,0.75) 100%);
  }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 56px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--secondary); font-style: italic; }
.hero-lead { font-size: 18px; color: var(--on-surface-variant); max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media { position: relative; }
.hero-media .frame {
  aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(17,28,45,0.10);
}
.hero-media .frame img,
.hero-media .frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: ""; position: absolute; bottom: -24px; left: -24px;
  width: 140px; height: 140px; background: rgba(255,221,174,0.5);
  border-radius: 50%; filter: blur(40px); z-index: -1;
}

/* ---------- Fast facts ---------- */
.facts { background: var(--surface-container-low); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact {
  background: #fff; border: 1px solid rgba(17,28,45,0.06);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: background-color .25s, transform .25s;
}
.fact:hover { background: var(--surface-container-high); transform: translateY(-2px); }
.fact .ico { color: var(--secondary); line-height: 0; margin-bottom: 14px; }
.fact .ico svg { width: 30px; height: 30px; }
.fact .k { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin: 0 0 6px; }
.fact .v { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--primary); margin: 0; }

/* ---------- Outcomes ---------- */
.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.outcome {
  background: var(--surface-container); border-radius: 8px; padding: 28px 24px; text-align: center;
}
.outcome .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.outcome .lbl { font-size: 14px; color: var(--on-surface-variant); margin: 0; }

/* Recital video player */
.video-player {
  display: block; width: 100%; margin-top: 48px;
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--primary-container); object-fit: cover;
}

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.quote {
  position: relative; background: var(--surface-container); border-radius: 8px; padding: 36px 32px;
}
.quote::before {
  content: "\201C"; position: absolute; top: 8px; right: 20px;
  font-family: var(--font-display); font-size: 90px; line-height: 1;
  color: rgba(127,87,2,0.18);
}
.quote p { font-size: 18px; font-style: italic; margin-bottom: 16px; }
.quote cite { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: var(--primary); }

/* ---------- About / mentor ---------- */
.about { background: var(--surface-container-highest); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head photo" "body photo";
  column-gap: 64px;
  row-gap: 24px;
  align-items: center;
}
.about-head { grid-area: head; }
.about-body { grid-area: body; }
.about-photo { grid-area: photo; }
.about .list { list-style: none; padding: 0; margin: 24px 0 0; }
.about .list li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 16px; }
.about .list li::before { content: "\2022"; position: absolute; left: 0; color: var(--secondary); font-size: 1.3em; line-height: 1; top: -1px; }
.about .highlight { color: var(--secondary); font-weight: 700; }
.about-photo { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 8px solid var(--background); box-shadow: 0 20px 40px rgba(17,28,45,0.15); }
.about-photo picture { display: block; width: 100%; height: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Booking ---------- */
.booking { }
.booking .lead { max-width: 44em; margin: 0 auto 40px; text-align: center; color: var(--on-surface-variant); font-size: 18px; }
.booking-inner { max-width: 900px; margin: 0 auto; }
.booking-scheduler { margin-bottom: 56px; }
.scheduler-placeholder {
  border: 2px dashed var(--outline-variant); border-radius: 8px; padding: 40px 32px; text-align: center;
  background: var(--surface-container-low);
}
.scheduler-placeholder h3 { margin-bottom: 8px; }
.scheduler-placeholder code { background: #fff; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--outline-variant); font-size: 14px; }
.calendly-inline-widget { min-width: 320px; height: 680px; }

.divider { display: flex; align-items: center; gap: 16px; color: var(--outline); margin: 0 auto 40px; max-width: 420px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--outline-variant); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--on-surface);
  background: transparent; border: 0; border-bottom: 2px solid var(--primary);
  padding: 8px 2px; border-radius: 0; transition: border-color .3s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--secondary); }
.field select { appearance: none; background: transparent; }
.form-submit { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.hp { position: absolute; left: -5000px; }

/* ---------- Thank-you modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(17,28,45,0.55); backdrop-filter: blur(3px);
  animation: modalFade .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative; background: var(--background); border-radius: 8px;
  max-width: 460px; width: 100%; padding: 44px 36px 36px; text-align: center;
  box-shadow: 0 30px 60px rgba(17,28,45,0.30); animation: modalPop .25s ease;
}
.modal-card h3 { font-size: 26px; }
.modal-card .rule { margin-left: auto; margin-right: auto; }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 28px; line-height: 1; color: var(--outline); cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--primary); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-container-low); padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 32em; }
.footer-brand .brand { display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 15px; color: var(--on-surface-variant); }
.footer-cols { display: flex; gap: 64px; }
.footer-col h5 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--on-surface-variant); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-note { text-align: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(17,28,45,0.08); font-size: 13px; letter-spacing: 0.06em; color: var(--outline); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; gap: 32px; }
  .about-photo { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  /* Less vertical padding so the fixed-height hero doesn't clip its text on short screens */
  .hero-video-section { padding: 84px 0 36px; }
  /* Tighter top/bottom spacing around the fast-facts grid on mobile */
  .facts { padding: 40px 0; }
  /* Slightly less space above the Proven Results / Outcomes section on mobile */
  #outcomes { padding-top: 52px; }
  /* Break the teacher name onto its own line on mobile */
  .eyebrow-sep { display: none; }
  .eyebrow-name { display: block; }
  /* Shift the mobile portrait down 40px (reveals more top → lifts the subject's focal point) */
  .about-photo img { object-position: center calc(50% + 40px); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 76px; left: 0; right: 0;
    padding: 24px; border-bottom: 1px solid transparent;
  }
  /* Dropdown background matches the bar's current state (dark on top, light scrolled).
     Link colors already follow the header state, so no text override needed. */
  .site-header .nav-links.open { background: rgba(17,28,45,0.97); border-bottom-color: rgba(255,255,255,0.10); }
  .site-header.scrolled .nav-links.open { background: rgba(249,249,255,0.97); border-bottom-color: rgba(17,28,45,0.10); }
  .nav-toggle { display: block; }
  .form { grid-template-columns: 1fr; }
}

/* ---------- Short-window (height) compaction for the fixed-height hero ----------
   Placed LAST so these override the base hero type and the mobile padding rules.
   Progressively shrink type/spacing; drop the founder line on very short windows. */
@media (max-height: 760px) {
  .hero-video-section { padding: 80px 0 28px; }
  .hero-video-section h1 { font-size: clamp(26px, 4.2vw, 38px); margin-bottom: 12px; }
  .hero-video-section .hero-lead { font-size: 15px; line-height: 1.5; }
  .hero-content .hero-lead-offer { margin-bottom: 8px; }
  .hero-video-section .hero-founder { margin-bottom: 20px; }
  .hero-cta { gap: 12px; }
}
@media (max-height: 620px) {
  .hero-video-section { padding: 80px 0 20px; }
  .hero-video-section h1 { font-size: 24px; margin-bottom: 8px; }
  .hero-video-section .hero-lead { font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
  .hero-content .hero-founder { display: none; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg { padding: 11px 22px; font-size: 13px; }
}
@media (max-height: 520px) {
  .hero-video-section { padding: 74px 0 14px; }
  .hero-video-section h1 { font-size: 21px; margin-bottom: 6px; }
  .hero-content .hero-lead-offer { font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn-lg { padding: 9px 18px; font-size: 12px; }
}
