/* =========================================================
   HERO DE LANÇAMENTO
   Sistema de escala única: fundo + texto escalam juntos,
   como se fossem uma imagem estática (desktop).
   Abaixo de 870px: layout muda para flex-wrap sem fundo/scale.

   Depende das variáveis do global.css:
   --navy-950, --navy-900, --gold, --gold-accent, --gold-hover,
   --text-light, --text-soft, --text-muted, --text-soft-light,
   --font-body-alt, --font-display-alt
========================================================= */

/* =========================================================
   WRAPPER EXTERNO (define a proporção visível)
========================================================= */

.hero-launch {
  position: relative;
  width: 100%;
  aspect-ratio: 1697 / 777; /* mesma proporção do banner original */
  overflow: hidden;
  background: var(--navy-950); /* fallback enquanto a imagem carrega */
}

.hero-launch,
.hero-launch *,
.hero-launch *::before,
.hero-launch *::after {
  box-sizing: border-box;
}

/* =========================================================
   BLOCO DE ESCALA
   Tem o tamanho NATIVO do design (1697x777).
   Tudo aqui dentro escala junto via transform: scale().
   --hero-scale e --content-scale são exclusivos deste
   componente e setados via JS (ver script no final do PHP).
========================================================= */

.hero-launch__scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 1697px;
  height: 777px;
  transform-origin: top left;
  transform: scale(var(--hero-scale, 1));

  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

/* =========================================================
   CONTAINER DO HERO
========================================================= */

.hero-launch__scale .container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1600px;

  margin: 0 auto;

  padding-top: 0;
  padding-bottom: 0;
  padding-left: 40px;
  padding-right: 60px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   ESPAÇADOR
========================================================= */

.hero-launch__spacer {
  flex: 1 1 auto;
  min-width: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   BLOCO DE CONTEÚDO
========================================================= */

.hero-launch__block--content {
  width: 44%;
  max-width: 600px;
  flex: 0 0 44%;
  flex-shrink: 0;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  transform: scale(var(--content-scale, 1));
  transform-origin: center center;
}

/* =========================================================
   LINHAS (genérico — usado pelo rule-row do eyebrow e pelo --sub)
========================================================= */

.hero-launch__rule {
  flex: 1 1 auto;
  width: 100%;
  height: 1px;
  max-width: 80px;
  min-width: 0;
}

/* =========================================================
   RULE-ROW DO EYEBROW (linhas ao redor de "Lançamento")
========================================================= */

.hero-launch__rule-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 100%;
  margin: 0 0 20px 0;
}

.hero-launch__rule-row .hero-launch__rule:first-child {
  background: linear-gradient(
    to left,
    rgba(201, 168, 118, 0.6),
    rgba(201, 168, 118, 0)
  );
}

.hero-launch__rule-row .hero-launch__rule:last-child {
  background: linear-gradient(
    to right,
    rgba(201, 168, 118, 0.6),
    rgba(201, 168, 118, 0)
  );
}

/* =========================================================
   EYEBROW — texto com brilho dourado (sem borda/botão)
========================================================= */

.hero-launch__eyebrow {
  display: inline-block;

  font-family: var(--font-body-alt);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;

  margin: 0;
  padding: 0;
  border: none;
  background-color: transparent;

  background-image: linear-gradient(
    100deg,
    #8f651f 0%,
    #c9a876 20%,
    #fbe7b8 40%,
    #c9a876 60%,
    #8f651f 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  animation: eyebrow-shine 3.5s linear infinite;
}

@keyframes eyebrow-shine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -50% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-launch__eyebrow {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: initial;
    color: var(--gold);
  }
}

/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.hero-launch__title {
  font-family: var(--font-display-alt);
  font-weight: 700;
  text-transform: uppercase;

  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text-light);

  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

/* =========================================================
   SUBTÍTULO (linhas ao redor de "para")
========================================================= */

