/* ============================================================
   CTA FINAL + FOOTER — css/cta.css
   Agente 6 · Zênit Landing Page Premium
   Usa SOMENTE variáveis definidas em css/base.css
   Mobile-first · breakpoints: 640 / 900 / 1024px
   ============================================================ */

/* ── CTA FINAL ─────────────────────────────────────────────── */

.cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-block: var(--section-y);
}

/* Glow radial laranja atrás do título */
.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 55% at 50% 42%,
    var(--accent-glow) 0%,
    transparent 70%
  );
  filter: blur(48px);
  opacity: 0.75;
  will-change: transform;
  z-index: 0;
}

/* Conteúdo fica acima do glow */
.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Kicker — herda .kicker de base.css; espaçamento extra */
.cta-final .kicker {
  margin-bottom: 20px;
}

/* H2 grande em Clash Display */
.cta-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 28px;
}

/* Lead */
.cta-lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Grupo de botões */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

/* Empilha e estica no mobile */
@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Microcopy */
.cta-microcopy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin: 0;
  opacity: 0.8;
}


/* ── FOOTER ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-top: clamp(48px, 7vw, 80px);
}

/* Linha principal: logo + tagline à esquerda, nav à direita */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: clamp(40px, 6vw, 64px);
}

/* Identidade */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: inline-block;
  line-height: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.footer-logo:hover {
  opacity: 0.8;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 260px;
}

/* Nav de âncoras */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    color var(--duration) var(--ease-out),
    opacity var(--duration) var(--ease-out);
  padding-block: 6px; /* touch target */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  opacity: 0.7;
  letter-spacing: 0.01em;
}


/* ── RESPONSIVIDADE ─────────────────────────────────────────── */

/* ≤900px: empilha footer-inner */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-nav {
    gap: 8px 20px;
  }
}

/* ≤640px: nav em coluna, textos menores */
@media (max-width: 640px) {
  .cta-heading {
    /* já coberto pelo clamp, mas garante legibilidade */
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .footer-nav {
    gap: 4px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cta-glow {
    filter: none;
  }
}
