/* ─── Reset & Base ─────────────────────────────────────────── */

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

:root {
  --bg:         #0a0a0a;
  --surface:    #141414;
  --text:       #f0ece4;
  --text-muted: #888;
  --accent:     #c9a96e;
  --accent-dim: rgba(201, 169, 110, 0.12);
  --nav-h:      72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Typography ────────────────────────────────────────────── */

.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Nav ───────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.7);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─── Hamburger (mobile) ────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────── */

#hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.40) 50%,
    rgba(10, 10, 10, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(240, 236, 228, 0.65);
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 460px;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 13px 32px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.hero-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 1s;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Section scaffolding (placeholder styles) ──────────────── */

.section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-top: 12px;
  color: var(--text);
}

.section-placeholder {
  width: 100%;
  padding: 80px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 4px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* section dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Lessons form toggle button ───────────────────────────── */

.form-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid rgba(201, 169, 110, 0.45);
  border-radius: 2px;
  background: none;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.form-toggle-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.form-toggle-btn svg {
  transition: transform 0.35s ease;
}

.form-toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ─── Form collapse wrapper ─────────────────────────────────── */

.form-collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  margin-top: 0;
}

.form-collapse.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 40px;
}

/* ─── Lessons Form ──────────────────────────────────────────── */

.lessons-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--empty {
  visibility: hidden;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #1a1a1a;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.05);
}

/* Segment control (Adult / Child) */
.segment-control {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  height: 46px;
}

.segment-control--wide {
  max-width: 320px;
}

.segment {
  flex: 1;
  display: flex;
  cursor: pointer;
}

.segment input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segment span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.segment:last-child span {
  border-right: none;
}

.segment input[type="radio"]:checked + span {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}

/* Parent fields (collapsed by default) */
.parent-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.parent-fields.visible {
  max-height: 420px;
  opacity: 1;
}

.parent-fields-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

/* Instrument cards */
.instrument-cards {
  display: flex;
  gap: 12px;
}

.instrument-card {
  flex: 1;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.instrument-card:hover {
  border-color: rgba(201, 169, 110, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.instrument-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.instrument-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.instrument-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.instrument-card:has(input:checked) .instrument-name {
  color: var(--accent);
  font-weight: 600;
}

/* Textarea */

.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 12px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(201, 169, 110, 0.05);
}

/* Experience detail (collapsed by default) */

.experience-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.experience-detail.visible {
  max-height: 160px;
  opacity: 1;
}

/* Submit */
.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}

.form-submit {
  padding: 14px 40px;
  background: var(--accent);
  border: none;
  border-radius: 2px;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-success {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* Form responsive */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group--empty {
    display: none;
  }

  .instrument-cards {
    flex-direction: column;
  }

  .instrument-card {
    max-width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 16px;
  }
}

/* ─── About ─────────────────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-image-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about-image {
  width: 100%;
  border-radius: 3px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(240, 236, 228, 0.75);
}

.about-text p:first-child {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    position: static;
    max-width: 480px;
  }
}

/* ─── Books ─────────────────────────────────────────────────── */

.books-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 260px;
}

.book-cover-link {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
}

.book-cover {
  width: 100%;
  display: block;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-amazon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}

.book-amazon-link:hover {
  color: var(--text);
}

/* ─── Footer ────────────────────────────────────────────────── */

footer {
  padding: 48px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer .footer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}

/* ─── Animations ────────────────────────────────────────────── */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
  #nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    text-align: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 24px;
  }

  .section-placeholder {
    padding: 48px 24px;
  }

  footer {
    padding: 36px 24px;
  }
}
