/* ==========================================================================
   Kelton Pinheiro Advocacia e Consultoria Jurídica — style.css
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --canvas: hsl(40 25% 97%);
  --superficie: hsl(40 20% 93%);
  --canvas-tom: hsl(38 22% 89%);
  --canvas-escuro: hsl(215 40% 10%);
  --canvas-escuro-2: hsl(215 32% 15%);

  --tinta: hsl(215 30% 14%);
  --texto-suave: hsl(215 14% 38%);
  --texto-inverso: hsl(40 25% 96%);
  --texto-inverso-suave: hsl(40 18% 78%);

  --acento: hsl(215 45% 28%);
  --acento-hover: hsl(215 50% 20%);
  --acento-secundario: hsl(42 42% 40%);
  --acento-secundario-claro: hsl(42 55% 66%);

  --hairline: hsla(215 30% 14% / .12);
  --hairline-forte: hsla(215 30% 14% / .24);
  --hairline-inversa: hsla(40 25% 96% / .16);

  --sombra: 0 18px 55px hsla(215 40% 10% / .10);
  --sombra-hover: 0 26px 70px hsla(215 40% 10% / .16);

  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;

  --text-h1: clamp(2.5rem, 5.6vw, 4.25rem);
  --text-h2: clamp(1.9rem, 3.6vw, 2.85rem);
  --text-h3: clamp(1.2rem, 1.8vw, 1.4rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-number: clamp(3rem, 7vw, 5.5rem);
  --text-kicker: .75rem;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.25rem, 6.5vw, 6rem);
  --content-gap: clamp(1.5rem, 3vw, 3rem);
  --header-h: 72px;

  --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--tinta);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font-size: var(--text-kicker);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--acento);
  font-weight: 600;
}

/* ---------- Seções / ritmo ---------- */
.sec { padding: var(--section-space) 0; position: relative; }
.sec--claro { background: var(--canvas); color: var(--tinta); }
.sec--tom { background: var(--canvas-tom); color: var(--tinta); }
.sec--escuro {
  background: var(--canvas-escuro);
  color: var(--texto-inverso);
}
.sec--escuro .kicker { color: var(--acento-secundario-claro); }

.sec-header { max-width: 46rem; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.sec-header h2 {
  font-size: var(--text-h2);
  margin-top: .5rem;
  position: relative;
  padding-bottom: .6rem;
}
.sec-header h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  background: var(--acento-secundario);
  border-radius: 2px;
}
.sec-header--inverso { text-align: center; max-width: 42rem; margin-inline: auto; }
.sec-header--inverso h2::after { left: 50%; transform: translateX(-50%); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .98rem;
  min-height: 48px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn-primario {
  background: var(--acento);
  color: var(--texto-inverso);
  box-shadow: var(--sombra);
}
.btn-primario:hover { background: var(--acento-hover); transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.btn-primario:active { transform: translateY(0); box-shadow: var(--sombra); }

.btn-secundario {
  background: transparent;
  border: 1.5px solid var(--hairline-forte);
  color: var(--tinta);
}
.btn-secundario:hover { border-color: var(--acento); color: var(--acento); }

.btn-compacto { padding: 10px 20px; min-height: 40px; font-size: .9rem; }
.btn-grande { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
#topo {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  border-bottom: 1px solid transparent;
}
#topo.is-scrolled {
  background: hsla(40 25% 97% / .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
  box-shadow: var(--sombra);
}
.topo-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tinta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.logo span { color: var(--acento); font-style: italic; }
.nav-desktop { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav-desktop a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--texto-suave);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--acento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav-desktop a:hover { color: var(--acento); }
.nav-desktop a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.sec-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-fundo { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: var(--acento); }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .22;
}
.blob-1 { width: 420px; height: 420px; background: var(--acento); top: -140px; right: -120px; }
.blob-2 { width: 320px; height: 320px; background: var(--acento-secundario); bottom: -100px; left: -80px; opacity: .18; }
.hero-textura { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .05; }

.hero-inner { position: relative; z-index: 1; }
.hero-conteudo { max-width: 42rem; }
.hero-conteudo > * { animation: hero-rise .8s var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .1s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .2s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .3s; }
.hero-conteudo > *:nth-child(5) { animation-delay: .4s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .5s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-h1 {
  font-size: var(--text-h1);
  margin-top: .9rem;
  color: var(--tinta);
}
.destaque {
  position: relative;
  display: inline-block;
  color: var(--acento);
  font-style: italic;
}
.rubrica { position: absolute; left: 0; bottom: -.14em; width: 100%; height: .3em; overflow: visible; pointer-events: none; }
.rubrica path {
  fill: none;
  stroke: var(--acento-secundario);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: rubrica-draw .9s var(--ease-expo) .75s forwards;
}
@keyframes rubrica-draw { to { stroke-dashoffset: 0; } }

.hero-sub { margin-top: 1.25rem; font-size: 1.08rem; color: var(--texto-suave); max-width: 34rem; }
.hero-ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-micro { margin-top: .85rem; font-size: .85rem; color: var(--texto-suave); }

.hero-badge {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1.15rem;
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  max-width: 100%;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.hero-badge:hover { border-color: var(--acento); transform: translateY(-2px); }
.hero-badge-nota { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--tinta); white-space: nowrap; }
.estrela { color: var(--acento); }
.hero-badge-texto { font-size: .85rem; color: var(--texto-suave); }

/* ---------- Trust strip ---------- */
.sec-trust { padding: clamp(1.5rem, 3vw, 2rem) 0; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 1.1rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
}
.trust-item { white-space: normal; }
.trust-sep { color: var(--texto-suave); opacity: .6; }

/* ---------- Pilares ---------- */
.pilares-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--content-gap);
  align-items: start;
}
.pilar {
  background: var(--superficie);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  border: 1px solid transparent;
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--acento); }
.pilar-grande { padding: clamp(1.75rem, 3.4vw, 2.5rem); }
.pilar-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--acento);
  margin-bottom: 1.1rem;
}
.pilar-icone svg { width: 26px; height: 26px; }
.pilar h3 { font-size: var(--text-h3); margin-bottom: .5rem; }
.pilar p { color: var(--texto-suave); }

