/* ============================================================
   Vieira Xavier Advogados — componentes do site
   Cabeçalho, menu, hero, seções, rodapé, WhatsApp flutuante.

   Nenhum componente aqui sabe qual tema está ligado. Todos usam
   tokens de papel (--panel, --elev, --heading...), definidos em base.css.
   ============================================================ */

/* ============ BARRA DE TOPO ============ */
.topbar {
  background: var(--panel);
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--topbar-h); flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar .spacer { margin-left: auto; }
.topbar .social { display: flex; gap: 14px; }
.topbar .social a { padding: 4px; }
@media (max-width: 860px) { .topbar .hide-sm { display: none; } }

/* ============ CABEÇALHO ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
}

/* A logo tem espaço próprio — o defeito do site antigo era ela invadir o menu */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-right: auto; }
/* A logo original é branca (feita para fundo escuro). No cabeçalho claro ela
   some, então é invertida para escura. No tema escuro volta a ser a original. */
.brand img { height: 46px; width: auto; filter: brightness(0) saturate(100%); }
[data-theme="dark"] .brand img { filter: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b {
  font-family: var(--font-title); font-size: 1.08rem; font-weight: 700;
  color: var(--heading); letter-spacing: .02em; text-transform: uppercase;
}
.brand-txt span {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}

/* ---- Menu ---- */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; list-style: none; }
.nav > li > a {
  display: flex; align-items: center; gap: .35em;
  padding: 10px 13px; border-radius: 8px;
  font-family: var(--font-title); font-weight: 700; font-size: .88rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--heading);
  white-space: nowrap;
}
.nav > li > a:hover, .nav > li.open > a { background: var(--surface-2); color: var(--link); }
.nav > li[aria-current] > a, .nav > li.active > a { color: var(--link); }
.nav .caret { width: 9px; height: 9px; transition: transform .2s ease; }
.nav > li.open .caret { transform: rotate(180deg); }

