/* ==========================================================================
   Gonzaga & Gonzaga Advogados Associados — folha de estilos principal
   Paleta e tipografia baseadas no Manual da Marca.
   - Títulos: Marcellus (substituta web da Casey Regular)
   - Corpo / rótulos: Outfit (substituta web da Gilroy / Ace Sans)
   Para usar as fontes originais licenciadas, troque os arquivos em
   /assets/fonts e os nomes em --font-title / --font-body.
   ========================================================================== */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores do manual da marca */
  --brand-sand: #ECEAE5;
  --brand-bronze: #857246;
  --brand-taupe: #958C86;
  --brand-cream: #F7F2DF;
  --brand-black: #000000;
  --gold-gradient: linear-gradient(100deg, #8C5A24 0%, #B88A4F 22%, #E2CD8C 42%, #CFA061 62%, #8C5A24 100%);
  --gold-light-gradient: linear-gradient(100deg, #D39A4F 0%, #F9DE88 50%, #D39A4F 100%);

  /* Tons derivados, ajustados para contraste WCAG AA */
  --paper: #FCFBF8;          /* fundo principal */
  --ink: #1E1B18;            /* texto principal (contraste 16:1) */
  --ink-soft: #4A443F;       /* texto secundário (contraste 9:1) */
  --bronze-text: #66572F;    /* bronze para textos e botões (contraste 6,8:1) */
  --bronze-deep: #4F4323;
  --dark: #2B2724;           /* faixas escuras */
  --dark-soft: #3A3531;
  --line: #DDD8CF;
  --whatsapp: #128C7E;
  --whatsapp-deep: #0E6F64;
  --focus: #8C5A24;

  --font-title: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(30, 27, 24, .05), 0 8px 24px rgba(30, 27, 24, .06);
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bronze-text); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bronze-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #E9DDB7; color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .45em; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section--sand { background: var(--brand-sand); }
.section--cream { background: var(--brand-cream); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Rótulo em caixa alta com espaçamento amplo (eco da Ace Sans do manual) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 1rem;
}
.gold-rule { display: block; width: 72px; height: 2px; background: var(--gold-gradient); border: 0; margin: 0 0 1.5rem; }
.center { text-align: center; }
.center .gold-rule { margin-inline: auto; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); line-height: 1.65; }
.muted { color: var(--ink-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* Marcador visual para conteúdos que o escritório deve preencher */
.placeholder {
  background: #FFF6D6;
  border: 1px dashed #B88A4F;
  border-radius: 4px;
  padding: .05em .4em;
  color: #5A4A1E;
  font-size: .95em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: .02em;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--bronze-text); color: #fff; }
.btn--primary:hover { background: var(--bronze-deep); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-deep); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--brand-cream); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost-light { border-color: rgba(247, 242, 223, .6); color: var(--brand-cream); background: transparent; }
.btn--ghost-light:hover { background: var(--brand-cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 251, 248, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(252, 251, 248, .88); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-title); font-size: 1.12rem; letter-spacing: .04em; color: var(--bronze-text); }
.brand-sub { font-size: .56rem; letter-spacing: .38em; text-transform: uppercase; color: var(--bronze-text); margin-top: .3rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .85rem;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(30, 27, 24, .08);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.25rem; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; padding: .85rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 1.02rem;
}
.site-nav a[aria-current="page"] { color: var(--bronze-text); font-weight: 500; }
.site-nav .nav-cta { margin-top: 1rem; border: 0; }
.site-nav .nav-cta a { border: 0; display: inline-flex; padding: .8rem 1.25rem; color: #fff; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: 1.6rem; padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; font-size: .95rem; position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: var(--gold-gradient); transition: right .25s ease;
  }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; }
  .site-nav .nav-cta a { padding: .6rem 1.1rem; min-height: 44px; font-size: .92rem; }
}

