/* =============================================
   RSM Piano Studio — Global Stylesheet
   Warm, light, personal, musical
   ============================================= */

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

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

:root {
  --cream:      #faf7f0;
  --cream2:     #f5f0e3;
  --cream3:     #ede5d0;
  --gold:       #b8902a;
  --gold-light: #d4aa4a;
  --gold-pale:  #f0e0a8;
  --gold-glow:  rgba(184,144,42,0.18);
  --warm-dark:  #2a1f0e;
  --warm-mid:   #6b5535;
  --warm-soft:  #9a8060;
  --warm-mute:  #c4b49a;
  --white:      #ffffff;
  --shadow-sm:  0 2px 16px rgba(100,70,20,0.08);
  --shadow-md:  0 8px 40px rgba(100,70,20,0.12);
  --shadow-lg:  0 24px 80px rgba(100,70,20,0.16);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
}

html { font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--warm-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── CURSOR TRAIL CANVAS ─────────────────────── */
#trail-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 2px; }

/* ── NAVIGATION ───────────────────────────────── */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 4vw, 60px);
  background: rgba(250,247,240,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,144,42,0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav#navbar.shadow {
  background: rgba(250,247,240,0.97);
  box-shadow: 0 4px 30px rgba(100,70,20,0.08);
}

/* Logo */
.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.nav-logo img:hover {
  transform: scale(1.03);
}
.nav-logo { text-decoration: none; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-mid);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link:hover { color: var(--gold); background: var(--gold-glow); }
.nav-link.active { color: var(--gold); }

/* Book button */
.nav-book {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 30px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 18px rgba(184,144,42,0.3);
  white-space: nowrap;
}
.nav-book:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(184,144,42,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 601;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--warm-mid);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 602;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 60px;
  box-shadow: -20px 0 80px rgba(100,70,20,0.15);
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--cream3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-mid);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
  transition: opacity 0.4s ease 0.15s, transform 0.4s cubic-bezier(0.16,1,0.3,1) 0.15s, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.mobile-menu.open .mobile-menu-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.mobile-menu-close:hover {
  background: var(--gold-glow);
  border-color: var(--gold-pale);
  color: var(--gold);
}

.mobile-menu a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--warm-dark);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184,144,42,0.1);
  opacity: 0;
  transform: translateX(20px);
  transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-book {
  margin-top: 32px;
  display: inline-block;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--gold);
  padding: 14px 28px;
  border-radius: 30px;
  font-style: normal !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease 0.32s, transform 0.4s ease 0.32s, background 0.3s ease !important;
  transform: translateX(20px) !important;
  border-bottom: none !important;
}
.mobile-menu.open .mobile-book {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.mobile-book:hover { background: var(--gold-light) !important; color: var(--white) !important; }

/* Mobile menu close X */
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
.mobile-close:hover {
  background: var(--gold-pale);
  transform: rotate(90deg);
}
.mobile-close::before,
.mobile-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--warm-mid);
  border-radius: 1px;
}
.mobile-close::before { transform: rotate(45deg); }
.mobile-close::after  { transform: rotate(-45deg); }

/* Mobile menu close X button */
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cream3);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mobile-close:hover {
  background: var(--gold-glow);
  border-color: var(--gold-pale);
}
.mobile-close::before,
.mobile-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: var(--warm-mid);
  border-radius: 1px;
  transition: background 0.3s ease;
}
.mobile-close::before { transform: rotate(45deg); }
.mobile-close::after  { transform: rotate(-45deg); }
.mobile-close:hover::before,
.mobile-close:hover::after { background: var(--gold); }

/* Mobile overlay backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42,31,14,0.35);
  z-index: 598;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: all; }

/* ── TYPOGRAPHY ───────────────────────────────── */
.display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold); }

.headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.headline em { font-style: italic; color: var(--gold); }

.subhead {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.body-copy {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--warm-soft);
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-pale));
  border-radius: 1px;
  margin: 1.5rem 0;
}

/* ── LAYOUT ───────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,5vw,60px); }
section { padding: clamp(70px,10vh,130px) 0; }
section.flush { padding: 0; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.btn-gold {
  color: var(--white);
  background: var(--gold);
  box-shadow: 0 6px 24px rgba(184,144,42,0.35);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184,144,42,0.45);
}
.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  transform: translateY(-1px);
}

/* ── 3D CARD TILT ─────────────────────────────── */
.card-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.card-3d:hover { box-shadow: var(--shadow-lg); }

/* ── IMAGE WRAPPER ────────────────────────────── */
.img-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.img-wrap:hover img { transform: scale(1.04); }

/* ── REVEAL ANIMATIONS ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.in { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

/* ── FLOATING GOLD NOTES ──────────────────────── */
.note-float {
  position: absolute;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  pointer-events: none;
  user-select: none;
  animation: noteFloat 6s ease-in-out infinite;
  opacity: 0.18;
}
@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

/* ── DIVIDER ORNAMENT ─────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.5rem 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cream3));
}
.ornament::before { background: linear-gradient(to right, transparent, var(--gold-pale)); }
.ornament::after  { background: linear-gradient(to left,  transparent, var(--gold-pale)); }
.ornament-inner {
  font-size: 0.9rem;
  color: var(--gold-light);
}

/* ── REVIEW CARD ──────────────────────────────── */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.review-star {
  color: var(--gold-light);
  font-size: 0.85rem;
}
.review-quote {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--warm-mid);
  margin-bottom: 20px;
}
.review-author { font-size: 0.78rem; color: var(--warm-mute); font-weight: 400; }
.review-name { color: var(--warm-dark); font-weight: 400; }
.review-open-quote {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-pale);
  font-style: italic;
}

/* ── STAT BAND ────────────────────────────────── */
.stat-band {
  background: var(--warm-dark);
  color: var(--cream);
  padding: clamp(50px,7vh,80px) clamp(20px,5vw,60px);
}
.stat-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.45);
}

/* ── FORM ─────────────────────────────────────── */
.form-field { margin-bottom: 28px; }
.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-soft);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--cream3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--warm-dark);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,144,42,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--warm-mute); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a8060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--warm-dark);
  color: var(--cream);
  padding: clamp(60px,9vh,100px) clamp(20px,5vw,60px) 40px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250,247,240,0.08);
  margin-bottom: 32px;
}
.footer-logo img { height: 50px; width: auto; filter: brightness(0.9); margin-bottom: 16px; display: block; }
.footer-tagline { font-family: 'EB Garamond', serif; font-size: 0.95rem; font-style: italic; color: rgba(250,247,240,0.45); line-height: 1.7; }
.footer-heading { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(250,247,240,0.5); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.88rem; color: rgba(250,247,240,0.5); line-height: 1.9; }
.footer-contact a { color: rgba(250,247,240,0.5); text-decoration: none; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.72rem; color: rgba(250,247,240,0.2); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-book { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 769px) {
  .hamburger { display: none !important; }
}