/* ==========================================================================
   Marcello Benevides — LP Homologação de sentença estrangeira
   Design system. Cores de ação validadas em WCAG AA (ver DESIGN.md).
   ========================================================================== */

/* --- Fontes auto-hospedadas (latin, variáveis) --------------------------- */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Marca */
  --navy-950: #060f1e;
  --navy-900: #0b1b33;
  --navy-800: #122849;
  --navy-700: #1b3660;
  --navy-600: #27466f;

  --gold-600: #9a7b41;
  --gold-500: #b8955a;
  --gold-400: #cdad78;
  --gold-300: #e2c99a;
  --gold-200: #eedfc1;
  --gold-100: #f5eddc;
  --gold-ink: #6b5022;   /* 7.08:1 sobre branco — uso em texto */

  /* Neutros quentes */
  --warm-50: #fbf9f5;
  --warm-100: #f4f0e8;
  --warm-200: #e8e2d5;

  --white: #fff;
  --ink: #0b1b33;
  --ink-soft: #474d58;   /* 8.50:1 sobre branco */
  --ink-mute: #666c77;   /* 5.72:1 sobre branco */
  --line: #e4e7ec;
  --line-strong: #cbd1da;

  /* Ação — WhatsApp */
  --wa-brand: #25d366;   /* apenas glifo/decorativo (1.98:1, nunca texto) */
  --wa-cta: #0e8844;     /* 4.54:1 com branco */
  --wa-cta-hover: #007935; /* 5.55:1 com branco */
  --danger: #8c2f2f;

  /* Elevação */
  --shadow-xs: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06), 0 2px 6px -2px rgba(11, 27, 51, 0.08);
  --shadow-md: 0 2px 4px -1px rgba(11, 27, 51, 0.06), 0 12px 28px -12px rgba(11, 27, 51, 0.18);
  --shadow-lg: 0 4px 10px -4px rgba(11, 27, 51, 0.08), 0 28px 56px -20px rgba(11, 27, 51, 0.26);
  --shadow-cta: 0 2px 4px rgba(11, 27, 51, 0.08), 0 10px 22px -10px rgba(14, 136, 68, 0.55);

  /* Forma */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  /* Tipografia */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: 1.5rem;
  --header: 78px;
  --section-y: clamp(4rem, 7.5vw, 7rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
}

:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 3px;
  border-radius: 2px;
}

.band-navy :focus-visible,
.footer :focus-visible,
.sticky-wa:focus-visible {
  outline-color: var(--gold-300);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-140%);
  z-index: 90;
  background: var(--navy-900);
  color: #fff;
  padding: 0.8rem 1.15rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

/* --- Tipografia ---------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 2px;
  background: var(--gold-500);
}

.kicker-light {
  color: var(--gold-300);
}

.kicker-light::before {
  background: var(--gold-400);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.016em;
  line-height: 1.12;
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2.15rem, 4.05vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 2.75vw, 2.45rem);
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--navy-700);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.55vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.014em;
  color: var(--navy-900);
}

.lead {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--navy-800);
}

.prose {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.section-head .prose,
.split-copy .prose,
.contact-copy .prose {
  max-width: 52ch;
}

.prose strong {
  color: var(--navy-900);
  font-weight: 600;
}

.eyebrow-label {
  margin-top: 1.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
}

/* Variantes de copy (geral / divórcio) */
[data-copy="divorcio"] {
  display: none;
}

html[data-variant="divorcio"] [data-copy="geral"] {
  display: none;
}

html[data-variant="divorcio"] [data-copy="divorcio"] {
  display: inline;
}

