/* Landing page de busca e apreensão. Mesmas cores, fontes e ornamentos do site. */
:root {
  --navy: #1C2844;
  --navy-d: #172138;
  --gold: #B68850;
  --gold-l: #D2AE80;
  --gold-d: #8D6838;
  --cream: #EDE6DA;
  --paper: #F4EEE4;
  --ink: #1C2844;
  --ink-2: #4A5266;
  --muted: rgba(237, 230, 218, .8);
  --line: rgba(182, 136, 80, .38);
  --line-p: rgba(141, 104, 56, .28);
  --serif: "Q Garamond", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --spring: cubic-bezier(.22, 1, .36, 1);
  --press: cubic-bezier(.3, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--cream);
  font: 400 19px/1.6 var(--sans);
  background: var(--navy-d);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Fundo do topo: foto do escritório escurecida */
.bg {
  position: absolute; inset: 0 0 auto; height: 100vh; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 33, 56, .55), rgba(23, 33, 56, .96) 75%, var(--navy-d)),
    url(../img/hero.webp) center top / cover no-repeat;
}

/* Topo */
.hero { padding: max(28px, env(safe-area-inset-top)) 0 44px; text-align: center; }
.logo { display: inline-block; }
.logo img { width: 84px; height: auto; display: block; }
.selo { margin-top: 22px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); text-wrap: balance; }
h1 {
  margin-top: 14px;
  font: 500 clamp(34px, 5.4vw + 14px, 52px)/1.06 var(--serif);
  letter-spacing: -.005em; text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-l); }
.sub { margin: 18px auto 0; max-width: 30em; color: var(--muted); text-wrap: balance; }

/* Escolha da situação: linhas iguais que se abrem */
.escolha { margin-top: 30px; text-align: left; display: grid; gap: 10px; }
.escolha__tit { text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 2px; }
.opcao {
  width: 100%; display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 16px;
  min-height: 96px; padding: 14px 18px 14px 14px; border-radius: 6px; text-align: left;
  background: rgba(23, 33, 56, .66); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.opcao__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-l); }
.opcao__ic svg { width: 21px; height: 21px; }
.opcao__txt b { display: block; font: 500 24px/1.15 var(--serif); color: var(--cream); }
.opcao__txt span { display: block; margin-top: 3px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.opcao__seta { width: 18px; height: 18px; color: var(--gold); transition: transform 320ms var(--spring); }
.opcao[aria-expanded="true"] { border-color: var(--gold); background: rgba(28, 40, 68, .9); border-radius: 6px 6px 0 0; border-bottom-color: transparent; }
.opcao[aria-expanded="true"] .opcao__seta { transform: rotate(180deg); }

.caso {
  margin-top: -10px; padding: 4px 20px 22px; border-radius: 0 0 6px 6px;
  background: rgba(28, 40, 68, .9); border: 1px solid var(--gold); border-top: 0;
  animation: abre 420ms var(--spring);
}
.caso__tit { font: 500 26px/1.15 var(--serif); color: var(--gold-l); }
.caso__lista { margin: 12px 0 20px; display: grid; gap: 10px; }
.caso__lista li { position: relative; padding-left: 22px; font-size: 18px; line-height: 1.5; }
.caso__lista li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
@keyframes abre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Botão do WhatsApp */
.botao {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 24px; border-radius: 6px;
  background: var(--gold); color: var(--navy-d);
  font: 500 14px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center;
  box-shadow: 0 14px 30px -16px rgba(182, 136, 80, .9);
}
.botao svg { width: 22px; height: 22px; flex: none; }
.hora { margin-top: 14px; text-align: center; font-size: 16px; color: var(--muted); }

/* Vídeo do advogado: começa sem som quando aparece; com som só pelo botão */
.video { margin: 36px auto 0; max-width: 300px; }
.video__tit { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 12px; text-wrap: balance; }
.video__quadro { position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8); }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__som {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: rgba(23, 33, 56, .72); color: var(--cream); border: 1px solid var(--gold);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 500 14px/1 var(--sans); letter-spacing: .06em; white-space: nowrap;
  transition: transform 140ms var(--press), opacity 260ms ease;
}
.video__som svg { width: 20px; height: 20px; color: var(--gold-l); }
.video__som.is-pressed, .video__som:active { transform: translateX(-50%) scale(.96); }
.video.com-som .video__som { opacity: 0; pointer-events: none; }
.video__wa { margin-top: 16px; }
/* Papel creme com textura sutil */
.papel {
  color: var(--ink); padding: 20px 0 calc(32px + env(safe-area-inset-bottom));
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E"),
    var(--paper);
}
.bloco { padding-top: 44px; padding-bottom: 8px; }
.papel h2 { text-align: center; font: 500 clamp(32px, 3vw + 22px, 42px)/1.1 var(--serif); text-wrap: balance; }
.papel h2 em { color: var(--gold-d); }

