/* Estilos do site — usa as variáveis de tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--beige-600); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; color: var(--accent); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Marcação de conteúdo pendente — a trava de publicação recusa o deploy enquanto houver */
.conferir {
  display: inline;
  background: var(--flag-bg);
  color: var(--flag-text);
  border: 1px dashed var(--flag-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-sans);
  font-size: .9em;
  font-weight: 500;
}
.aside .conferir { background: #3a2f10; color: #f3dc9a; border-color: #8a6d1f; }

/* ---------- Página inicial: duas colunas ---------- */
.home { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; min-height: 100vh; }
.aside {
  background: var(--aside-bg);
  color: var(--aside-text);
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  padding: 44px 36px 32px;
  display: flex; flex-direction: column; gap: 28px;
}
.aside a { color: var(--aside-text); }
.aside h1, .aside h2 { color: var(--aside-text); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 64px; height: 64px; }
.brand-name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.15; margin: 0; }
.brand-sub { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--aside-muted); margin: 4px 0 0; }
.reg { font-size: .85rem; color: var(--aside-muted); margin: 0; }
.aside-block h2 {
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--beige-400);
  border-bottom: 1px solid var(--aside-rule); padding-bottom: 8px; margin-bottom: 12px;
}
.aside-block p { color: var(--aside-text); font-size: .95rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: .95rem; }
.contact-list li { padding: 5px 0; display: grid; grid-template-columns: 82px 1fr; gap: 8px; }
.contact-list .k { color: var(--aside-muted); font-size: .82rem; padding-top: 2px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500;
  padding: 11px 22px; border-radius: var(--radius);
  background: var(--beige-200); color: var(--navy-900) !important;
  border: 1px solid var(--beige-200);
}
.btn:hover { background: var(--beige-100); }
.btn-ghost { background: transparent; color: var(--aside-text) !important; border-color: var(--aside-rule); margin-left: 8px; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.aside-foot { margin-top: auto; font-size: .78rem; color: var(--aside-muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aside-foot a { color: var(--aside-muted); }

.main { padding: 56px clamp(20px, 5vw, 72px) 48px; max-width: 980px; }
.section { margin-bottom: 56px; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--beige-600); margin: 0 0 6px; }
.section-head { border-bottom: 1px solid var(--rule); margin-bottom: 22px; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 18px; text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--beige-400); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 10px; font-size: .85rem; font-weight: 500; color: var(--link); }
.card-num { font-family: var(--font-serif); color: var(--beige-600); font-size: .9rem; }

.empty { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; color: var(--muted); }

/* ---------- Páginas internas ---------- */
.topbar { background: var(--aside-bg); color: var(--aside-text); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--aside-text); text-decoration: none; }
.topbar .brand img { width: 40px; height: 40px; }
.topbar .brand-name { font-size: 1.15rem; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 7px 16px; }

.page { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.page-wide { max-width: var(--maxw); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); font-family: var(--font-serif); }
.page h2 { margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .35em; }
.note { border-left: 3px solid var(--beige-400); background: var(--surface-2); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; color: var(--muted); margin: 28px 0; }
.cta-box { margin-top: 40px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cta-box h2 { margin-top: 0; }
.cta-box .btn { background: var(--accent); color: var(--accent-contrast) !important; border-color: var(--accent); }
.cta-box .btn-ghost { background: transparent; color: var(--link) !important; border-color: var(--border); }

.team { display: grid; gap: 20px; }
.person { display: grid; grid-template-columns: 120px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.person .photo { width: 120px; height: 150px; border-radius: 4px; background: var(--surface-2); border: 1px dashed var(--beige-400); display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; padding: 8px; }
.person h2 { margin: 0 0 2px; font-size: 1.3rem; }
.person .oab { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.person dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: .95rem; }
.person dt { color: var(--muted); font-size: .85rem; }
.person dd { margin: 0; }

.footer { border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer p { margin: 0 0 4px; }
.footer a { color: var(--muted); }

.theme-toggle {
  background: transparent; border: 1px solid var(--aside-rule); color: inherit;
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .78rem; cursor: pointer;
}

/* ---------- Celular: empilhar ---------- */
@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .aside { position: static; height: auto; padding: 32px 20px 28px; }
  .main { padding: 36px 16px 40px; }
  .person { grid-template-columns: 1fr; }
  .person .photo { width: 100px; height: 125px; }
  .person dl { grid-template-columns: 1fr; gap: 2px; }
  .person dd { margin-bottom: 8px; }
  .nav { gap: 14px; }
  .page { padding: 32px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Logo oficial (fundo branco): exibido sobre um cartão claro nos dois temas */
.logo-card { background: #fff; border-radius: var(--radius); padding: 14px 18px; width: fit-content; }
.logo-card img { width: 172px; height: auto; }
.brand-icon { background: #fff; border-radius: 4px; padding: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.person-noimg { grid-template-columns: 1fr; }

/* Ícone de conversa ao lado dos links de WhatsApp */
.wa-ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: .4em; flex: none; }