/* --- Botões -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy-900);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-sm {
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-wa {
  background: var(--wa-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn-wa:hover {
  background: var(--wa-cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(11, 27, 51, 0.1), 0 16px 28px -12px rgba(14, 136, 68, 0.6);
}

.btn-wa:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

.btn-outline .ico {
  color: var(--wa-cta);
  transition: color 0.2s var(--ease);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:hover .ico {
  color: var(--gold-300);
}

.btn-light {
  border: 1.5px solid rgba(226, 201, 154, 0.5);
  color: var(--gold-200);
  background: transparent;
}

.btn-light:hover {
  background: rgba(226, 201, 154, 0.1);
  border-color: var(--gold-300);
  color: #fff;
}

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-top: 3px solid var(--gold-500);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(11, 27, 51, 0.5);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: block;
  line-height: 0;
  border-radius: var(--r-xs);
}

.brand img {
  height: 40px;
  width: auto;
  aspect-ratio: 572 / 136;
  transition: height 0.25s var(--ease);
}

.header.is-scrolled .brand img {
  height: 34px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.header-phone .ico {
  color: var(--gold-ink);
}

.header-phone:hover {
  color: var(--gold-ink);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 4.5vw, 4.25rem) 0 clamp(2.25rem, 3.5vw, 3rem);
  background: var(--navy-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay medido: no ponto mais claro da foto o texto branco ainda fica em 17:1. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60rem 42rem at 82% 26%, rgba(184, 149, 90, 0.16), transparent 62%),
    linear-gradient(95deg,
      rgba(6, 15, 30, 0.95) 0%,
      rgba(6, 15, 30, 0.91) 44%,
      rgba(9, 21, 40, 0.82) 62%,
      rgba(11, 27, 51, 0.72) 100%);
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
}

.hero h1 em {
  color: var(--gold-300);
}

.hero .kicker {
  color: var(--gold-300);
}

.hero .kicker::before {
  background: var(--gold-400);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.93);
}

.hero .prose {
  color: rgba(255, 255, 255, 0.79);
}

.hero .frame figcaption {
  color: rgba(255, 255, 255, 0.8);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding: 0.6rem 1.1rem 0.6rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 201, 154, 0.32);
  border-left: 3px solid var(--gold-400);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.97rem;
}

.hero-highlight strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.hero-media {
  position: relative;
}

.hero-card {
  position: absolute;
  left: -1.75rem;
  bottom: 2.75rem;
  z-index: 2;
  max-width: 17rem;
  padding: 1rem 1.25rem 1.1rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--r-xs) var(--r-xs) var(--r-md) var(--r-md);
  box-shadow: var(--shadow-lg);
}

.hero-card-role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.hero-card-name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--navy-900);
}

.hero-card-oab {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* --- Molduras de imagem -------------------------------------------------- */
.frame {
  position: relative;
}

.frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.frame figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.frame-offset::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--gold-400);
  border-radius: var(--r-md);
}

.frame-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1.25rem -1.25rem 1.9rem 1.25rem;
  border: 1px solid var(--gold-400);
  border-radius: var(--r-md);
}

.frame-hero img {
  object-position: center 16%;
}

/* --- Barra de confiança (dentro do herói) --------------------------------- */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.84);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-trust li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

.hero-trust .trust-badge::before {
  display: none;
}

.hero-trust .trust-badge {
  margin-block: -0.35rem;
}

/* --- Selo do Google ------------------------------------------------------ */
/* Perfil do Rio de Janeiro, Barra da Tijuca (CID 3012195826802151783).
   Conferido em 23/09/2026: nota 5,0 e 591 avaliações. O selo mostra +500.
   Sem aggregateRating no JSON-LD: a fonte é de terceiro e o selo é um link. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gbadge:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(226, 201, 154, 0.55);
}

.gbadge-g {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.gbadge-stars {
  display: inline-flex;
  gap: 1px;
  color: #f5b544;
}

.gbadge-star {
  width: 13px;
  height: 13px;
}

.gbadge-text {
  white-space: nowrap;
}

.gbadge-footer {
  margin-top: 1.1rem;
}

/* --- Seções -------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
}

.band-warm {
  background: var(--warm-50);
  border-block: 1px solid var(--warm-200);
}

.band-navy {
  position: relative;
  background: var(--navy-900);
  color: #f3f1ec;
  overflow: hidden;
}

.band-navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 30rem at 82% 12%, rgba(184, 149, 90, 0.17), transparent 62%),
    radial-gradient(38rem 26rem at 10% 90%, rgba(39, 70, 111, 0.45), transparent 65%);
  pointer-events: none;
}

.band-navy > * {
  position: relative;
  z-index: 1;
}

.band-navy h2,
.band-navy h3 {
  color: #fff;
}

.band-navy .prose,
.band-navy p {
  color: rgba(243, 241, 236, 0.86);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .kicker {
  justify-content: center;
}

.section-cta {
  margin-top: 2.25rem;
}

/* --- Situações (grid de cards) ------------------------------------------- */
.situations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.situations li {
  display: flex;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: var(--navy-900);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.situations li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 0.52rem;
  background: var(--gold-500);
  transform: rotate(45deg);
}

