/* Duarte Licitações — estilos
   Feito primeiro para o celular; telas maiores ganham colunas nos @media no fim de cada bloco. */

/* Fontes do Google Fonts (Lora e Mulish, licença OFL) hospedadas no próprio site:
   carregam mais rápido e não abrem conexão com o Google. Se chegarem Nexa e Baltica
   com licença web, basta trocar estes arquivos e os nomes em --serifa e --sans. */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2");
}

/* Shrikhand (OFL) reduzida às letras de "Neurobrandmade" (2 KB): só a assinatura do rodapé usa.
   Fica fora do preload de propósito: o rodapé está longe da primeira tela. */
@font-face {
  font-family: "Shrikhand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/shrikhand-assinatura.woff2") format("woff2");
}

:root {
  /* Paleta da marca */
  --verde-profundo: #041e15;
  --dourado: #a38560;
  --verde: #366643;
  --vinho: #390517;
  --cinza: #e0e0e0;

  /* Apoio (derivados da paleta) */
  --papel: #f5f0e6;          /* off-white quente das seções claras */
  --papel-2: #ebe5d8;        /* fundo do formulário */
  --cartao: #fffdf8;         /* campos e cartão do formulário */
  --dourado-texto: #7a6040;  /* dourado escurecido: texto pequeno sobre fundo claro (contraste AA) */
  --tinta: #2b3832;          /* texto corrido sobre fundo claro */
  --borda-clara: #d6ccb9;    /* linhas finas sobre fundo claro */
  --borda-campo: #8c8474;    /* borda de campos (3:1 sobre o cartão) */
  --texto-claro: #c8cecc;    /* texto secundário sobre o verde profundo */
  --erro: #9a2433;           /* vinho da marca clareado: avisos do formulário (7:1 sobre o cartão) */

  /* Neurobrand (só na assinatura do rodapé) */
  --nb-claro: #eeeeee;       /* off-white da Neurobrand */
  --nb-verde: #2a9d7e;       /* verde #19715b da Neurobrand clareado: 5,2:1 sobre o verde profundo */

  --serifa: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largura: 1160px;
  --margem: 20px;
  --altura-topo: 68px;
  --raio: 10px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; } /* o que o script esconde fica escondido, mesmo com display definido */
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-underline-offset: .18em; }

/* Vinho da marca: só em toques pequenos que sinalizam algo (o risco, os próximos passos,
   o cartão do formulário, a seleção de texto). Nunca em áreas grandes nem sobre o verde profundo. */
::selection { background: var(--vinho); color: #fff; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 3px; border-radius: 4px; }
.licitacao :focus-visible, .metodo :focus-visible, .contato :focus-visible { outline-color: var(--verde); }

.container { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--margem); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--dourado); color: var(--verde-profundo);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.pular:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--altura-topo) + 8px); }

.secao { padding-block: clamp(4rem, 2.8rem + 5vw, 7rem); }

h2 {
  font-family: var(--serifa);
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.005em;
  color: var(--verde-profundo);
  margin-bottom: .6em;
  text-wrap: balance;
}
.destaque { font-size: 1.1875rem; line-height: 1.6; color: var(--verde-profundo); }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em;
  border: 1.5px solid transparent; border-radius: 8px;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.botao--ouro { background: var(--dourado); color: var(--verde-profundo); }