/* ---------- Como funciona ---------- */
.etapas-lista {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--content-gap);
}
.etapa { position: relative; padding-top: .5rem; }
.etapa-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-number);
  font-weight: 700;
  color: var(--acento);
  opacity: .18;
  line-height: 1;
  margin-bottom: -.6rem;
}
.etapa h3 { font-size: var(--text-h3); margin-bottom: .4rem; }
.etapa p { color: var(--texto-suave); }
.etapas-cta { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ---------- Avaliações ---------- */
.nota-grande {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.nota-numero { font-family: var(--font-display); font-size: var(--text-number); font-weight: 700; line-height: 1; }
.nota-estrelas { color: var(--acento-secundario); font-size: 1.4rem; letter-spacing: .15em; }
.nota-legenda { color: var(--texto-inverso-suave); font-size: .95rem; }

.reviews-grid--duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--content-gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.review-card {
  background: var(--canvas-escuro-2);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--hairline-inversa);
  position: relative;
}
.review-aspas {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--acento-secundario);
  opacity: .5;
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.review-texto { font-size: 1.05rem; color: var(--texto-inverso); }
.review-rodape { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-nome { font-weight: 600; }
.review-estrelas { color: var(--acento-secundario); letter-spacing: .1em; }

.avaliacoes-rodape {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.link-google {
  font-weight: 600;
  color: var(--texto-inverso-suave);
  position: relative;
  padding-bottom: 2px;
}
.link-google::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.link-google:hover { color: var(--texto-inverso); }
.link-google:hover::after { transform: scaleX(1); }

.compliance-nota {
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--texto-inverso-suave);
  opacity: .8;
}

/* ---------- Fechamento ---------- */
.fechamento-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.fechamento-texto { margin-top: 1rem; color: var(--texto-inverso-suave); max-width: 34rem; }
.fechamento-conteudo .btn-primario { margin-top: 1.75rem; }

.info-lista {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline-inversa);
}
.info-lista dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--acento-secundario-claro); font-weight: 600; }
.info-lista dd { margin: .25rem 0 0; color: var(--texto-inverso); }
.info-lista a { text-decoration: underline; text-underline-offset: 3px; }

.faq { margin-top: clamp(2rem, 4vw, 2.75rem); display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-sm);
  padding: 0 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--acento-secundario);
  border-bottom: 2px solid var(--acento-secundario);
  transform: rotate(45deg);
  transition: transform 260ms var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(-135deg); }
.faq-item > .faq-resposta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-item[open] > .faq-resposta { grid-template-rows: 1fr; }
.faq-resposta > p { overflow: hidden; min-height: 0; color: var(--texto-inverso-suave); padding-bottom: 1.1rem; }

.fechamento-mapa { background: var(--canvas-escuro-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--hairline-inversa); }
.fechamento-mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.15) brightness(.95); }

/* ---------- Footer ---------- */
.rodape { background: var(--canvas-escuro); color: var(--texto-inverso-suave); padding: clamp(2.5rem, 5vw, 3.5rem) 0; font-size: .9rem; }
.rodape-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.rodape-nome { font-family: var(--font-display); color: var(--texto-inverso); font-weight: 700; margin-bottom: .5rem; }
.rodape-bloco p { margin: .2rem 0; }
.rodape-links { display: flex; flex-direction: column; gap: .5rem; }
.rodape-links a:hover { color: var(--texto-inverso); }
.rodape-fine { text-align: right; }

/* ---------- Zap float ---------- */
.zap-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--texto-inverso);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-hover);
  z-index: 90;
  opacity: 0;
  transform: scale(.6);
  animation: zap-in .4s var(--ease) 1.2s forwards;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
@keyframes zap-in { to { opacity: 1; transform: scale(1); } }
.zap-float:hover { transform: scale(1.06); }
.zap-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: .7rem var(--gutter);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: hsla(40 25% 97% / .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  display: none;
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-in   { opacity: 1; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 960px) {
  .fechamento-inner { grid-template-columns: 1fr; }
  .fechamento-mapa iframe { min-height: 280px; }
  .pilares-grid { grid-template-columns: 1fr 1fr; }
  .pilar-grande { grid-column: 1 / -1; }
  .rodape-fine { text-align: left; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
}

@media (max-width: 720px) {
  .etapas-lista { grid-template-columns: 1fr 1fr; }
  .pilares-grid { grid-template-columns: 1fr; }
  .reviews-grid--duo { grid-template-columns: 1fr; }
  .rodape-inner { grid-template-columns: 1fr; }
  .rodape-fine { text-align: left; }
}

@media (max-width: 640px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(28px); }
  .sticky-cta { display: block; }
  .rodape { padding-bottom: calc(clamp(2.5rem, 5vw, 3.5rem) + 76px); }
}

@media (max-width: 480px) {
  .etapas-lista { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-badge { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .avaliacoes-rodape { flex-direction: column; }
}

@media (min-width: 641px) {
  .sticky-cta { display: none !important; }
}

/* ---------- Acessibilidade de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