/* ---------- Hero (início) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: min(60vw, 720px); height: 100%;
  background: var(--brand-sand); border-bottom-left-radius: 220px; z-index: -1;
}
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--bronze-text); }
.hero .lead { max-width: 560px; margin-bottom: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink-soft); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.hero-facts svg { width: 18px; height: 18px; color: var(--bronze-text); flex: none; }

.hero-portraits { isolation: isolate; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 520px; margin-inline: auto; width: 100%; }
.arch { position: relative; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--brand-taupe); aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-portraits figure:nth-of-type(2) { margin-top: 3rem; }
.hero-portraits figure { margin: 0; }
.hero-portraits figcaption { margin-top: .75rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.hero-portraits figcaption strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.05rem; color: var(--ink); }
.hero-portraits .monogram-bg { position: absolute; width: 58%; left: 21%; top: -14%; opacity: .12; pointer-events: none; z-index: -1; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Hero interno ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--brand-sand); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.page-hero .monogram-bg { position: absolute; right: -40px; bottom: -60px; width: clamp(200px, 32vw, 420px); opacity: .1; pointer-events: none; }
.page-hero-inner { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
.page-hero .lead { margin-bottom: 1.75rem; }

.breadcrumb { margin-bottom: 1.5rem; font-size: .88rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; color: var(--ink-soft); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--brand-taupe); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Cartões de áreas ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-gradient); border-radius: var(--radius-lg) var(--radius-lg) 0 0; opacity: 0; transition: opacity .2s ease; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); }
.card ul { color: var(--ink-soft); margin: 0 0 1.5rem; padding-left: 1.1rem; }
.card .card-link { margin-top: auto; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card .card-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.card--link:hover { border-color: #CDBF9C; box-shadow: var(--shadow); }
.card--link:hover::before, .card--link:focus-within::before { opacity: 1; }
.card--link:hover .card-link svg { transform: translateX(3px); }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card--link .card-link:focus-visible { outline: none; }

.icon-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem;
  border-radius: 50%; background: var(--brand-cream); color: var(--bronze-text);
  border: 1px solid #E6D9B4;
}
.icon-badge svg { width: 28px; height: 28px; }

/* Situações comuns */
.situations { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .situations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .situations { grid-template-columns: repeat(3, 1fr); } }
.situations li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.situations h3 { font-size: 1.2rem; display: flex; gap: .75rem; align-items: flex-start; }
.situations h3 svg { width: 22px; height: 22px; flex: none; margin-top: .2rem; color: var(--bronze-text); }
.situations p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { margin: 0; position: relative; padding: 2rem 1.75rem 1.75rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-title); font-size: 2.6rem; line-height: 1;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- Conteúdo de texto (prosa) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--bronze-text); }
.prose blockquote, .note {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--brand-bronze);
  background: var(--brand-cream); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink);
}
.note p:last-child { margin: 0; }
.note strong { color: var(--bronze-deep); }