/* Submenu em colunas */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px; z-index: 120;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(190px, 1fr));
}
.nav > li.open .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu-col > b {
  display: block; font-family: var(--font-title); font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.submenu-col a {
  display: block; padding: 7px 10px; margin-left: -10px; border-radius: 7px;
  font-size: .9rem; color: var(--ink-2); line-height: 1.4;
}
.submenu-col a:hover { background: var(--blue-soft); color: var(--link); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Botão do menu mobile */
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--elev); border-radius: 10px; cursor: pointer; padding: 0;
  place-items: center; flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 19px; height: 2px; background: var(--heading);
  border-radius: 2px; transition: transform .22s ease, opacity .18s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + var(--topbar-h)) 0 0 0;
    background: var(--surface); flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .26s ease; z-index: 110;
  }
  .nav.open { transform: translateX(0); }
  .nav > li > a { padding: 14px 12px; font-size: 1rem; justify-content: space-between; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; padding: 4px 0 12px 16px; margin-left: 12px;
    grid-template-columns: 1fr; gap: 16px; display: none;
  }
  .nav > li.open .submenu { display: grid; transform: none; }
  .header-cta .btn span { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative; background: var(--panel); color: #fff; overflow: hidden;
  padding: clamp(72px, 10vw, 130px) 0 clamp(80px, 9vw, 120px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(33,67,203,.36), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(201,162,39,.10), transparent 60%);
}
/* No tema escuro o brilho azul puxa mais — é ele que segura a marca no preto */
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(43,80,230,.34), transparent 64%),
    radial-gradient(700px 500px at 8% 92%, rgba(201,162,39,.07), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .eyebrow { color: #8FA6FF; }
.hero p.lead { color: rgba(255,255,255,.78); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 42px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust div b {
  display: block; font-family: var(--font-title); font-size: 1.7rem; color: #fff; line-height: 1.1;
}
.hero-trust div span { font-size: .82rem; color: rgba(255,255,255,.62); }

/* Cartão de análise de caso dentro do hero */
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(8px);
}
.hero-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.hero-card p { color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: 20px; }
.hero-card .field label { color: rgba(255,255,255,.72); }
.hero-card .field input, .hero-card .field select, .hero-card .field textarea {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff;
}
.hero-card .field input::placeholder, .hero-card .field textarea::placeholder { color: rgba(255,255,255,.42); }
.hero-card .field input:focus, .hero-card .field select:focus, .hero-card .field textarea:focus {
  border-color: #8FA6FF; box-shadow: 0 0 0 3px rgba(143,166,255,.2);
}
.hero-card .btn { width: 100%; }

/* ============ FAIXA DE DESTAQUE ============ */
/* Fica no azul da marca nos dois temas: é o momento de cor mais forte da página */
.strip { background: var(--blue); color: #fff; padding: 22px 0; }
.strip .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.strip b { font-family: var(--font-title); font-size: 1.15rem; color: #fff; }
.strip p { color: rgba(255,255,255,.86); font-size: .93rem; }

/* ============ BREADCRUMB ============ */
.crumb { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: .85rem; }
.crumb ol { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.crumb li + li::before { content: '/'; margin-right: 8px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--link); }
.crumb [aria-current] { color: var(--heading); font-weight: 600; }

/* ============ PÁGINA INTERNA ============ */
.page-head { background: var(--panel); color: #fff; padding: clamp(46px, 6vw, 76px) 0; position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 0%, rgba(33,67,203,.4), transparent 60%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,255,255,.75); max-width: 62ch; margin-top: 12px; }

.doc-grid { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0,1fr) 340px; align-items: start; }
@media (max-width: 940px) { .doc-grid { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; }
.prose h2 { margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose > p:first-of-type { font-size: 1.08rem; color: var(--ink); }

.callout {
  border-left: 3px solid var(--link); background: var(--blue-soft);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0;
}
.callout p { font-size: .95rem; }
.callout b { color: var(--heading); }

.aside-card { position: sticky; top: calc(var(--header-h) + 20px); }

/* ============ VÍDEOS E NOTÍCIAS (feeds) ============ */
.feed-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.video-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--elev); transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after {
  content: ''; position: absolute; inset: 0; background: rgba(3,13,53,.28);
  opacity: 0; transition: opacity .2s ease;
}
.video-card:hover .video-thumb::after { opacity: 1; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px;
  background: rgba(255,255,255,.94); border-radius: 50%; display: grid; place-items: center;
  z-index: 2; transition: transform .2s ease;
}
.video-card:hover .video-play { transform: scale(1.08); }
.video-play svg { width: 20px; height: 20px; color: var(--navy); margin-left: 3px; }
.video-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-body h3 { font-size: 1rem; line-height: 1.35; }
.video-body time { font-size: .8rem; color: var(--ink-3); }

.news-list { display: flex; flex-direction: column; gap: 2px; }
.news-item {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 16px; border-radius: var(--radius); transition: background .18s ease;
}
.news-item:hover { background: var(--surface-2); }
.news-item time {
  font-family: var(--font-title); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--link);
  white-space: nowrap; padding-top: 3px;
}
.news-item h3 { font-size: 1.02rem; line-height: 1.4; margin-bottom: 3px; }
.news-item p { font-size: .88rem; color: var(--ink-3); }
.news-src { font-size: .76rem; color: var(--ink-3); }

.feed-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: .92rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--sk-hi) 50%, var(--surface-3) 75%);
  background-size: 200% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============ RODAPÉ ============ */
.footer { background: var(--panel); color: rgba(255,255,255,.66); padding: clamp(48px, 6vw, 76px) 0 0; }
.footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer a { color: rgba(255,255,255,.66); font-size: .89rem; }
.footer a:hover { color: #fff; }
.footer .about p { font-size: .9rem; margin-bottom: 18px; }
.footer .contact-line { display: flex; align-items: center; gap: .55em; margin-bottom: 8px; font-size: .9rem; }
.footer .contact-line svg { width: 15px; height: 15px; flex-shrink: 0; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; transition: background .18s ease, border-color .18s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.34); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 46px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .83rem; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
}
.oab-note { font-size: .78rem; color: rgba(255,255,255,.42); max-width: 70ch; margin-top: 10px; line-height: 1.6; }

/* ============ WHATSAPP FLUTUANTE ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
}
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37,211,102,.42);
  transition: transform .2s ease, box-shadow .2s ease; flex-shrink: 0;
}
.wa-btn:hover { transform: scale(1.07); box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.wa-btn svg { width: 30px; height: 30px; color: #fff; }
.wa-btn::before {
  content: ''; position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); opacity: .55; animation: wa-pulse 2.4s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-label {
  background: var(--elev); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: .86rem; font-weight: 600; color: var(--heading);
  box-shadow: var(--shadow); white-space: nowrap;
  opacity: 0; transform: translateX(10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.wa-float:hover .wa-label { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .wa-label { display: none; } .wa-float { right: 16px; bottom: 16px; } }

/* ============ ARTIGO E CONTEÚDO MIGRADO ============ */
/* O texto vem do site antigo: precisa respirar e não pode estourar no celular */
.prose-hero {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  margin-bottom: 32px; border: 1px solid var(--line);
}
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--link); color: var(--ink);
  font-size: 1.05rem;
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-title); color: var(--heading); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.video-embed {
  position: relative; aspect-ratio: 16/9; margin: 1.6em 0;
  border-radius: var(--radius); overflow: hidden; background: var(--surface-3);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-assinatura {
  margin-top: 2.4em; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-3);
}

