@import url("../tokens.css");

/* ============================================================
   Direção 3 — Direto ao Ponto
   ------------------------------------------------------------
   O leitor é o trabalhador lesado, no celular, no 4G, sem
   intimidade com juridiquês. Tudo aqui se subordina a isso:
   corpo grande, alto contraste, hero curto e WhatsApp sempre
   na tela. Sem foto: peso extra não converte no 4G.

   Contrastes medidos (WCAG AA exige 4.5:1 / 3:1 texto grande):
     --ink        / --paper .......... 13.99:1
     --forest     / --paper ...........  8.33:1
     --paper      / --forest .......... 8.33:1
     --forest-deep/ --gold ............ 6.47:1
     --paper      / --forest-deep .... 15.36:1
   --gold-muted sobre --paper dá 2.72:1 e REPROVA: aqui ele só
   aparece como filete, nunca como texto.
   ============================================================ */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;            /* piso desta direção: 17px */
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }

section { padding: 2.5rem 1.25rem; }
@media (min-width: 900px) {
  section { padding: 4.5rem 2rem; }
  main > section > *:not(.cartoes):not(dl) { max-width: 62ch; margin-inline: auto; }
}

/* ---------- topo ---------- */
.topo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--forest-deep);
  color: var(--paper);
}
.topo__simbolo { width: 42px; height: 42px; flex: none; }
.topo__nome { font-size: 1rem; letter-spacing: 0.02em; }
.topo__nome strong { font-weight: 600; }

/* ---------- hero: curto de propósito ---------- */
#hero { padding-top: 2rem; padding-bottom: 2rem; }
.rotulo {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}
#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 500;
  color: var(--ink);
}
.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--forest);
}
.hero__nota { margin-top: 0.75rem; font-size: 0.9rem; color: var(--forest); }

/* ---------- botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;               /* evita o colapso de espaço entre itens flex */
  min-height: 52px;          /* alvo de toque folgado */
  padding: 0.85rem 1.5rem;
  background: var(--forest);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--forest);
  transition: background 0.2s, color 0.2s;
}
.botao--grande { width: 100%; }
@media (min-width: 620px) { .botao--grande { width: auto; } }
.botao--claro {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest-deep);
}
.botao:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.botao--claro:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
/* Foco visível sem depender de cor. */
.botao:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- checklist: o coração da direção ---------- */
#checklist { background: var(--gold-pale); }
#checklist h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 500;
}
.checklist__sub { color: var(--ink); }
.lista { list-style: none; margin: 1.5rem 0; padding: 0; }
.lista li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2rem;
  border-top: 1px solid var(--gold-muted);
  font-size: 1.05rem;
}
.lista li:last-child { border-bottom: 1px solid var(--gold-muted); }
/* Check desenhado em CSS: sem ícone, sem emoji, sem requisição extra. */
.lista li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 1.15rem;
  width: 0.6rem;
  height: 0.3rem;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}
.checklist__fecho { font-weight: 600; color: var(--forest); }

/* ---------- atuação ---------- */
#atuacao h2, #quem-somos h2, #diferenciais h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
}
.cartoes { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .cartoes { grid-template-columns: repeat(3, 1fr); max-width: 68rem; margin-inline: auto; }
}
.cartoes article { border-top: 3px solid var(--forest); padding-top: 1rem; }
.cartoes h3 { font-size: 1.1rem; color: var(--forest); }
.cartoes p { font-size: 0.98rem; }

/* ---------- quem somos ---------- */
#quem-somos { background: var(--paper-card); }
/* Espaço reservado: aparece só quando o dado existir. */
.reservado:empty { display: none; }

/* ---------- diferenciais ---------- */
#diferenciais dl { margin: 0; }
@media (min-width: 900px) {
  #diferenciais dl { max-width: 68rem; margin-inline: auto; }
}
#diferenciais dt {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#diferenciais dd { margin: 0.4rem 0 0; }

/* ---------- contato ---------- */
#contato {
  background: var(--forest-deep);
  color: var(--paper);
  text-align: center;
}
.contato__simbolo {
  display: inline-block;
  width: 64px;
  height: 64px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
#contato h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 500; }
#contato p { color: var(--paper); }

/* ---------- rodapé ---------- */
footer {
  padding: 2rem 1.25rem 7rem;   /* respiro extra p/ a barra fixa não cobrir */
  background: var(--forest-deep);
  color: var(--paper);
  border-top: 1px solid var(--forest);
}
@media (min-width: 620px) { footer { padding-bottom: 2rem; } }
.footer__marca { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold); }
.footer__aviso { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--paper); opacity: 0.85; }

/* ---------- barra fixa de WhatsApp (só no celular) ---------- */
.fixa {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
}
.fixa .botao { min-height: 50px; }
@media (min-width: 620px) { .fixa { display: none; } }

/* ---------- entrada ---------- */
@keyframes rise-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
#hero .rotulo,
#hero h1,
#hero .hero__sub,
#hero .botao,
#hero .hero__nota {
  animation: rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#hero h1 { animation-delay: 70ms; }
#hero .hero__sub { animation-delay: 140ms; }
#hero .botao { animation-delay: 210ms; }
#hero .hero__nota { animation-delay: 280ms; }

/* Parte do público tem enjoo de movimento, e este site fala com quem se
   machucou. opacity:1 é obrigatório aqui: sem ele, desligar uma animação
   com fill "both" deixaria o hero invisível. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  #hero .rotulo,
  #hero h1,
  #hero .hero__sub,
  #hero .botao,
  #hero .hero__nota {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
