/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --white: #ffffff;
  --off-white: #f8f8f6;
  --light-gray: #f2f2f0;
  --border: #e4e4e0;
  --border-dark: #d0cfc9;

  --gold: #b8922a;
  --gold-light: #d4a83a;
  --gold-dim: rgba(184,146,42,0.18);
  --gold-bg: rgba(184,146,42,0.07);

  --charcoal: #1c1c1a;
  --charcoal-mid: #2e2e2c;
  --text-body: #3a3a38;
  --text-muted: #7a7a76;
  --text-light: #a0a09c;

  --accent-green: #4a7c59;
  --accent-red: #b85c5c;
  --accent-blue: #3a5f8a;

  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-ui: 'Lato', sans-serif;

  --nav-height: 68px;
  --section-pad: 6rem 2rem;
  --max-width: 1160px;
  --transition: 0.25s ease;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; }

p { font-size: 1.05rem; color: var(--text-body); line-height: 1.8; }

.section-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--charcoal);
  padding: 0.9rem 2.4rem;
  border: 2px solid var(--charcoal);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-primary:hover { background: var(--charcoal-mid); color: var(--white); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: transparent;
  padding: 0.9rem 2.4rem;
  border: 2px solid var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

.btn-gold {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 0.9rem 2.4rem;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-full { width: 100%; text-align: center; }

/* ============================================
   DIVIDER
   ============================================ */
.divider { width: 48px; height: 2px; background: var(--gold); margin: 1.2rem auto; }
.divider-left { margin-left: 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--charcoal);
}
.nav-logo:hover { color: var(--gold); }

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }

.nav-cta {
  color: var(--white) !important;
  background: var(--charcoal);
  padding: 0.5rem 1.2rem;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }
.nav-cta.active { background: var(--gold) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition);
  position: relative;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.dropdown-active .nav-dropdown-toggle { color: var(--charcoal); }

.nav-dropdown-arrow {
  font-size: 0.5rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 160px;
  z-index: 200;
  padding: 0.4rem 0;
  /* Invisible padding bridges the gap between toggle and menu */
  margin-top: 0;
}

/* Pseudo-element bridge fills the gap so hover doesn't break */
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 16px;
}

/* Show on hover (desktop) */
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
/* Show when .open class set (JS toggle for click/mobile) */
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Small triangle pointer */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu li a:hover { background: var(--off-white); color: var(--charcoal); }
.nav-dropdown-menu li a.active { color: var(--gold); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  background: url('hero-piano.jpg') center 40% / cover no-repeat;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.55) 0%,
    rgba(10, 10, 8, 0.45) 50%,
    rgba(10, 10, 8, 0.65) 100%
  );
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-title { font-size: clamp(3rem, 7vw, 5.5rem); color: var(--white); margin-bottom: 1rem; }

.hero-subtitle {
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 1.2rem;
  animation: bounce 2.2s infinite;
  z-index: 2;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  height: 34vh;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 3rem;
  margin-top: var(--nav-height);
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(184,146,42,0.035) 80px, rgba(184,146,42,0.035) 81px),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(184,146,42,0.035) 80px, rgba(184,146,42,0.035) 81px);
}

.page-hero .hero-content {
  animation: none;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-hero.materials-hero {
  background: url('images/materials-hero.jpg') center 60% / cover no-repeat;
}

.page-hero.materials-hero::before {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.35) 0%,
    rgba(10, 10, 8, 0.55) 100%
  );
}

.page-hero.materials-hero .hero-eyebrow { color: var(--gold-light); }
.page-hero.materials-hero h1 { color: var(--white); }

.page-hero.about-hero { background: url('images/about-hero.jpg') center 45% / cover no-repeat; }
.page-hero.faq-hero { background: url('images/faq-hero.jpg') center 55% / cover no-repeat; }
.page-hero.availability-hero { background: url('images/availability-hero.jpg') center 55% / cover no-repeat; }
.page-hero.about-hero::before,
.page-hero.faq-hero::before,
.page-hero.availability-hero::before {
  background: linear-gradient(to right, rgba(10,10,8,0.62) 0%, rgba(10,10,8,0.35) 60%, rgba(10,10,8,0.2) 100%),
              linear-gradient(to bottom, rgba(10,10,8,0.1) 0%, rgba(10,10,8,0.45) 100%);
}
.page-hero.about-hero .hero-eyebrow,
.page-hero.faq-hero .hero-eyebrow,
.page-hero.availability-hero .hero-eyebrow { color: var(--gold-light); }
.page-hero.about-hero h1,
.page-hero.faq-hero h1,
.page-hero.availability-hero h1 { color: var(--white); }

