/* Caio Lessa, advogado — estilos do site
   Paleta: azul-marinho (#121A30), roxo sóbrio (#692F93; o roxo #9C06EE fica só na logo),
   lavanda (#BDB4E3) e branco.
   Títulos em Montserrat, como na logo; textos em Inter. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --asfalto: #121a30;
  --asfalto-2: #1c2542;
  --faixa: #692f93;
  --faixa-escura: #56247b;
  --faixa-clara: #a473ce;
  --lavanda: #bdb4e3;
  --tinta: #13232e;
  --grafite: #4b5c66;
  --nevoa: #eef2f3;
  --linha: #d4dde1;
  --branco: #ffffff;
  --sobre-asfalto: #e8e6f3;
  --sobre-asfalto-2: #bdb4e3;

  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largura: 72rem;
  --medida: 38rem;
  --respiro: clamp(2.75rem, 7vw, 5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 0.2em; }

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

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--faixa);
  color: var(--branco);
  font-weight: 600;
  z-index: 50;
}
.pular:focus { top: 1rem; }

.miolo {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 6.4vw, 3.45rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); }
h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
p { margin: 0; max-width: var(--medida); }

/* ---------- Cabeçalho ---------- */

.topo {
  background: var(--asfalto);
  color: var(--branco);
}
.topo .miolo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.marca { gap: 0.7rem; }
.marca__simbolo { height: 2.6rem; width: auto; }
.marca__texto {
  display: grid;
  gap: 0.35rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(189, 180, 227, 0.4);
}
.marca__nome {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--branco);
}
.marca__sub {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lavanda);
}
@media (max-width: 380px) {
  .marca__simbolo { height: 2.3rem; }
  .marca__nome { font-size: 1.15rem; }
  .marca__sub { font-size: 0.62rem; }
}

.topo__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 6px;
}
.topo__link svg { width: 1.1rem; height: 1.1rem; }
.topo__link:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-family: var(--texto);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.botao svg { width: 1.35rem; height: 1.35rem; flex: none; }

.botao--whats {
  background: var(--faixa);
  color: var(--branco);
  border: 0;
}
.botao--whats:hover { background: var(--faixa-escura); }

.botao--contorno {
  background: transparent;
  color: var(--asfalto);
  border: 1.5px solid var(--asfalto);
}
.botao--contorno:hover { background: var(--nevoa); }

/* ---------- Abertura (hero) ---------- */

.abertura {
  background: var(--asfalto);
  color: var(--branco);
  padding: clamp(2rem, 5.5vw, 3.75rem) 0 clamp(2.5rem, 6.5vw, 4.25rem);
}
.abertura .miolo {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}
.abertura h1 { max-width: 20ch; }
.abertura__texto { display: grid; gap: 1.25rem; align-content: start; }
.abertura__lead {
  font-size: clamp(1.1rem, 2.6vw, 1.25rem);
  color: var(--sobre-asfalto);
}
.abertura__nota {
  font-size: 0.95rem;
  color: var(--sobre-asfalto-2);
  max-width: 30rem;
}
.abertura__acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.abertura--clara {
  background: var(--branco);
  color: var(--asfalto);
}
.abertura--clara .abertura__lead { color: var(--tinta); }
.abertura--clara .abertura__nota { color: var(--grafite); }

/* Assinatura do advogado junto ao botão */
.assinatura {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.assinatura__foto {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2px;
  background: #000;
}
.assinatura__foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.assinatura p { display: grid; line-height: 1.3; font-size: 0.95rem; color: var(--sobre-asfalto-2); }
.assinatura strong { color: var(--branco); font-weight: 600; font-size: 1rem; }
.abertura--clara .assinatura p { color: var(--grafite); }
.abertura--clara .assinatura strong { color: var(--asfalto); }

/* ---------- Trilha (as fases, como faixa de estrada) ---------- */

.trilha-bloco {
  align-self: start;
}
.trilha-bloco__titulo {
  font-family: var(--texto);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sobre-asfalto);
  margin: 0 0 1.25rem;
}
.trilha-bloco--painel {
  background: var(--asfalto);
  color: var(--branco);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 2rem;
}
.trilha-bloco__rodape {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--sobre-asfalto-2);
}

.trilha {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2.6rem;
  position: relative;
  display: grid;
  gap: 1.4rem;
}
.trilha::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--faixa-clara) 0 14px,
    transparent 14px 26px
  );
  transform-origin: top;
}
.trilha li { position: relative; }
.trilha li::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--asfalto);
  border: 4px solid var(--faixa-clara);
}
.trilha__fase {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--branco);
}
.trilha__desc {
  display: block;
  margin-top: 0.35rem;
  color: var(--sobre-asfalto-2);
  font-size: 0.98rem;
  max-width: 28rem;
}

