/* ============================================================================
   landing.css — Landing Page do Prêmio ClienteSA Happy
   Mobile-first. Usa exclusivamente os tokens de css/tokens.css.

   Componentes estendidos a partir do design system (documentados aqui):
   - .btn (primário marinho / dourado / ghost) — padrão de pill do DS.
   - .card — superfície branca com borda+sombra do DS.
   - .badge / .eyebrow — antetítulo dourado (uppercase tracking) do DS.
   - .marquee — strip de logos (keyframe scrollMarquee do DS).
   - .counter, .step, .field — contador, passo numerado e campo de form.
   Breakpoints: mobile <=600 / tablet 601-1024 / desktop >=1025.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section { padding-block: var(--space-3xl); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); border-block: 1px solid var(--border); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section__head { max-width: 46rem; margin-bottom: var(--space-2xl); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: var(--space-md);
}
.section--navy .eyebrow { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); font-weight: 500; line-height: var(--lh-snug); letter-spacing: -0.02em; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.h-display { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 500; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); font-weight: 300; line-height: var(--lh-relaxed); }
.section--navy .lead { color: rgba(255,255,255,0.8); }
.muted { color: var(--text-muted); }
p { line-height: var(--lh-relaxed); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.9rem 2rem;
  transition: background-color var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
  min-height: 44px;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: var(--glow-gold); }
.btn--gold:hover { background: var(--gold-hover); box-shadow: var(--glow-gold-strong); }
.btn--ghost { background: transparent; color: var(--text-strong); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(1,6,66,0.04); }
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.section--navy .btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: rgba(240,208,72,0.18);
  color: var(--gold-deep);
  margin-bottom: var(--space-lg);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--space-sm); }
.card p { color: var(--text-muted); font-weight: 300; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.split { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  /* fundo branco, para o logo/CTA marinho contrastarem com o hero escuro */
  background: var(--white);
  transition: box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--space-md);
}
.site-header__logo { height: 76px; width: auto; }
.site-header .btn { padding: 0.65rem 1.4rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: #01020e; /* base escura; a camada ::before anima as cores */
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* gradiente das cores da marca em movimento contínuo — color change dinâmico */
  background: linear-gradient(125deg, #01020e, #010642, #0a1478, #16205e, #4a3a0f, #0a0e3a, #010642, #01020e);
  background-size: 300% 300%;
  animation: heroShift 14s ease-in-out infinite;
}
.hero__glow {
  position: absolute; top: -10%; right: -10%;
  width: 520px; height: 520px; border-radius: 50%;
  background: rgba(240,208,72,0.30); filter: blur(120px);
  pointer-events: none; z-index: 0;
  animation: heroGlow 10s ease-in-out infinite;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--space-2xl); align-items: center; grid-template-columns: 1fr; }
.hero__title .mark {
  display: inline-block; background: var(--gold); color: var(--on-gold);
  padding: 0 0.4em; line-height: var(--lh-tight);
}
.hero__sub { margin-top: var(--space-lg); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero__counter {
  margin-top: var(--space-2xl); display: inline-flex; align-items: baseline; gap: var(--space-sm);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg); box-shadow: var(--shadow-card);
}
.hero__counter { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__counter .num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--gold); }
.hero__counter .lbl { font-size: var(--fs-sm); color: rgba(255,255,255,0.8); }

