/* Vitor Rocha – Advocacia e Assessoria Jurídica
   Identidade: grafite, prata, laranja com moderação, Cinzel + Inter, feixes de luz. */

/* Fontes auto-hospedadas (subconjunto latin, variáveis). Fallbacks com métricas
   ajustadas reduzem o deslocamento de layout enquanto a fonte carrega. */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Cinzel Fallback"; src: local("Georgia"), local("Times New Roman"), local("Liberation Serif"); size-adjust: 118%; ascent-override: 86%; descent-override: 28%; line-gap-override: 0%; }

:root {
  --grafite: #2E3135;
  --prata: #A7ADB4;
  --laranja: #E8692B;
  --laranja-hover: #D45A1F;
  /* Laranja da marca não atinge 4.5:1 com texto branco; botões e textos usam tons mais escuros */
  --laranja-btn: #C2501A;
  --laranja-btn-hover: #A94515;
  --laranja-texto: #B84C17;
  --escuro: #26292D;

  --ink: #2E3135;
  --ink-soft: #565B62;
  --ink-mute: #6B7178; /* 4.9:1 no branco (WCAG AA) */
  --line: #E3E5E8;
  --bg: #FFFFFF;
  --bg-muted: #F6F6F4;

  --font-title: "Cinzel", "Cinzel Fallback", Georgia, serif;
  --font-text: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--grafite); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }
