/* Layout: página como folha de petição. Coluna de margem à esquerda com o "§" da seção e
   notas de fundamento em fonte técnica; texto na coluna da direita. No celular a margem sobe. */
:root {
  --paper: #f2f1ee;
  --paper-2: #e7e5e0;
  --ink: #222326;
  --ink-2: #57595e;
  --rule: #cdcac3;
  --cta-bg: #222326;
  --cta-fg: #f2f1ee;
  --focus: #3d5a80;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.4rem, 6vw, 4.1rem);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #18191b; --paper-2: #212225; --ink: #ecebe6; --ink-2: #a6a6a1; --rule: #3a3b3f;
    --cta-bg: #ecebe6; --cta-fg: #18191b; --focus: #9db7d9; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #18191b; --paper-2: #212225; --ink: #ecebe6; --ink-2: #a6a6a1; --rule: #3a3b3f;
  --cta-bg: #ecebe6; --cta-fg: #18191b; --focus: #9db7d9; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Cabeçalho */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.05; }
.brand-mark {
  width: 52px; height: 37px; flex: none; background: var(--ink);
  -webkit-mask: url("../img/logo-simbolo.png") center / contain no-repeat;
  mask: url("../img/logo-simbolo.png") center / contain no-repeat;
}
.brand-text { display: flex; flex-direction: column; align-items: center; }
.brand-name { font-family: "Marcellus", var(--display); font-size: 1.12rem; letter-spacing: 0.06em; text-transform: uppercase; }
.brand-sub { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.38em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; padding-left: 0.38em; }
@media (max-width: 400px) { .brand-mark { width: 40px; height: 28px; } .brand-name { font-size: 0.98rem; } }
.mark-big {
  width: min(260px, 70%); aspect-ratio: 600 / 422; background: var(--ink); opacity: .9;
  -webkit-mask: url("../img/logo-simbolo.png") center / contain no-repeat;
  mask: url("../img/logo-simbolo.png") center / contain no-repeat;
}
.nav { display: flex; align-items: center; gap: 26px; font-size: var(--step--1); }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid var(--cta-bg); border-radius: 2px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Etiquetas técnicas */
.label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.ref { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); }

/* Hero da página inicial */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero h1 { font-family: var(--display); font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.01em; margin-top: 18px; }
.hero h1 em { font-family: var(--serif); font-style: italic; }
.hero-lead { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.portrait { position: relative; }
.portrait-frame {
  aspect-ratio: 4 / 5; max-width: 100%; width: 100%;
  background: var(--paper-2);
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait-initials { font-family: var(--display); font-size: 4rem; color: var(--ink-2); letter-spacing: 0.06em; }
.portrait figcaption { margin-top: 12px; font-size: var(--step--1); line-height: 1.45; }
.portrait figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.02rem; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
}

/* Seções com margem de petição */
.section { padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--rule); }
.section.tint { background: var(--paper-2); }
.section .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.margin { display: flex; flex-direction: column; gap: 10px; }
.margin .sec { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--ink-2); }
.section h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; }
.section .intro { margin-top: 16px; max-width: 38em; color: var(--ink-2); }
@media (max-width: 820px) {
  .section .wrap { grid-template-columns: 1fr; }
  .margin { flex-direction: row; align-items: baseline; gap: 14px; }
  .margin .sec { font-size: 1.8rem; }
}

/* Índice de áreas */
.areas { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.areas li { border-bottom: 1px solid var(--rule); }
.areas a, .areas .row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: baseline;
  padding-block: 22px; text-decoration: none;
}
.areas h3 { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; }
.areas p { color: var(--ink-2); font-size: 0.98rem; }
.areas .go { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; color: var(--ink-2); transition: transform .15s ease; }
.areas a:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.areas a:hover .go { color: var(--ink); transform: translateX(3px); }
@media (max-width: 640px) {
  .areas a, .areas .row { grid-template-columns: 1fr; gap: 6px; }
}

/* Passos */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s, upper-roman); font-family: var(--display); font-size: 1.5rem; display: block; margin-bottom: 10px; }
.steps h3 { font-family: var(--serif); font-size: 1.08rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Equipe */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.person { border-top: 1px solid var(--ink); padding-top: 16px; }
.person h3 { font-family: var(--serif); font-size: var(--step-1); }
.person .role { margin-top: 4px; }
.person p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* Contato */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.contact-grid div { border-top: 1px solid var(--ink); padding-top: 14px; min-width: 0; }
.contact-grid strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer { padding-block: 40px 96px; font-size: var(--step--1); color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer p { max-width: 46em; }
@media (min-width: 821px) { .site-footer { padding-bottom: 40px; } }

/* Barra fixa de WhatsApp no celular */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--paper); border-top: 1px solid var(--rule);
  display: none;
}
.mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 820px) { .mobile-cta { display: block; } }

/* ---------- Landing pages ---------- */
.lp-hero { padding-block: clamp(44px, 7vw, 88px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.lp-hero .wrap { max-width: 900px; }
.lp-hero h1 { font-family: var(--display); font-size: var(--step-4); line-height: 1.04; margin-top: 16px; }
.lp-hero .hero-lead { max-width: 36em; }
.back { font-size: var(--step--1); color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }

.table-wrap { overflow-x: auto; margin-top: 32px; }
table.rights { width: 100%; border-collapse: collapse; min-width: 560px; }
.rights th, .rights td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.rights thead th { border-bottom: 1px solid var(--ink); font-weight: 400; }
.rights td:first-child { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; width: 9rem; }
.rights td:first-child small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-2); margin-top: 4px; }
.rights td:nth-child(2) strong { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; display: block; margin-bottom: 4px; }
.rights td:nth-child(2) { color: var(--ink-2); }
.rights td:nth-child(2) strong { color: var(--ink); }
.rights td:last-child { width: 10rem; }

.prose { max-width: 40em; display: grid; gap: 16px; margin-top: 20px; }
.prose p { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--ink); margin-top: 6px; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

.signs { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--ink); }
.signs li { padding-block: 18px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; }
.signs li span { font-family: var(--display); font-size: 1.4rem; line-height: 1.2; color: var(--ink-2); }
.signs strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; }
.signs p { color: var(--ink-2); margin-top: 2px; }

.faq { margin-top: 28px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 1.3rem; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); max-width: 42em; }

.cta-band { padding-block: clamp(56px, 8vw, 88px); background: var(--cta-bg); color: var(--cta-fg); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-family: var(--display); font-size: var(--step-3); line-height: 1.1; max-width: 18em; }
.cta-band p { margin-top: 12px; opacity: .78; max-width: 34em; }
.cta-band .btn { background: var(--cta-fg); color: var(--cta-bg); border-color: var(--cta-fg); }
.cta-band .label { color: inherit; opacity: .7; }

.note { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--rule); font-size: 0.95rem; color: var(--ink-2); max-width: 44em; }
.note strong { color: var(--ink); font-weight: 600; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 32px; border-top: 1px solid var(--ink); }
.services div { padding-block: 20px; border-bottom: 1px solid var(--rule); min-width: 0; }
.services h3 { font-family: var(--serif); font-size: 1.12rem; margin-bottom: 6px; }
.services p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