.botao--ouro:hover { background: #b39672; }
.botao--whats { background: var(--verde); color: #fff; }
.botao--whats:hover { background: #2c5638; }
.botao--largo { width: 100%; }
.icone-whats { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: var(--verde-profundo);
  border-bottom: 1px solid rgba(163, 133, 96, .22);
}
.topo__barra { display: flex; align-items: center; gap: 8px; height: var(--altura-topo); }
.topo .marca { margin-right: auto; }

/* Contato em destaque: leva ao formulário */
.topo__contato, .menu__contato {
  background: var(--dourado); color: var(--verde-profundo) !important;
  font-weight: 800; text-decoration: none; border-radius: 8px;
  transition: background-color .2s;
}
.topo__contato { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.topo__contato:hover, .menu__contato:hover { background: #b39672; }

.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marca__monograma { width: 36px; height: auto; }
.marca__nome { display: flex; flex-direction: column; line-height: 1; }
.marca__duarte {
  font-family: var(--serifa); font-weight: 500;
  font-size: 1.3rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dourado);
}
.marca__linha { margin-top: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .24em; color: var(--texto-claro); }

.menu-botao {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: #fff; cursor: pointer; border-radius: 8px;
}
.menu-botao__icone { position: relative; width: 24px; height: 16px; }
.menu-botao__icone span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .2s, top .25s;
}
.menu-botao__icone span:nth-child(1) { top: 0; }
.menu-botao__icone span:nth-child(2) { top: 7px; }
.menu-botao__icone span:nth-child(3) { top: 14px; }
.menu-botao[aria-expanded="true"] .menu-botao__icone span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-botao__icone span:nth-child(2) { opacity: 0; }
.menu-botao[aria-expanded="true"] .menu-botao__icone span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--verde-profundo);
  border-bottom: 1px solid rgba(163, 133, 96, .3);
  display: none;
}
.menu.aberto { display: block; }
.menu ul { padding: 8px var(--margem) 20px; }
.menu a {
  display: block; padding: 14px 0;
  font-weight: 600; font-size: 1.0625rem; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(224, 224, 224, .12);
}
.menu li:last-child a { border-bottom: 0; }
.menu a.menu__contato { margin-top: 12px; padding: 14px 18px; text-align: center; font-weight: 800; }
.menu a:hover { color: var(--dourado); }

/* sem JS, o menu fica sempre visível no celular */
.sem-js .menu-botao, .sem-js .topo__contato { display: none; }
.sem-js .topo__barra { flex-wrap: wrap; height: auto; min-height: var(--altura-topo); }
.sem-js .menu { position: static; display: block; width: 100%; border: 0; }
.sem-js .menu ul { display: flex; flex-wrap: wrap; column-gap: 20px; padding: 0 0 8px; }
.sem-js .menu a { border: 0; padding: 8px 0; }

@media (min-width: 860px) {
  .menu-botao, .topo__contato { display: none; }
  .menu { position: static; display: block; background: none; border: 0; }
  .menu ul { display: flex; align-items: center; gap: 6px; padding: 0; }
  .menu a { padding: 10px 14px; border: 0; font-size: .95rem; letter-spacing: .02em; border-radius: 6px; }
  .menu a:hover { color: var(--dourado); }
  .menu a.menu__contato { margin: 0 0 0 10px; padding: 10px 20px; border-radius: 8px; }
  .menu a.menu__contato:hover { color: var(--verde-profundo); }
}

/* ---------- 1. boas-vindas ---------- */
.inicio { background: var(--verde-profundo); color: #fff; }
.inicio__grade {
  display: grid; gap: 40px;
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.sobretitulo {
  margin-bottom: 1.1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--dourado);
}
.inicio h1 {
  font-family: var(--serifa);
  font-size: clamp(2.2rem, 1.45rem + 3.4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.dourado { color: var(--dourado); }
.inicio__sub { max-width: 34em; margin-top: 1.25rem; font-size: 1.125rem; color: var(--texto-claro); }
/* um só caminho: o botão e, embaixo, o que acontece depois do clique */
.inicio__acao { display: grid; justify-items: start; gap: 12px; margin-top: 2rem; }
.inicio__acao .botao { width: 100%; }

.inicio__foto { justify-self: center; width: min(78%, 290px); }
.arco {
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--dourado);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  overflow: hidden;
  background: var(--verde);
}
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.dados { background: var(--verde); }
/* celular: uma linha por dado, número à esquerda e explicação à direita, todos na mesma coluna */
.dados__lista { display: grid; padding-block: 6px; }
.dados__lista li {
  display: grid; grid-template-columns: 10.5rem 1fr; column-gap: 14px; align-items: baseline;
  padding: 11px 0;
}
.dados__lista li + li { border-top: 1px solid rgba(255, 255, 255, .16); }
.dados strong { font-family: var(--serifa); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; color: #fff; white-space: nowrap; }
.dados span { font-size: .875rem; line-height: 1.35; color: #e1e8e3; }

@media (min-width: 560px) {
  .inicio__acao .botao { width: auto; }
  .dados__lista { grid-template-columns: repeat(3, 1fr); padding-block: 0; }
  .dados__lista li { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 18px 0; }
  .dados__lista li + li { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 16px; }
  .dados strong { font-size: clamp(1.05rem, .8rem + 1vw, 1.45rem); }
}
@media (min-width: 960px) {
  .inicio__grade { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 56px; padding-top: 0; }
  .inicio__texto { align-self: center; padding-block: 5rem 6rem; }
  .inicio__foto { justify-self: end; width: min(100%, 420px); margin-top: 3.5rem; }
  .dados__lista li { padding-block: 24px; padding-right: 24px; }
  .dados__lista li + li { padding-left: 32px; }
  .dados span { font-size: .875rem; }
}


/* ---------- 3. sobre (fundo escuro) ---------- */
.sobre { background: var(--verde-profundo); color: var(--texto-claro); }
.sobre h2, .sobre .destaque { color: #fff; }
.sobre__grade { display: grid; gap: 44px; }
/* celular: foto + moldura deslocada formam um grupo, e é o grupo que fica centralizado
   (a moldura avança 14px para a direita e para baixo, então a foto ocupa a largura menos 14px) */
.sobre__foto { width: min(76%, 314px); margin-inline: auto; padding: 0 14px 14px 0; }
/* tablet: foto ao lado do texto, sem vazio ao lado da foto */
@media (min-width: 720px) and (max-width: 959px) {
  .sobre__grade { grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; }
  .sobre__foto { width: 100%; margin: 8px 0 0; }
  .sobre__grade .credenciais { grid-template-columns: 1fr; }
}
.moldura { position: relative; }
.moldura::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--dourado);
  border-radius: var(--raio);
}
.moldura img {
  position: relative; width: 100%; aspect-ratio: 2 / 3; height: auto;
  object-fit: cover; object-position: 50% 50%;
  border-radius: var(--raio);
  background: var(--verde);
}
.sobre__texto { max-width: 40rem; }

.credenciais { display: grid; gap: 0; margin-top: 2rem; }
.credenciais > div { padding: 16px 0; border-top: 1px solid rgba(163, 133, 96, .35); }
.credenciais dt { font-size: .875rem; font-weight: 800; letter-spacing: .02em; color: var(--dourado); }
.credenciais dd { margin-top: 2px; color: #fff; }

@media (min-width: 640px) {
  .credenciais { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 960px) {
  .sobre__grade { grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
  .sobre__foto { width: 100%; max-width: 434px; margin: 0; }
}

/* ---------- 2. licitação (fundo claro) ---------- */
.licitacao__grade { display: grid; gap: 40px; }
.licitacao__texto { max-width: 38rem; }

/* o risco: o parágrafo que mostra onde as empresas perdem ganha um filete vinho */
.licitacao .alerta { padding-left: 18px; border-left: 3px solid var(--vinho); color: var(--tinta); }

/* quem compra: cartão verde, com uma faixa do pattern no topo (o pattern nunca fica atrás do texto) */
.compradores-cartao {
  overflow: hidden;
  background: var(--verde); color: #e1e8e3;
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(4, 30, 21, .55);
}
.compradores-cartao__friso {
  position: relative; height: 72px;
  background: var(--verde-profundo);
  border-bottom: 1px solid rgba(163, 133, 96, .55);
}
.compradores-cartao__friso::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern.svg") 0 0 / 100px auto;
  opacity: .45;
}
.compradores-cartao__corpo { padding: 26px 22px 12px; }
.compradores-cartao__titulo {
  text-wrap: balance;
  margin-bottom: 8px;
  font-family: var(--serifa); font-size: 1.375rem; line-height: 1.25; color: #fff;
}
.compradores li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.compradores strong { font-family: var(--serifa); font-weight: 600; font-size: 1.1875rem; color: #fff; }
.compradores span { font-size: .95rem; line-height: 1.45; }
.compradores-cartao :focus-visible { outline-color: #fff; }

@media (min-width: 560px) {
  .compradores-cartao__corpo { padding: 30px 32px 16px; }
}
@media (min-width: 960px) {
  .licitacao__grade { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
  .compradores-cartao__friso { height: 96px; }
  .compradores-cartao__friso::before { background-size: 120px auto; }
}

/* ---------- 4. método ---------- */
.metodo__cabeca { max-width: 40rem; margin-bottom: 2.5rem; }
.metodo__cabeca p { font-size: 1.125rem; }

.etapas { display: grid; counter-reset: etapa; }
.etapas li {
  display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 8px; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--borda-clara);
}
.etapas li:last-child { border-bottom: 1px solid var(--borda-clara); }
.etapas__num {
  grid-row: span 2;
  font-family: var(--serifa); font-weight: 500; font-size: 1.75rem; line-height: 1;
  color: var(--dourado-texto);
  font-variant-numeric: lining-nums tabular-nums;
}
.etapas h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 800; color: var(--verde-profundo); line-height: 1.35; }
.etapas p { margin: 2px 0 0; font-size: .975rem; }

.metodo__acao { margin-top: 2.5rem; }
.metodo__acao .botao { width: 100%; }

@media (min-width: 640px) {
  .etapas { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .etapas li:nth-last-child(2) { border-bottom: 1px solid var(--borda-clara); }
  .metodo__acao .botao { width: auto; }
}
@media (min-width: 1024px) {
  .etapas { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .etapas li {
    display: block; padding: 22px 0 28px;
    border-top: 1px solid var(--dourado);
    border-bottom: 0 !important;
  }
  .etapas__num { display: block; margin-bottom: 18px; font-size: 2.5rem; }
  .etapas li:nth-child(n+5) { margin-top: 12px; }
}

/* ---------- 5. dúvidas (fundo escuro) ---------- */
.duvidas { background: var(--verde-profundo); color: var(--texto-claro); }
.duvidas h2 { color: #fff; }
.duvidas__grade { display: grid; gap: 28px; }
.duvidas__cabeca { max-width: 30rem; }
.duvidas__cabeca p { font-size: 1.0625rem; }
.duvidas__lista { border-bottom: 1px solid rgba(163, 133, 96, .35); }
.duvidas details { border-top: 1px solid rgba(163, 133, 96, .35); }
.duvidas summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--serifa); font-weight: 600; font-size: 1.1875rem; line-height: 1.35; color: #fff;
}
.duvidas summary::-webkit-details-marker { display: none; }
/* sinal de mais que vira menos */
.duvidas summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px;
  background:
    linear-gradient(var(--dourado), var(--dourado)) center / 14px 2px no-repeat,
    linear-gradient(var(--dourado), var(--dourado)) center / 2px 14px no-repeat;
  border: 1px solid rgba(163, 133, 96, .6); border-radius: 50%;
  transition: transform .2s;
}
.duvidas details[open] summary::after {
  background: linear-gradient(var(--dourado), var(--dourado)) center / 14px 2px no-repeat;
  transform: rotate(180deg);
}
.duvidas summary:hover { color: var(--dourado); }
.duvidas details p { max-width: 40rem; margin: -4px 0 0; padding: 0 0 22px; }

@media (min-width: 960px) {
  .duvidas__grade { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .duvidas__cabeca { position: sticky; top: calc(var(--altura-topo) + 40px); }
}

/* ---------- 6. formulário ---------- */
.contato { background: var(--papel-2); }
.contato__grade { display: grid; gap: 32px; }
.contato__texto { max-width: 30rem; }
.contato__texto > p:first-of-type { font-size: 1.125rem; }
.contato__direto { font-size: .975rem; }
.proximos { display: grid; gap: 12px; margin: 0 0 1.5rem; counter-reset: passo; }
.proximos li {
  counter-increment: passo;
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline;
  font-size: 1rem; color: var(--verde-profundo);
}
.proximos li::before {
  content: counter(passo);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  align-self: start;
  background: var(--vinho); color: #e8d5bd;
  font: 700 .875rem/1 var(--sans);
}
.contato__direto a { color: var(--verde); font-weight: 700; white-space: nowrap; }

.formulario {
  display: grid; gap: 22px;
  padding: 24px 20px 20px;
  background: var(--cartao);
  border: 1px solid var(--borda-clara);
  border-radius: 14px;
}
.campo { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo legend { font-weight: 700; font-size: .95rem; color: var(--verde-profundo); padding: 0; }
.campo legend { margin-bottom: 10px; }

.campo input[type="text"], .campo input[type="tel"] {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--verde-profundo);
  background: var(--cartao);
  border: 1.5px solid var(--borda-campo);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.campo input::placeholder { color: #7b776d; }
/* preenchimento automático (Google, Apple, gerenciadores de senha) sem o fundo amarelo/azul do navegador */
.campo input:-webkit-autofill,
.campo input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--verde-profundo);
  -webkit-box-shadow: 0 0 0 1000px #f3f7f1 inset;
  caret-color: var(--verde-profundo);
  transition: background-color 9999s;
}
.campo input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f3f7f1 inset, 0 0 0 3px rgba(54, 102, 67, .25);
}
.campo input[type="text"]:focus, .campo input[type="tel"]:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(54, 102, 67, .25);
}

/* pílulas: rádios de verdade, com a aparência de botões */
.pilulas__opcoes { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.pilulas input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pilulas label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  font-size: .95rem; font-weight: 600; color: var(--verde-profundo);
  background: var(--cartao);
  border: 1.5px solid var(--borda-campo);
  border-radius: 999px;
  cursor: pointer; user-select: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pilulas label:hover { border-color: var(--verde); }
.pilulas input:checked + label { background: var(--verde-profundo); border-color: var(--verde-profundo); color: #fff; }
.pilulas input:focus-visible + label { outline: 3px solid var(--verde); outline-offset: 2px; }

.consentimento { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.consentimento input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--verde); }
.consentimento label { font-weight: 600; font-size: .95rem; line-height: 1.5; color: var(--verde-profundo); }
.consentimento a { color: var(--verde); font-weight: 700; }

/* honeypot: fora da tela para pessoas; aria-hidden esconde dos leitores de tela */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.formulario__lgpd { margin: -8px 0 0; font-size: .8125rem; line-height: 1.5; text-align: center; color: #5d6660; text-wrap: balance; }

/* avisos de campo: aparecem só depois de tentar enviar, e somem assim que o campo é corrigido */
.campo__erro {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 0; font-size: .875rem; font-weight: 700; line-height: 1.4; color: var(--erro);
}
.campo__erro::before {
  content: "!"; flex: none; display: grid; place-items: center;
  width: 1.15em; height: 1.15em; margin-top: .12em; border-radius: 50%;
  background: var(--erro); color: #fff; font-size: .8em; font-weight: 800; line-height: 1;
}
.pilulas .campo__erro { margin-top: 10px; }
.consentimento .campo__erro { grid-column: 1 / -1; }
.campo--erro input[type="text"], .campo--erro input[type="tel"] { border-color: var(--erro); }
.campo--erro .pilulas__opcoes label { border-color: var(--erro); }
.campo--erro.consentimento input { outline: 2px solid var(--erro); outline-offset: 2px; }

/* confirmação: toma o lugar do formulário depois do envio */
.formulario-ok {
  display: grid; justify-items: start; gap: 14px;
  padding: 28px 20px 22px;
  background: var(--cartao);
  border: 1px solid var(--borda-clara);
  border-radius: 14px;
}
.formulario-ok:focus { outline: none; }
.formulario-ok__selo {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--dourado); color: var(--verde-profundo);
  box-shadow: 0 0 0 2.5px var(--cartao), 0 0 0 4px rgba(163, 133, 96, .9);
}
.formulario-ok__selo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.formulario-ok__titulo { font-family: var(--serifa); font-size: 1.6rem; line-height: 1.2; color: var(--verde-profundo); }
.formulario-ok__texto { margin: 0; font-size: 1.0625rem; color: var(--tinta); }
.formulario-ok .botao { margin-top: 6px; }
.formulario-ok__voltar {
  justify-self: center; padding: 8px 4px; background: none; border: 0; cursor: pointer;
  font: 700 .9375rem var(--sans); color: var(--verde); text-decoration: underline; text-underline-offset: .18em;
}
.formulario-ok__voltar:hover { color: var(--verde-profundo); }

@media (min-width: 560px) {
  .formulario { padding: 32px 32px 26px; }
  .formulario-ok { padding: 40px 36px 30px; }
}
@media (min-width: 960px) {
  .contato__grade { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .contato__texto { position: sticky; top: calc(var(--altura-topo) + 40px); }
}

/* ---------- 6. rodapé ---------- */
.rodape { background: var(--verde-profundo); color: var(--texto-claro); padding-bottom: 36px; }
.sem-js .rodape { padding-bottom: 104px; } /* sem JS o botão flutuante nunca some: deixa espaço para ele */
.rodape__friso {
  position: relative; height: 44px;
  background: #062a1d;
  border-bottom: 1px solid rgba(163, 133, 96, .4);
}
.rodape__friso::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern.svg") 0 0 / 88px auto repeat-x;
  opacity: .42;
}
.rodape__grade { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 36px; }

/* contatos: WhatsApp e e-mail, os dois caminhos para falar com ela */
.rodape__contatos { display: grid; gap: 22px; }
.rodape__rotulo { margin: 0 0 4px; font-size: .875rem; font-weight: 700; color: var(--dourado); }
.rodape__contatos a {
  font-family: var(--serifa); font-weight: 500;
  font-size: clamp(1rem, .9rem + .6vw, 1.3rem); line-height: 1.3;
  color: #fff; text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(163, 133, 96, .6);
  transition: color .2s, border-color .2s;
}
.rodape__contatos a:hover { color: var(--dourado); border-color: var(--dourado); }

/* redes: ícones, com o @ escrito uma vez */
.rodape__redes { display: flex; align-items: center; gap: 14px; }
.redes { display: flex; gap: 10px; }
.redes a {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(163, 133, 96, .55); border-radius: 50%;
  color: var(--dourado);
  transition: background-color .2s, color .2s;
}
.redes a:hover { background: var(--dourado); color: var(--verde-profundo); }
.redes svg { width: 22px; height: 22px; }
.rodape__arroba { margin: 0; font-size: .9375rem; }

/* linha de baixo: direitos e privacidade à esquerda, assinatura de quem fez o site à direita */
.rodape__base {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px;
  padding-top: 20px;
  font-size: .8125rem;
}
.rodape__base::before {
  content: ""; position: absolute; top: 0; left: var(--margem); right: var(--margem);
  height: 1px; background: rgba(224, 224, 224, .14);
}
.rodape__legal { margin: 0; }
.rodape__cnpj { white-space: nowrap; }
/* celular: CNPJ na linha de baixo, sem o ponto separador */
.rodape__sep { display: none; }
.rodape__cnpj { display: block; }
.rodape__privacidade { color: #fff; font-weight: 600; text-decoration: none; padding: 6px 0; }
.rodape__privacidade:hover { color: var(--dourado); text-decoration: underline; }

/* assinatura Neurobrand: "Neurobrand" no off-white, "made" no verde, com a onda da marca embaixo */
.credito {
  flex-basis: 100%;
  margin: 14px 0 0;
  display: flex; align-items: center;
  color: var(--nb-claro); text-decoration: none;
}
.credito__assinatura {
  font-family: "Shrikhand", var(--serifa); font-weight: 400;
  font-size: .8125rem; line-height: 1; letter-spacing: .015em;
  padding-bottom: 5px; /* espaço para a onda */
}
.credito__made { position: relative; color: var(--nb-verde); }
.credito__onda {
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 3.5px; overflow: visible;
  fill: none; stroke: var(--nb-verde); stroke-width: 1.4; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
a.credito:hover .credito__onda { stroke: var(--nb-claro); }

@media (min-width: 640px) {
  .rodape__sep { display: inline; }
  .rodape__cnpj { display: inline; }
}
/* tablet e notebook: marca e redes em cima, contatos lado a lado embaixo (o e-mail nunca quebra) */
@media (min-width: 860px) {
  .rodape__grade { grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
  .rodape__redes { grid-column: 2; grid-row: 1; }
  .rodape__contatos { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; column-gap: 56px; }
  .rodape__contatos a { overflow-wrap: normal; white-space: nowrap; }
  .credito { flex-basis: auto; margin: 0 0 0 auto; }
}
@media (min-width: 1200px) {
  .rodape__grade { grid-template-columns: auto 1fr auto; align-items: end; column-gap: 56px; }
  .rodape .marca { align-self: center; }
  .rodape__redes { grid-column: 3; }
  .rodape__contatos { grid-column: 2; grid-row: 1; justify-content: center; column-gap: 48px; }
}

/* ---------- WhatsApp flutuante ---------- */
/* Medalhão dourado com o ícone em verde profundo. O aro escuro separa do fundo claro e o filete
   dourado separa do fundo escuro: o botão se destaca igual em todas as seções. */
.whats-flutuante {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: var(--verde-profundo);
  background: linear-gradient(145deg, #c1a37b 0%, var(--dourado) 55%, #8f7352 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    0 0 0 2.5px var(--verde-profundo),
    0 0 0 4px rgba(179, 150, 114, .9),
    0 14px 30px -8px rgba(0, 0, 0, .55);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .25s, filter .2s, visibility 0s;
}
.whats-flutuante svg { width: 28px; height: 28px; }
.whats-flutuante:hover { transform: translateY(-3px); filter: brightness(1.08); }
.whats-flutuante:active { transform: translateY(0) scale(.96); }
.whats-flutuante:focus-visible { outline: 3px solid #fff; outline-offset: 6px; border-radius: 50%; }

/* some quando o formulário ou o rodapé aparecem: lá já tem WhatsApp e ele não cobre o botão de enviar */
.whats-flutuante--oculto {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(.85);
  transition: transform .25s, opacity .25s, visibility 0s linear .25s;
}

@media (min-width: 860px) {
  .whats-flutuante {
    width: 62px; height: 62px;
    right: max(28px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom));
  }
  .whats-flutuante svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* entra com a página e, depois, um anel dourado se abre uma vez para chamar a atenção */
  .whats-flutuante { animation: whats-entra .6s cubic-bezier(.2, .7, .2, 1) .8s backwards; }
  .whats-flutuante::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1.5px solid var(--dourado);
    opacity: 0; pointer-events: none;
    animation: whats-anel 1.6s ease-out 3s 2;
  }
  @keyframes whats-entra { from { opacity: 0; transform: translateY(16px) scale(.8); } }
  @keyframes whats-anel { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
}

/* ---------- página de privacidade ---------- */
.texto-legal { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.texto-legal .container { max-width: 760px; }
.texto-legal h1 {
  font-family: var(--serifa); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.15;
  color: var(--verde-profundo); margin-bottom: .4em;
}
.texto-legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.texto-legal ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.texto-legal li { margin-bottom: .35em; }
.texto-legal a:not(.botao) { color: var(--verde); font-weight: 700; }
.texto-legal .atualizado { font-size: .9rem; color: #5d6660; }
.voltar { display: inline-block; margin-top: 2.5rem; }

/* ---------- só na versão de pré-visualização ---------- */
.previa {
  padding: 9px max(16px, env(safe-area-inset-left)) 9px max(16px, env(safe-area-inset-right));
  background: var(--vinho); color: #f1e4d3;
  font-size: .8125rem; line-height: 1.45; text-align: center; text-wrap: balance;
}
.previa strong { color: #fff; font-weight: 800; }