.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.aside-box { background: var(--brand-sand); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-box h2, .aside-box h3 { font-size: 1.35rem; }
.aside-box ul { padding-left: 1.1rem; color: var(--ink-soft); font-size: .98rem; }
.aside-box .btn { width: 100%; margin-top: .5rem; }

/* ---------- FAQ (acordeão nativo) ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem .25rem; font-family: var(--font-title); font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2366572F' stroke-width='1.6'%3E%3Cpath d='M7 1v12M1 7h12'/%3E%3C/svg%3E");
  transition: transform .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-cream); }
.faq summary:hover { color: var(--bronze-text); }
.faq .faq-body { padding: 0 .25rem 1.5rem; color: var(--ink-soft); max-width: 720px; }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Faixa de chamada (CTA) ---------- */
.cta-band { background: var(--dark); color: var(--brand-cream); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-gradient); }
.cta-band h2 { color: var(--brand-cream); }
.cta-band p { color: #E4DDCB; max-width: 640px; }
.cta-band .center p { margin-inline: auto; }
.cta-band .eyebrow { color: #E2CD8C; }
.cta-band a:not(.btn) { color: #F3E3B0; }
.cta-band .monogram-bg { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 300px; opacity: .08; pointer-events: none; }

/* ---------- Equipe ---------- */
.team { display: grid; gap: 2rem; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.member { margin: 0; }
.member .arch { max-width: 420px; }
.member h3 { margin: 1.5rem 0 .25rem; font-size: 1.6rem; }
.member .oab { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-text); margin-bottom: 1rem; display: block; }
.member p { color: var(--ink-soft); }

.values { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { margin: 0; padding: 1.75rem; border-top: 2px solid; border-image: var(--gold-gradient) 1; background: #fff; }
.values h3 { font-size: 1.35rem; }
.values p { margin: 0; color: var(--ink-soft); }

/* ---------- Bloco "sobre" na home ---------- */
.about-split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .about-split { grid-template-columns: .9fr 1.1fr; } }
.about-split .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 460px; }
.about-split .duo .arch:first-child { margin-top: 2.5rem; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.posts > li { margin: 0; }
.post-card { height: 100%; }
.post-card .post-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .75rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-text); font-weight: 500; }
.post-card h3 a, .post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.post-card .post-cover { margin: -1px -1px 1.5rem; aspect-ratio: 16/7; border-radius: var(--radius) var(--radius) 0 0; }

.post-cover {
  display: grid; place-items: center; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-cream));
  color: var(--bronze-text);
}
.post-cover svg { width: 44px; height: 44px; opacity: .85; }
.article-header { max-width: 780px; }
.article-meta { color: var(--ink-soft); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.article-body { font-size: 1.1rem; }
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 500; margin-bottom: .4rem; font-size: .98rem; }
.field .req { color: #9A3B1E; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #BDB5AA; border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2366572F' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze-text); box-shadow: 0 0 0 3px rgba(133, 114, 70, .25); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin: .35rem 0 0; }
.field .error { display: none; font-size: .88rem; color: #9A3B1E; margin: .35rem 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9A3B1E; }
.field.has-error .error { display: block; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: .2rem 0 0; accent-color: var(--bronze-text); }
.consent label { font-weight: 400; margin: 0; }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #9A3B1E; }
.hidden-field { display: none; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { margin: 0; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-list .icon-badge { width: 44px; height: 44px; margin: 0; }
.info-list .icon-badge svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-text); }
.info-list span, .info-list a { font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--brand-sand); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem; background: #fff; font-size: .95rem; }
.location-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .location-grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Páginas legais ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.updated { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: #DDD5C4; font-size: .96rem; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-gradient); }
.site-footer a { color: #F3E3B0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-top { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 4.5rem) 2.5rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 64px; margin-bottom: 1rem; }
.footer-brand .brand-name { color: var(--brand-cream); font-size: 1.3rem; }
.footer-brand .brand-sub { color: #E2CD8C; }
.footer-brand p { margin-top: 1rem; max-width: 320px; color: #CFC6B4; }
.footer-title { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #E2CD8C; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid #4A443F; padding-block: 1.75rem 6rem; font-size: .88rem; color: #C9C0AE; }
@media (min-width: 760px) { .footer-bottom { padding-bottom: 2rem; } }
.footer-bottom p { margin: 0 0 .5rem; }
.footer-oab { color: var(--brand-cream); }
.footer-disclaimer { max-width: 900px; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 58px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font-weight: 500;
  box-shadow: 0 10px 28px rgba(14, 111, 100, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .2s ease, transform .2s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { background: var(--whatsapp-deep); color: #fff; transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline-color: var(--ink); }
.whatsapp-float .wf-label { display: none; }
@media (min-width: 640px) { .whatsapp-float .wf-label { display: inline; } }
@media (max-width: 639px) { .whatsapp-float { width: 58px; padding: 0; justify-content: center; } }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }

@media print {
  .site-header, .whatsapp-float, .cta-band, .site-nav, .map-wrap { display: none !important; }
  body { background: #fff; }
}

/* Telas muito estreitas (até 400px) */
@media (max-width: 400px) {
  .brand { gap: .55rem; }
  .brand img { width: 40px; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .5rem; letter-spacing: .3em; }
  .nav-toggle { padding: .5rem .65rem; }
}
@media (min-width: 1100px) { .nav-home { display: none; } }
ul.cards { list-style: none; padding: 0; margin: 0; }
ul.cards > li { margin: 0; display: flex; }
ul.cards > li > .card { width: 100%; }
.brand-name { white-space: nowrap; }
.nav-toggle-text { display: inline-block; min-width: 3.3em; text-align: left; }

/* ==========================================================================
   Versão 2 — inspirada nos sites de referência (topo escuro, botões
   arredondados, diferenciais, faixa do slogan e avaliações)
   ========================================================================== */
.btn { border-radius: 999px; padding-inline: 1.6rem; }

/* Topo escuro da página inicial */
.hero--dark { background: var(--dark); color: var(--brand-cream); padding-bottom: clamp(6rem, 12vw, 9rem); }
.hero--dark::before {
  inset: 0; width: auto; height: auto; border-radius: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(226, 205, 140, .14), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(140, 90, 36, .22), transparent 70%);
}
.hero--dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-gradient); }
.hero--dark .hero-grid { position: relative; z-index: 1; }
.hero--dark h1 { color: var(--brand-cream); text-transform: uppercase; letter-spacing: .03em; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.15; }
.hero--dark h1 em { color: transparent; background: var(--gold-light-gradient); -webkit-background-clip: text; background-clip: text; }
.hero--dark .eyebrow { color: #E2CD8C; }
.hero--dark .lead { color: #E4DDCB; }
.hero--dark .lead strong { color: #fff; font-weight: 500; }
.hero--dark .hero-facts { border-top-color: #4A443F; color: #D8CFBD; }
.hero--dark .hero-facts svg { color: #E2CD8C; }
.hero--dark .hero-portraits figcaption { color: #CFC6B4; }
.hero--dark .hero-portraits figcaption strong { color: var(--brand-cream); }
.hero--dark .arch { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); outline: 1px solid rgba(226, 205, 140, .35); outline-offset: 6px; }
.hero--dark .hero-portraits .monogram-bg { opacity: .1; }

/* Grupo de chamada em "pílula" (botão + texto) */
.cta-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem;
  padding: .45rem 1.4rem .45rem .45rem; border-radius: 999px;
  background: rgba(247, 242, 223, .08); border: 1px solid rgba(247, 242, 223, .22);
}
.cta-pill span { font-size: .92rem; color: #E4DDCB; line-height: 1.35; max-width: 220px; }
.cta-pill--light { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.cta-pill--light span { color: var(--ink-soft); }
@media (max-width: 520px) { .cta-pill { border-radius: var(--radius-lg); padding: .6rem; } .cta-pill .btn { width: 100%; } .cta-pill span { max-width: none; padding: 0 .5rem .25rem; } }

/* Diferenciais sobrepostos ao topo */
.diffs-wrap { position: relative; z-index: 2; margin-top: clamp(-5rem, -8vw, -3.5rem); }
.diffs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .diffs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .diffs { grid-template-columns: repeat(4, 1fr); } }
.diffs li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; box-shadow: 0 18px 40px rgba(30, 27, 24, .1); }
.diffs .icon-badge { margin-bottom: 1rem; }
.diffs h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.diffs p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Faixa com o slogan */
.slogan-band { background: var(--gold-light-gradient); color: var(--ink); overflow: hidden; border-block: 1px solid #C99A57; }
.slogan-track { display: flex; width: max-content; animation: slogan 60s linear infinite; }
.slogan-band:hover .slogan-track { animation-play-state: paused; }
.slogan-track span { padding: .9rem 0; font-size: .82rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.slogan-track span::after { content: "◆"; margin: 0 2rem; font-size: .6rem; vertical-align: middle; color: var(--bronze-deep); }
@keyframes slogan { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .slogan-track { animation: none; } }

/* Avaliações */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.reviews-head .section-head { margin: 0; }
.stars { display: inline-flex; gap: 2px; color: #C8962E; }
.stars svg { width: 18px; height: 18px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews > li { margin: 0; }
.review { height: 100%; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.review blockquote { margin: 0; color: var(--ink); font-size: 1rem; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; font-size: .9rem; color: var(--ink-soft); }
.review figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.reviews-cta { display: grid; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 860px) { .reviews-cta { grid-template-columns: auto 1fr auto; } }
.reviews-cta .g-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-cream); border: 1px solid #E6D9B4; color: #C8962E; }
.reviews-cta .g-mark svg { width: 32px; height: 32px; }
.reviews-cta h3 { margin: 0 0 .25rem; }
.reviews-cta p { margin: 0; color: var(--ink-soft); }
.reviews-note { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-soft); }
.widget-avaliacoes:empty { display: none; }

/* Topo das páginas internas em versão escura */
.page-hero { background: var(--dark); color: var(--brand-cream); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-gradient); }
.page-hero h1 { color: var(--brand-cream); }
.page-hero .lead, .page-hero .updated, .page-hero .article-meta { color: #E4DDCB; }
.page-hero .eyebrow { color: #E2CD8C; }
.page-hero .breadcrumb ol, .page-hero .breadcrumb a { color: #D8CFBD; }
.page-hero .breadcrumb [aria-current] { color: var(--brand-cream); }
.page-hero .monogram-bg { opacity: .09; }
.page-hero :focus-visible, .hero--dark :focus-visible, .cta-band :focus-visible { outline-color: #F3E3B0; }

/* Rodapé — endereço com ícone */
.footer-address { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.footer-address svg { width: 20px; height: 20px; color: #E2CD8C; margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #5A534D; color: #F3E3B0; }
.footer-social a:hover { background: var(--brand-cream); color: var(--ink); text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; }
/* Coluna lateral só acompanha a rolagem em telas altas, para não esconder os botões */
.aside-box { position: static; }
@media (min-width: 960px) and (min-height: 1050px) { .aside-box { position: sticky; } }

/* ---------- Galeria do escritório ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery--single { grid-template-columns: 1fr !important; }
.gallery > li { margin: 0; }
.gallery figure { margin: 0; }
.gallery-link { display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; background: var(--brand-sand); }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(30, 27, 24, .08); }
.gallery-link:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: .75rem; font-family: var(--font-title); font-size: 1.1rem; color: var(--ink); }
.gallery--single .gallery-link { aspect-ratio: 16 / 11; }

/* Ampliação (lightbox) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1000px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 18, 16, .88); }
.lightbox img { max-width: min(94vw, 1000px); max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); margin: 0 auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: var(--brand-cream); }
.lightbox-caption { font-family: var(--font-title); font-size: 1.1rem; }
.lightbox-actions { display: flex; gap: .5rem; }
.lightbox button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(247, 242, 223, .5); background: transparent; color: var(--brand-cream); font: inherit; cursor: pointer; padding: 0 1rem; }
.lightbox button:hover { background: var(--brand-cream); color: var(--ink); }
.lightbox button:focus-visible { outline-color: #F3E3B0; }

/* Responsável pela área */
.hero-resp { margin: -.5rem 0 1.75rem; font-size: .98rem; color: #E4DDCB; padding-left: .9rem; border-left: 2px solid #E2CD8C; }
.hero-resp strong { color: var(--brand-cream); font-weight: 500; }
.resp-foto .arch { max-width: 380px; margin-inline: auto; }
.member-oab { display: block; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-text); margin: -.25rem 0 1rem; }
.member-area { font-weight: 500; color: var(--ink) !important; }
/* Parágrafos que só contêm marcadores ocultos não ocupam espaço */
p:empty { display: none; }
