/* =========================================================
   Iaghe Advocacia — LPs Direito Bancário e Previdenciário (padrão visual do site do escritório)
   Poppins · preto #020002 · dourado #A37B28 · dourado claro #F7EAA6 · cinza claro
   ========================================================= */

@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* Cores do site iagheadvocacia.com.br */
  --ink: #020002;
  --ink-soft: #4A4547;
  --gold: #A37B28;
  --gold-dark: #7A5B1C;      /* dourado para texto pequeno sobre claro */
  --gold-hover: #8C6A22;
  --gold-light: #F7EAA6;
  --gold-wash: #FBF4D6;
  --gray-1: #EFEFEF;
  --gray-2: #E4E4E4;
  --white: #FFFFFF;
  --line: rgba(2, 0, 2, .10);
  --line-strong: rgba(2, 0, 2, .18);
  --error: #B42318;
  /* Verde WhatsApp nos botões de contato (tom mais escuro do verde oficial #25D366, para o texto branco ficar legível) */
  --wa: #1DA851;
  --wa-hover: #168C43;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 1rem;
  --fs-small: .9rem;
  --fs-h1: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h3: clamp(1.02rem, .98rem + .25vw, 1.15rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --section-y: clamp(3.75rem, 2.6rem + 4.5vw, 6.5rem);
  --radius: 6px;
  --radius-lg: 16px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(2, 0, 2, .05), 0 12px 32px -18px rgba(2, 0, 2, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--gray-1); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 800; text-transform: uppercase; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
abbr[title] { text-decoration: none; }
strong { font-weight: 700; }
ol, ul { padding: 0; margin: 0; list-style: none; }
svg { flex: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.sprite { position: absolute; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.sec-head { display: grid; gap: .8rem; max-width: 46rem; }
.sec-head p { color: var(--ink-soft); max-width: 36rem; }

.ico-badge { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--gold-wash); color: var(--gold-dark); transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.ico-badge svg { width: 24px; height: 24px; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow svg { width: 20px; height: 20px; color: var(--gold); }

/* ---------- Botões de contato (verde WhatsApp) ---------- */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: var(--h); padding: 0 1.4rem;
  border: 0; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .ico { width: 1.3em; height: 1.3em; flex: none; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: rotate(-8deg) scale(1.08); }
.btn:active { transform: translateY(1px); }
.btn-lg { --h: 58px; font-size: 1.05rem; padding: 0 1.75rem; }
.btn-sm { --h: 42px; padding: 0 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -14px rgba(29, 168, 81, .95); }
.btn-wa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.2) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa:hover::before { transform: translateX(120%); }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn.is-loading .ico { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--gold-dark); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }

.show-xs { display: inline; }
.hide-xs { display: none; }
@media (min-width: 560px) { .show-xs { display: none; } .hide-xs { display: inline; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .96); transition: box-shadow .35s var(--ease); }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(2, 0, 2, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.75rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; }
@media (max-width: 559px) { .brand-logo { height: 46px; } }
.header-nav { display: none; gap: 1.6rem; font-size: .9rem; font-weight: 500; }
.header-nav a { position: relative; text-decoration: none; color: var(--ink-soft); padding-block: .5rem; transition: color .2s ease; }
.header-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header-nav a:hover { color: var(--ink); }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 1060px) { .header-nav { display: flex; } }
.header-sentinel { position: absolute; top: 24px; left: 0; width: 1px; height: 1px; }

/* ---------- Fotos ---------- */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--gray-2); }
.media img { width: 100%; height: 100%; object-fit: cover; background: var(--gray-2); }
.media-tall { aspect-ratio: 4 / 5; }
.media-wide { aspect-ratio: 1152 / 464; }
.media-wide img { object-position: 50% 50%; }
img.is-missing { opacity: 0 !important; }

/* =========================================================
   HERO — branco, título em caixa alta, foto do Dr. Danyllo
   ========================================================= */