.situations li:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  padding: 1.6rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--gold-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-sm);
}

.callout p {
  max-width: 44ch;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--navy-900);
}

/* --- Split --------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.split-copy > :first-child {
  margin-top: 0;
}

.checks {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
}

.checks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  color: var(--navy-800);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.02rem;
  width: 0.44rem;
  height: 0.24rem;
  border-left: 1.8px solid var(--gold-ink);
  border-bottom: 1.8px solid var(--gold-ink);
  transform: rotate(-45deg);
}

/* --- Cards "Como podemos ajudar" ----------------------------------------- */
.help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.help {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.7rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.help:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow-md);
}

.help h3 {
  margin-bottom: 0.9rem;
}

.help p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
}

.help p:last-of-type {
  margin-bottom: 1.85rem;
}

.help .btn {
  margin-top: auto;
}

html[data-variant="divorcio"] .help-divorcio {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md), inset 0 3px 0 var(--gold-500);
}

/* --- Etapas -------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow-md);
}

.step-index {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(160deg, var(--gold-100), var(--white));
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-ink);
}

.step h3 {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.step p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* --- Faixa do escritório ------------------------------------------------- */
.firm {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
}

.firm-logo {
  display: inline-block;
  margin-bottom: 1.35rem;
}

.firm-logo img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.firm-copy .prose {
  max-width: 46ch;
}

.frame.firm-photo img {
  aspect-ratio: 4 / 3;
  object-position: center 40%;
}

.band-navy .frame figcaption {
  color: rgba(243, 241, 236, 0.72);
}

/* --- Advogada ------------------------------------------------------------ */
.lawyer {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.lawyer-photo img {
  aspect-ratio: 3 / 4;
  object-position: center 14%;
}

.lawyer-name {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.oab {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.3rem 0.8rem;
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.credentials {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.5rem;
}

.credentials li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  color: var(--ink-soft);
}

.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12rem;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg);
}

/* --- Contato + formulário ------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: start;
}

.prep {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  counter-reset: prep;
}

.prep li {
  counter-increment: prep;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy-800);
}

.prep li::before {
  content: counter(prep, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.form {
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--r-xs) var(--r-xs) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.band-warm .form,
.form {
  background: var(--white);
}

.form-head h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.65rem);
}

.form-intro {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--warm-50);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a9099;
}

.field select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b5022' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 6.5 8 10.5l4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  cursor: pointer;
}

.field textarea {
  min-height: 6.25rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.2);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(140, 47, 47, 0.12);
}

.form .btn-block {
  margin-top: 1.5rem;
}

.form-note,
.form-status {
  margin-top: 0.85rem;
  color: var(--ink-mute);
  font-size: 0.85rem;
  text-align: center;
}

.form-status {
  color: var(--wa-cta-hover);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq details[open] {
  border-color: var(--gold-300);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
  letter-spacing: -0.012em;
  border-radius: var(--r-md);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 0.72rem 1.5px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1.5px 0.72rem no-repeat,
    var(--gold-100);
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 0.72rem 1.5px no-repeat,
    var(--gold-100);
}

.faq summary:hover {
  color: var(--gold-ink);
}

.faq-body {
  padding: 0 3.6rem 1.3rem 1.35rem;
}

.faq-body p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* --- Fechamento ---------------------------------------------------------- */
.final-inner {
  max-width: 44rem;
}

.final-lead {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.42;
  color: var(--gold-200) !important;
}