.post-meta-topo {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
  font-family: var(--font-title); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.post-meta-topo a {
  color: #8FA6FF; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(143,166,255,.35);
}
.post-meta-topo a:hover { background: rgba(143,166,255,.14); color: #fff; }
.post-meta-topo time { color: rgba(255,255,255,.6); }

/* ============ LISTA DE POSTS ============ */
.lista-info {
  font-size: .88rem; color: var(--ink-3); margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-thumb { aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-vazio {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
}
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-cat {
  font-family: var(--font-title); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--link);
}
.post-card h3 { font-size: 1.05rem; line-height: 1.35; }
.post-card p { font-size: .89rem; color: var(--ink-3); flex: 1; }
.post-card time { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }

/* ============ PAGINAÇÃO ============ */
.paginacao {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center;
  margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line);
}
.paginacao a, .paginacao span {
  min-width: 42px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font-title); font-weight: 700; font-size: .9rem;
  color: var(--heading);
}
.paginacao a:hover { border-color: var(--link); color: var(--link); }
.paginacao .pg-atual { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: transparent; }
.paginacao .pg-gap { border: 0; min-width: 20px; padding: 0; color: var(--ink-3); }
.paginacao .pg-seta { letter-spacing: .03em; }
@media (max-width: 560px) { .paginacao .pg-seta { width: 100%; } }

/* ============ ÍNDICE DE ÁREAS ============ */
.area-grupo + .area-grupo { margin-top: clamp(44px, 5vw, 68px); }
.area-grupo > h2 {
  margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.area-grupo .area-card { padding: 22px 24px; }
.area-grupo .area-card h3 { font-size: 1.08rem; }

/* ============================================================
   MOBILE
   Com o zoom bloqueado, o celular tem que sair certo de primeira:
   ninguém consegue ampliar para corrigir. Então aqui vale
   alvo de toque grande, nada de rolagem lateral e texto legível.
   ============================================================ */

/* O menu fechado fica fora da tela à direita e esticava o documento
   para 750px num aparelho de 390. `clip` corta sem quebrar o sticky
   do cabeçalho, o que `hidden` quebraria. */
html { overflow-x: clip; }
body { overflow-x: clip; }

@media (max-width: 1080px) {
  .nav:not(.open) { visibility: hidden; pointer-events: none; }
  .nav.open { visibility: visible; pointer-events: auto; }
}

@media (max-width: 700px) {
  /* --- Cabeçalho: o logo comia a largura e empurrava o botão para fora --- */
  .header .wrap { gap: 12px; }
  .brand img { height: 34px; }
  .header-cta .btn { padding: 0; width: 44px; height: 44px; }
  .header-cta .btn svg,
  .header-cta .btn > span { width: 20px; height: 20px; }
  .burger { width: 44px; height: 44px; }

  /* --- Barra de topo: telefone e redes com espaço de dedo --- */
  .topbar { font-size: .8rem; }
  .topbar .wrap { gap: 10px; padding-top: 4px; padding-bottom: 4px; }
  .topbar a { min-height: 34px; }
  .topbar .social { gap: 6px; }
  .topbar .social a { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; }

  /* --- Texto: um pouco maior, já que não dá para ampliar --- */
  body { font-size: 16.5px; }
  .lead { font-size: 1.05rem; }
  .prose { font-size: 1.02rem; }

  /* --- Alvo de toque mínimo: 44px é o padrão de acessibilidade --- */
  .btn { min-height: 46px; padding: 12px 20px; }
  .btn--sm { min-height: 42px; }
  .paginacao a, .paginacao span { min-width: 46px; height: 46px; }
  .footer ul a,
  .submenu-col a { display: block; min-height: 42px; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }
  .footer-social a { width: 44px; height: 44px; }
  .footer .contact-line a { display: inline-block; min-height: 34px; }

  /* --- Hero: cartão de formulário respirando --- */
  .hero { padding: 44px 0 52px; }
  .hero-card { padding: 22px 18px; }
  .hero-trust { gap: 18px 26px; margin-top: 30px; padding-top: 20px; }
  .hero-trust div b { font-size: 1.4rem; }
  .hero-actions .btn { width: 100%; }

  /* --- Faixa e listas em uma coluna --- */
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .strip .btn { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; }

  /* --- Artigo --- */
  .page-head { padding: 32px 0 34px; }
  .prose-hero { margin-bottom: 22px; }
  .prose h2 { margin: 1.5em 0 .5em; }
  .post-meta-topo { gap: 8px; font-size: .72rem; }

  /* --- Rodapé em coluna única, sem apertar --- */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  /* --- WhatsApp flutuante não pode tapar o botão de enviar --- */
  .wa-btn { width: 54px; height: 54px; }
  .wa-btn::before { width: 54px; height: 54px; }
}

/* Telas bem estreitas (iPhone SE e afins) */
@media (max-width: 380px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .brand img { height: 30px; }
  .header .wrap { gap: 8px; }
  h1 { font-size: 1.75rem; }
}

/* Tabela dentro do artigo: rola sozinha em vez de estourar a página */
@media (max-width: 700px) {
  .prose table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
  .prose img { margin: 1em 0; }
}

/* ============ AVISO DE CONTEÚDO COM TESE SUPERADA ============ */
/* Tarja no topo do artigo. Âmbar, não vermelho: é alerta de data,
   não erro. Precisa ser visto antes do texto, sem parecer que o
   escritório publicou algo errado. */
.aviso-desatualizado {
  border: 1px solid #E8C77A;
  border-left: 4px solid #C9A227;
  background: #FDF8EC;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: .93rem;
  line-height: 1.6;
}
.aviso-desatualizado strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  color: #7A5E00;
  margin-bottom: 5px;
}
.aviso-desatualizado p { color: #6B5518; margin: 0; }
.aviso-desatualizado a { color: #7A5E00; text-decoration: underline; font-weight: 600; }
.aviso-desatualizado a:hover { color: #4D3B00; }

/* ============================================================
   ACABAMENTO — 2ª passada, 28/07
   O que denunciava "template de IA": tudo com o mesmo peso, grade
   de cards uniforme, zero hierarquia tipográfica. Aqui entra
   contraste de voz (serifa x condensada), régua editorial e
   detalhe de acabamento.
   ============================================================ */

/* Rótulo de seção com régua — em vez de só um texto azul solto */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  color: var(--ink-3); font-size: .72rem; letter-spacing: .18em;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--blue); flex-shrink: 0;
}
.hero .eyebrow, .page-head .eyebrow { color: rgba(255,255,255,.72); }
.hero .eyebrow::before, .page-head .eyebrow::before { background: #8FA6FF; }

/* Título de seção: filete fino embaixo, como cabeçalho de documento */
.section-head h2 { position: relative; padding-bottom: 16px; }
.section-head h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 44px; height: 2px; background: var(--blue);
}
.section--navy .section-head h2::after,
.section--navy h2::after { background: #8FA6FF; }

/* Primeira linha do texto puxa o olho, como em revista */
.hero p.lead { font-size: 1.16rem; line-height: 1.62; }

/* --- Cards de área: menos "app", mais ficha --- */
.area-card {
  border-radius: 4px;            /* canto quase reto — cartão, não app */
  border-color: var(--line);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue); opacity: 0; transition: opacity .2s ease;
}
.area-card:hover::before { opacity: 1; }
.area-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.area-card .ico {
  border-radius: 3px; background: transparent;
  border: 1px solid var(--line); width: 40px; height: 40px;
  color: var(--navy);
}
.area-card h3 { font-size: 1.12rem; }
.area-card .more { color: var(--blue); font-size: .78rem; letter-spacing: .1em; }

/* --- Números do hero: serifa grande, como dado de relatório --- */
.hero-trust div b { font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; }

/* --- Cartão do formulário: canto reto e régua no topo --- */
.hero-card { border-radius: 4px; border-top: 2px solid var(--blue); }
.hero-card h3 { font-size: 1.2rem; }

/* --- Card comum: canto mais seco --- */
.card, .post-card, .video-card, .submenu, .aviso-desatualizado { border-radius: 4px; }
.btn { border-radius: 3px; }
.field input, .field textarea, .field select { border-radius: 3px; }

/* --- Artigo: texto de leitura longa merece serifa --- */
.prose { font-family: var(--font-body); }
.prose > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.16rem; line-height: 1.62; color: var(--ink);
  font-weight: 500;
}
.prose h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* --- Faixa azul: menos chapada --- */
.strip { border-top: 1px solid rgba(255,255,255,.14); }
.strip b { font-family: var(--font-display); font-weight: 600; }

/* --- Rodapé: título de coluna com filete --- */
.footer h4 { border-bottom-color: rgba(255,255,255,.16); }

/* --- Paginação e migalhas mais discretas --- */
.paginacao a, .paginacao span { border-radius: 3px; }
.crumb { background: transparent; border-bottom: 1px solid var(--line); }

/* ============ MAPA DO ESCRITÓRIO ============ */
.mapa-quadro {
  position: relative; aspect-ratio: 21/9; min-height: 300px;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--surface-3);
}
.mapa-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 700px) {
  .mapa-quadro { aspect-ratio: 4/3; min-height: 260px; }
  .mapa-acoes .btn { width: 100%; }
}