.hero { position: relative; background: var(--white); padding: calc(var(--header-h) + clamp(1.75rem, 5vw, 4rem)) 0 clamp(2.75rem, 6vw, 4.75rem); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: var(--fs-h1); line-height: 1.04; max-width: 13ch; }
.hero-sub { margin-top: 1.1rem; max-width: 32rem; font-size: clamp(1rem, .96rem + .3vw, 1.15rem); color: var(--ink-soft); }
.hero-criterion { margin-top: 1.5rem; max-width: 27rem; display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem .85rem .9rem; background: var(--gold-light); border-radius: 12px; }
.crit-ico { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--white); color: var(--gold-dark); }
.hero-criterion p { font-size: 1.05rem; line-height: 1.3; font-weight: 500; }
.crit-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .1rem; }
.hero-criterion strong { font-weight: 800; white-space: nowrap; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
@media (max-width: 559px) { .hero-actions .btn { width: 100%; } }
.hero-photo { aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -36px rgba(2, 0, 2, .55); }
.hero-photo img { object-position: 52% 40%; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 4 / 3; } }

/* =========================================================
   ASSUNTOS — "Vamos conversar?" com botões dourados
   ========================================================= */
.topics { background: linear-gradient(180deg, var(--gray-1), var(--gray-2)); }
.topics-head { text-align: center; max-width: 40rem; margin-inline: auto; display: grid; gap: .6rem; }
.topics-head h2 { color: var(--gold); }
.topics-head p { color: var(--ink-soft); }
.topic-list { margin: clamp(1.75rem, 4vw, 2.5rem) auto 0; max-width: 60rem; display: grid; gap: .75rem; }
@media (min-width: 720px) { .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; } }
.topic-btn {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  min-height: 76px; padding: 1rem 1.25rem;
  background: var(--gold); color: var(--white); text-decoration: none;
  border-radius: var(--radius); font-size: 1rem; line-height: 1.3;
  box-shadow: 0 10px 24px -18px rgba(122, 91, 28, .9);
  transition: background-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.topic-btn svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.topic-btn span { display: grid; }
.topic-btn strong { font-weight: 700; font-size: 1.08rem; }
.topic-btn:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(122, 91, 28, 1); }
.topic-btn[aria-pressed="true"] { background: var(--ink); }

/* =========================================================
   SITUAÇÕES
   ========================================================= */
.situations { background: var(--white); }
.sit-grid { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: .9rem; }
@media (min-width: 620px) { .sit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1040px) { .sit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sit { position: relative; background: var(--gray-1); border-radius: var(--radius-lg); padding: 1.5rem 1.35rem 1.6rem; display: grid; gap: .5rem; align-content: start; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease); }
.sit::after { content: ""; position: absolute; left: 1.35rem; right: 1.35rem; bottom: 0; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sit .ico-badge { margin-bottom: .5rem; background: var(--white); }
.sit p { color: var(--ink-soft); font-size: .95rem; }
.sit:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); }
.sit:hover::after { transform: scaleX(1); }
.sit:hover .ico-badge { background: var(--gold); color: var(--white); }
@media (max-width: 619px) { .sit { grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.15rem; } .sit .ico-badge { grid-row: span 2; margin-bottom: 0; } }

/* =========================================================
   SUPERENDIVIDAMENTO
   ========================================================= */