.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--section-pad); max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-intro {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   AVAILABILITY BANNER
   ============================================ */
.availability-banner {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.availability-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  text-align: center;
}

.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(74,124,89,0.5);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

.availability-inner p { font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-body); }
.availability-inner strong { color: var(--charcoal); }
.availability-inner a { color: var(--gold); }

/* ============================================
   CORE VALUES
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.value-card {
  background: var(--white);
  padding: 2.8rem 2rem;
  text-align: center;
  transition: background var(--transition);
}
.value-card:hover { background: var(--off-white); }

.value-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 1.2rem; display: block; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.8rem; letter-spacing: 0.08em; }
.value-card p { font-size: 0.92rem; color: var(--text-muted); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-pad);
  max-width: 100%;
}
.testimonials .section-header { max-width: var(--max-width); margin: 0 auto 4rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-card.featured { border-color: var(--gold); box-shadow: var(--shadow-md); }

.testimonial-quote { font-style: italic; font-size: 1.05rem; color: var(--text-body); margin-bottom: 1.5rem; line-height: 1.9; }
.testimonial-author { font-family: var(--font-ui); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { text-align: center; padding: 6rem 2rem; max-width: 700px; margin: 0 auto; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; color: var(--text-muted); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }

.about-photo-placeholder {
  aspect-ratio: 3/4;
  background: var(--light-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-text-col h2 { text-align: left; }
.about-text-col .divider { margin-left: 0; }
.about-text-col p { margin-bottom: 1.2rem; }

.credentials-section {
  background: var(--off-white);
  max-width: 100%;
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credentials-section .section-header,
.credentials-grid { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }

.credential-item { border-left: 3px solid var(--gold); padding-left: 1.5rem; }
.credential-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.cred-sub { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; }
.credential-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ============================================
   RATES PAGE
   ============================================ */
.rates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.rate-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.rate-card:hover { box-shadow: var(--shadow-md); }
.rate-card.featured { border-color: var(--gold); box-shadow: var(--shadow-md); margin-top: -1.5rem; padding-top: 3.5rem; }

.rate-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
}

.rate-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.rate-best { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.rate-price { font-family: var(--font-display); font-size: 2.5rem; color: var(--charcoal); margin-bottom: 0.2rem; }
.rate-price span { font-size: 1rem; color: var(--text-muted); }
.rate-monthly { font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2rem; }
.rate-features { list-style: none; margin-bottom: 2rem; text-align: left; }
.rate-features li { font-size: 0.92rem; color: var(--text-body); padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.rate-features li::before { content: '— '; color: var(--gold); }

.policies-section {
  background: var(--off-white);
  max-width: 100%;
  padding: var(--section-pad);
  border-top: 1px solid var(--border);
}
.policies-section .section-header,
.policies-grid { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.policies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 0; }
.policy-item h4 { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--charcoal); margin-bottom: 0.6rem; font-family: var(--font-ui); text-transform: uppercase; }
.policy-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ============================================
   AVAILABILITY GRID (Rates page)
   ============================================ */
.availability-section {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-pad);
}

.avail-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.avail-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.avail-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.avail-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.avail-grid-wrap {
  overflow-x: auto;
}

.avail-grid {
  display: grid;
  grid-template-columns: 130px repeat(3, 1fr);
  gap: 3px;
  min-width: 500px;
  background: var(--border);
  border: 1px solid var(--border);
}

.avail-cell {
  background: var(--white);
  padding: 1rem 1.2rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  transition: filter var(--transition);
}

.avail-header-blank {
  background: var(--off-white);
}

.avail-col-header {
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1.5;
  flex-direction: column;
  gap: 0.1rem;
}
.avail-col-header span {
  color: rgba(255,255,255,0.5);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-ui);
}

.avail-day-label {
  background: var(--off-white);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  justify-content: flex-start;
  padding-left: 1.2rem;
}

.avail-open {
  background: #eef7f1;
  color: #2e6b42;
  border: 1px solid #b8dfc7;
  font-weight: 700;
}

.avail-limited {
  background: #fff8ec;
  color: #8a5e00;
  border: 1px solid #f0d897;
  font-weight: 700;
}