.hero-launch__rule-row--sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  margin: 10px 0;
}

.hero-launch__rule-row--sub .hero-launch__rule:first-child {
  background: linear-gradient(
    to right,
    rgba(201, 168, 118, 0.6),
    rgba(201, 168, 118, 0)
  );
}

.hero-launch__rule-row--sub .hero-launch__rule:last-child {
  background: linear-gradient(
    to left,
    rgba(201, 168, 118, 0.6),
    rgba(201, 168, 118, 0)
  );
}

/* =========================================================
   TEXTO "PARA..."
========================================================= */

.hero-launch__title-sub {
  font-family: var(--font-body-alt);
  text-transform: none;
  font-style: normal;
  font-weight: 500;

  font-size: 19px;
  line-height: 1.2;
  color: #c9a876;
  white-space: nowrap;
  text-align: center;

  margin: 0;
}

/* =========================================================
   TAG
========================================================= */

.hero-launch__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  font-family: var(--font-body-alt);
  color: #d9a856;

  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  padding: 10px 18px;

  border: 1px solid rgba(217, 168, 86, 0.5);
  border-radius: 4px;

  margin: 20px auto;
  width: fit-content;
  max-width: 100%;
}

.hero-launch__tag-arrow {
  color: #d9a856;
  flex-shrink: 0;
  width: 26px;
  height: 10px;
}

/* =========================================================
   DESCRIÇÃO
========================================================= */

.hero-launch__desc {
  font-family: var(--font-body-alt);
  color: #cfd4e0;

  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;

  max-width: 42ch;
  width: 100%;

  margin: 0 auto 30px auto;
  padding: 0;
}

/* =========================================================
   AÇÕES
========================================================= */

.hero-launch__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;

  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================================
   BOTÃO
========================================================= */

.hero-launch__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-family: var(--font-body-alt);
  background: #c9a876;
  color: var(--navy-950);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  font-size: 16px;
  line-height: 1.2;

  padding: 14px 24px;

  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;

  margin: 0;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  box-shadow: 0 0 0 rgba(201, 168, 118, 0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;

  animation: cta-glow 3s ease-in-out infinite;
}

/* brilho suave "respirando" ao redor do botão, contínuo e discreto */
@keyframes cta-glow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(201, 168, 118, 0.18);
  }
  50% {
    box-shadow: 0 6px 22px rgba(201, 168, 118, 0.38);
  }
}

/* faixa de luz que atravessa o botão de forma sutil e contínua */
.hero-launch__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;

  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  transform: skewX(-20deg);
  animation: cta-shine 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes cta-shine {
  0% {
    left: -60%;
  }
  35%,
  100% {
    left: 130%;
  }
}

.hero-launch__cta:hover {
  animation-play-state: paused;
  background: #b8935f;
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 168, 118, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-launch__cta {
    animation: none;
  }
  .hero-launch__cta::after {
    display: none;
  }
}

.hero-launch__cta span,
.hero-launch__cta svg {
  position: relative;
  z-index: 2;
}

.hero-launch__cta svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* =========================================================
   DIVISOR
========================================================= */

.hero-launch__divider-v {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   YOUTUBE
========================================================= */

.hero-launch__youtube {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  cursor: pointer;

  padding: 6px 10px;
  border-radius: 6px;
}

.hero-launch__youtube-lottie {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
  border-radius: 50%;
}

.hero-launch__youtube-lottie iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* evita interação acidental com o embed */
}

.hero-launch__youtube-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;

  font-family: var(--font-body-alt);
  line-height: 1.3;
}

.hero-launch__youtube-text span {
  color: #9aa3b5;
  font-size: 17px;
  font-weight: 400;
}

.hero-launch__youtube-text strong {
  color: var(--text-light);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;

  position: relative;
  transition: color 0.35s ease;
}

/* sublinhado sutil que "desenrola" no strong */
.hero-launch__youtube-text strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