@media (prefers-reduced-motion: no-preference) {
  .js .trilha::before { animation: pintar-faixa 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s both; }
  .js .trilha li { animation: surgir 0.45s ease both; }
  .js .trilha li:nth-child(1) { animation-delay: 0.25s; }
  .js .trilha li:nth-child(2) { animation-delay: 0.55s; }
  .js .trilha li:nth-child(3) { animation-delay: 0.85s; }
  .js .trilha li:nth-child(4) { animation-delay: 1.15s; }
}
@keyframes pintar-faixa { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes surgir { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Seções ---------- */

.secao { padding: var(--respiro) 0; }
.secao--nevoa { background: var(--nevoa); }
.secao__cabeca { display: grid; gap: 0.85rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.secao__cabeca p { color: var(--grafite); }

/* Lista de situações / áreas: termo + explicação, separados por fios */
.casos {
  margin: 0;
  display: grid;
  gap: 0;
}
.casos > div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--linha);
}
.casos > div:last-child { border-bottom: 1px solid var(--linha); }
.casos dt {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
}
.casos dd {
  margin: 0.35rem 0 0;
  color: var(--grafite);
  max-width: var(--medida);
}

/* Passos numerados (sequência real) */
.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: passo;
}
.passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1rem;
}
.passos li::before {
  content: counter(passo);
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 0.95;
  color: var(--faixa);
}
.passos h3 { align-self: end; }
.passos p { color: var(--grafite); margin-top: 0.3rem; }
.passos__nota {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--faixa);
  color: var(--tinta);
}

