/* ============================================================
   THE FLUTE ROOM — STYLESHEET
   Design language: bamboo + dusk. The palette is drawn from the
   flute itself (bamboo gold, moss) and the two class windows —
   evening and night (dusk teal, deep ink). The signature motif
   is a breathing sine wave, standing in for breath control, and
   a row of small circles standing in for the flute's finger holes.
   ============================================================ */

:root {
  /* Color tokens — premium dark theme: deep charcoal + warm gold */
  --paper: #14100C;        /* main background — deep charcoal / near-black */
  --paper-mist: #1C1712;   /* secondary background — subtle dark contrast */
  --card: #211A14;         /* card surface — dark grey, lifted off the page */
  --ink: #F3ECE0;          /* off-white / soft cream — body text */
  --dusk: #0F0C09;         /* accent dark section bg (hero, page-hero) */
  --dusk-deep: #0A0806;    /* deepest tone — footer, gradients */
  --bamboo: #C9973F;       /* warm gold accent — CTAs, highlights */
  --bamboo-light: #E3B563; /* elegant cream-gold accent */
  --moss: #AFA392;         /* warm muted taupe — secondary text, borders */
  --line: rgba(243, 236, 224, 0.10);
  --line-on-dark: rgba(243, 236, 224, 0.14);
  --white: #FBF7EF;         /* soft cream — headings/text on dark accent bg */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 3.6rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 16px 44px rgba(0, 0, 0, 0.5);
  --container: 1140px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bamboo);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4.5rem 0; }
@media (max-width: 640px) { section { padding: 3.25rem 0; } }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bamboo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Finger-hole divider (signature motif) ---------- */
.hole-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.75rem;
}
.hole-divider span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bamboo);
  opacity: 0.35;
}
.hole-divider span:nth-child(3) { opacity: 1; }
.hole-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.hole-divider.on-dark span { background: var(--bamboo-light); }
.hole-divider.on-dark::after { background: var(--line-on-dark); }

/* ---------- Breath-wave signature SVG ---------- */
.breath-wave { display: block; width: 100%; height: auto; }
.breath-wave path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: breathe 7s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { stroke-width: 1.3; opacity: 0.55; }
  50% { stroke-width: 2.2; opacity: 1; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 16, 12, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark { color: var(--bamboo); }
.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.92rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { text-decoration: none; color: var(--moss); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) {
  .nav-links { display: flex; align-items: center; }
}
.nav-cta {
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--bamboo);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #a3742f; box-shadow: var(--shadow-lift); }
.btn-primary:disabled {
  background: #423a2c;
  color: #8f8574;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark {
  background: var(--bamboo-light);
  color: var(--dusk-deep);
}
.btn-on-dark:hover { background: var(--bamboo); }
.btn-whatsapp {
  background: #25D366;
  color: #08331a;
}
.btn-whatsapp:hover { background: #1fb958; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--dusk-deep) 0%, var(--dusk) 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 3.25rem 0 3.75rem;
}
.hero .breath-wave { position: absolute; inset: auto 0 -1px 0; color: var(--bamboo); opacity: 0.35; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lede {
  font-size: 1.1rem;
  color: rgba(246, 241, 231, 0.82);
  max-width: 42ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.trust-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(246, 241, 231, 0.7);
}
.seat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(212, 168, 92, 0.14);
  border: 1px solid rgba(217, 168, 92, 0.4);
  color: var(--bamboo-light);
}
.seat-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #E8A93B;
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.video-frame {
  margin-top: 2.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1c1e;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line-on-dark);
}
.video-frame .yt-embed { aspect-ratio: 16/9; }

.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f1c1e center/cover no-repeat;
  cursor: pointer;
}
.yt-embed.vertical { aspect-ratio: 9/16; max-width: 380px; margin: 0 auto; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(15,28,30,0.15), rgba(15,28,30,0.55));
}
.yt-play svg { width: 62px; height: 62px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.yt-play span {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}

/* ---------- Section headers ---------- */
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--moss); font-size: 1.02rem; }

