/* Joshva's Piano Studio — design system */

:root {
  --bg: #FAF7F2;          /* Score Paper */
  --surface: #F5EFE4;     /* Ivory Key */
  --surface-2: #FFFFFF;
  --text: #0E1A2B;        /* Midnight Steinway */
  --text-soft: #3B5566;   /* Slate Sostenuto */
  --muted: #6B7A88;
  --accent: #C9A961;      /* Brass Pedal */
  --accent-strong: #B8954E;
  --highlight: #7A1F2B;   /* Felt Hammer */
  --border: rgba(14, 26, 43, 0.08);
  --border-strong: rgba(14, 26, 43, 0.18);
  --shadow: 0 1px 3px rgba(14, 26, 43, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 26, 43, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1180px;
  --transition: 200ms cubic-bezier(.2,.8,.2,1);
  --font-sans: -apple-system, 'Inter', system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
}

html.dark {
  --bg: #0E1A2B;
  --surface: #16263C;
  --surface-2: #0E1A2B;
  --text: #F5EFE4;
  --text-soft: #C2D2E0;
  --muted: #8FA1B0;
  --accent: #D4B87A;
  --accent-strong: #E0C68A;
  --highlight: #B55663;
  --border: rgba(245, 239, 228, 0.1);
  --border-strong: rgba(245, 239, 228, 0.22);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-mark { width: 42px; height: 42px; flex: 0 0 42px; display: block; }
.logo-mark-sm { width: 32px; height: 32px; flex: 0 0 32px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.4px; }
.logo-divider { width: 60%; height: 1px; background: var(--accent); opacity: 0.5; margin: 5px 0; }
.logo-tag { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-strong); font-weight: 500; }

.primary-nav { display: flex; gap: 4px; }
.primary-nav a {
  padding: 8px 14px; font-size: 14px; color: var(--text-soft); text-decoration: none;
  border-radius: 8px; transition: all var(--transition);
}
.primary-nav a:hover { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Theme toggle */
.theme-toggle {
  background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center;
}
.toggle-track {
  position: relative; width: 44px; height: 24px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); transition: background var(--transition);
}
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: var(--accent); border-radius: 50%;
  transition: transform var(--transition);
}
html.dark .toggle-thumb { transform: translateX(20px); }

.menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); font-family: inherit;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--highlight); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ===== Hero ===== */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  display: inline-block; padding: 5px 14px; font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: var(--radius-pill); margin-bottom: 24px; font-weight: 500;
}
.display {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 500;
  line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 24px;
}
.display em { color: var(--accent-strong); font-style: italic; }
.lede { font-size: 18px; color: var(--text-soft); max-width: 580px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }

/* Hero Banners */
.hero-banners-wrapper { display: flex; gap: 24px; align-items: center; justify-content: center; position: relative; z-index: 1; }
.hero-banner { flex: 0 0 auto; width: 150px; height: 400px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-banner-placeholder { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.hero-banner-left { margin-right: auto; }
.hero-banner-right { margin-left: auto; }

@media (max-width: 768px) {
  .hero-banners-wrapper { flex-direction: column; gap: 16px; }
  .hero-banner { width: 200px; height: 250px; margin: 0 auto !important; }
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin: 4px 0 0; letter-spacing: -0.8px; }

/* Filters */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-soft); font-size: 13px; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.select {
  padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font-family: inherit; font-size: 13px;
}

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Cards (clip + course) */
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--surface); cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(14, 26, 43, 0.25); transition: background var(--transition);
  border: none; cursor: pointer; padding: 0;
}
.play-btn:hover { background: rgba(14, 26, 43, 0.4); }
.play-btn span {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.play-btn:hover span { transform: scale(1.08); }
.play-btn svg { fill: var(--accent-strong); margin-left: 4px; }

.card h3 { font-size: 16px; font-weight: 500; margin: 0; line-height: 1.3; }
.card .meta { font-size: 13px; color: var(--muted); margin: 0; }

.tag {
  display: inline-block; padding: 3px 10px; font-size: 11px; letter-spacing: 0.5px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-strong);
  border-radius: var(--radius-pill); font-weight: 500; align-self: flex-start;
}

.course-card { padding: 24px; }
.course-card h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.course-card .desc { color: var(--text-soft); font-size: 14px; margin: 8px 0 16px; }
.course-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; }
.price { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--text); }
.price small { font-size: 13px; color: var(--muted); margin-left: 4px; font-family: var(--font-sans); }

/* Testimonials */
.testimonial-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.testimonial-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.5;
  color: var(--text); font-style: italic;
}
.testimonial-card blockquote::before { content: '“'; font-size: 48px; color: var(--accent); line-height: 0; margin-right: 4px; vertical-align: -16px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--text); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
html.dark .avatar { color: var(--bg); }
.author-name { font-weight: 500; font-size: 14px; }
.author-course { font-size: 12px; color: var(--muted); }
.stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }

/* Booking form */
.book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; color: var(--text-soft); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 14px; width: 14px; height: 14px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

.booking-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.field span em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field textarea { resize: vertical; min-height: 60px; }

.form-status { font-size: 13px; min-height: 18px; }
.form-status.success { color: var(--accent-strong); }
.form-status.error { color: #C0392B; }
html.dark .form-status.error { color: #E08080; }

/* Newsletter */
.newsletter { background: var(--text); color: var(--surface); }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.newsletter h2 { font-family: var(--font-display); font-size: 32px; margin: 0 0 4px; color: var(--surface); }
.newsletter p { color: color-mix(in srgb, var(--surface) 70%, transparent); margin: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; min-width: 320px; }
.newsletter-form > div { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 11px 16px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--surface) 25%, transparent);
  background: transparent; color: var(--surface); font-family: inherit; font-size: 14px;
}
.newsletter-form input::placeholder { color: color-mix(in srgb, var(--surface) 50%, transparent); }
.newsletter-form .btn-primary { background: var(--accent); color: var(--text); }
.newsletter-form .btn-primary:hover { background: var(--accent-strong); }

/* Footer */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 16px; }
.footer-grid a { display: block; color: var(--text-soft); text-decoration: none; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { padding-top: 24px; }
.muted { color: var(--muted); font-size: 13px; }

/* Skeleton */
.skeleton {
  height: 200px; border-radius: var(--radius-lg); background: var(--surface);
  background-image: linear-gradient(90deg, transparent, var(--bg), transparent);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.skeleton-tall { height: 280px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .menu-btn { display: block; }
  .nav-actions .btn { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .display { font-size: 36px; }
  .booking-form { padding: 20px; }
}