.icon { flex: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.section-title, .page-title, .hero-title, .cta-title, .card-title, .footer-title, .checklist-title, .pillars h3 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: .02em;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.section-lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn--accent { background: var(--laranja-btn); color: #fff; }
.btn--accent:hover { background: var(--laranja-btn-hover); }
.btn--dark { background: var(--grafite); color: #fff; }
.btn--dark:hover { background: #1d1f22; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--link { padding-inline: 0; color: var(--grafite); }
.btn--link:hover { color: var(--laranja-texto); }
.btn--link .icon { transition: transform .2s; }
.btn--link:hover .icon { transform: translateX(3px); }

/* ---------- Feixes de luz ---------- */
.beams { position: absolute; width: 300px; height: 240px; pointer-events: none; z-index: 0; }
.beams line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.beams .b-silver { stroke: var(--prata); }
.beams .b-dark { stroke: var(--grafite); }
.beams .b-soft { stroke: rgba(255,255,255,.55); }
.beams .b-orange { stroke: var(--laranja); stroke-width: 2; }
.beams--tr { top: 0; right: 0; }
.beams--bl { bottom: 0; left: 0; transform: rotate(180deg); }
@media (max-width: 640px) { .beams { width: 160px; height: 128px; } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; background: none;
  font: 500 .95rem/1 var(--font-text); color: var(--ink); text-decoration: none; cursor: pointer;
  border-radius: var(--radius);
}
.nav-list > li > a:hover, .sub-toggle:hover { color: var(--laranja-texto); }
.nav-list > li > a[aria-current="page"], .sub-toggle.is-current { color: var(--grafite); box-shadow: inset 0 -2px 0 var(--laranja); border-radius: 0; }
.sub-toggle .icon { transition: transform .2s; }
.nav-toggle { display: none; }

.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  width: 520px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(38,41,45,.12);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
}
.sub-head { display: block; font: 600 1rem/1.3 var(--font-title); color: var(--grafite); text-decoration: none; margin-bottom: 10px; }
a.sub-head:hover { color: var(--laranja-texto); }
.sub-head--muted { font: 600 .74rem/1.3 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 4px; }
.sub-col--featured { border-right: 1px solid var(--line); padding-right: 24px; }
.sub ul li a { display: block; padding: 6px 0; font-size: .93rem; color: var(--ink-soft); text-decoration: none; }
.sub ul li a:hover, .sub ul li a[aria-current="page"] { color: var(--laranja-texto); }
.sub-all { display: inline-flex !important; align-items: center; gap: 6px; color: var(--grafite) !important; font-weight: 600; margin-top: 4px; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand img { width: 168px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--grafite); cursor: pointer;
  }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto;
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.05rem; }
  .nav-list > li > a[aria-current="page"], .sub-toggle.is-current { box-shadow: none; color: var(--laranja-texto); }
  .sub {
    position: static; transform: none; width: auto; display: none;
    grid-template-columns: 1fr; gap: 18px; padding: 0 0 18px; border: 0; box-shadow: none;
    opacity: 1; visibility: visible;
  }
  .has-sub.is-open .sub { display: grid; transform: none; }
  .sub-col--featured { border-right: 0; padding-right: 0; }
  .nav-cta { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 148px) clamp(72px, 10vw, 128px); max-width: 860px; margin-inline: 0 auto; }
@media (min-width: 1160px) { .hero-inner { margin-inline: auto; max-width: var(--container); } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: .04em; color: var(--grafite); margin-bottom: 28px; }
.hero-title-sub { display: block; margin-top: 14px; font-size: clamp(.86rem, 1.6vw, 1.1rem); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); }
.hero-lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--grafite); max-width: 640px; margin-bottom: 10px; line-height: 1.45; }
.hero-text { font-size: 1.1rem; color: var(--ink-soft); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.hero-actions--center { justify-content: center; }

.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 88px); }
.page-hero--center { text-align: center; }
.page-hero--center .page-lead { margin-inline: auto; }
.page-title { font-size: clamp(2rem, 4.6vw, 3.1rem); color: var(--grafite); margin-bottom: 18px; }
.page-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 680px; }
.breadcrumb { font-size: .85rem; color: var(--ink-mute); margin-bottom: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; max-width: 100%; }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #b5b9be; }
.breadcrumb li:last-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60vw, 420px); display: inline-block; vertical-align: bottom; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--laranja-texto); }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section--muted { background: var(--bg-muted); }
.section-head { margin-bottom: 44px; }
.section-foot { margin-top: 32px; }

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card::before { content: ""; position: absolute; left: 28px; top: 0; width: 32px; height: 2px; background: var(--prata); transition: background-color .2s, width .2s; }
.card:hover { border-color: #cfd3d8; box-shadow: 0 12px 30px rgba(38,41,45,.08); transform: translateY(-2px); }
.card:hover::before { background: var(--laranja); width: 48px; }
.card-title { font-size: 1.2rem; color: var(--grafite); margin-bottom: 12px; }
.card-text { font-size: .97rem; color: var(--ink-soft); flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .9rem; font-weight: 600; color: var(--grafite); }
.card:hover .card-more { color: var(--laranja-texto); }
.cards--compact .card { padding: 26px 24px; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; counter-reset: p; }
.pillars li { counter-increment: p; padding-top: 24px; border-top: 1px solid var(--line); }
.pillars li::before { content: "0" counter(p); display: block; font: 600 .82rem/1 var(--font-text); letter-spacing: .14em; color: var(--laranja-texto); margin-bottom: 16px; }
.pillars h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pillars p { color: var(--ink-soft); font-size: .98rem; }

.about-teaser { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.about-teaser p { color: var(--ink-soft); max-width: 620px; font-size: 1.08rem; }
.about-teaser .btn--link { margin-top: 20px; }
.about-mark { width: 200px; opacity: .9; }
@media (max-width: 720px) { .about-teaser { grid-template-columns: 1fr; } .about-mark { width: 120px; order: -1; } }

.prose-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } }
.prose p { font-size: 1.1rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.2em; }
.checklist, .facts { padding: 32px; background: var(--bg-muted); border-radius: 8px; border-top: 2px solid var(--laranja); }
.checklist-title { font-size: 1.15rem; margin-bottom: 18px; }
.checklist li { display: flex; gap: 12px; padding: 8px 0; font-size: .98rem; }
.checklist .icon { color: var(--laranja); margin-top: 3px; }
.facts dl { margin: 0; display: grid; gap: 4px; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--grafite); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--spaced { margin-top: 24px; }
.chips a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .93rem; text-decoration: none; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--laranja); color: var(--laranja-texto); }

