/* ==========================================================================
   HERO — foto de fundo, textos, cartões de destaque e vídeo do YouTube
   ========================================================================== */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 100vh;
  padding-top: var(--altura-header); color: #fff;
  background: rgba(2,6,23,.34);
}
.hero__fundo {
  position: absolute; inset: 0; z-index: -3;
  background: url('../assets/img/hero-fundo.webp') center / cover no-repeat;
  transform: scale(1.04);
}
.hero__overlay {                 /* escurece a foto para o texto ficar legível */
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(70% 40% at 50% 85%, rgba(220,38,38,.20), transparent 70%),
    linear-gradient(180deg, rgba(2,6,23,.69) 0%, rgba(2,6,23,.66) 100%);
}

.hero__grade {
  display: grid; gap: 2rem; align-items: center;
  padding-block: 2.5rem 3rem;
}

.hero__texto { text-align: center; }
.hero__titulo {
  margin-bottom: 1.25rem; font-weight: 900; line-height: 1.12;
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  text-shadow: 0 2px 4px rgba(0,0,0,.63);
}
.hero__subtitulo {
  max-width: 42rem; margin: 0 auto 2rem; color: var(--cinza-200);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.7;
}
.hero__subtitulo strong { color: #fff; font-weight: 600; }
.hero__acoes { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }

/* Cartões de vidro (100% / Rápido / Garantia) */
.hero__destaques {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  max-width: 42rem; margin: 2.5rem auto 0;
}
.destaque {
  padding: .65rem .45rem; border-radius: .9rem; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.destaque__valor { color: var(--vermelho-500); font-size: 1rem; font-weight: 700; }
.destaque__rotulo { color: var(--cinza-300); font-size: .75rem; }

/* ---- Vídeo do YouTube: capa clicável (o iframe só carrega no clique) ---- */
.hero__video { width: 100%; max-width: 40rem; margin-inline: auto; }
.video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--raio-lg); background: #000;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 6px rgba(15,23,42,.55);
}
.video__capa { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__capa img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: clamp(3.5rem, 12vw, 4.5rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0,0,0,.7); color: #fff;
  font-size: clamp(1.5rem, 5vw, 2rem); padding-left: .15em;
  transition: transform .2s ease, background-color .2s;
}
.video__capa:hover .video__play,
.video__capa:focus-visible .video__play { transform: translate(-50%, -50%) scale(1.1); background: var(--vermelho-600); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero__canal {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem; color: var(--cinza-200); font-size: .9375rem; font-weight: 600;
  transition: color .2s;
}
.hero__canal .icone { color: var(--vermelho-500); font-size: 1.375rem; }
.hero__canal:hover { color: #fff; }

/* ---- Telas maiores ---- */
@media (min-width: 640px) {
  .hero__acoes { flex-direction: row; }
  .hero__destaques { gap: 1rem; }
  .destaque { padding: .9rem 1rem; }
  .destaque__valor { font-size: 1.5rem; }
  .destaque__rotulo { font-size: .875rem; }
}
@media (min-width: 1024px) {
  .hero__overlay {
    background:
      radial-gradient(60% 55% at 78% 50%, rgba(220,38,38,.22), transparent 70%),
      linear-gradient(90deg, rgba(2,6,23,.64) 0%, rgba(2,6,23,.81) 48%, rgba(2,6,23,.81) 100%);
  }
  .hero__grade { grid-template-columns: 7fr 5fr; gap: 4rem; padding-block: 5rem; }
  .hero__texto { text-align: left; }
  .hero__subtitulo, .hero__destaques { margin-inline: 0; }
  .hero__acoes { justify-content: flex-start; }
  .hero__video { margin-inline: 0; }
}
