/* Seixas Rego Advogados
   Conceito: papel institucional marfim, faixas em azul tinta e filetes dourados;
   a moldura quadrada do logotipo reaparece como marcador de seção. */
:root {
  --ink: #0E1A2E;
  --navy: #13233F;
  --navy-2: #1C3050;
  --gold: #B08D57;
  --gold-soft: #D9C39A;
  --paper: #FBFAF7;
  --ivory: #F6F2EA;
  --text: #1C2433;
  --muted: #4F5B70;
  --line: #E3DDD2;
  --white: #FFFFFF;

  --display: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --body: "Jost", "Helvetica Neue", "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5vw, 3.6rem);

  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
}
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 0.6em; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.4em; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.brand { display: inline-flex; line-height: 0; }
.brand svg { height: 46px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--navy);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #9A7A48; color: var(--white); }
.btn-line { background: transparent; color: var(--white); }
.btn-line:hover { background: var(--gold); color: var(--white); }
.btn-line.on-light { color: var(--navy); }
.btn-line.on-light:hover { color: var(--white); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Faixas */
.band { padding-block: clamp(56px, 9vw, 104px); }
.band-navy { background: var(--navy); color: var(--ivory); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .lead, .band-navy p { color: #D6DCE6; }
.band-ivory { background: var(--ivory); }
.band-white { background: var(--white); }

.hero .wrap { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { max-width: 20ch; }
.hero .lead { color: #D6DCE6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.marker {
  width: 18px; height: 18px;
  border: 1.5px solid var(--gold);
  display: inline-block;
  position: relative;
}
.marker::after {
  content: "";
  position: absolute;
  left: 50%; top: 3px; bottom: 3px;
  width: 1px;
  background: var(--gold);
}

/* Grade de públicos */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.card h3 { font-size: 1.7rem; }
.card p { color: var(--muted); }
.card .more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-block: 14px 0;
}
.card .more:hover { color: var(--gold); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

/* Etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--line); }
.steps li { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.steps .n { font-family: var(--display); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Perfil */
.profile { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.photo {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
  padding: 24px;
  position: relative;
}
.photo::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts .k { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* Regiões */
.places { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.place { border-top: 1px solid var(--gold); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.place h3 { font-size: 1.5rem; }
.place p { color: var(--muted); font-size: 0.98rem; }
.band-navy .place p { color: #C9D1DD; }

/* Perguntas frequentes */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--body); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 66ch; }

/* Contato */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list .k { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.contact-list .v { font-family: var(--display); font-size: 1.6rem; color: var(--navy); line-height: 1.25; user-select: all; }

/* Artigos */
.article-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.article-list a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-list .t { font-family: var(--display); font-size: 1.7rem; color: var(--navy); line-height: 1.2; }
.article-list .d { color: var(--muted); }
.article-list a:hover .t { color: var(--gold); }
.article-meta { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.04em; }

/* Chamada final */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 22ch; }

/* Landing pages */
.lp-header .wrap { padding-block: 14px; }
.lp-hero .wrap { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.lp-hero .copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lp-box {
  border: 1px solid rgba(217, 195, 154, 0.55);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.lp-box h2 { font-size: 1.6rem; }
.lp-box ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; color: #D6DCE6; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.checks li { padding-left: 30px; position: relative; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border: 1.5px solid var(--gold); }

/* Rodapé */
.site-footer { background: var(--ink); color: #B9C2D0; padding-block: 64px 36px; font-size: 0.95rem; }
.site-footer a { color: #E4E8EE; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-grid h2 { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-brand svg { height: 54px; width: auto; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid #26344D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: #8E9AAE; }

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(14, 26, 46, 0.28);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { background: var(--navy-2); }

@media (max-width: 640px) {
  .brand svg { height: 40px; }
  .nav { gap: 4px 16px; }
  .nav a { font-size: 0.9rem; }
  .hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Retrato */
.portrait { margin: 0; position: relative; max-width: 440px; width: 100%; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; filter: saturate(0.9); }
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217, 195, 154, 0.7); pointer-events: none; }

/* Topo da página inicial com retrato */
.hero-grid { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-portrait { justify-self: end; max-width: 380px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { justify-self: start; max-width: 320px; }
}

/* Linhas de atuação (O escritório) */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--gold); }
.rows .row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 12px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rows .row h3 { font-size: 1.6rem; }
.rows .row p { color: var(--muted); max-width: 66ch; }
@media (max-width: 760px) { .rows .row { grid-template-columns: minmax(0, 1fr); } }

/* E-mail longo na página de contato */
.contact-list .v { overflow-wrap: anywhere; }
@media (max-width: 640px) { .contact-list .v { font-size: 1.3rem; } }

/* Etapas: 4 colunas no computador, 2 no tablet, 1 no celular */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
/* Textos longos do rodapé */
.foot-grid li, .foot-grid a { overflow-wrap: anywhere; }

/* ---------- Reestruturação: pilares, faixa escura criminal, jurisprudência ---------- */
.band-ink { background: var(--ink); color: var(--ivory); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink .lead, .band-ink p { color: #C9D1DD; }
.band-ink .place { border-top-color: var(--gold); }
.band-ink .place p { color: #B9C2D0; }
.band-ink.hero .rule, .band-ink.lp-hero .rule { width: 96px; }
.band-ink a:not(.btn) { color: var(--gold-soft); }
.band-navy a:not(.btn), .band-ink .lp-box a { color: var(--gold-soft); }

.pillars { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pillar { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pillar h3 { font-size: 1.9rem; }
.pillar ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid; }
.pillar ul li { border-bottom: 1px solid; padding: 10px 0; }
.pillar ul a { text-decoration: none; display: block; }
.pillar .btn { align-self: flex-start; margin-top: 8px; }
.pillar-dark { background: var(--ink); color: #C9D1DD; border-top: 3px solid var(--gold); }
.pillar-dark h3 { color: var(--white); }
.pillar-dark ul, .pillar-dark ul li { border-color: #26344D; }
.pillar-dark ul a { color: #E4E8EE; }
.pillar-dark ul a:hover { color: var(--gold-soft); }
.pillar-light { background: var(--ivory); border: 1px solid var(--line); border-top: 3px solid var(--navy); color: var(--muted); }
.pillar-light ul, .pillar-light ul li { border-color: var(--line); }
.pillar-light ul a { color: var(--navy); }
.pillar-light ul.plain li { color: var(--text); }

.checks-dark li { color: #D6DCE6; }
.checks-dark li::before { border-color: var(--gold-soft); }

.crumb { font-size: var(--step--1); color: #AEB8C8 !important; text-decoration: none; letter-spacing: 0.04em; }
.crumb::before { content: "← "; }
.crumb:hover { color: var(--gold-soft) !important; }

.info-card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.info-card h3 { font-size: 1.45rem; line-height: 1.2; }
.info-card p { color: var(--muted); font-size: 0.98rem; }
.info-card .info-src { font-size: var(--step--1); letter-spacing: 0.06em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.info-card .trib { font-weight: 500; letter-spacing: 0.16em; color: var(--white); background: var(--navy); padding: 2px 8px; }
.info-card .info-proc { font-size: 0.88rem; color: var(--muted); overflow-wrap: anywhere; }
.info-card .more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--navy); }
.info-card .more::after { content: " ↗"; color: var(--gold); }
.info-card .more:hover { color: var(--gold); }

.themes { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line); }
.themes .theme { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.themes .t { font-family: var(--display); font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.themes .d { color: var(--gold); font-size: var(--step--1); letter-spacing: 0.08em; white-space: nowrap; }
.themes .theme:hover .t { color: var(--gold); }

.chips { background: var(--white); border-bottom: 1px solid var(--line); }
.chips .wrap { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 18px; }
.chips a { font-size: 0.92rem; text-decoration: none; color: var(--navy); border: 1px solid var(--line); padding: 8px 14px; }
.chips a:hover { border-color: var(--gold); color: var(--navy); }
[id] { scroll-margin-top: 96px; }

.notice { border: 1px solid var(--gold); background: var(--white); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.notice h2 { font-size: var(--step-2); }
.notice p { color: var(--muted); }
.foot-alert { margin: 40px 0 0; padding: 16px 20px; border: 1px solid #3A4A66; color: #C9D1DD; font-size: 0.9rem; max-width: 900px; }

/* Menu: em telas menores, uma linha com rolagem lateral; cabeçalho deixa de ser fixo para liberar espaço */
@media (max-width: 1080px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; gap: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex-shrink: 0; }
  .lp-header .wrap { flex-direction: row; align-items: center; }
}
@media (max-width: 640px) {
  .site-header { position: relative; top: 0; }
  .pillar .btn { width: 100%; }
}
.band-ink.hero, .band-ink.lp-hero { border-top: 3px solid var(--gold); }
@media (max-width: 1080px) {
  .nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 32px; }
}
@media (min-width: 1000px) {
  .foot-grid { grid-template-columns: 1fr 1.35fr 1.15fr 1.15fr 0.9fr; }
}
.brand svg { height: 54px; }
.foot-brand { display: flex; flex-direction: column; gap: 16px; }
.foot-brand svg { height: 52px; max-width: 230px; }
.foot-slogan { font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--gold-soft); max-width: 22ch; }
@media (max-width: 640px) { .brand svg { height: 42px; } }