/* ============================================================
   HERO COM RETRATO — referência Arca / Edmilson Pereira
   Painel escuro, tipografia grande à esquerda, o advogado à direita
   emergindo da sombra. A foto já vem com fundo navy quase preto, então
   ela se funde com o painel; o degradê apaga a emenda do lado esquerdo.
   ============================================================ */
.hero--retrato {
  --retrato-largura: 46%;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
  background: #060B1C;                 /* um degrau abaixo do navy, para a foto sumir dentro */
}
.hero--retrato::after { display: none; }   /* sem a grade quadriculada aqui */
.hero--retrato::before {
  background: radial-gradient(760px 520px at 12% 40%, rgba(33,67,203,.20), transparent 68%);
}

.hero-retrato {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: var(--retrato-largura); height: 100%;
  object-fit: cover; object-position: 60% 20%;
  z-index: 1; pointer-events: none;
  /* Apaga a borda esquerda da foto contra o painel */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
}

.hero--retrato .wrap { position: relative; z-index: 2; }
.hero-texto { max-width: 620px; }
.hero--retrato h1 { font-size: clamp(2.2rem, 1.5rem + 2.9vw, 3.5rem); }
.hero--retrato .hero-trust { border-top-color: rgba(255,255,255,.16); }

@media (max-width: 1100px) { .hero--retrato { --retrato-largura: 52%; } }