/* ---- estado hover/focus ----
   Simplificado: hover só reage no NOME (strong) + sublinhado.
   Fundo do link, ícone/lottie e texto secundário (span) não
   mudam mais no hover — evita o tremor causado por transform
   em cima de elementos já escalados pelos ancestrais. */

.hero-launch__youtube:hover .hero-launch__youtube-text strong {
  color: var(--gold-accent);
}

.hero-launch__youtube:hover .hero-launch__youtube-text strong::after {
  transform: scaleX(1);
}

.hero-launch__youtube:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-launch__youtube-text strong,
  .hero-launch__youtube-text strong::after {
    transition: none;
  }
}

/* =========================================================
   ELEMENTOS MOBILE (capa do livro + autores)
   Ocultos no desktop; ativados a partir de 870px
========================================================= */

.hero-launch__book {
  display: none;
}

.hero-launch__book img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-launch__authors {
  display: none;
}

.hero-launch__author {
  display: flex;
  align-items: center;
}

.hero-launch__author-photo-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}

.hero-launch__author-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.24);
  pointer-events: none;
}

.hero-launch__author-photo-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 28, 0) 0%,
    rgba(10, 15, 28, 0.5) 40%,
    rgba(10, 15, 28, 0.85) 70%,
    var(--navy-900) 100%
  );
  pointer-events: none;
}

.hero-launch__author-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-launch__author-name {
  display: block;
  font-family: var(--font-body-alt);
  color: #c9a876;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-launch__author-role {
  display: block;
  font-family: var(--font-body-alt);
  color: #cfd4e0;
  font-weight: 400;
}

/* =========================================================
   BREAKPOINT: 870px E ABAIXO
   Fundo some, scale desativado. Texto (centralizado
   internamente) fica lado a lado com a capa do livro;
   autores em linha própria abaixo dos dois.
========================================================= */

