/* ===== Fonts ===== */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-700.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}

/* ===== Variables ===== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #12100c;
  --card: #17140e;
  --gold: #c9a24b;
  --gold-light: #f0d78c;
  --ivory: #f5f1e8;
  --muted: #b8b0a0;
  --line: rgba(201, 162, 75, 0.25);
  --grad-gold: linear-gradient(135deg, #c9a24b 0%, #f0d78c 50%, #c9a24b 100%);
  --font-display: 'Playfair Display', Didot, Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }

.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.75rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 3rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--grad-gold);
  color: #1a1405;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201, 162, 75, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { box-shadow: 0 8px 30px rgba(201, 162, 75, 0.2); }

/* ===== Navigation ===== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--gold); }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--ivory); }
.brand-name em { font-style: normal; color: var(--gold-light); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-link { color: var(--ivory); font-size: 0.95rem; position: relative; padding: 0.3rem 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--gold-light); transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 4.25rem; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 10, 10, 0.97);
    width: min(320px, 80vw); height: calc(100vh - 4.25rem);
    padding: 1.5rem; border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link { padding: 0.9rem 0; border-bottom: 1px solid rgba(201, 162, 75, 0.12); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 6.5rem 0 4rem;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/hero-bg.jpg') center / cover no-repeat;
  filter: brightness(1.35) saturate(1.06);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 48% 60% at 50% 50%, rgba(10, 10, 10, 0.5), transparent 74%),
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(201, 162, 75, 0.18), transparent),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.55), transparent 16%),
    linear-gradient(to bottom, transparent 62%, rgba(10, 10, 10, 0.75) 91%, #0a0a0a 100%),
    linear-gradient(rgba(10, 10, 10, 0.12), rgba(10, 10, 10, 0.22));
}
.page-particles {
  position: fixed; inset: 0; z-index: 50;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-spotlights { position: absolute; inset: 0; z-index: 1; }
.hero-spotlights i {
  position: absolute; top: -18%; width: 30vw; height: 85vh;
  background: linear-gradient(to bottom,
    rgba(245, 237, 210, 0.34),
    rgba(240, 215, 140, 0.12) 55%,
    transparent 78%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  filter: blur(7px);
  mix-blend-mode: screen;
  animation: sway 9s ease-in-out infinite alternate;
}
.hero-spotlights i:nth-child(1) { left: 4%; transform: rotate(14deg); }
.hero-spotlights i:nth-child(2) { left: 36%; animation-delay: -3s; }
.hero-spotlights i:nth-child(3) { right: 4%; transform: rotate(-14deg); animation-delay: -6s; }
@keyframes sway { from { opacity: 0.5; } to { opacity: 1; } }

.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0.9rem; }
.hero-logo {
  width: clamp(72px, 12vw, 104px); height: auto; border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(201, 162, 75, 0.35);
}
.hero-eyebrow { letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.8rem; color: var(--ivory); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.hero-sub, .hero-meta { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1.05;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(240, 215, 140, 0.25);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 2px 22px rgba(0, 0, 0, 0.5));
}
.hero-title span { font-style: italic; }
.hero-sub { color: var(--ivory); font-size: clamp(0.95rem, 2.4vw, 1.15rem); }
.hero-meta { color: var(--gold-light); font-weight: 600; letter-spacing: 0.06em; }

/* ===== Countdown ===== */
.countdown { display: flex; gap: clamp(0.5rem, 2vw, 1.2rem); margin-top: 1.4rem; }
.cd-cell {
  display: grid; gap: 0.15rem; place-items: center;
  min-width: clamp(66px, 16vw, 96px);
  padding: 0.9rem 0.5rem 0.7rem;
  background: rgba(18, 15, 10, 0.85);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(240, 215, 140, 0.15);
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.cd-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.countdown-done {
  margin-top: 1.4rem; max-width: 34rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.6rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== Kaonseritra ===== */
.section--alt { background: var(--bg-soft); }
.concert-grid {
  display: grid; gap: 2.5rem; align-items: start;
  grid-template-columns: minmax(260px, 420px) 1fr;
}
@media (max-width: 820px) { .concert-grid { grid-template-columns: 1fr; } }
.poster-btn { border: none; padding: 0; background: none; cursor: zoom-in; display: block; }
.poster img {
  border-radius: 1rem; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s ease;
}
.poster-btn:hover img { transform: scale(1.02); }
.poster figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.7rem; }

.concert-info { display: grid; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 1.1rem 1.3rem;
}
.info-icon { font-size: 1.5rem; }
.info-card h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info-card p { font-size: 1.05rem; font-weight: 600; }
.info-card--guest { border-color: var(--gold); box-shadow: 0 0 24px rgba(201, 162, 75, 0.15); }

.verse {
  margin-top: 0.5rem; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: linear-gradient(to right, rgba(201, 162, 75, 0.08), transparent);
  border-radius: 0 0.9rem 0.9rem 0;
}
.verse p { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-light); }
.verse cite { display: block; margin-top: 0.5rem; color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ===== Tapakila ===== */
.tickets { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 820px) { .tickets { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
.ticket {
  position: relative; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1rem; padding: 2.2rem 1.5rem;
  display: grid; gap: 1rem; justify-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticket:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.ticket h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); }
.ticket-price { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); }
.ticket-price span { font-size: 1rem; color: var(--muted); }
.ticket--featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 162, 75, 0.12), var(--card) 55%); }
.ticket-badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #1a1405;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 1rem; border-radius: 999px; white-space: nowrap;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 5, 0.92);
  display: grid; place-items: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; width: auto; border-radius: 0.5rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: var(--ivory);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ===== Tononkira ===== */
.songs-layout {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(200px, 260px) 1fr;
  align-items: start;
}
@media (max-width: 820px) { .songs-layout { grid-template-columns: 1fr; } }

.song-list { display: grid; gap: 0.35rem; position: sticky; top: 5.5rem; }
@media (max-width: 820px) {
  .song-list { position: static; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
.song-list a {
  padding: 0.65rem 1rem; border-radius: 0.6rem;
  color: var(--ivory); font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.song-list a:hover { background: rgba(201, 162, 75, 0.08); color: var(--gold-light); }
.song-list a.is-active {
  background: rgba(201, 162, 75, 0.14);
  border-color: var(--gold); color: var(--gold-light); font-weight: 600;
}

.song-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1rem; padding: clamp(1.4rem, 4vw, 2.6rem);
  min-height: 420px;
}
.song { display: none; }
.song.is-active { display: block; animation: songFade 0.45s ease; }
@keyframes songFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.song h3 {
  font-family: var(--font-display); font-size: 1.7rem;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.4rem;
}
.song p { margin-bottom: 1.2rem; color: var(--ivory); line-height: 1.9; }
.song em { color: var(--muted); }

/* ===== Mihainoa ===== */
.stream-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stream-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stream-grid { grid-template-columns: 1fr; } }
.stream-card {
  display: grid; gap: 0.4rem; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1rem; padding: 1.8rem 1.2rem;
  color: var(--gold-light);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.stream-card:hover {
  transform: translateY(-5px); border-color: var(--gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}
.stream-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ivory); }
.stream-hint { font-size: 0.82rem; color: var(--muted); }

/* ===== Fifandraisana ===== */
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: grid; gap: 0.25rem; justify-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1rem; padding: 1.6rem 1.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow-wrap: anywhere;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-icon { font-size: 1.6rem; }
.contact-label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-value { color: var(--ivory); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 3rem 0; }
.footer-inner { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); }
.footer-verse { font-family: var(--font-display); color: var(--gold-light); max-width: 40rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