.feature { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-left: 3px solid var(--laranja); border-radius: 8px; text-decoration: none; transition: box-shadow .2s; }
.feature p:not(.eyebrow) { color: var(--ink-soft); max-width: 640px; }
.feature:hover { box-shadow: 0 12px 30px rgba(38,41,45,.08); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--grafite); transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: #cfd3d8; box-shadow: 0 12px 30px rgba(38,41,45,.08); }
.contact-card > .icon { color: var(--grafite); margin-bottom: 10px; }
.contact-card--primary > .icon { color: var(--laranja); }
.contact-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.contact-value { font-size: 1.08rem; font-weight: 500; word-break: break-word; }
.contact-card .btn { margin-top: 14px; }
.contact-note { margin-top: 32px; font-size: .9rem; color: var(--ink-mute); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--escuro); color: #fff; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(64px, 9vw, 104px); }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-text { color: var(--prata); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--escuro); color: var(--prata); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 48px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 32px; } }
.footer-brand img { width: 240px; margin: -18px 0 12px -14px; }
.footer-oab { color: #fff; font-weight: 500; margin-bottom: 6px; }
.footer-city { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.footer-title { font-size: .95rem; color: #fff; margin-bottom: 18px; letter-spacing: .06em; }
.footer-links li { padding: 4px 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; color: var(--prata); text-decoration: none; font-size: .95rem; word-break: break-word; }
.footer-links a:hover { color: #fff; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; font-size: .82rem; color: #8b9097; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Formulário de contato ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfd3d8; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--grafite); box-shadow: 0 0 0 3px rgba(46,49,53,.12); }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.field-error { margin: 0; font-size: .85rem; color: #B3261E; }
.field-hint { margin: -8px 0 0; font-size: .85rem; color: var(--ink-mute); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--ink-soft); }
.field--check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--grafite); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin: 0; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }
.alert--ok { background: #EEF6EE; color: #1E5B26; border: 1px solid #CDE5CF; }
.alert--erro { background: #FBEDEC; color: #8C1D18; border: 1px solid #F2CFCC; }

/* ---------- Artigos ---------- */
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.card-meta { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.card--article .card-more { color: var(--ink-mute); font-weight: 500; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.chips a[aria-current="true"] { background: var(--grafite); border-color: var(--grafite); color: #fff; }
.search input { min-height: 44px; width: min(100%, 280px); padding: 10px 14px; font: inherit; border: 1px solid #cfd3d8; border-radius: 999px; }
.search input:focus { outline: none; border-color: var(--grafite); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; font-size: .95rem; }
.pagination a { color: var(--grafite); font-weight: 600; text-decoration: none; }
.pagination a:hover { color: var(--laranja-texto); }
.empty { padding: 48px 0; color: var(--ink-mute); text-align: center; }

.container--narrow { max-width: 820px; }
.page-title--article { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; }
.article-meta { margin-top: 20px; font-size: .9rem; color: var(--ink-mute); }
.article-body { font-size: 1.12rem; line-height: 1.8; color: #3b3f45; }
.article-body > * + * { margin-top: 1.1em; }
.article-body p { margin: 0; }
.article-body h2 { font: 600 1.55rem/1.3 var(--font-title); color: var(--grafite); margin-top: 1.8em; }
.article-body h3 { font: 600 1.2rem/1.35 var(--font-text); color: var(--grafite); margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .4em; }
.article-body li::marker { color: var(--laranja); }
.article-body a { color: var(--grafite); text-decoration-color: var(--laranja); text-underline-offset: 3px; }
.article-body blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--laranja); color: var(--ink-soft); font-style: italic; }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-disclaimer { margin-top: 3em !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-mute); }

/* Menu com 5 itens: compacta um pouco antes de virar mobile */
@media (max-width: 1100px) and (min-width: 961px) {
  .nav { gap: 16px; }
  .nav-list > li > a, .sub-toggle { padding-inline: 8px; }
}
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* =====================================================================
   Refinamentos: cards, navegação, acessibilidade e responsividade
   ===================================================================== */

main:focus { outline: none; }
a { text-underline-offset: 3px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn--outline { border-color: #c4c8cd; color: var(--grafite); background: #fff; }
.btn--outline:hover { border-color: var(--grafite); }
.mt-24 { margin-top: 24px; }

/* Botão hambúrguer animado */
.nav-toggle-bars { position: relative; width: 20px; height: 14px; display: inline-block; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.sub-head .icon { vertical-align: -4px; margin-right: 6px; color: var(--laranja); }
@media (max-width: 960px) {
  .nav-list > li > a, .sub-toggle { min-height: 52px; }
  .sub ul li a { padding: 10px 0; }
}

/* Hero com cartão de acesso rápido */
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); }
.hero-grid .hero-inner { padding: 0; max-width: none; margin: 0; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 48px rgba(38,41,45,.08); padding: 26px 24px 14px; }
.hero-card-title { display: flex; align-items: center; gap: 10px; font: 600 1.1rem/1.3 var(--font-title); color: var(--grafite); margin: 0 0 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-card-title .icon { color: var(--laranja); }
.hero-card li + li { border-top: 1px solid var(--line); }
.hero-card a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.hero-card a span { display: inline-flex; align-items: center; gap: 12px; }
.hero-card a .icon { color: var(--ink-mute); transition: color .2s, transform .2s; }
.hero-card a:hover { color: var(--laranja-texto); }
.hero-card a:hover > .icon:last-child { transform: translateX(3px); color: var(--laranja-texto); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Faixa de confiança */
.trust { border-block: 1px solid var(--line); background: var(--bg-muted); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; padding-block: 22px; }
.trust p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .95rem; font-weight: 500; color: var(--grafite); }
.trust .icon { color: var(--laranja); flex: none; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; } }

/* Cards com ícone */
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 12px; background: #F3F1EE; color: var(--grafite); transition: background-color .2s, color .2s; flex: none; }
.card-icon--lg { width: 64px; height: 64px; margin: 0; }
a.card:hover .card-icon { background: #FCEBE2; color: var(--laranja-texto); }
.card--icon::before { display: none; }
.card--row { flex-direction: row; align-items: flex-start; gap: 18px; }
.card--row .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 10px; }
.card--row .card-title { margin-bottom: 6px; font-size: 1.08rem; }
.card--row .card-text { font-size: .93rem; }
.card-body { min-width: 0; }
.card--static { cursor: default; }
.card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
ul.cards { list-style: none; }
.cards--compact { gap: 16px; }

/* Passo a passo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: passo; }
.step { position: relative; counter-increment: passo; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.step::after { content: counter(passo, decimal-leading-zero); position: absolute; top: 22px; right: 22px; font: 600 .82rem/1 var(--font-text); letter-spacing: .12em; color: var(--laranja-texto); }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; border: 1px solid var(--line); color: var(--grafite); }
.step h3 { font: 600 1.1rem/1.3 var(--font-title); margin-bottom: 8px; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Cabeçalho de página com ícone */
.page-hero-row { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.page-hero-row .page-title { margin: 0; }
.page-hero-row .eyebrow { margin-bottom: 8px; }
.page-hero-icon { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 14px; background: #F3F1EE; color: var(--grafite); }
.page-hero .hero-actions { margin-top: 28px; }
@media (max-width: 560px) {
  .page-hero-icon { width: 52px; height: 52px; border-radius: 12px; }
  .page-hero-icon .icon { width: 26px; height: 26px; }
  .page-hero-row { gap: 14px; }
}

/* Destaque de área (página Áreas) */
.feature { align-items: center; flex-wrap: nowrap; gap: 28px; }
.feature-body { flex: 1; min-width: 0; }
@media (max-width: 700px) { .feature { flex-wrap: wrap; } }

/* Perguntas frequentes */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.faq details[open] { border-color: #cfd3d8; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; border-radius: 8px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 600 1.02rem/1.45 var(--font-text); color: var(--grafite); margin: 0; }
.faq summary:hover h3 { color: var(--laranja-texto); }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--grafite); border-radius: 2px; transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0); }
.faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-body p { margin: 0; }
.faq-note { margin-top: 20px; font-size: .85rem; color: var(--ink-mute); }

/* Rodapé */
.footer-title a { color: inherit; text-decoration: none; }
.footer-title a:hover { color: var(--prata); }
.footer-links li { padding: 0; }
.footer-links a { min-height: 36px; padding: 6px 0; }
.footer-contact { margin-top: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--prata); transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: #fff; color: #fff; }
.site-footer :focus-visible { outline-color: #F0A27A; }
@media (max-width: 560px) { .footer-links a { min-height: 44px; } .footer-bottom { flex-direction: column; } }

/* Botões flutuantes: voltar ao topo + WhatsApp */
.floating { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wa-float { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--laranja-btn); color: #fff; box-shadow: 0 10px 24px rgba(38,41,45,.28); transition: transform .2s, background-color .2s; }
.wa-float:hover { background: var(--laranja-btn-hover); transform: translateY(-2px); }
.to-top { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--grafite); cursor: pointer; box-shadow: 0 6px 18px rgba(38,41,45,.16); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, border-color .2s, color .2s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { border-color: var(--grafite); color: var(--laranja-texto); }
.to-top[hidden] { display: none; }
@media (max-width: 640px) {
  .floating { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .wa-float { width: 52px; height: 52px; }
  .to-top { width: 44px; height: 44px; }
}
/* Espaço para os botões flutuantes não cobrirem o fim do rodapé no celular */
@media (max-width: 640px) { .footer-bottom { padding-bottom: 96px; } }

/* Responsividade geral */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 24px 22px; }
  .checklist, .facts { padding: 24px; }
  .prose p { font-size: 1.04rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .section-head--row .btn--link { padding-top: 0; }
}
@media (max-width: 380px) {
  .brand img { width: 150px; }
  .hero-title { font-size: 2.1rem; }
}

/* Alto contraste / movimento reduzido */
@media (forced-colors: active) {
  .card, .step, .faq details, .hero-card { border: 1px solid CanvasText; }
  .beams { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .nav-toggle-bars span { transition: none; }
}

/* backdrop-filter cria um novo bloco de contenção para elementos fixed:
   no celular o painel do menu ficava preso à altura do cabeçalho */
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