/* Quem cuida do caso */
.advogado {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
.advogado__foto {
  width: 9.5rem;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--asfalto) url("/img/monograma.png") center / 78% no-repeat;
}
.advogado__foto img { width: 100%; height: 100%; object-fit: cover; }
.advogado__foto--grande { width: 13rem; }
.advogado__texto { display: grid; gap: 0.9rem; }
.advogado__nome { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.advogado__oab { color: var(--grafite); font-size: 0.98rem; margin-top: -0.4rem; }

/* Perguntas frequentes */
.perguntas { border-top: 1px solid var(--linha); max-width: 48rem; }
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.4;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border-right: 2.5px solid var(--asfalto);
  border-bottom: 2.5px solid var(--asfalto);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.perguntas details[open] summary::after { transform: rotate(225deg); margin-top: 0.6rem; }
.perguntas details p { padding: 0 0 1.2rem; color: var(--grafite); }

/* Chamada final */
.fecho {
  background: var(--asfalto);
  color: var(--branco);
  padding: var(--respiro) 0;
}
.fecho .miolo { display: grid; gap: 1.2rem; justify-items: start; }
.fecho p { color: var(--sobre-asfalto); font-size: 1.1rem; }
.fecho .fecho__horario { font-size: 0.95rem; color: var(--sobre-asfalto-2); }

/* Faixa de remissão (outra área) */
.remissao {
  padding: 1.75rem 0;
  background: var(--nevoa);
}
.remissao .miolo {
  display: grid;
  gap: 0.75rem;
}
.remissao a { font-weight: 600; color: var(--faixa-escura); }

/* Contato (página inicial) */
.contato { display: grid; gap: 2rem; }
.contato__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contato__lista span { display: block; font-size: 0.9rem; color: var(--grafite); }
.contato__lista a,
.contato__lista strong { font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contato__lista a:hover { text-decoration: underline; }

/* Rodapé */
.rodape {
  background: #0c1222;
  color: var(--sobre-asfalto-2);
  font-size: 0.92rem;
  padding: 2rem 0;
}
.rodape--com-barra { padding-bottom: 6.5rem; }
.rodape .miolo { display: grid; gap: 1.25rem; }
.rodape__id { display: grid; gap: 0.15rem; }
.rodape__id strong { color: var(--branco); font-weight: 600; }
.rodape__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.rodape__links a { color: var(--sobre-asfalto); }

/* Barra fixa do WhatsApp no celular */
.barra-whats {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(18, 26, 48, 0.96);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.barra-whats .botao { width: 100%; }
.barra-whats.visivel { transform: none; }

/* Aviso de cookies */
.aviso-cookies {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  max-width: 34rem;
  margin: 0 auto;
  background: var(--branco);
  color: var(--tinta);
  border: 1px solid var(--linha);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18, 26, 48, 0.18);
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { flex: 1; }
.aviso-cookies button {
  flex: none;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1.5px solid var(--asfalto);
  background: var(--asfalto);
  color: var(--branco);
  cursor: pointer;
}

.barra-ativa .aviso-cookies { bottom: 5.5rem; }

/* Funil de qualificação antes do WhatsApp */
.funil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.funil[hidden] { display: none; }
.funil__fundo {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 48, 0.72);
}
.funil__caixa {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--branco);
  color: var(--tinta);
  border-radius: 14px 14px 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(18, 26, 48, 0.25);
}
.funil__caixa:focus { outline: none; }
.funil__topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.funil__titulo { font-weight: 600; font-size: 0.95rem; color: var(--grafite); }
.funil__fechar {
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--nevoa);
  color: var(--asfalto);
  cursor: pointer;
}
.funil__progresso { font-size: 0.88rem; color: var(--grafite); margin-bottom: 0.3rem; }
.funil__pergunta {
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  color: var(--asfalto);
}
.funil__pergunta:focus { outline: none; }
.funil__opcoes { display: grid; gap: 0.6rem; }
.funil__opcoes button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 0.95rem 1rem;
  min-height: 3.25rem;
  border-radius: 8px;
  border: 1.5px solid var(--linha);
  background: var(--branco);
  color: var(--tinta);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.funil__opcoes button:hover { border-color: var(--faixa); background: #f4f0f8; }
.funil__texto { color: var(--grafite); margin-bottom: 1.25rem; }
.funil__enviar { width: 100%; }
.botao--contorno-claro {
  background: transparent;
  color: var(--asfalto);
  border: 1.5px solid var(--asfalto);
}
.botao--contorno-claro:hover { background: var(--nevoa); }
.funil__voltar {
  font: inherit;
  font-size: 0.95rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--grafite);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.funil-aberto { overflow: hidden; }
.funil-aberto .barra-whats,
.funil-aberto .aviso-cookies { display: none; }

@media (min-width: 720px) {
  .funil { align-items: center; padding: 1.5rem; }
  .funil__caixa { border-radius: 14px; padding: 1.5rem 1.75rem 1.75rem; }
}

/* Texto corrido (política de privacidade) */
.texto-corrido { padding: var(--respiro) 0; }
.texto-corrido .miolo { max-width: 46rem; }
.texto-corrido h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin-bottom: 1rem; }
.texto-corrido h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }
.texto-corrido p,
.texto-corrido li { color: var(--tinta); }
.texto-corrido p + p { margin-top: 1rem; }
.texto-corrido ul { padding-left: 1.2rem; margin: 0.75rem 0 0; }
.texto-corrido li + li { margin-top: 0.4rem; }
.texto-corrido .atualizacao { color: var(--grafite); font-size: 0.95rem; }

/* ---------- Telas maiores ---------- */

@media (min-width: 720px) {
  .miolo { padding: 0 2rem; }
  .casos { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .casos > div:nth-last-child(2) { border-bottom: 1px solid var(--linha); }
  .passos { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .advogado { grid-template-columns: 12rem 1fr; gap: 2rem; }
  .advogado__foto { width: 12rem; }
  .advogado:has(.advogado__foto--grande) { grid-template-columns: 17rem 1fr; }
  .advogado__foto--grande { width: 17rem; }
  .contato { grid-template-columns: 1fr 1fr; align-items: start; }
  .remissao .miolo { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .abertura .miolo { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .abertura--clara .miolo { align-items: start; }
  .passos { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .passos li { display: block; }
  .passos li::before { display: block; margin-bottom: 1rem; }
  .passos h3 { align-self: auto; }
  /* No computador, a barra vira um botão flutuante no canto inferior direito */
  .barra-whats {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0;
    background: none;
    transform: translateY(160%);
  }
  .barra-whats .botao {
    width: auto;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    box-shadow: 0 10px 28px rgba(18, 26, 48, 0.32);
  }
  .aviso-cookies,
  .barra-ativa .aviso-cookies { bottom: 1.5rem; left: 1.5rem; right: auto; margin: 0; font-size: 0.88rem; }
  .rodape--com-barra { padding-bottom: 6rem; }
  .trilha-bloco--painel { padding: 2.25rem 2rem 2.5rem; }
  .marca__simbolo { height: 3rem; }
  .marca__nome { font-size: 1.5rem; }
  .marca__sub { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .barra-whats,
  .perguntas summary::after,
  .funil__opcoes button,
  .botao { transition: none; }
}