/* No celular o retrato vira faixa no topo: lado a lado não cabe */
@media (max-width: 860px) {
  .hero--retrato {
    flex-direction: column; min-height: 0;
    padding-top: 0;
  }
  .hero-retrato {
    position: relative; width: 100%; height: 340px;
    object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    margin-bottom: -60px;
  }
  .hero-texto { max-width: none; }
}

/* ============ SEÇÃO DE ANÁLISE DE CASO ============ */
/* O formulário saiu de dentro do hero: lá ele disputava atenção com o
   retrato e com o título. Aqui tem bloco próprio. */
.analise-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr minmax(320px, 460px); align-items: center;
}
@media (max-width: 900px) { .analise-grid { grid-template-columns: 1fr; } }
.analise-lista { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.analise-lista li {
  position: relative; padding-left: 30px; font-size: .97rem;
}
.analise-lista li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 16px; height: 2px; background: var(--blue);
}
.analise-card { padding: clamp(24px, 3vw, 34px); border-top: 2px solid var(--blue); }
.analise-card .btn { width: 100%; }

/* ============ BLOCO DE FOTO + TEXTO ============ */
.retrato-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
@media (max-width: 900px) { .retrato-grid { grid-template-columns: 1fr; } }
.retrato-moldura {
  position: relative; border-radius: 4px; overflow: hidden;
  background: var(--surface-3); aspect-ratio: 4/5;
}
.retrato-moldura img { width: 100%; height: 100%; object-fit: cover; }
.retrato-moldura--larga { aspect-ratio: 16/10; }

