/* =========================================================================
   style.css — CSS NÃO CRÍTICO (carregado via <link rel="preload" ... onload>)
   As variáveis de cor/tipografia (:root) e o CSS crítico (reset, header
   mobile, hero) já estão inline no <head> do index.html. Este arquivo
   assume que aquelas variáveis já existem no documento.
   ========================================================================= */

/* ---------- Header: aprimoramentos para telas maiores ---------- */
@media (min-width: 860px) {
  .mobile-nav,
  .mobile-nav-backdrop,
  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
  }
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.85rem;
    margin: 0;
    padding: 0;
  }
  .main-nav a {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--navy);
    padding: .35rem 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--gold);
    transition: right .22s ease;
  }
  .main-nav a:hover::after {
    right: 0;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* ---------- Menu mobile: painel dropdown + fundo ---------- */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 49, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 90;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ivory);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 1.75rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
  z-index: 95;
}
.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
/* :not(.btn) exclui o botão CTA de dentro do menu — sem isso, esta regra
   (mais específica que ".btn") sobrescrevia o display:inline-flex do botão,
   quebrando o ícone para uma linha separada do texto. */
.mobile-nav a:not(.btn) {
  display: block;
  padding: .75rem .25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
body.menu-open {
  overflow: hidden;
}

/* ---------- Títulos de seção (uso geral) ---------- */
.section-title {
  font-size: clamp(1.6rem, 3.2vw + .6rem, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 2.25rem;
  max-width: 34ch;
  letter-spacing: -.01em;
}
.section-title--center {
  margin-inline: auto;
  text-align: center;
}

/* Compensa a altura do header sticky ao navegar por âncora */
main section[id] {
  scroll-margin-top: 84px;
}

/* ===================== 2. TIPOS DE GOLPE ===================== */
.scam-types {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.scam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.scam-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.scam-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.scam-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal);
  margin-bottom: 1rem;
}
.scam-card__icon svg {
  width: 26px;
  height: 26px;
}
.scam-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 .4rem;
}
.scam-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: .9375rem;
}

/* Card "Todos os tipos de golpes": tratamento distinto (cor invertida),
   pois é conceitualmente diferente dos 8 anteriores — não é mais um tipo
   específico, é a garantia de cobertura total. */
.scam-card--all {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.scam-card--all:hover {
  border-color: transparent;
}
.scam-card--all .scam-card__icon {
  background: rgba(200, 154, 74, .18);
  color: var(--gold);
  flex: none;
}
.scam-card--all h3 {
  color: var(--white);
}
.scam-card--all p {
  color: rgba(255, 255, 255, .72);
}

/* CTA de fechamento da seção: agora é um botão real (antes era só um link de
   texto sublinhado, pouco perceptível como ação clicável). */
.scam-types__cta {
  margin-top: 2.5rem;
  text-align: center;
}
.scam-types__cta p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 640px) {
  .scam-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .scam-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .scam-card--all {
    grid-column: 1 / -1;
  }
}

/* ===================== 3. PROVA SOCIAL (CONTADORES) ===================== */
.social-proof {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1rem;
  margin-bottom: 2.5rem;
}
.stat {
  text-align: center;
  padding: 0 .5rem;
}
.stat__number {
  display: block;
  font-size: clamp(2.1rem, 4vw + .8rem, 3rem);
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat__label {
  display: block;
  margin-top: .35rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.social-proof__cta {
  text-align: center;
}

@media (min-width: 560px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat {
    border-left: 1px solid rgba(255, 255, 255, .14);
  }
  .stat:first-child {
    border-left: none;
  }
}

/* ===================== 4. SOBRE O ADVOGADO ===================== */
.about {
  padding-block: clamp(3.5rem, 9vw, 6rem);
  background: var(--ivory-alt);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.about__content p {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 62ch;
}
.about__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 1.75rem 0 .6rem;
}

/* Foto do advogado + painel de credenciais, empilhados na coluna direita */
.about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: start;
  width: 100%;
}
.about__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--ivory-alt); /* cor visível enquanto a imagem carrega */
}
.about__credentials {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.credential {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.credential:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.credential svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex: none;
}
.credential strong {
  display: block;
  font-size: 1.05rem;
  color: var(--navy-deep);
}
.credential span {
  display: block;
  font-size: .8125rem;
  color: var(--ink-muted);
}

@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
    gap: 3rem;
  }
}

/* ===================== 5. DEPOIMENTOS ===================== */
.testimonials {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.testimonial-card {
  border-top: 3px solid var(--gold);
  padding-top: 1.5rem;
}
.testimonial-card::before {
  content: "\201C";
  display: block;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 800;
  color: var(--border);
  margin-bottom: .25rem;
}
.testimonial-card__quote {
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 0 0 1rem;
}
.testimonial-card__author strong {
  display: block;
  color: var(--navy-deep);
  font-size: .9375rem;
}
.testimonial-card__author strong a {
  color: inherit;
  text-decoration: none;
}
.testimonial-card__author strong a:hover {
  text-decoration: underline;
}
.testimonial-card__author span {
  display: block;
  font-size: .8125rem;
  color: var(--ink-muted);
  margin-top: .15rem;
}

/* Placeholder visual: além do comentário no HTML, o texto de exemplo é
   destacado visualmente (borda tracejada) para ficar óbvio no navegador
   que ainda precisa ser substituído por conteúdo real. */
.placeholder {
  display: inline-block;
  background: rgba(200, 154, 74, .12);
  border: 1px dashed var(--gold-dark);
  border-radius: 6px;
  padding: .15rem .5rem;
  color: var(--gold-dark);
}

@media (min-width: 760px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== CTA FINAL ===================== */
.final-cta {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.5rem, 3vw + .6rem, 2.25rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  max-width: 32ch;
  margin-inline: auto;
  letter-spacing: -.01em;
}

/* ===================== RODAPÉ ===================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .85);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-align: center; /* centraliza tudo no mobile (1 coluna) */
}
.footer__logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  margin: 0 auto .6rem; /* centraliza a logo, que é um elemento em bloco */
}
.footer__brand p {
  margin: .3rem 0 0;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
}
.footer__contact h3,
.footer__links h3 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer__contact p {
  margin: 0 0 .6rem;
  font-size: .9375rem;
  color: rgba(255, 255, 255, .75);
}
.footer__contact a,
.footer__links a {
  display: inline-block;
  font-size: .9375rem;
  color: var(--gold);
  text-decoration: none;
}
.footer__contact a:hover,
.footer__links a:hover {
  text-decoration: underline;
}
/* "a.footer__whatsapp" (em vez de só ".footer__whatsapp") para ter
   especificidade maior que ".footer__contact a" logo acima — sem isso,
   o display:inline-block ganhava e o ícone (que é block por padrão)
   quebrava para a linha de baixo em vez de ficar ao lado do texto. */
a.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.footer__whatsapp svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.footer__disclaimer {
  padding-block: 1.75rem 2.25rem;
}
.footer__disclaimer p {
  font-size: .8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
  margin: 0 0 1rem;
}
.footer__disclaimer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    text-align: left; /* desktop: volta ao alinhamento por coluna */
  }
  .footer__logo {
    margin: 0 0 .6rem;
  }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .45);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ---------- Acessibilidade: respeita preferência por menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}