/* =========================================================
   CDC Vendas — estilos
   ========================================================= */
:root {
  --ink: #14231f;
  --text: #33413c;
  --muted: #56635e;
  --primary: #1f4a3f;
  --primary-hover: #173a31;
  --primary-soft: #e3efe9;
  --accent: #b8894a;          /* decorativo */
  --accent-text: #8a6223;     /* texto sobre claro (contraste AA) */
  --sand: #e9dcc3;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --line: #ddd6c8;
  --error: #b3261e;
  --error-bg: #fcecea;
  --focus: #2563eb;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 31, .06), 0 12px 32px -12px rgba(20, 35, 31, .18);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-hover); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--sand); color: var(--primary-hover); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; }
.brand-text { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .01em; }
.brand-text strong { font-weight: 600; color: var(--primary); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .85rem; border-radius: 8px;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--primary-soft); color: var(--primary); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 16px; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .btn { margin: 8px 0 0; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; padding-bottom: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1000px 500px at 90% -10%, rgba(184, 137, 74, .14), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--text); max-width: 38em; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; max-width: 560px; margin-inline: auto; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }

.about { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; } }
.about-text p { font-size: 1.08rem; }

.regions { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.regions li {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 600; font-size: .95rem;
}
.regions li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.placeholder {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9rem !important;
  color: #7a4b00;
  background: #fff4d6;
  border: 1px dashed #c9962f;
  border-radius: 6px;
  padding: .2rem .55rem;
}

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); color: #f1dcae; margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { margin: 0; color: var(--muted); }
.note {
  margin: 32px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-serif); font-size: 2.6rem; line-height: 1;
  color: var(--accent);
}
.steps li::after {
  content: ""; position: absolute; top: 22px; left: 72px; right: 0;
  height: 1px; background: var(--line);
}
.steps p { color: var(--muted); margin: 0; }

/* Faixa CTA */
.cta-band {
  background: var(--primary);
  color: #e6efe9;
  padding: clamp(48px, 7vw, 80px) 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.05) 75%, transparent 75%);
  background-size: 28px 28px;
}
.cta-inner { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-bottom: 24px; }

/* ---------- Contato ---------- */
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
@media (min-width: 980px) { .contact-intro { position: sticky; top: 100px; } }

.info-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.info-box h3 { font-size: 1.1rem; }
.info-box p { font-size: .97rem; color: var(--muted); }
.info-box p:last-child { margin-bottom: 0; }
.contact-direct { font-size: .97rem; }

.form-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px);
}

.form-legend-note { font-size: .9rem; color: var(--muted); }
.req { color: var(--error); font-weight: 600; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.group { margin-bottom: 28px; }
.group > legend {
  font-family: var(--font-serif);
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  padding: 0; margin-bottom: 14px;
}

.row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 18px; }
.field > label, .choice > legend {
  display: block; font-weight: 600; color: var(--ink); font-size: .97rem; margin-bottom: 6px;
}
.legend-hint { font-weight: 400; color: var(--muted); font-size: .9rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9b1a2;
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333413c' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
input::placeholder, textarea::placeholder { color: #8a918d; }
input:hover, select:hover, textarea:hover { border-color: #8d8576; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .35);
}
[aria-invalid="true"] { border-color: var(--error) !important; background-color: #fffafa; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(179, 38, 30, .25); }

.hint { font-size: .87rem; color: var(--muted); margin: 6px 0 0; }
.counter { text-align: right; }
.field-error { font-size: .9rem; color: var(--error); font-weight: 500; margin: 6px 0 0; }
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }

/* Pílulas (radio/checkbox) */
.choice { margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .55rem 1.05rem;
  border: 1.5px solid #b9b1a2; border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 500; font-size: .97rem;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pill span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid currentColor; flex: none;
}
.pill input[type="checkbox"] + span::before { border-radius: 4px; }
.pill:hover span { border-color: var(--primary); }
.pill input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pill input:checked + span::before {
  background: #f1dcae; border-color: #f1dcae;
  box-shadow: inset 0 0 0 3px var(--primary);
}
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Consentimento */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  accent-color: var(--primary); cursor: pointer;
}
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

/* Honeypot */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-bottom: 18px; }

/* Resumo de erros e status */
.error-summary {
  border: 2px solid var(--error);
  background: var(--error-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.error-summary h3 { font-family: var(--font-sans); font-size: 1rem; color: var(--error); margin-bottom: .4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 500; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: .97rem;
  border: 1.5px solid var(--error);
  background: var(--error-bg);
  color: #7d1a14;
}
.form-status a { color: inherit; font-weight: 600; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: .4rem; }

.spinner {
  display: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 32px 8px; }
.form-success svg { width: 72px; height: 72px; margin: 0 auto 16px; }
.form-success h3 { font-size: 1.6rem; }
.form-success h3:focus { outline: none; }
.form-success p { color: var(--muted); max-width: 30em; margin-inline: auto; margin-bottom: 24px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #c9d3cf; padding-top: 56px; font-size: .97rem; }
.site-footer a { color: #f1dcae; }
.site-footer a:hover { color: #fff; }
.footer-inner { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text strong { color: #f1dcae; }
.site-footer .brand { margin-bottom: 12px; }
.footer-title {
  font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: 12px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Página 404 ---------- */
.not-found { max-width: 720px; min-height: 50vh; }

/* ---------- Página de privacidade ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
