/* Candidata local de 2026-11-16. Mantém o hero live e testa o vídeo Kling como mídia de fundo. */
.reference-hero {
  margin: 0 !important;
  width: 100% !important;
  height: 100svh !important;
  min-height: 720px !important;
  max-height: none !important;
  padding-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #031b2f url("assets/onda-kling-poster-3-5s.jpg") center top/100% auto no-repeat !important;
  isolation: isolate;
  overflow: hidden !important;
}

.reference-topbar {
  position: relative !important;
  z-index: 100 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 5.2vw !important;
  border-radius: 0 !important;
}

.reference-hero > .hero-copy {
  height: 100% !important;
}

/* Ajuste final de hierarquia: espessura intermediária e conteúdo levemente mais alto. */
@media (min-width: 901px) {
  /* Vídeo/poster tem 16:9 e começa 50px abaixo do início do hero.
     A altura inclui esse deslocamento para não cortar a base da espiral. */
  .reference-hero {
    height: calc(50px + 56.25vw) !important;
    min-height: calc(50px + 56.25vw) !important;
  }

  .reference-topbar {
    min-height: 50px !important;
    height: 50px !important;
  }

  .reference-hero > .hero-copy.reveal {
    transform: translateY(-18vh) !important;
  }

  .hero-kling-video {
    top: 50px;
    bottom: auto;
  }

  .reference-hero {
    background-position: center 50px !important;
  }

  /* A faixa superior permanece ampla; seus conteúdos ficam no centro óptico dela. */
  .reference-topbar .approved-brand,
  .reference-topbar nav,
  .reference-topbar .language-switch,
  .reference-topbar .header-cta {
    transform: translateY(25px);
  }
}

/* A faixa da seção seguinte começa 30% mais perto do hero. */
@media (min-width: 901px) {
  .launch-section {
    padding-top: 77px;
  }
}

/* Hero restaurado conforme a referência aprovada: faixa discreta, conteúdo centralizado e onda inteira. */
@media (min-width: 901px) {
  .reference-topbar {
    min-height: 50px !important;
    height: 50px !important;
  }

  .reference-topbar .approved-brand,
  .reference-topbar nav,
  .reference-topbar .language-switch,
  .reference-topbar .header-cta {
    transform: translateY(25px) !important;
  }

  .reference-hero > .hero-copy.reveal {
    opacity: 1 !important;
    transform: translateY(-18vh) !important;
  }

  .hero-kling-video {
    top: 50px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    filter: none !important;
  }

  .reference-hero {
    background-position: center 50px !important;
  }
}

.hero-kling-video {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  /* Vídeo inteiro: sem corte vertical, inclusive no fim inferior da onda. */
  transform: none;
  filter: none;
  mix-blend-mode: normal;
  transform-origin: center center;
  pointer-events: none;
}

.hero-kling-video.has-ended {
  opacity: 0;
}

.reference-hero::before {
  /* O vídeo é a cor final do hero: sem camada que reduza brilho ou altere o coral. */
  display: none;
}

.reference-hero > .hero-wave-primary { display: none !important; }

@media (max-width: 900px) {
  .reference-topbar {
    min-height: 64px !important;
    height: 64px !important;
  }

  .hero-kling-video {
    top: 0;
    width: auto;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 56% bottom;
    transform: none;
    mix-blend-mode: normal;
  }

  .reference-hero::before {
    background: linear-gradient(180deg, rgba(0, 18, 34, .48), rgba(0, 18, 34, .14));
  }
}

/* Regra final: o vídeo começa imediatamente após a barra, sem faixa vazia. */
@media (min-width: 901px) {
  .hero-kling-video {
    top: 50px !important;
    bottom: auto !important;
  }
}