/* A foto da equipe é print e traz o selo do Instagram no canto inferior
   esquerdo. O enquadramento corta esse pedaço. */
.retrato-moldura--equipe img { object-position: 50% 8%; transform: scale(1.1); transform-origin: 60% 10%; }

.assinatura-foto {
  margin-top: 14px; font-size: .82rem; color: var(--ink-3);
  display: flex; gap: .5em; align-items: baseline;
}
.assinatura-foto b { font-family: var(--font-title); color: var(--heading); font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }

/* ============================================================
   SEÇÃO ESCURA — o ritmo alternado da referência Arca

   Reaproveita os tokens do tema escuro (que ficaram no base.css
   quando a versão dark foi descartada), agora com escopo de seção.
   Assim card, borda, campo e link dentro do bloco escuro se ajustam
   sozinhos — não precisa de regra por componente.
   ============================================================ */
.section--escura {
  background: var(--panel);
  color: rgba(255,255,255,.78);

  --surface:     #0B1024;
  --surface-2:   #101733;
  --surface-3:   #16204A;
  --elev:        #0E1530;
  --line:        rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.26);

  --ink:         #F2F5FB;
  --ink-2:       #C3CBDC;
  --ink-3:       #8E98B0;

  --heading:     #FFFFFF;
  --link:        #8FA6FF;
  --link-hover:  #B3C2FF;
  --blue-soft:   rgba(143,166,255,.14);

  --btn-primary-bg:   #FCFBF8;
  --btn-primary-bg-h: #FFFFFF;
  --btn-primary-fg:   #0B1024;

  --field-bg:    rgba(255,255,255,.06);
  --sk-hi:       #16204A;
}
.section--escura h1, .section--escura h2, .section--escura h3, .section--escura h4 { color: #fff; }
.section--escura .lead { color: rgba(255,255,255,.72); }
.section--escura .eyebrow { color: rgba(255,255,255,.72); }
.section--escura .eyebrow::before { background: #8FA6FF; }
.section--escura .section-head h2::after { background: #8FA6FF; }
.section--escura .card { border-color: rgba(255,255,255,.13); }
.section--escura .card p { color: rgba(255,255,255,.7); }
.section--escura .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.section--escura .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.section--escura .area-card .ico { border-color: rgba(255,255,255,.2); color: #8FA6FF; }
.section--escura .news-item:hover { background: rgba(255,255,255,.05); }
.section--escura .post-card p, .section--escura .video-body time { color: rgba(255,255,255,.62); }
.section--escura .retrato-moldura { background: #16204A; }
.section--escura .assinatura-foto { color: rgba(255,255,255,.6); }
.section--escura .feed-empty { color: rgba(255,255,255,.6); }

/* Bloco escuro colado no outro: uma linha fina evita a emenda invisível */
.section--escura + .section--escura { border-top: 1px solid rgba(255,255,255,.1); }

/* CTA final agora é claro (o ritmo alternado termina em off-white) */
.cta-final { background: var(--surface-2); text-align: center; }
.cta-final h2 { margin-bottom: 14px; }
.cta-final .lead { max-width: 56ch; margin-inline: auto; }

/* Moldura na proporção do próprio retrato (2:3).
   A foto sentada é 1023x1537; na moldura de 4/5 ela perderia 16% da altura,
   e o corte comia justamente as mãos entrelaçadas — que são o ponto da foto.
   Aqui ela aparece inteira, sem object-fit cortar nada. */
.retrato-moldura--retrato { aspect-ratio: 2/3; }
.retrato-moldura--retrato img { object-position: center center; }

/* No celular a coluna é única: uma foto 2:3 inteira empurraria o texto
   para muito longe. Aqui vale cortar um pouco. */
@media (max-width: 900px) {
  .retrato-moldura--retrato { aspect-ratio: 4/5; }
  .retrato-moldura--retrato img { object-position: 50% 22%; }
}
