/* ============================================================
   Hormônios — Desafio Tira Pança
   Identidade: editorial premium (rosé nude / terracota / creme)
   ============================================================ */

:root {
  /* Paleta */
  --creme:     #F7F3EF;  /* fundo principal */
  --nude:      #EAD7CE;  /* fundo de blocos, cards, boxes */
  --rose:      #C38A7C;  /* botões, ícones, destaques, checklists */
  --terracota: #A56E63;  /* faixas, rodapé, cards, CTA */
  --cafe:      #5B4038;  /* títulos, logo, texto de destaque */
  --cinza:     #6E6A68;  /* texto secundário */
  --salvia:    #A7B39B;  /* detalhes discretos */

  /* Tipografia */
  --font-titulo: "Cormorant Garamond", Georgia, serif;
  --font-sub:    "Playfair Display", Georgia, serif;
  --font-texto:  "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--creme);
  color: var(--cinza);
  font-family: var(--font-texto);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Faixa do slogan ---------- */
.slogan-bar {
  background: var(--terracota);
  color: var(--creme);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 10px 18px;
}

.slogan-bar em {
  font-family: var(--font-sub);
  font-style: italic;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5vw;
  background-color: var(--creme);
  background-image: url("assets/bg-desktop.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero__inner {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
  padding: 10px 26px;
  border-radius: 999px;
}

/* ---------- Headline ---------- */
.headline {
  font-family: var(--font-titulo);
  color: var(--cafe);
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 92%;
}

.headline .hl {
  color: var(--rose);
  font-style: italic;
}

/* ---------- Subheadline ---------- */
.subhead {
  font-family: var(--font-sub);
  color: var(--cinza);
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 58%;
}

/* ---------- Detalhe sálvia ---------- */
.rule {
  width: 56px;
  height: 2px;
  background: var(--salvia);
  border-radius: 2px;
}

/* ---------- Vídeo (VTurb smartplayer) ---------- */
.video {
  width: 100%;
  max-width: 791px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: 0 30px 60px -30px rgba(91, 64, 56, 0.4);
}

.video vturb-smartplayer {
  display: block;
  width: 100%;
}

/* ---------- CTA (botão terracota premium) ---------- */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--creme);
  font-family: var(--font-texto);
  font-size: clamp(0.95rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 18px 48px;
  border-radius: 999px;
  background: linear-gradient(-45deg, var(--terracota), var(--rose) 50%, var(--terracota));
  z-index: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 14px 30px -12px rgba(165, 110, 99, 0.6);
}

.cta:hover:not(:active) {
  transform: scale(1.05);
}

.cta__label {
  position: relative;
  z-index: 2;
}

/* faixa de brilho que gira sobre o botão */
.cta__glow {
  position: absolute;
  inset: -60%;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 15%,
    rgba(255, 255, 255, 0.85) 45%,
    rgba(255, 255, 255, 0.85) 55%,
    transparent 85%,
    transparent 100%
  );
  mix-blend-mode: plus-lighter;
  opacity: 0.35;
  pointer-events: none;
  animation: cta-shimmer 2s linear infinite;
}

@keyframes cta-shimmer {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta__glow {
    animation: none;
  }
}

/* ---------- Reveal do CTA (só aparece ao fim do vídeo) ---------- */
.cta-wrap {
  display: none;                 /* escondido durante o vídeo */
  width: 100%;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-wrap.is-mounted {
  display: flex;                 /* entra no layout */
}

.cta-wrap.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta-wrap {
    transition: opacity 0.3s ease;
    transform: none;
  }
}

/* ============================================================
   Responsivo
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero     { background-image: url("assets/bg-tablet.jpg"); }
  .headline { max-width: 96%; }
  .subhead  { max-width: 86%; }
}

/* Mobile */
@media (max-width: 767px) {
  .hero {
    align-items: flex-start;
    padding-top: 88vw;          /* deixa as pessoas do fundo visíveis acima do texto */
    background-image: url("assets/bg-mobile.jpg");
    background-size: 100% auto;
    background-position: top center;
  }
  .slogan-bar { font-size: 0.7rem; }
  .badge      { font-size: 11px; }
  .headline   { max-width: 100%; }
  .subhead    { max-width: 100%; }
  .cta        { width: 100%; max-width: 340px; }
}