.avail-full {
  background: var(--light-gray);
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.avail-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.avail-note a { color: var(--gold); }

/* Clickable availability cells */
.avail-clickable {
  cursor: pointer;
  position: relative;
}
.avail-clickable:hover {
  filter: brightness(0.93);
  outline: 2px solid var(--charcoal);
  outline-offset: -2px;
  z-index: 1;
}
.avail-clickable:hover::after {
  content: 'Book this slot →';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Filter buttons */
.avail-filter-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.avail-filter-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.avail-filter-btns {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-dark);
}

.avail-filter-btn {
  padding: 0.55rem 1.2rem;
  background: var(--white);
  border: none;
  border-right: 1px solid var(--border-dark);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.avail-filter-btn:last-child { border-right: none; }
.avail-filter-btn:hover { background: var(--light-gray); color: var(--charcoal); }
.avail-filter-active {
  background: var(--charcoal) !important;
  color: var(--white) !important;
}

/* Filtered-out state */
.avail-filtered-out {
  background: var(--light-gray) !important;
  color: var(--text-light) !important;
  border: 1px solid var(--border) !important;
  cursor: default !important;
  outline: none !important;
  pointer-events: none;
}
.avail-filtered-out::after { display: none !important; }

.avail-swatch.avail-filtered {
  background: var(--light-gray);
  border: 1px solid var(--border);
}


.toggle-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-dark);
}

.toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid var(--border-dark);
}
.toggle-btn:last-child { border-right: none; }

.toggle-btn:hover {
  background: var(--light-gray);
  color: var(--charcoal);
}

.toggle-active {
  background: var(--charcoal) !important;
  color: var(--white) !important;
}

/* ============================================
   SCHEDULE / CALENDAR
   ============================================ */
.schedule-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--off-white);
  border: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
}

.legend-dot { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }

#calendar-container {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* FullCalendar overrides */
.fc { font-family: var(--font-ui) !important; font-size: 0.85rem; }

.fc .fc-toolbar-title {
  font-family: var(--font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}

.fc .fc-button {
  background: var(--charcoal) !important;
  border-color: var(--charcoal) !important;
  font-family: var(--font-ui) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 0.4rem 0.9rem !important;
  box-shadow: none !important;
}
.fc .fc-button:hover, .fc .fc-button:focus {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  box-shadow: none !important;
}
.fc .fc-button-active {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}

.fc .fc-col-header-cell-cushion {
  font-family: var(--font-ui) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none !important;
  padding: 0.6rem 0;
}

.fc .fc-daygrid-day-number {
  font-family: var(--font-ui) !important;
  font-size: 0.75rem !important;
  color: var(--text-muted);
  text-decoration: none !important;
}

.fc .fc-day-today { background: rgba(184,146,42,0.05) !important; }
.fc .fc-day-today .fc-daygrid-day-number { color: var(--gold) !important; font-weight: 700; }

.fc .fc-event {
  border-radius: 0 !important;
  font-size: 0.7rem !important;
  padding: 2px 6px !important;
  font-family: var(--font-ui) !important;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none !important;
}

.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border) !important; }
.fc-theme-standard .fc-scrollgrid { border-color: var(--border) !important; }

/* Event detail tooltip */
.event-tooltip {
  position: fixed;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 240px;
  z-index: 9999;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.event-tooltip strong { display: block; margin-bottom: 0.2rem; font-size: 0.82rem; }
.event-tooltip span { color: rgba(255,255,255,0.65); font-size: 0.72rem; }

.schedule-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   MATERIALS PAGE
   ============================================ */
.materials-intro-section {
  max-width: 760px;
}
.materials-intro p { margin-bottom: 1rem; color: var(--text-muted); }
.materials-intro h2 { text-align: left; }

.materials-level-section {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
}

.materials-level-alt {
  background: var(--off-white);
}

.materials-level-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.level-header {
  margin-bottom: 3rem;
}

.level-header h2 { text-align: left; margin-top: 0.8rem; }
.level-desc { color: var(--text-muted); max-width: 680px; margin-top: 0.5rem; font-style: italic; }

/* Collapsible level sections */
.materials-level-details summary.level-header-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 2.5rem;
}
.materials-level-details summary.level-header-summary::-webkit-details-marker { display: none; }
.materials-level-details summary.level-header-summary::after {
  content: "View";
  position: absolute;
  top: 0.5rem;
  right: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--gold);
  font-family: var(--font-ui);
  border: 1px solid var(--gold);
  padding: 0.4rem 0.9rem;
}
.materials-level-details[open] summary.level-header-summary::after {
  content: "Hide";
}

