:root {
  --navy: #0f1f2f;
  --navy-deep: #0a1622;
  --navy-hover: #1c3045;

  --paper: #f5f4f1;
  --paper-alt: #ebe9e4;
  --white: #ffffff;
  --rule: #d6d3cc;
  --rule-dark: rgba(255, 255, 255, .16);

  --ink: #14202c;
  --ink-soft: #4e5966;
  --ink-mute: #575f6b;
  --on-navy: #f2f0eb;
  --on-navy-soft: #b9c1cb;

  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --sec: clamp(72px, 9vw, 128px);
  --radius: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--rule) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
}
::selection { background: var(--navy); color: var(--on-navy); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--paper); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9d988d; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--f-serif); font-weight: 400; margin: 0; text-wrap: balance; color: var(--ink); letter-spacing: -.012em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 2.7vw, 3.9rem); line-height: 1.06; font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.8rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); line-height: 1.25; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- botões e links ---------- */
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 12px 26px; text-align: center;
  font: 600 1rem/1.25 var(--f-sans);
  text-decoration: none; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: var(--white); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; padding: 10px 0;
  font: 600 1rem/1.3 var(--f-sans); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .3em;
  transition: text-decoration-color .25s;
}
.link-arrow:hover { text-decoration-color: var(--ink); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule-dark); }
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font: 500 .95rem/1 var(--f-sans); color: var(--on-navy-soft); text-decoration: none; padding: 10px 0; transition: color .2s; }
.nav a:hover { color: var(--on-navy); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100svh - 76px), 800px); border-bottom: 1px solid var(--rule); }
.hero-copy-wrap { display: flex; align-items: center; padding: clamp(48px, 5vw, 80px) clamp(32px, 5vw, 72px) clamp(48px, 5vw, 80px) max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero h1 { max-width: 17ch; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 34px; }
.hero-note { margin-top: 30px; font-size: .95rem; color: var(--ink-mute); }

.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--paper); min-height: 520px; }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--navy); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero-photo::after { content: ""; position: absolute; inset: 62% 0 0; background: linear-gradient(to top, rgba(10, 22, 34, .78), rgba(10, 22, 34, 0)); }
.hero-photo figcaption { position: absolute; left: clamp(14px, 1.8vw, 24px); right: 12px; bottom: clamp(16px, 2vw, 26px); z-index: 1; color: var(--on-navy); }
.hero-photo figcaption strong { display: block; font: 500 clamp(1.05rem, .9rem + .5vw, 1.3rem)/1.2 var(--f-serif); }
.hero-photo figcaption span { display: block; margin-top: 4px; font-size: .95rem; color: var(--on-navy-soft); }
.hero-photo figcaption em { font-style: normal; }

/* ---------- seções ---------- */
.section { padding: var(--sec) 0; }
.section.alt { background: var(--paper-alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 6vw, 88px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-soft); max-width: 52ch; }

/* áreas */
.areas { border-top: 1px solid var(--ink); }
.area { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(20px, 6vw, 88px); padding: 32px 0 34px; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.area h3 { font-weight: 400; }
.area-body p { color: var(--ink-soft); max-width: 58ch; }
.area-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .3em; transition: text-decoration-color .25s; }
.area-link:hover { text-decoration-color: var(--ink); }

.usucapiao { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--ink); padding-top: 28px; scroll-margin-top: 100px; }
.uc-item h3 { margin-bottom: 10px; }
.uc-item p { color: var(--ink-soft); }
.uc-cta { margin-top: 36px; }
.areas-sub { margin: clamp(64px, 8vw, 104px) 0 20px; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); color: var(--ink-soft); }

/* advogadas */
.lawyers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.lawyer-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.lawyer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lawyer-text { margin-top: 24px; max-width: 46ch; }
.lawyer-meta { font-size: .95rem; color: var(--ink-mute); margin: 6px 0 12px; }
.lawyer-text p:last-child { color: var(--ink-soft); }

/* faixa */
.band { padding: var(--sec) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.band-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.band-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.band-title { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.8rem); line-height: 1.15; max-width: 20ch; }
.band-text { color: var(--ink-soft); max-width: 46ch; margin: 20px 0 32px; }

/* etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-n { display: block; font: 400 1.9rem/1 var(--f-serif); color: var(--ink-mute); margin-bottom: 18px; font-variant-numeric: lining-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* dúvidas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro p { color: var(--ink-soft); margin: 18px 0 8px; max-width: 34ch; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font: 400 clamp(1.1rem, 1rem + .35vw, 1.3rem)/1.35 var(--f-serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy-hover); }
.faq details p { color: var(--ink-soft); padding: 0 0 24px; max-width: 62ch; }

/* contato */
.contact { background: var(--navy); color: var(--on-navy); padding: var(--sec) 0; position: relative; overflow: hidden; }
.contact-mark { position: absolute; right: -60px; top: 50%; width: 520px; transform: translateY(-50%); opacity: .07; pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; position: relative; }
.contact h2 { color: var(--on-navy); max-width: 16ch; }
.contact .lede { color: var(--on-navy-soft); margin: 20px 0 34px; }
.contact-data { margin: 0; border-top: 1px solid var(--rule-dark); }
.contact-data div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule-dark); }
.contact-data dt { font-size: .95rem; color: var(--on-navy-soft); }
.contact-data dd { margin: 0; color: var(--on-navy); }
.contact-data a { text-decoration-color: rgba(255, 255, 255, .4); }
.contact-data a:hover { text-decoration-color: var(--on-navy); }

/* rodapé */
.footer { background: var(--navy-deep); color: var(--on-navy-soft); padding: 52px 0 112px; }
.footer-row { display: flex; gap: 48px; align-items: center; }
.footer-logo { width: 170px; flex: none; }
.footer-text { font-size: .95rem; display: grid; gap: 12px; }
.footer-text p:first-child { color: var(--on-navy); }
.fine { font-size: .95rem; max-width: 72ch; }

/* barra de WhatsApp */
.wa-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: .55em; min-height: 52px; border-radius: var(--radius);
  background: var(--navy); color: var(--on-navy); text-decoration: none; font: 600 1rem/1 var(--f-sans);
  box-shadow: 0 10px 28px -10px rgba(10, 22, 34, .55);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.wa-bar.show { transform: none; }

/* animação do hero */
.js .hero-photo img { animation: unveil 1.4s var(--ease) both; }
.js .hero-photo + .hero-photo img { animation-delay: .15s; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px) scale(1.04); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-copy-wrap { padding: 40px var(--gutter) 56px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .area { grid-template-columns: 1fr; gap: 10px; }
  .usucapiao { grid-template-columns: 1fr; gap: 24px; }
  .lawyers { grid-template-columns: 1fr; gap: 56px; }
  .lawyer-photo { max-width: 520px; }
  .band-grid { grid-template-columns: 1fr; }
  .band-photo { aspect-ratio: 4 / 5; max-width: 480px; }
  .band-photo img { object-position: 50% 40%; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .wa-bar { display: flex; }
}

@media (max-width: 640px) {
  .header-row { height: 64px; }
  .brand img { height: 32px; }
  .header-cta { display: none; }
  .hero-media { aspect-ratio: 5 / 4; }
  .hero-photo figcaption .oab, .hero-photo figcaption .tt { display: none; }
  .hero-copy-wrap { padding-top: 32px; }
  .actions .btn { width: 100%; }
  .actions { gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .band .btn, .contact .btn, .uc-cta { width: 100%; }
  .contact-data div { grid-template-columns: 1fr; gap: 2px; }
  .contact-mark { width: 340px; right: -130px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-logo { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