@media (max-width: 870px) {

  .hero-launch {
    aspect-ratio: unset;
    height: auto;
    overflow: visible;
    background: var(--navy-950);
  }

  .hero-launch__scale {
    position: static;
    width: 100%;
    height: auto;
    transform: none !important;
    background-image: none !important;
    padding: 48px 24px;
  }

  .hero-launch__scale::before {
    display: none;
  }

  .hero-launch__scale .container {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    row-gap: 36px;
    column-gap: 40px;
    padding: 0;
  }

  .hero-launch__spacer {
    display: none;
  }

  /* ---- texto (centralizado internamente, lado a lado com a capa) ---- */

  .hero-launch__block--content {
    width: auto;
    max-width: 400px;
    flex: 1 1 280px;
    text-align: center;
    align-items: center;
    transform: none;
  }

  .hero-launch__eyebrow {
    font-size: 13px;
  }

  .hero-launch__title {
    text-align: center;
    font-size: 32px;
  }

  .hero-launch__rule-row--sub {
    justify-content: center;
  }

  .hero-launch__title-sub {
    text-align: center;
    font-size: 16px;
  }

  .hero-launch__tag {
    margin: 16px auto;
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero-launch__desc {
    text-align: center;
    margin: 0 auto 22px auto;
    font-size: 15px;
  }

  .hero-launch__actions {
    justify-content: center;
  }

  .hero-launch__cta {
    font-size: 13px;
    padding: 11px 18px;
  }

  .hero-launch__youtube {
    justify-content: center;
  }

  .hero-launch__youtube-text {
    align-items: center;
    text-align: center;
  }

  .hero-launch__youtube-text span {
    font-size: 14px;
  }

  .hero-launch__youtube-text strong {
    font-size: 17px;
  }

  .hero-launch__divider-v {
    display: none;
  }

  /* ---- capa do livro (lado a lado com o texto, maior) ---- */

  .hero-launch__book {
    display: block;
    flex: 0 1 340px;
    max-width: 340px;
  }

  /* ---- autores (linha própria, abaixo de texto + capa) ---- */

  .hero-launch__authors {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    max-width: 700px;
    gap: 24px;
  }

  .hero-launch__author {
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-launch__author-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
  }

  .hero-launch__author-info {
    width: 100%;
    text-align: center;
    margin-top: -64px;
    position: relative;
    z-index: 2;
  }

  .hero-launch__author-name {
    font-size: 18px;
    text-align: center;
  }

  .hero-launch__author-role {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }
}

/* =========================================================
   BREAKPOINT: 480px E ABAIXO
   Tudo centralizado, capa desce após botão/YouTube
========================================================= */

@media (max-width: 480px) {

  .hero-launch__scale .container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .hero-launch__block--content {
    align-items: center;
    text-align: center;
    flex-basis: auto;
  }

  .hero-launch__rule-row,
  .hero-launch__rule-row--sub,
  .hero-launch__actions {
    justify-content: center;
  }

  .hero-launch__eyebrow {
    letter-spacing: 0.2em;
  }

  .hero-launch__title {
    text-align: center;
    font-size: 32px;
  }

  .hero-launch__title-sub {
    text-align: center;
  }

  .hero-launch__desc {
    text-align: center;
    margin: 0 auto 24px auto;
    font-size: 16px;
  }

  .hero-launch__tag {
    margin: 16px auto;
    font-size: 13px;
  }

  .hero-launch__actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .hero-launch__cta {
    font-size: 12px;
    padding: 9px 14px;
  }

  .hero-launch__youtube {
    justify-content: center;
  }

  .hero-launch__youtube-text {
    align-items: center;
    text-align: center;
  }

  .hero-launch__book {
    order: 1;
    max-width: 220px;
    margin: 8px 0 0 0;
  }

  .hero-launch__authors {
    order: 2;
    margin-top: 8px;
  }

  .hero-launch__author {
    align-items: center;
    text-align: center;
  }

  .hero-launch__author-info {
    text-align: center;
    margin-top: -34px;
  }

  .hero-launch__author-photo-wrap {
    width: 100%;
    max-width: 140px;
  }

  .hero-launch__author-name {
    font-size: 15px;
  }

  .hero-launch__author-role {
    font-size: 12.5px;
  }
}

/* =========================================================
   BREAKPOINT: 477px E ABAIXO
   Autores viram lista horizontal (avatar circular + texto)
========================================================= */

@media (max-width: 477px) {

  .hero-launch__title {
    font-size: 26px;
  }

  .hero-launch__desc {
    font-size: 14px;
  }

  .hero-launch__tag {
    font-size: 12px;
  }

  .hero-launch__authors {
    flex-direction: column;
    gap: 16px;
  }

  .hero-launch__author {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    width: 100%;
  }

  /* ---- foto: maior e com zoom para mostrar só o rosto ---- */

  .hero-launch__author-photo-wrap {
    width: clamp(56px, 18vw, 96px);
    height: clamp(56px, 18vw, 96px);
    max-width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 2px solid #c9a876;
    padding: 3px;
    box-sizing: border-box;
    background: var(--navy-900);
    flex-shrink: 0;
  }

  .hero-launch__author-photo-wrap img {
    border-radius: 50%;
    /* zoom leve, rosto centralizado no círculo */
    transform: scale(1.15);
    transform-origin: center 32%;
  }

  .hero-launch__author-photo-wrap::before,
  .hero-launch__author-photo-wrap::after {
    display: none;
  }

  /* ---- texto: alinhado à esquerda e maior ---- */

  .hero-launch__author-info {
    width: auto;
    flex: 1 1 auto;
    text-align: left;
    margin-top: 0;
  }

  .hero-launch__author-name {
    font-size: clamp(13px, 4vw, 16px);
    text-align: left;
  }

  .hero-launch__author-role {
    font-size: clamp(11px, 3.2vw, 14px);
    text-align: left;
  }
}