/* ---------- How you will join (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  counter-increment: step;
  position: relative;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bamboo);
  display: block;
  margin-bottom: 0.75rem;
}
.step-card p { margin: 0; font-size: 0.95rem; color: var(--ink); }
.steps-cta { margin-top: 2rem; text-align: center; }

/* ---------- Unlimited classes (bold section) ---------- */
.unlimited {
  background: var(--dusk);
  color: var(--paper);
  position: relative;
}
.unlimited-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .unlimited-grid { grid-template-columns: 1fr 1fr; }
}
.unlimited h2 { color: var(--white); }
.unlimited-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.unlimited-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  color: rgba(246, 241, 231, 0.9);
}
.unlimited-list li .hole {
  flex: none;
  width: 8px; height: 8px; margin-top: 0.55em;
  border-radius: 50%;
  background: var(--bamboo-light);
}

/* ---------- Full live class ---------- */
.full-class .container { max-width: 880px; text-align: center; }
.full-class .video-frame { text-align: left; }

/* ---------- About teacher ---------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 320px 1fr; }
}
.teacher-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--paper-mist);
  box-shadow: var(--shadow-soft);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-copy .role { color: var(--moss); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.reel-slot {
  margin-top: 1.75rem;
}
.reel-embed-wrap {
  max-width: 340px;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 120px;
}
.reel-embed-wrap iframe,
.reel-embed-wrap blockquote { max-width: 100%; }
.reel-fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--bamboo-light);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}
.reel-fallback-btn:hover { border-color: var(--bamboo); color: var(--bamboo); }

/* ---------- What you'll learn (cards) ---------- */
.learn-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .learn-grid { grid-template-columns: repeat(3, 1fr); }
}
.learn-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.learn-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bamboo);
}
.learn-card h3 { font-size: 1.3rem; margin: 0.5rem 0 0.75rem; }
.learn-card p { color: var(--moss); font-size: 0.94rem; margin: 0; }
.learn-cta { margin-top: 2rem; text-align: center; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
}
.review-stars {
  display: flex;
  gap: 0.2em;
  color: var(--bamboo);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.review-quote-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--bamboo);
  opacity: 0.6;
}
.review-name { font-weight: 600; margin: 0; }
.review-level { color: var(--moss); font-size: 0.82rem; font-family: var(--font-mono); }
.review-text { font-size: 0.95rem; margin: 0; color: var(--ink); }

/* ---------- Enrollment form ---------- */
.enroll { background: var(--paper-mist); }
.enroll-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.field .hint { font-weight: 400; color: var(--moss); font-size: 0.82rem; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bamboo); }
.field textarea { resize: vertical; min-height: 90px; }
.field.invalid input, .field.invalid select { border-color: #B5443A; }
.error-text { color: #B5443A; font-size: 0.8rem; margin-top: 0.35rem; display: none; }
.field.invalid .error-text { display: block; }

.radio-group { display: flex; gap: 1.5rem; }
.radio-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.95rem; }
.radio-group input { width: 18px; height: 18px; accent-color: var(--bamboo); }

.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin: 1.5rem 0; }
.consent input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--bamboo); flex: none; }
.consent label { font-size: 0.88rem; color: var(--moss); }
.consent a { color: var(--ink); text-decoration: underline; }

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.error { background: rgba(197, 84, 68, 0.16); color: #F3A090; }
.form-status.loading { background: var(--paper-mist); color: var(--moss); }

.hidden { display: none !important; }

/* ---------- Payment section ---------- */
.payment-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  text-align: center;
}
.qr-wrap {
  width: 220px; height: 220px;
  margin: 1.5rem auto 1rem;
  background: var(--paper-mist);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.upi-id {
  font-family: var(--font-mono);
  background: var(--paper-mist);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.fee-line { font-family: var(--font-display); font-size: var(--step-2); margin: 0.5rem 0; }
.confirm-note { color: var(--moss); font-size: 0.85rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dusk-deep);
  color: rgba(246, 241, 231, 0.75);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.9rem;
}
.site-footer a { color: rgba(246, 241, 231, 0.75); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--bamboo-light); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Simple pages (privacy, terms, contact, thank-you) ---------- */
.page-hero {
  background: var(--dusk);
  color: var(--paper);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.updated-note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--moss); }

.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 560px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .k { color: var(--moss); font-family: var(--font-mono); font-size: 0.82rem; }
.contact-row .v { font-weight: 600; text-align: right; }

.thankyou-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.lead-id-chip {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--paper-mist);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0 1.5rem;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bamboo);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
