/* ==========================================================
   Fechamento de Varanda · Hub nacional
   Refatorado para tirar cara de "landing de IA" sem perder padrão SEO local
   ==========================================================
   Regras aplicadas:
   - Sem body:before decorativo / radial-gradient / textura
   - Header sticky sem backdrop-filter (glassmorphism off)
   - Sem box-shadow oversized (max 0 2px 8px)
   - Border-radius modestos (4-8px); zero pill em tudo
   - Body sans (system-ui); serif só em H1/H2 com peso 800
   - H1 letter-spacing -0.02em (não -0.045em "Vercel-tell")
   - Sticky-WhatsApp com SVG inline, sem "☘"
   - CTA-panel e author-box sem gradient diagonal
   - Hero sem hero-visual decorativo
   - Grid do hero simétrico
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f3ea;
  --ink: #181713;
  --muted: #615d52;
  --line: #ded2be;
  --card: #fffaf0;
  --brand: #b45b24;
  --brand2: #113f3a;
  --accent: #e8ad42;
  --ok: #28785f;
  --wa: #19a957;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ---------- Reset minimal ---------- */
*, *::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 { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 56px 0; }
.section h2 { margin: 0 0 12px; }
.article { max-width: 820px; }

/* ---------- Header (sem glassmorphism) ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.logo {
  font-family: var(--serif);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
  color: var(--ink);
}
.logo span { color: var(--brand); }
.links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}
.links a {
  text-decoration: none;
  color: var(--muted);
}
.links a:hover { color: var(--ink); }

/* ---------- Buttons (radius modestos, sem shadow oversized) ---------- */
.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand2);
  border-radius: var(--radius-md);
  background: var(--brand2);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 11px 16px;
  font-size: 0.95rem;
  min-height: 44px; /* touch target mobile */
}
.cta:hover,
.btn:hover { background: #0d302c; border-color: #0d302c; }
.btn.alt {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}
.btn.alt:hover {
  background: #963f12;
  border-color: #963f12;
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  color: var(--brand2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
/* sem pill, sem borda, sem fundo — só texto corrido */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 56ch;
}

/* ---------- Hero card direito (sem shadow oversized) ---------- */
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-card .stamp {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.98rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  background:
    linear-gradient(45deg, transparent 45%, var(--ok) 45%, var(--ok) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--ok) 45%, var(--ok) 55%, transparent 55%);
  transform: rotate(0deg);
  /* ponto/seta simples sem precisar de SVG inline — sem glow, sem cor saturada */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  /* fallback checkmark em texto se gradient não funcionar */
  font-size: 0;
}

/* ---------- Sections ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card a { color: var(--brand2); font-weight: 600; }

/* ---------- Bands (seção com fundo diferente) ---------- */
.band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 22px;
}

/* ---------- Lists em grid de pills (bairros) ---------- */
.list-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  background: #fff;
}
.pill:hover { border-color: var(--brand2); color: var(--brand2); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand2); text-decoration: underline; }

/* ---------- Two column (Por que não adiar + Como pedir) ---------- */
.two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: start;
}
.two ul { padding-left: 1.2em; }
.two li { margin-bottom: 8px; }

/* ---------- Mini-proof / metric-row ---------- */
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}
.metric b {
  display: block;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand2);
  font-family: var(--sans);
}
.metric span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-proof {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.mini-proof span {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- CTA panel (sem gradient diagonal) ---------- */
.cta-panel {
  background: var(--brand2);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 30px;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.85); margin-bottom: 18px; }
.cta-panel .btn {
  background: #fff;
  color: var(--brand2) !important;
  border-color: #fff;
}
.cta-panel .btn:hover {
  background: #f0ebdf;
  border-color: #f0ebdf;
  color: var(--brand2) !important;
}

/* ---------- Sticky WhatsApp (sem "☘", com SVG inline e shadow modesto) ---------- */
.sticky-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: var(--wa);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(25, 169, 87, 0.3);
}
.sticky-wa:hover { background: #149247; }
.sticky-wa svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* ---------- TOC ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 22px 0;
}
.toc h3 { font-size: 1rem; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--sans); }
.toc ol { padding-left: 1.2em; margin: 0; }
.toc li { margin-bottom: 4px; }
.toc a { text-decoration: none; color: var(--brand2); }
.toc a:hover { text-decoration: underline; }

/* ---------- Compare table (serviço vs DIY) ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.95rem;
}
.compare th,
.compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th {
  background: var(--brand2);
  color: #fff;
  font-weight: 700;
}
.compare td:first-child,
.compare th:first-child { font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--bg);
}
.footer strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}
.footer a { color: var(--brand2); }

/* ---------- Article styles (BlogPosting) ---------- */
.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 18px;
  font-weight: 700;
}
.article-body { max-width: 880px; }
.article-body h2 { margin-top: 36px; }
.article-body p,
.article-body li { font-size: 1.04rem; line-height: 1.75; }
.article-body .answer-box {
  border-left: 4px solid var(--brand2);
  background: var(--card);
  padding: 16px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.article-card a { text-decoration: none; color: inherit; }
.article-card h2 { font-size: 1.15rem; margin: 6px 0; }
.article-card p { color: var(--muted); margin: 0; }
.internal-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.internal-links a {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.internal-links a:hover { border-color: var(--brand2); color: var(--brand2); }

/* FAQ (accordeão simples sem JS) */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
}
.author-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.blog-nav-note {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .two { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }

  .links {
    gap: 12px;
    font-size: 0.88rem;
    flex-wrap: wrap;
  }
  .links a:not(.cta) { display: none; } /* em mobile, fica só logo + CTA WhatsApp */
  .logo { font-size: 1rem; }

  .sticky-wa {
    padding: 10px 14px;
    font-size: 0.85rem;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .wrap { width: calc(100% - 24px); }
  .cta-panel { padding: 22px; }
}

/* ---------- Print ---------- */
@media print {
  .top, .sticky-wa, .hero-cta, .cta-panel { display: none; }
  body { background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: var(--muted); }
}
