/* Destrava — tokens do design system (tokens.json v2) */
:root {
  /* Cores base */
  --vinho-700: #8E3B2C;
  --vinho-800: #6B2A1F;
  --vinho-300: #E8A493;
  --vinho-100: #F3E6E2;
  --papel: #F7F5F1;
  --areia-100: #EFEBE4;
  --areia-200: #E4DFD6;
  --areia-300: #D6CFC3;
  --white: #FFFFFF;
  --tinta-900: #1E1A16;
  --tinta-800: #26221E;
  --tinta-700: #2F2A25;
  --tinta-600: #4A443D;
  --tinta-500: #6B645B;
  --tinta-200: #CFC8BD;

  /* Papéis (tema claro) */
  --surface: var(--papel);
  --surface-alt: var(--areia-100);
  --surface-raised: var(--white);
  --placeholder: var(--areia-200);
  --text: var(--tinta-800);
  --text-strong: var(--tinta-900);
  --text-muted: var(--tinta-600);
  --text-subtle: var(--tinta-500);
  --border: var(--areia-300);
  --rule: var(--tinta-900);
  --accent: var(--vinho-700);
  --accent-hover: var(--vinho-800);
  --on-accent: var(--white);
  --accent-text: var(--vinho-700);
  --accent-tint: var(--vinho-100);

  /* Tipografia */
  --font-display: "Literata", Georgia, serif;
  --font-sans: "Karla", Arial, sans-serif;

  /* Espaço */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-22: 88px;

  /* Raios */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --max: 1200px;
  --section-y: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--surface-raised); padding: 12px 16px; min-height: 44px; border-radius: var(--radius-md);
}
.skip:focus { top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* Títulos */
.display { font-family: var(--font-display); font-weight: 600; color: var(--text-strong); }
.h-secao {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--text-strong);
}
.eyebrow { font-size: 16px; font-weight: 700; color: var(--accent-text); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-light { background: var(--white); color: var(--tinta-900); }
.btn-light:hover { background: var(--papel); color: var(--tinta-900); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: relative; z-index: 2;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--areia-200);
}
.site-header .wrap {
  padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
}
.marca {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--text-strong);
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
}
.marca:hover { color: var(--text-strong); }
.marca svg { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none; font-size: 16px;
}
.nav a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.nav .btn-outline {
  padding: 0 18px; border: 1px solid var(--text); border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav .btn-outline:hover { background: var(--text); color: var(--white); text-decoration: none; }

/* ---------- Topo ---------- */
.hero .wrap {
  padding: 64px 24px 80px;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px;
}
.hero-texto {
  flex: 1 1 520px; min-width: 0; padding-top: 8px;
  display: flex; flex-direction: column; gap: 24px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.12; letter-spacing: -0.015em;
  color: var(--text-strong);
}
.hero h1 span { color: var(--accent-text); }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 540px; }
.hero-sub strong { color: var(--text-strong); }
.garantias {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.garantias li {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text-strong);
}
.d-mini { flex-shrink: 0; color: var(--accent); }
.link-secundario {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 17px; text-underline-offset: 4px;
}

/* Formulário — a única caixa do site */
.form-topo {
  flex: 0 1 420px; min-width: 0;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.form-topo .cab { display: flex; flex-direction: column; gap: 6px; }
.form-topo h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--text-strong); }
.form-topo .cab p { font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.campo label span { font-weight: 400; color: var(--text-subtle); }
.campo select, .campo textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); font-family: var(--font-sans); font-size: 16px; color: var(--text);
}
.campo select { min-height: 48px; padding: 0 14px; }
.campo textarea { min-height: 48px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.campo select:focus-visible, .campo textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.campo textarea::placeholder { color: var(--text-subtle); }
.form-topo button[type="submit"] { min-height: 52px; font-size: 17px; width: 100%; }
.previa { display: flex; flex-direction: column; gap: 8px; }
.previa-rot { font-size: 14px; font-weight: 700; color: var(--text-subtle); }
.previa-balao {
  background: var(--accent-tint); padding: 12px 14px; border-radius: 4px 12px 12px 12px;
  font-size: 15px; line-height: 1.5; color: var(--text); white-space: pre-line; overflow-wrap: anywhere;
}
.previa-nota { font-size: 13px; color: var(--text-subtle); }
.prazo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--text-subtle);
}

