/* ==========================================================================
   mauriliosantana.com.br — estilos compartilhados
   Mobile-first. Sem dependências externas. Fonte do sistema (zero download).
   ========================================================================== */

:root {
  /* Paleta sóbria: neutros quentes + um único acento para CTAs */
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #eeede8;
  --ink: #1b1f24;
  --ink-2: #4a5158;
  --muted: #6b7279;
  --line: #dcdcd6;
  --accent: #0f5c50;
  --accent-hover: #0b4a40;
  --accent-soft: #e4efec;
  --warn-bg: #fbf4e6;
  --warn-line: #e6cc95;
  --warn-ink: #5a4410;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(27, 31, 36, 0.06), 0 6px 20px rgba(27, 31, 36, 0.06);
  --container: 1120px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.brand span { display: none; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 640px) { .brand span { display: inline; } }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }
.site-nav .nav-link { display: none; }
@media (min-width: 640px) { .site-nav .nav-link { display: inline; } }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-sm { padding: 9px 14px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
[id] { scroll-margin-top: 72px; } /* compensa o header fixo nos links de âncora */
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
@media (min-width: 768px) { .section { padding: 80px 0; } }

/* Hero (home) */
.hero { padding: 56px 0 40px; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 56ch; }
@media (min-width: 768px) { .hero { padding: 88px 0 56px; } }

/* --------------------------------------------------------------------------
   Grade de cards (hub de verticais)
   Para adicionar uma vertical: copie um <article class="card"> em index.html.
   A grade se ajusta sozinha a 1, 2, 3, 4… cards.
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #c8c8c0; transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card h2 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--ink-2); flex: 1; margin-bottom: 20px; }
.card .btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   Faixa de credibilidade
   -------------------------------------------------------------------------- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 0.9rem; color: var(--muted);
  margin-top: 28px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Landing de vertical
   -------------------------------------------------------------------------- */
.lp-hero { padding: 48px 0 44px; background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-hero h1 { max-width: 22ch; }
.lp-hero .lead { max-width: 58ch; margin-bottom: 26px; }
.lp-hero .cta-group { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .lp-hero .cta-group { flex-direction: row; align-items: center; } }
@media (min-width: 768px) { .lp-hero { padding: 80px 0 64px; } }

/* Hero com vídeo (opcional): texto à esquerda, vídeo vertical à direita */
.lp-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr 340px; gap: 56px; } }
@media (min-width: 1100px) { .lp-hero-grid { grid-template-columns: 1fr 380px; } }
.hero-video {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-caption { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .feature-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.feature-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-list p { color: var(--ink-2); font-size: 0.97rem; }

.source-note {
  margin-top: 20px; font-size: 0.88rem; color: var(--muted);
  padding-left: 12px; border-left: 3px solid var(--line);
}

.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem-list li {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.problem-list li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.problem-list strong { display: block; margin-bottom: 2px; }
.problem-list span { color: var(--ink-2); font-size: 0.97rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding-top: 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   Formulário de captura
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field label, .field .label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c9c9c2; border-radius: 8px; background: #fff;
  min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid #c9c9c2; border-radius: 8px; background: #fff;
  font-weight: 500; font-size: 0.95rem; cursor: pointer; margin: 0; min-height: 44px;
}
.radio-group input { accent-color: var(--accent); margin: 0; }
.radio-group label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.consent input { accent-color: var(--accent); margin-top: 4px; flex: none; width: 18px; height: 18px; }

.form-error { color: #9b2c2c; font-size: 0.9rem; margin-top: 10px; display: none; }
.form-error.show { display: block; }
.form-success { display: none; padding: 22px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-hover); }
.form-success.show { display: block; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Aviso obrigatório (não é escritório de advocacia)
   -------------------------------------------------------------------------- */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
  border-radius: var(--radius); padding: 16px 18px; font-size: 0.93rem;
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
}
.notice svg { width: 20px; height: 20px; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.4rem; color: var(--muted); line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Páginas de texto (Sobre, Privacidade, Termos)
   -------------------------------------------------------------------------- */
.prose h2 { margin-top: 2em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .meta { color: var(--muted); font-size: 0.9rem; }

.info-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0;
}
.info-box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.info-box dt { font-weight: 600; color: var(--ink-2); }
.info-box dd { margin: 0; }
@media (max-width: 480px) { .info-box dl { grid-template-columns: 1fr; gap: 2px; } .info-box dd { margin-bottom: 10px; } }

/* --------------------------------------------------------------------------
   CTA final e Footer
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cdd2; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #e9e9e4; color: var(--ink); }

.site-footer {
  background: var(--surface-2); border-top: 1px solid var(--line);
  padding: 40px 0 28px; font-size: 0.9rem; color: var(--ink-2);
}
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.footer-legal p { margin-bottom: 6px; }

/* Botão flutuante WhatsApp (só nas landings) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
