/* ==========================================
   Sweet Harmony — shared stylesheet
   Used across all pages (home, schedule, repertoire, auditions)
   ========================================== */

:root {
  --cream: #faf6ef;
  --cream-deep: #f4ecdf;
  --burgundy: #6b1f2a;
  --burgundy-dark: #4a131c;
  --burgundy-light: #8a3340;
  --gold: #b48a4a;
  --gold-light: #d4ac6e;
  --ink: #2a1f1c;
  --ink-soft: #5a4a44;
  --rule: #d8c9b1;
  --shadow: 0 12px 40px -8px rgba(74, 19, 28, 0.18);
  --shadow-soft: 0 4px 16px -4px rgba(74, 19, 28, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--burgundy);
  color: var(--cream);
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--cream); text-decoration: none; opacity: 0.9; }
.topbar a:hover { opacity: 1; }
.topbar-tagline { font-style: italic; text-transform: none; letter-spacing: 0.02em; opacity: 0.85; }

/* ===== Header ===== */
header {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 246, 239, 0.96);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 36px;
  color: var(--burgundy);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}
.logo .amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  margin: 0 2px;
}
nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}
nav a {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
nav a:hover, nav a.active {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 28px; color: var(--burgundy); }

@media (max-width: 800px) {
  .header-inner { padding: 16px 20px; }
  .logo { font-size: 28px; }
  .nav-toggle { display: block; }
  nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--rule); transform: translateY(-150%); transition: transform 0.3s ease; box-shadow: var(--shadow); }
  nav.open { transform: translateY(0); }
  nav ul { flex-direction: column; gap: 0; padding: 0; }
  nav li { border-bottom: 1px solid var(--rule); }
  nav li:last-child { border-bottom: none; }
  nav a { display: block; padding: 18px 24px; }
}

/* ===== Page header (used on inner pages) ===== */
.page-header {
  background: var(--cream-deep);
  padding: 80px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.page-header .eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;
  color: var(--burgundy);
  margin-bottom: 14px;
}
.page-header p {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Hero slider (home page only) ===== */
.hero {
  position: relative;
  background: var(--cream-deep);
  overflow: hidden;
}
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 72vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream-deep) 0%, #ede1cd 100%);
}
@media (max-width: 700px) {
  .slider { aspect-ratio: 4 / 5; max-height: 75vh; }
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Headline band below the slider */
.hero-headline {
  background: var(--cream);
  padding: 56px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.hero-headline-inner {
  max-width: 820px;
  margin: 0 auto;
}
.hero-headline .eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.hero-headline h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;
  color: var(--burgundy);
  margin-bottom: 18px;
}
.hero-headline p {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(74, 19, 28, 0.25);
  border: 1px solid rgba(74, 19, 28, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  width: 32px;
  border-radius: 5px;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--burgundy);
  font-size: 22px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(74, 19, 28, 0.15);
}
.slider-arrow:hover { background: var(--cream); transform: translateY(-50%) scale(1.05); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
@media (max-width: 700px) {
  .slider-arrow { width: 40px; height: 40px; font-size: 18px; }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
}

/* ===== Section wrappers ===== */
section { padding: 96px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  font-style: italic;
  text-align: center;
  color: var(--burgundy);
  line-height: 1.1;
  margin-bottom: 24px;
}
.section-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 48px;
  position: relative;
}
.section-rule::before, .section-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.section-rule::before { left: -16px; }
.section-rule::after { right: -16px; }
.section-rule.dark { background: var(--cream); }
.section-rule.dark::before, .section-rule.dark::after { background: var(--cream); }

/* ===== About ===== */
.about { background: var(--cream); text-align: center; }
.about p {
  font-size: 21px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.about p.lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 30px;
  color: var(--burgundy);
  line-height: 1.5;
  margin-bottom: 36px;
}

/* ===== Booking ===== */
.booking {
  background: var(--burgundy);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(180, 138, 74, 0.08) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 138, 74, 0.06) 0, transparent 50%);
  pointer-events: none;
}
.booking .container { position: relative; z-index: 2; }
.booking .section-eyebrow { color: var(--gold-light); }
.booking .section-title { color: var(--cream); }
.booking p {
  font-size: 21px;
  line-height: 1.7;
  color: rgba(250, 246, 239, 0.88);
  max-width: 660px;
  margin: 0 auto 40px;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) { .booking-grid { grid-template-columns: 1fr; gap: 20px; } }