.debt { background: linear-gradient(180deg, var(--gray-1), var(--gray-2)); }
.debt-grid { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .debt-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: center; } }
.debt-visual { position: relative; padding-bottom: 2.5rem; }
.debt-visual .media { aspect-ratio: 864 / 805; width: 92%; }
.threshold { position: absolute; right: 0; bottom: 0; z-index: 1; display: grid; gap: .2rem; justify-items: start; padding: 1.1rem 1.4rem 1.2rem; border-radius: 12px; background: var(--gold); color: var(--white); box-shadow: 0 30px 60px -30px rgba(2, 0, 2, .6); min-width: min(18rem, 78%); }
.th-small { font-size: .85rem; opacity: .92; }
.th-big { font-weight: 800; font-size: clamp(2.6rem, 2rem + 2.6vw, 3.8rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.debt-body .eyebrow { margin-bottom: .9rem; }
.debt-body h2 { max-width: 16ch; }
.debt-lead { margin-top: 1rem; color: var(--ink-soft); max-width: 31rem; }
.debt-note { margin-top: 1.3rem; font-size: .85rem; color: var(--ink-soft); max-width: 31rem; padding-left: .9rem; border-left: 3px solid var(--gold); }
.debt-body .btn { margin-top: 1.7rem; }
.debt-meter { margin-top: 3.2rem; max-width: 31rem; }
.meter-track { position: relative; display: flex; height: 40px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); }
.seg { position: relative; width: var(--w); height: 100%; transform-origin: left; }
.seg:first-child { border-radius: 5px 0 0 5px; }
.seg + .seg { border-left: 1px solid var(--white); }
.seg i { position: absolute; left: .55rem; bottom: .55rem; font: normal 600 .72rem/1 var(--font); color: var(--ink); white-space: nowrap; }
.seg-a { background: #E8DDB8; }
.seg-b { background: #D9C690; }
.seg-c { background: #C8AE68; }
.meter-mark { position: absolute; top: -12px; bottom: -12px; left: var(--at); width: 2px; background: var(--ink); }
.meter-mark b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: .78rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.meter-caption { margin-top: .9rem; font-size: .8rem; color: var(--ink-soft); }
/* Previdenciário: lista de documentos no lugar do medidor */
.doc-check { margin-top: 2rem; max-width: 31rem; padding: 1.25rem 1.35rem; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.doc-check-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .75rem; }
.doc-check ul { display: grid; gap: .6rem; }
.doc-check li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; font-weight: 500; }
.doc-check svg { width: 22px; height: 22px; margin-top: .1rem; padding: 3px; border-radius: 50%; background: var(--gold-wash); color: var(--gold-dark); }
@media (max-width: 420px) { .seg i { font-size: .64rem; left: .35rem; } }

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.steps { background: var(--white); }
.steps-head { display: grid; gap: .8rem; }
.steps-head p { color: var(--ink-soft); }
@media (min-width: 900px) { .steps-head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; } }
.media-wide { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.step-list { position: relative; display: grid; background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem 1.35rem; margin-top: -2rem; margin-inline: .75rem; box-shadow: 0 30px 60px -36px rgba(2, 0, 2, .45); }
.step-list li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1rem 0; }
.step-list li + li { border-top: 1px solid var(--line); }
.step-ico { grid-row: span 2; position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--white); }
.step-ico svg { width: 24px; height: 24px; }
.step-ico b { position: absolute; top: -4px; right: -6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .72rem; font-weight: 700; }
.step-list h3 { padding-top: .2rem; }
.step-list p { margin-top: .3rem; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 860px) {
  .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding: 2rem 2.25rem 2.25rem; margin-top: -4.5rem; margin-inline: clamp(1.5rem, 4vw, 3rem); }
  .step-list::before { content: ""; position: absolute; top: calc(2rem + 26px); left: calc(2.25rem + 26px); right: calc(2.25rem + (100% - 9.5rem) / 3 - 26px); height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; }
  .step-list li { display: block; padding: 0; }
  .step-list li + li { border-top: 0; }
  .step-ico { margin-bottom: 1.1rem; box-shadow: 0 0 0 8px var(--white); }
}

/* =========================================================
   ESCRITÓRIO
   ========================================================= */
