/* ═══════════════════════════════════════════════════════════
   PEDRAS VIVAS — styles.css
   Tema: dark + gold + brown + navy
   ═══════════════════════════════════════════════════════════ */

:root {
  --background: 0 0% 14%;
  --foreground: 36 8% 78%;
  --card: 0 0% 11%;
  --card-foreground: 36 8% 78%;
  --popover: 0 0% 11%;
  --popover-foreground: 36 8% 78%;
  --primary: 33 55% 63%;
  --primary-foreground: 0 0% 10%;
  --secondary: 356 11% 28%;
  --secondary-foreground: 36 8% 78%;
  --muted: 0 0% 18%;
  --muted-foreground: 36 6% 55%;
  --accent: 203 55% 19%;
  --accent-foreground: 36 8% 88%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 33 55% 63%;
  --radius: 0.5rem;

  --gold: 33 55% 63%;
  --gold-light: 33 60% 72%;
  --gold-dark: 33 50% 50%;
  --sand: 36 8% 78%;
  --brown: 356 11% 28%;
  --brown-dark: 356 14% 20%;
  --navy: 203 55% 19%;
  --navy-light: 203 45% 28%;
  --dark: 0 0% 14%;
  --dark-deep: 0 0% 10%;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   BASE + PERFORMANCE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg, iframe { max-width: 100%; height: auto; }
::selection { background: hsl(var(--gold)); color: hsl(var(--primary-foreground)); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

@media (max-width: 767px) {
  [style*="blur("] { filter: blur(40px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTES
   ═══════════════════════════════════════════════════════════ */
.section-padding {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) { .section-padding { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .section-padding { padding-left: 5rem; padding-right: 5rem; } }
@media (min-width: 1280px) { .section-padding { padding-left: 8rem; padding-right: 8rem; } }

.gold-gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, hsl(33 60% 72%), hsl(33 55% 63%), hsl(33 50% 50%));
}
.gold-gradient-bg {
  background: linear-gradient(135deg, hsl(33 55% 63%), hsl(33 50% 50%));
}
.navy-gradient-bg {
  background: linear-gradient(135deg, hsl(203 45% 28%), hsl(203 55% 19%));
}
.glass-card {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.5);
}
.text-balance { text-wrap: balance; }
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 40;
  transition: all 500ms;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: hsl(var(--border) / 0.5);
}
.site-nav.hidden-bar { top: 0; }
.nav-inner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) { .nav-inner-bar { height: 5rem; } }

/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════════════════════════════ */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary) / 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.announcement-bar.hidden-bar { display: none; }

/* ═══════════════════════════════════════════════════════════
   FULLSCREEN MENU
   ═══════════════════════════════════════════════════════════ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: hsl(var(--background));
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.fs-menu-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem 1.5rem 2rem;
}
@media (min-width: 768px) { .fs-menu-left { padding: 7rem 3rem 2rem; } }
@media (min-width: 1024px) { .fs-menu-left { width: 50%; padding: 7rem 5rem 2rem; } }
@media (min-width: 1280px) { .fs-menu-left { padding: 7rem 8rem 2rem; } }
.fs-menu-right {
  display: none;
  width: 50%;
  background: hsl(var(--secondary) / 0.3);
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}
@media (min-width: 1024px) { .fs-menu-right { display: flex; } }
.fs-menu-link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1.1;
  color: hsl(var(--foreground));
  padding: 0.25rem 0;
  transition: color 300ms;
  text-decoration: none;
}
.fs-menu-link:hover { color: hsl(var(--primary)); }
@media (min-width: 768px) { .fs-menu-link { font-size: 3rem; } }
@media (min-width: 1024px) { .fs-menu-link { font-size: 3.75rem; } }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Vídeo de fundo — cobre tela toda, mantendo proporção */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background: #000 url('../assets/hero-worship.webp?v=1.1') center/cover no-repeat;
  z-index: 0;
}
/* Se o video carregar, ele cobre o fallback (z-index igual mas vídeo vem depois no DOM) */
.hero-video[data-loaded="true"] + .hero-fallback { opacity: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Camada 1: escurecimento vertical mais forte na parte inferior (onde fica o texto) */
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.40) 35%,
      rgba(0,0,0,0.70) 70%,
      rgba(0,0,0,0.96) 100%);
}
/* Camada 2: vinheta radial — escurece bordas, foca centro/esquerda */
.hero-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 35% 65%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.30) 55%,
    rgba(0,0,0,0.80) 100%);
}
/* Camada 3: gradient extra atrás do bloco de texto inferior — reforça contraste */
.hero-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0) 100%);
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════ */
.timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: hsl(var(--border));
}
@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-1px); }
}
.timeline-dot {
  position: absolute;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: hsl(var(--brown));
  border: 2px solid hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}
@media (min-width: 768px) { .timeline-dot { left: 50%; } }

/* ═══════════════════════════════════════════════════════════
   MUSIC CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1.5rem 1rem;
}
@media (min-width: 768px) { .carousel-track { padding: 0 3rem 1rem; } }
@media (min-width: 1024px) { .carousel-track { padding: 0 5rem 1rem; } }
@media (min-width: 1280px) { .carousel-track { padding: 0 8rem 1rem; } }
.carousel-track::-webkit-scrollbar { display: none; }
.track-card {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: start;
  cursor: pointer;
}
@media (min-width: 768px) { .track-card { width: 280px; } }
.track-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid hsl(var(--border) / 0.5);
  transition: border-color 500ms;
}
.track-card:hover .track-cover { border-color: hsl(var(--primary) / 0.3); }
.track-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms;
}
.track-card:hover .track-cover img { transform: scale(1.05); }
.track-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, hsl(33 55% 63%), hsl(33 50% 50%));
  color: hsl(var(--primary-foreground));
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════════════════════════ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: hsl(var(--background) / 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-modal.open { display: flex; }

/* ═══════════════════════════════════════════════════════════
   PARALLAX
   ═══════════════════════════════════════════════════════════ */
.parallax {
  position: relative;
  overflow: hidden;
  height: 60vh;
}
.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 1023px) {
  .parallax-bg { background-attachment: scroll; }
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(0 0% 7% / 0.5), hsl(0 0% 7% / 0.7));
}
.parallax-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   REVEAL (substitui framer-motion)
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0, 0);
}