.booking-card {
  background: rgba(250, 246, 239, 0.05);
  border: 1px solid rgba(212, 172, 110, 0.3);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}
.booking-card:hover {
  background: rgba(250, 246, 239, 0.08);
  border-color: var(--gold-light);
  transform: translateY(-3px);
}
.booking-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.booking-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--cream);
  display: block;
  word-break: break-word;
}
.booking-card-value:hover { color: var(--gold-light); }
.booking-note { margin-top: 36px; font-size: 15px; font-style: italic; opacity: 0.7; }

/* ===== Schedule ===== */
.schedule { background: var(--cream-deep); }
.schedule.schedule-page { background: var(--cream); }
.schedule-list { max-width: 820px; margin: 0 auto; }
.schedule-season {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  font-style: italic;
  color: var(--burgundy);
  margin: 56px 0 8px;
  text-align: center;
}
.schedule-season:first-of-type { margin-top: 0; }
.schedule-season-sub {
  text-align: center;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.schedule-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px dashed var(--rule);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-date { text-align: center; }
.schedule-date-month {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.schedule-date-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin: 4px 0;
}
.schedule-date-weekday {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.schedule-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.schedule-address { font-size: 16px; color: var(--ink-soft); }
.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
  color: var(--burgundy);
  font-style: italic;
  white-space: nowrap;
}
.schedule-available {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--gold);
}
@media (max-width: 600px) {
  .schedule-item { grid-template-columns: 70px 1fr; gap: 16px; padding: 20px 0; }
  .schedule-time { grid-column: 2; font-size: 19px; }
  .schedule-date-day { font-size: 32px; }
  .schedule-venue { font-size: 21px; }
}

/* "Next 3 performances" preview on home */
.schedule-preview-cta {
  text-align: center;
  margin-top: 48px;
}
.schedule-preview-cta a {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: all 0.2s ease;
}
.schedule-preview-cta a:hover { color: var(--burgundy-dark); border-bottom-color: var(--burgundy); }

/* ===== Songs / repertoire ===== */
.songs { background: var(--cream); }
.songs-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.songs-tab {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.songs-tab:hover { color: var(--burgundy); border-color: var(--burgundy-light); }
.songs-tab.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.songs-list { display: none; }
.songs-list.active { display: block; }
.songs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 48px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) { .songs-grid { grid-template-columns: 1fr; } }
.songs-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.songs-item-bullet { color: var(--gold); font-size: 16px; flex-shrink: 0; }

/* ===== Videos ===== */
.videos { background: var(--cream-deep); }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 800px) { .videos-grid { grid-template-columns: 1fr; } }
.video-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: all 0.3s ease;
}
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.video-card video {
  width: 100%;
  display: block;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-card-body { padding: 20px 24px 24px; }
.video-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.video-card-sub { font-size: 15px; font-style: italic; color: var(--ink-soft); }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { aspect-ratio: 3/4; }

/* ===== Auditions ===== */
.auditions { background: var(--burgundy-dark); color: var(--cream); text-align: center; padding: 80px 24px; }
.auditions .section-title { color: var(--cream); font-size: clamp(32px, 4vw, 48px); }
.auditions p { color: rgba(250, 246, 239, 0.85); max-width: 640px; margin: 0 auto 32px; font-size: 19px; line-height: 1.7; }
.auditions a.button {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid var(--gold-light);
  padding: 18px 40px;
  transition: all 0.25s ease;
}
.auditions a.button:hover { background: var(--gold-light); color: var(--burgundy-dark); }

/* On the dedicated auditions page, add some breathing room */
.auditions-page { padding: 120px 24px; }
.auditions-page .container-narrow { background: rgba(250, 246, 239, 0.06); padding: 64px 32px; border: 1px solid rgba(212, 172, 110, 0.25); }
@media (max-width: 600px) {
  .auditions-page { padding: 80px 16px; }
  .auditions-page .container-narrow { padding: 48px 24px; }
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 56px 24px 28px;
  text-align: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-logo .amp { color: var(--gold-light); }
.footer-tagline {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 32px;
  color: rgba(250, 246, 239, 0.6);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.7);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-rule {
  width: 60px;
  height: 1px;
  background: rgba(212, 172, 110, 0.3);
  margin: 0 auto 24px;
}
.footer-fine { font-size: 13px; letter-spacing: 0.04em; color: rgba(250, 246, 239, 0.4); }

/* Subtle fade-up on initial load (CSS-only, content visible if JS fails) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fadeUp 0.9s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