/* Collapsible Repertoire / Theory / etc. subsections */
.materials-subsections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.materials-subsection {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.subsection-summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 0 2.5rem 1rem 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.subsection-summary::-webkit-details-marker { display: none; }
.subsection-summary::after {
  content: "View";
  position: absolute;
  top: -0.15rem;
  right: 0;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--gold);
  font-family: var(--font-ui);
}
.materials-subsection[open] > .subsection-summary::after {
  content: "Hide";
}
.subsection-summary:hover { color: var(--gold); }
.subsection-count {
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.materials-subsection .books-grid {
  margin-top: 1.5rem;
}

.level-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.3rem 1rem;
  margin-bottom: 0.5rem;
}

.level-badge-mid {
  background: var(--gold);
}

.level-badge-adv {
  background: var(--accent-blue);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(345px, 1fr));
  gap: 1.75rem;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.4rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.book-cover-placeholder {
  width: 83px;
  min-width: 83px;
  height: 110px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}

.book-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.book-level-tag {
  font-family: var(--font-ui);
  font-size: 0.69rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.book-info h3 {
  font-size: 1.09rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--charcoal);
  margin: 0;
}

.book-author {
  font-family: var(--font-ui);
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  font-style: normal;
}

.book-note {
  font-style: italic;
  font-size: 1.01rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.3rem 0 0.5rem;
  flex: 1;
}

.book-price {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0.3rem 0 0.5rem;
  flex: 1;
}

.book-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color var(--transition), border-color var(--transition);
}

.book-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--charcoal);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; margin-left: 1rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; padding-bottom: 1.5rem; }
.faq-answer p { color: var(--text-muted); font-size: 1rem; }
.faq-answer a { color: var(--gold); }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item { overflow: hidden; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-placeholder {
  width: 100%; height: 100%;
  background: var(--light-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition);
}
.gallery-placeholder:hover { background: var(--off-white); border-color: var(--gold); }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { max-width: 1100px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 5rem; align-items: start; }

.contact-info h2 { text-align: left; }
.contact-info .divider { margin-left: 0; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail-item { display: flex; align-items: center; gap: 1rem; font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-body); }
.contact-icon { color: var(--gold); font-size: 1rem; width: 20px; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--off-white);
  border: 1px solid var(--border-dark);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8922a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--off-white);
  padding-right: 2.5rem;
}
.form-group select option { background: var(--white); color: var(--charcoal); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success { text-align: center; padding: 3rem 2rem; }
.success-icon { width: 60px; height: 60px; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gold); margin: 0 auto 1.5rem; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 4rem 2rem; background: var(--charcoal); }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.12em; color: var(--white); margin-bottom: 0.3rem; }
.footer-tagline { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-bottom: 2rem; }
.footer-nav a { font-family: var(--font-ui); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-family: var(--font-ui); font-size: 0.68rem; color: rgba(255,255,255,0.25); }

/* ============================================
   ANIMATIONS
   ============================================ */
/* Pages without a hero image: clear the fixed nav, keep one h1 sized like a section heading */
.section.page-top { margin-top: var(--nav-height); }
h1.page-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.contact-info h1 { text-align: left; }

/* Footer credit */
.footer-credit { font-family: var(--font-ui); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-top: 0.8rem; }
.footer-credit a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-credit a:hover { color: var(--gold); }

/* Testimonials page */
.testimonials-more { text-align: center; margin-top: 3rem; }
.testimonials-wall { column-count: 2; column-gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.testimonials-wall .testimonial-card { break-inside: avoid; margin-bottom: 1.5rem; display: inline-block; width: 100%; }
.testimonials-wall .testimonial-quote { font-size: 1rem; }
.testimonials-wall .testimonial-quote p + p { margin-top: 1rem; }
.testimonial-detail { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 0.35rem; }
@media (max-width: 800px) { .testimonials-wall { column-count: 1; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 4px rgba(74,124,89,0.4); } 50% { box-shadow: 0 0 10px rgba(74,124,89,0.8); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .rate-card.featured { margin-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 2rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.open > li {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
  }
  .nav-links.open > li:last-child { border-bottom: none; }

  /* Dropdown becomes inline accordion on mobile */
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    padding: 0.5rem 0 0 1rem;
    margin-top: 0.75rem;
    min-width: unset;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu li a { padding: 0.5rem 0; }

  .nav-toggle { display: block; }
  .section { padding: 4rem 1.5rem; }
  .schedule-wrapper { padding: 4rem 1.5rem; }
}

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
}

@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  #calendar-container { padding: 0.75rem; }
}

/* Eyebrow inside the homepage H1 (keeps "Piano Lessons • Fort Worth, TX" in the main heading for SEO) */
h1 .hero-eyebrow { display: block; font-weight: 400; line-height: 1.4; }