/* Ornamento: filete, losango, filete */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin-bottom: 16px; }
.orn::before, .orn::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .7; }
.orn i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* Como trabalhamos: linhas iguais */
.etapas { margin-top: 26px; border-top: 1px solid var(--line-p); }
.etapas li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-p); }
.etapas__n { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font: 500 22px/1 var(--serif); color: var(--gold-d); }
.etapas b { display: block; font: 500 23px/1.2 var(--serif); }
.etapas p { margin-top: 2px; color: var(--ink-2); }

/* Quem cuida do seu caso */
.adv { margin-top: 26px; display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: center; }
.adv img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; padding: 3px; border: 1px solid var(--gold); }
.adv b { display: block; font: 500 26px/1.15 var(--serif); }
.adv__oab { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
.adv p { margin-top: 8px; color: var(--ink-2); }
.fatos { margin-top: 24px; border-top: 1px solid var(--line-p); }
.fatos li { display: grid; grid-template-columns: 168px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-p); }
.fatos b { font: 500 22px/1.25 var(--serif); }
.fatos span { color: var(--ink-2); }

/* Dúvidas */
.duvidas { margin-top: 26px; border-top: 1px solid var(--line-p); }
.duvidas details { border-bottom: 1px solid var(--line-p); }
.duvidas summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 18px; gap: 16px; align-items: center;
  min-height: 64px; padding: 14px 0; font: 500 23px/1.25 var(--serif);
  -webkit-tap-highlight-color: transparent;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: ""; width: 10px; height: 10px; justify-self: center; margin-top: -4px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); transition: transform 320ms var(--spring);
}
.duvidas details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.duvidas details p { padding: 0 34px 20px 0; color: var(--ink-2); }
.duvidas details[open] p { animation: abre 380ms var(--spring); }

/* Chamada final */
.fim { margin-top: 48px; padding-top: 40px; padding-bottom: 40px; text-align: center; border-top: 1px solid var(--line-p); }
.fim p { margin: 12px auto 24px; max-width: 24em; color: var(--ink-2); text-wrap: balance; }
.fim .botao { max-width: 420px; margin: 0 auto; }
.fim .hora { color: var(--ink-2); }
.base { text-align: center; font-size: 15px; color: var(--ink-2); }
.base p + p { margin-top: 6px; }
.base a { border-bottom: 1px solid var(--line-p); }

/* Resposta ao toque no momento em que o dedo encosta */
.opcao, .botao, .duvidas summary { touch-action: manipulation; user-select: none; }
.opcao, .botao { transition: transform 140ms var(--press), background-color 200ms ease, border-color 200ms ease; }
.opcao.is-pressed, .botao.is-pressed, .opcao:active, .botao:active { transform: scale(.97); }
@media (hover: hover) {
  .botao:hover { background: var(--gold-l); }
  .opcao:hover { border-color: var(--gold); }
}

/* Celular estreito */
@media (max-width: 520px) {
  .fatos li { grid-template-columns: 1fr; gap: 2px; }
  .adv { grid-template-columns: 84px 1fr; gap: 16px; }
  .adv img { width: 84px; height: 84px; }
}

/* Revisão de financiamento: convite à calculadora */
.calc { text-align: center; }
.calc > p { margin: 14px auto 22px; max-width: 30em; color: var(--ink-2); text-wrap: balance; }
.botao--contorno { max-width: 360px; margin: 0 auto; background: transparent; color: var(--navy); border: 1px solid var(--gold-d); box-shadow: none; }

/* Entrada em sequência, uma vez só */
.rv { opacity: 0; transform: translateY(14px); animation: sobe 600ms var(--spring) forwards; animation-delay: calc(var(--i, 0) * 50ms + 60ms); }
@keyframes sobe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; animation: none; }
  .caso, .duvidas details[open] p { animation: none; }
  .opcao, .botao, .opcao__seta, .duvidas summary::after { transition: none; }
  .opcao:active, .botao:active, .is-pressed { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #fff; --cream: #fff; --gold-l: #E2C08F; --line: rgba(182, 136, 80, .8); --ink-2: #1C2844; }
}