.final-inner > p:not(.final-lead):not(.kicker) {
  margin-top: 1rem;
  max-width: 52ch;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- Rodapé -------------------------------------------------------------- */
.footer {
  padding: clamp(3rem, 5vw, 4.25rem) 0 2rem;
  background: var(--navy-950);
  color: rgba(243, 241, 236, 0.72);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  aspect-ratio: 572 / 136;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-sub {
  margin-top: 1.5rem;
}

.footer a {
  color: rgba(243, 241, 236, 0.86);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer a:hover {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: rgba(243, 241, 236, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(243, 241, 236, 0.13);
  font-size: 0.81rem;
  color: rgba(243, 241, 236, 0.55);
}

.footer-bottom p {
  max-width: 62ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

/* --- Botão flutuante (desktop) ------------------------------------------- */
.fab {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--wa-cta);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-decoration: none;
  box-shadow: 0 4px 10px -3px rgba(11, 27, 51, 0.32), 0 16px 34px -14px rgba(14, 136, 68, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.fab.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab:hover {
  background: var(--wa-cta-hover);
  box-shadow: 0 6px 14px -3px rgba(11, 27, 51, 0.36), 0 20px 42px -14px rgba(14, 136, 68, 0.85);
}

.fab-ico {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}

.fab-text {
  display: block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.34s var(--ease), opacity 0.22s var(--ease), margin-left 0.34s var(--ease);
}

.fab:hover .fab-text,
.fab:focus-visible .fab-text {
  max-width: 15rem;
  opacity: 1;
  margin-left: 0.6rem;
}

/* --- CTA fixo (mobile) --------------------------------------------------- */
.sticky-bar {
  display: none;
}

/* --- Reveal -------------------------------------------------------------- */
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

html.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (min-width: 1100px) {
  /* Losango dourado no vao entre as etapas — marca a sequencia sem hairline invisivel. */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.25rem;
    right: -0.9rem;
    width: 8px;
    height: 8px;
    background: var(--gold-400);
    transform: translateY(-50%) rotate(45deg);
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  /* Em 2 colunas o terceiro card ficaria orfao: ocupa a linha inteira. */
  .help-list > .help:last-child {
    grid-column: 1 / -1;
  }

  .help-list > .help:last-child p {
    max-width: 58ch;
  }

  .help-list > .help:last-child .btn-block {
    width: auto;
    align-self: flex-start;
    padding-inline: 2.25rem;
  }
}

@media (max-width: 1099px) {
  .situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    left: -1rem;
    bottom: 2.25rem;
  }
}

@media (max-width: 899px) {
  :root {
    --gutter: 1.25rem;
  }

  .hero-grid,
  .split,
  .lawyer,
  .contact-grid,
  .firm,
  .footer-grid,
  .situations,
  .help-list,
  .fields {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    align-items: start;
  }

  .hero-media {
    order: 2;
    margin-top: 0.5rem;
  }

  .frame img,
  .lawyer-photo img {
    max-height: 480px;
    aspect-ratio: 4 / 5;
  }

  .frame-hero::before,
  .frame-offset::before {
    display: none;
  }

  .hero-card {
    position: static;
    max-width: none;
    margin-top: 1.1rem;
    box-shadow: var(--shadow-sm);
  }

  .hero-bg::after {
    background:
      radial-gradient(40rem 30rem at 78% 18%, rgba(184, 149, 90, 0.14), transparent 62%),
      linear-gradient(180deg,
        rgba(6, 15, 30, 0.94) 0%,
        rgba(6, 15, 30, 0.91) 55%,
        rgba(11, 27, 51, 0.9) 100%);
  }

  .hero-trust {
    justify-content: flex-start;
    gap: 0.5rem 1.5rem;
    font-size: 0.82rem;
  }

  .fab {
    display: none;
  }

  .firm {
    gap: 2rem;
  }

  .firm-logo img {
    height: 52px;
  }

  .lawyer-photo {
    max-width: 24rem;
  }

  .header-phone,
  .header-actions .btn {
    display: none;
  }

  .brand img,
  .header.is-scrolled .brand img {
    height: 36px;
  }

  .callout {
    padding: 1.35rem 1.4rem;
  }

  .footer-bottom {
    margin-top: 2rem;
  }

  body.has-sticky {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: block;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
    transition: transform 0.28s var(--ease);
  }

  .sticky-bar.is-hidden {
    transform: translateY(130%);
    pointer-events: none;
  }

  .sticky-wa {
    display: flex;
    width: 100%;
    min-height: 56px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    text-wrap: wrap;
  }

  h2 {
    font-size: 1.65rem;
    text-wrap: wrap;
  }

  .lead {
    font-size: 1.08rem;
  }

  .situations li {
    font-size: 1.06rem;
    padding: 1.3rem 1.25rem;
  }

  .callout p {
    font-size: 1.08rem;
  }

  .help,
  .step {
    padding: 1.5rem 1.35rem;
  }

  .hero-actions .btn,
  .final-actions .btn,
  .section-cta .btn,
  .callout .btn {
    width: 100%;
  }

  .faq summary {
    padding: 1rem 1.1rem;
    font-size: 0.97rem;
  }

  .faq-body {
    padding: 0 1.1rem 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .sticky-bar,
  .skip {
    display: none !important;
  }
}