.about { background: linear-gradient(180deg, var(--gray-1), var(--gray-2)); }
.about-grid { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.about-visual .media { width: 100%; max-width: 28rem; box-shadow: var(--shadow); }
.about-lead { margin-top: 1rem; font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); color: var(--ink-soft); max-width: 34rem; }
.about-text { margin-top: .9rem; color: var(--ink-soft); max-width: 34rem; }
/* Mosaico com a estrutura do escritório */
.about-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.4vw, .9rem); }
.about-mosaic .media { margin: 0; max-width: none; box-shadow: var(--shadow); }
.about-mosaic .media:nth-child(-n+2) { aspect-ratio: 4 / 5; }
.about-mosaic .media:nth-child(n+3) { aspect-ratio: 4 / 3; }
.about-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.lawyer-card { margin-top: 1.75rem; padding: 1.1rem 1.25rem; background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius); display: grid; gap: .1rem; max-width: 26rem; }
.lawyer-name { font-weight: 700; font-size: 1.1rem; }
.lawyer-role { color: var(--ink-soft); font-size: var(--fs-small); }
.regions { margin-top: 2rem; }
.regions-title { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.regions-title svg { width: 20px; height: 20px; color: var(--gold); }
.state-list { margin-top: .9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 34rem; }
@media (min-width: 520px) { .state-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.state-list li { display: grid; gap: .1rem; padding: .85rem 1rem .9rem; background: var(--white); border-radius: 10px; border-bottom: 3px solid var(--gold); transition: transform .3s var(--ease); }
.state-list li:hover { transform: translateY(-3px); }
.state-list abbr { font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.state-list span { font-size: .78rem; color: var(--ink-soft); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--white); }
.faq-grid { display: grid; gap: 2rem; }
.faq-side p { margin-top: .9rem; color: var(--ink-soft); max-width: 22rem; }
.faq-side .text-link { margin-top: .5rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 5rem; align-items: start; } .faq-side { position: sticky; top: calc(var(--header-h) + 2rem); } }
.faq-list { display: grid; gap: .6rem; }
.faq details { background: var(--gray-1); border-radius: 12px; transition: background-color .3s var(--ease); }
.faq details[open] { background: var(--gold-wash); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: 1rem 1.15rem 1rem 1.35rem; min-height: 56px; font-weight: 600; font-size: 1rem; line-height: 1.4; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: linear-gradient(var(--white), var(--white)) center / 10px 2px no-repeat, linear-gradient(var(--white), var(--white)) center / 2px 10px no-repeat, var(--gold); transition: transform .35s var(--ease), background-size .35s var(--ease); }
.faq details[open] > summary::after { transform: rotate(180deg); background-size: 10px 2px, 2px 0, auto; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 3.6rem 1.2rem 1.35rem; color: var(--ink-soft); max-width: 44rem; font-size: .95rem; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  --contact-bg: url("/assets/img/contato-fundo-1600.webp");
  --contact-bg-sm: url("/assets/img/contato-fundo-900.webp");
  background-color: #0B0A09; color: var(--white); overflow: hidden; isolation: isolate;
}
.contact::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--contact-bg) center / cover no-repeat; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 7, 6, .92) 0%, rgba(8, 7, 6, .72) 45%, rgba(8, 7, 6, .3) 100%); }
@media (max-width: 899px) { .contact::before { background-image: var(--contact-bg-sm); background-position: center right; } .contact::after { background: linear-gradient(180deg, rgba(8, 7, 6, .88) 0%, rgba(8, 7, 6, .7) 100%); } }
.contact-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: 5rem; } }
.contact h2 { max-width: 14ch; color: var(--white); }
.contact-copy > p { margin-top: 1rem; color: rgba(255, 255, 255, .82); max-width: 30rem; }
.contact-flow { margin-top: 1.75rem; display: grid; gap: .85rem; max-width: 30rem; }
.contact-flow li { display: flex; align-items: center; gap: .9rem; font-size: var(--fs-small); font-weight: 500; color: rgba(255, 255, 255, .92); }
.contact-flow span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--white); }
.contact-flow svg { width: 19px; height: 19px; }
.contact .lead-form { color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.lead-form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.1rem); box-shadow: 0 30px 60px -34px rgba(122, 91, 28, .7); display: grid; gap: 1.1rem; border-top: 5px solid var(--gold); }
.form-title { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.form-topic { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .6rem .8rem; background: var(--gold-wash); border-radius: var(--radius); font-size: .88rem; }
.form-topic strong { color: var(--gold-dark); }
.form-topic button { margin-left: auto; border: 0; background: none; padding: .25rem .35rem; font: 600 .8rem var(--font); color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.label-hint { font-weight: 400; color: var(--ink-soft); }
.field input { width: 100%; min-height: 54px; padding: .8rem 1rem; font: 400 1rem/1.3 var(--font); color: var(--ink); background: var(--white); border: 1px solid #C9C4C1; border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease; }
.field input::placeholder { color: #8E8789; }
.field input:hover { border-color: #9C9597; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(163, 123, 40, .25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: .85rem; color: var(--error); }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--gold-dark); font-weight: 600; }
.privacy { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--ink-soft); }
.privacy svg { width: 16px; height: 16px; margin-top: .1rem; color: var(--gold-dark); }

/* =========================================================
   RODAPÉ
   ========================================================= */
.site-footer { background: var(--white); color: var(--ink-soft); font-size: .85rem; padding: clamp(2.75rem, 6vw, 3.75rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 4px solid var(--gold); }
.footer-top { display: grid; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.footer-logo { height: 72px; width: auto; display: block; }
.footer-info { display: grid; gap: .25rem; }
.footer-name { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.footer-top-link { justify-self: start; }
.footer-bottom { display: grid; gap: .75rem; padding-top: 1.4rem; font-size: .78rem; }
.footer-bottom p:first-child { max-width: 44rem; }
@media (min-width: 860px) { .footer-top { grid-template-columns: auto 1fr auto; gap: 3rem; align-items: center; } .footer-bottom { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- CTA fixo no celular ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem max(var(--gutter), env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 35%); transform: translateY(110%); transition: transform .45s var(--ease); pointer-events: none; }
.mobile-cta.is-on { transform: none; pointer-events: auto; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* =========================================================
   MOVIMENTO
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease); transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s; }
  .js [data-stagger].is-in > * { opacity: 1; transform: none; }
  .js .sit-grid.is-in > .sit:hover { transform: translateY(-4px); transition-delay: 0s; }

  .js .debt-meter[data-anim] .seg { transform: scaleX(0); transition: transform 1.1s var(--ease); }
  .js .debt-meter[data-anim] .seg-b { transition-delay: .12s; }
  .js .debt-meter[data-anim] .seg-c { transition-delay: .24s; }
  .js .debt-meter[data-anim] .meter-mark { opacity: 0; transform: translateY(-8px); transition: opacity .5s .9s var(--ease), transform .5s .9s var(--ease); }
  .js .debt-meter.is-in .seg { transform: scaleX(1); }
  .js .debt-meter.is-in .meter-mark { opacity: 1; transform: none; }
  @media (min-width: 860px) {
    .js .step-list[data-anim]::before { transform: scaleX(0); transition: transform 1.4s .3s var(--ease); }
    .js .step-list.is-in::before { transform: scaleX(1); }
  }

  .js .hero-copy > * { animation: rise .9s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .js .hero-photo { animation: photo-in 1.2s .1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes photo-in { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

  @supports (animation-timeline: view()) {
    .parallax img { scale: 1.14; animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Celular */
@media (max-width: 859px) {
  .media-tall { aspect-ratio: 4 / 3; }
  .media-tall img { object-position: 50% 30%; }
  .about-visual .media { max-width: none; }
  .media-wide { aspect-ratio: 16 / 10; }
  .media-wide img { object-position: 45% 50%; }
}