/* Hero em fundo escuro (cores da marca) — texto e CTAs com contraste */
.hero .eyebrow { color: var(--gold); }
.hero .h-display, .hero__title { color: #fff; }
.hero .lead, .hero__sub { color: rgba(255,255,255,0.85); }
.hero .btn--primary { background: var(--gold); color: var(--navy); box-shadow: var(--glow-gold); }
.hero .btn--primary:hover { background: var(--gold-hover); box-shadow: var(--glow-gold-strong); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* ============================================================
   MARQUEE / STRIP DE LOGOS
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-xl); width: max-content; animation: scrollMarquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto; width: clamp(280px, 34vw, 360px); height: clamp(185px, 22vw, 235px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }
.logos-label {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600;
  color: var(--text-strong); text-align: center; margin-bottom: var(--space-2xl);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================================
   COUNTERS / STATS (bloco missão)
   ============================================================ */
.mission { text-align: center; }
.mission__quote { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 500; max-width: 52rem; margin-inline: auto; line-height: var(--lh-snug); }
.mission__quote .hl { color: var(--gold); }
.stats { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-top: var(--space-3xl); }
.stat .num { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 700; color: var(--gold); line-height: 1; }
.stat .lbl { margin-top: var(--space-sm); color: rgba(255,255,255,0.85); font-weight: 300; }

/* ============================================================
   PROCESSO EM 3 PASSOS
   ============================================================ */
.steps { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; counter-reset: step; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}
.step p { color: var(--text); font-weight: 300; }

/* ============================================================
   BENEFÍCIOS (receba)
   ============================================================ */
.benefits-list { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.benefit { display: flex; gap: var(--space-md); align-items: flex-start; }
.benefit__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit p { font-weight: 500; color: var(--text-strong); }
.benefits__move { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--gold-deep); font-weight: 500; margin-block: var(--space-2xl) var(--space-xl); max-width: 40rem; }

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.form-section { background: linear-gradient(160deg, var(--navy), #050a55); color: #fff; }
.form-card {
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 44rem; margin-inline: auto; box-shadow: var(--shadow-lg);
}
.form-card h2 { margin-bottom: var(--space-xl); }
.form-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: var(--space-xs); }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-strong); }
.field label .req { color: var(--gold-deep); }
.field input, .field select {
  font: inherit; font-size: var(--fs-body);
  padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--sand); color: var(--text-strong);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  width: 100%;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(240,208,72,0.4); }
.field--error input, .field--error select { border-color: #C0392B; }
.field__err { font-size: var(--fs-xs); color: #C0392B; min-height: 1em; }
.field--full { grid-column: 1 / -1; }
.form-status { margin-top: var(--space-md); font-size: var(--fs-sm); }
.form-status.is-success { color: #1B7A43; }
.form-status.is-error { color: #B3261E; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--white); color: var(--text); border-top: 1px solid var(--border); padding-block: var(--space-3xl) var(--space-xl); }
.site-footer__lead { max-width: 52rem; font-size: var(--fs-lg); color: var(--text); font-weight: 300; margin-bottom: var(--space-2xl); }
.footer-grid { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; margin-bottom: var(--space-2xl); }
.site-footer h4 { color: var(--gold-deep); font-size: var(--fs-h4); margin-bottom: var(--space-md); font-family: var(--font-body); font-weight: 600; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: var(--text-muted); font-weight: 300; transition: color var(--t-fast) ease; }
.footer-links a:hover { color: var(--navy); }
.socials { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--border); display: grid; place-items: center; color: var(--navy); transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease; }
.socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: var(--space-lg); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-md); align-items: center; font-size: var(--fs-sm); color: var(--text-faint); }
.footer-bottom a { color: var(--text-muted); transition: color var(--t-fast) ease; }
.footer-bottom a:hover { color: var(--navy); }
.footer-bottom__logo { justify-self: center; }
.footer-bottom > a:last-child { justify-self: end; }
.footer-logo { height: 84px; width: auto; margin-bottom: var(--space-lg); }
.footer-bottom__logo img { width: 33px; height: auto; opacity: .8; transition: opacity var(--t-fast) ease; }
.footer-bottom__logo:hover img { opacity: 1; }

@media (max-width: 640px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom__logo, .footer-bottom > a:last-child { justify-self: center; }
}

/* ============================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-lg);
  z-index: 150;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ============================================================
   ANIMAÇÕES DE ENTRADA (IntersectionObserver)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ============================================================
   BREAKPOINTS
   ============================================================ */
/* Tablet: 601–1024px */
@media (min-width: 601px) {
  :root { --container-pad: 2rem; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero__cta .btn { width: auto; }
}

/* Desktop: >=1025px */
@media (min-width: 1025px) {
  :root { --container-pad: 2.5rem; --space-section: 8rem; }
  .section { padding-block: var(--space-section); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* conector visual entre os passos */
  .steps::before {
    content: ""; position: absolute; top: calc(var(--space-xl) + 28px); left: 16%; right: 16%; height: 2px;
    background: repeating-linear-gradient(to right, var(--gold) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .step { z-index: 1; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile: CTAs full-width */
@media (max-width: 600px) {
  .hero__cta .btn { width: 100%; }
  .section__head { margin-bottom: var(--space-xl); }
}

/* Acessibilidade: respeitar redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}
