/* ══════════════════════════════════════════
   PATMOS EDITORA — hero.css  v2
   • Hero sticky → some atrás de TODA a página
   • Vídeo full-bleed direita, SEM bordas
   • Degradê marrom: texto → vídeo
   • Vídeo controlado pelo scroll (não loop)
══════════════════════════════════════════ */

/* ── 1. HERO STICKY ─────────────────────── */
#hero {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  display: block;
}

/* ── 2. TODAS AS SEÇÕES TAMPAM O HERO ───── */
#sobre,
#colecoes,
#destaques,
#testemunhos,
#cta-final,
footer {
  position: relative;
  z-index: 10;
}

/* sombra pesada tapa o hero conforme o scroll */
#sobre {
  box-shadow: 0 -60px 80px 40px var(--bg);
}

/* ── 3. FUNDO ────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 68% 42%, rgba(216,158,0,.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 55% at 5%  80%, rgba(160,90,20,.12) 0%, transparent 55%),
    var(--bg);
  will-change: transform;
  z-index: 0;
}

/* ── 4. LINHA DECORATIVA ─────────────────── */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.hero-deco::before {
  content: '';
  position: absolute;
  top: 14%; left: 53%;
  width: 1px; height: 52%;
  background: linear-gradient(to bottom, transparent, rgba(216,158,0,.3), transparent);
  transform: scaleY(0);
  transform-origin: top;
  animation: hdLine 1.8s ease forwards 1.1s;
}
@keyframes hdLine { to { transform: scaleY(1); } }

/* ── 5. VÍDEO: full-bleed, SEM bordas ────── */
.hero-video-col {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  /* ZERO bordas/sombras/raios */
  border: none;
  outline: none;
  box-shadow: none;
}
.hero-video-col::before,
.hero-video-col::after {
  display: none !important;
}

.hero-video-wrap {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.hero-book-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  /* Remove fundo preto do vídeo extraído */
  mix-blend-mode: screen;
}

/* ── 6. DEGRADÊ MARROM sobre o vídeo ────── */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* sólido no lado do texto → funde com o vídeo à direita */
  background: linear-gradient(
    to right,
    var(--bg)             0%,
    var(--bg)             28%,
    rgba(var(--bg-rgb),0.92)   42%,
    rgba(var(--bg-rgb),0.55)   57%,
    rgba(var(--bg-rgb),0.20)   72%,
    transparent           88%
  );
}
/* degradê inferior: dissolve o fundo do hero */
.hero-gradient-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* ── 7. CONTEÚDO INTERNO ─────────────────── */
.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  width: 54%;
  padding-top: 80px;
}

/* ── 8. TIPOGRAFIA ───────────────────────── */
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
}
.hero-title em    { color: var(--gold); font-style: italic; }
.hero-title .line { display: block; }

.hero-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.85;
  margin-top: 15px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ── 9. SCROLL INDICATOR ─────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  opacity: 0;
  animation: hdFadeUp .8s ease forwards 1.8s;
  transition: opacity .4s ease;
}
.hero-scroll span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .6; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.3); transform-origin: top; }
}

@keyframes hdFadeUp {
  from { opacity: 0; transform: translateY(20px) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0)    translateX(-50%); }
}

/* ── 10. AOS não briga com sticky ────────── */
[data-aos]             { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── 11. RESPONSIVE ──────────────────────── */
@media (max-width: 960px) {
  .hero-text-col  { width: 68%; }
  .hero-video-col { width: 72%; }

  .hero-gradient-overlay {
    background: linear-gradient(
      to right,
      var(--bg)             0%,
      var(--bg)             18%,
      rgba(var(--bg-rgb),0.94)   35%,
      rgba(var(--bg-rgb),0.65)   55%,
      transparent           82%
    );
  }
}

@media (max-width: 640px) {
  .hero-text-col  {
    width: 100%;
    padding-top: 90px;
  }
  .hero-video-col {
    width: 100%;
    opacity: .3;
  }
  .hero-gradient-overlay {
    background: linear-gradient(
      to bottom,
      rgba(var(--bg-rgb),.3) 0%,
      rgba(var(--bg-rgb),.88) 60%,
      var(--bg) 100%
    );
  }
  .hero-title  { font-size: 2.2rem; }
  .hero-stats  { gap: 118px; }
  .hero-inner  { padding: 0 20px; }
}

/* ── 2. TODAS AS SEÇÕES TAMPAM O HERO ───── */
#sobre,
#colecoes,
#destaques,
#testemunhos,
#cta-final,
footer {
  position: relative;
  z-index: 10;
  /* Adicione a linha abaixo para remover a transparência */
  background-color: var(--bg);
}

/* Isso garante que a sombra de transição também funcione sobre um fundo sólido */
#sobre {
  box-shadow: 0 -60px 80px 40px var(--bg);
}