/* ---------- Parece familiar? ---------- */
.familiar { background: var(--tinta-900); padding: var(--section-y) 24px; }
.familiar .wrap { display: flex; flex-direction: column; gap: 40px; }
.familiar-cab { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; }
.familiar-cab > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.familiar .eyebrow { color: var(--vinho-300); }
.familiar .h-secao { color: var(--papel); }
.familiar-cab > p { flex: 1 1 320px; min-width: 0; font-size: 18px; line-height: 1.6; color: var(--tinta-200); }
.dores { display: flex; flex-wrap: wrap; gap: 10px; }
.dores button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  cursor: pointer; background: transparent; color: var(--papel); border: 1px solid var(--tinta-500);
}
.dores button:hover { border-color: var(--papel); }
.dores button[aria-pressed="true"] { background: var(--papel); color: var(--tinta-900); border-color: var(--papel); }
.dores button:focus-visible { outline-color: var(--vinho-300); }
.antes-depois {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-top: 1px solid var(--tinta-600); border-bottom: 1px solid var(--tinta-600);
}
.ad-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ad-col.hoje { padding: 32px 32px 32px 0; }
.ad-col.depois { padding: 32px 0 32px 32px; }
.ad-rot { font-size: 15px; font-weight: 700; color: var(--tinta-200); }
.depois .ad-rot { color: var(--vinho-300); }
.ad-frase {
  font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35;
}
.hoje .ad-frase { font-style: italic; color: var(--tinta-200); }
.depois .ad-frase { font-weight: 600; color: var(--papel); }
.ad-servico { margin-top: 4px; font-size: 16px; color: var(--tinta-200); }
.ad-servico a { color: var(--vinho-300); text-underline-offset: 4px; }
.ad-servico a:hover { color: var(--papel); }
.ad-seta { flex: 0 0 auto; display: flex; align-items: center; padding: 0 8px; color: var(--vinho-300); }
.familiar .btn-light { align-self: flex-start; min-height: 54px; padding: 0 30px; font-size: 17px; }
.familiar .btn-light:focus-visible { outline-color: var(--vinho-300); }

/* ---------- Serviços ---------- */
.servicos { padding: var(--section-y) 24px; background: var(--surface-alt); }
.servicos .wrap { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.secao-cab { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.secao-cab.centro { align-items: center; text-align: center; }
.secao-cab .lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.passos {
  width: 100%; margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 32px;
}
.passos li {
  position: relative; flex: 1 1 260px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.passos li:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; left: calc(50% + 52px);
  width: calc(100% - 104px + 32px); height: 2px; background: var(--border);
}
@media (max-width: 860px) { .passos li::after { display: none; } }
.passo-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 34px; color: var(--accent-text);
}
.passos h3 { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--text-strong); }
.passos p { max-width: 300px; font-size: 17px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Como funciona ---------- */
.como { padding: var(--section-y) 24px; }
.como .wrap { display: flex; flex-direction: column; gap: 56px; }
.etapas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 48px 0; }
.etapas li {
  position: relative; flex: 1 1 220px; min-width: 0; padding-top: 34px;
  border-top: 2px solid var(--rule); display: flex; flex-direction: column; gap: 8px;
}
.etapas li > p { padding-right: 24px; }
.etapas li.final { border-top-color: var(--accent); }
.etapa-ponto {
  position: absolute; left: 0; top: -9px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid var(--rule); background: var(--surface);
}
.etapa-selo {
  position: absolute; left: 0; top: -19px; width: 36px; height: 36px;
  background: var(--surface); line-height: 0; color: var(--accent);
}
.etapa-n { font-family: var(--font-display); font-size: 15px; color: var(--text-subtle); }
.etapas h3 { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.etapas p { font-size: 17px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Dúvidas ---------- */
.duvidas { padding: var(--section-y) 24px; background: var(--surface-raised); border-top: 1px solid var(--areia-200); }
.duvidas .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.duvidas .h-secao { flex: 1 1 300px; min-width: 0; }
.faq { flex: 1.8 1 520px; min-width: 0; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; min-height: 44px; padding: 10px 0;
  font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3;
  color: var(--text-strong);
}
.faq summary::marker { color: var(--accent); }
.faq details p { margin: 2px 0 10px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Chamada final ---------- */
.chamada { background: var(--accent); color: var(--on-accent); padding: 80px 24px; }
.chamada .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.chamada h2 {
  max-width: 760px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.01em;
}
.chamada p { font-size: 20px; line-height: 1.6; color: #F7EDEA; }
.chamada .btn-light { min-height: 56px; padding: 0 32px; font-size: 18px; }
.chamada .btn-light:focus-visible { outline-color: var(--white); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--tinta-800); color: var(--tinta-200); padding: 40px 24px; }
.rodape .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px 32px; font-size: 15px;
}
.rodape .marca-rodape {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; color: var(--papel); font-size: 20px;
}
.rodape .marca-rodape svg { color: var(--papel); }
.contatos { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rodape address { font-style: normal; }

/* Celular: colunas Hoje / Como pode ficar empilhadas sem recuo lateral */
@media (max-width: 760px) {
  .ad-col.hoje { padding: 28px 0 20px; }
  .ad-col.depois { padding: 16px 0 28px; }
  .ad-seta { padding: 0; }
}
.rodape a { color: var(--tinta-200); text-underline-offset: 3px; }
.rodape a:hover { color: var(--papel); }
