/* Henrique Schneiker · Advocacia e Assessoria Jurídica · Dom Aquino, Cuiabá-MT
   Paleta: azul-marinho institucional + dourado discreto (ver DESIGN.md) */

:root {
  /* superfícies */
  --canvas: hsl(220 18% 96%);
  --superficie: hsl(220 16% 91%);
  --canvas-tom: hsl(219 15% 88%);
  --canvas-escuro: hsl(217 42% 9%);
  --canvas-escuro-2: hsl(217 30% 14%);

  /* tinta */
  --tinta: hsl(218 35% 14%);
  --texto-suave: hsl(218 12% 38%);
  --texto-inverso: hsl(220 20% 96%);
  --texto-inverso-suave: hsl(219 14% 72%);

  /* acento */
  --acento: hsl(218 45% 26%);
  --acento-hover: hsl(218 50% 18%);
  --dourado: hsl(41 45% 52%);
  --dourado-escuro: hsl(42 45% 30%);

  /* linhas e sombras */
  --hairline: hsl(218 20% 14% / .12);
  --hairline-forte: hsl(218 20% 14% / .26);
  --hairline-inversa: hsl(220 20% 96% / .16);
  --sombra: 0 18px 55px hsl(218 40% 20% / .10);
  --sombra-hover: 0 26px 70px hsl(218 40% 20% / .16);

  /* tipografia */
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --text-h1: clamp(2.1rem, 5vw, 3.6rem);
  --text-h2: clamp(1.7rem, 3.4vw, 2.6rem);
  --text-h3: clamp(1.15rem, 2vw, 1.35rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-number: clamp(2.6rem, 6vw, 4.5rem);
  --text-kicker: .75rem;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 72px;

  /* raios e easing */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: var(--text-h1); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-h3); font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento); }

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

.sec { padding-block: var(--section-space); }
.sec--claro { background: var(--canvas); }
.sec--tom { background: var(--canvas-tom); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }
.sec--escuro .kicker { color: var(--dourado); }

.kicker {
  font-size: var(--text-kicker);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
  margin: 0 0 .9em;
}

.sec-cab { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-cab--centro { margin-inline: auto; text-align: center; }
.sec-sub { color: var(--texto-suave); }
.sec--escuro .sec-sub { color: var(--texto-inverso-suave); }

/* fio dourado que se desenha (assinatura) */
.fio { position: relative; padding-bottom: .55em; }
.fio::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--ease) .2s;
}
.fio--centro::after { left: 50%; margin-left: -36px; transform-origin: center; }
.fio.is-in::after, .hero-conteudo .fio::after { transform: scaleX(1); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease);
}
.btn--primario { background: var(--acento); color: var(--texto-inverso); }
.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--ghost { background: transparent; color: var(--tinta); border: 1px solid var(--hairline-forte); }
.btn--ghost:hover { border-color: var(--acento); color: var(--acento); transform: translateY(-2px); }
.sec--escuro .btn--ghost { color: var(--texto-inverso); border-color: var(--hairline-inversa); }
.sec--escuro .btn--ghost:hover { border-color: var(--dourado); color: var(--dourado); }
.btn--compacto { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn--grande { padding: 15px 34px; }
.ico-zap { flex: none; }

.link-inverso { color: var(--texto-inverso); text-decoration-color: var(--dourado); text-underline-offset: 3px; }
.link-inverso:hover { color: var(--dourado); }

/* ---------- header ---------- */

#topo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
#topo.is-scrolled {
  background: hsl(220 18% 96% / .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--dourado);
  box-shadow: 0 8px 30px hsl(218 40% 20% / .08);
}
.topo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lockup { text-decoration: none; color: var(--tinta); line-height: 1.15; }
.lockup-nome { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.lockup-sub {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dourado-escuro);
}
.topo-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topo-nav a {
  position: relative;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 0;
}
.topo-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .35rem;
  width: 100%;
  height: 1.5px;
  background: var(--dourado-escuro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.topo-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .topo-nav { display: none; }
  .topo-inner { justify-content: space-between; }
}

/* ---------- hero ---------- */

.sec-hero { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.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: .38s; }
.hero-conteudo > *:nth-child(6) { animation-delay: .46s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
h1 em { font-style: italic; color: var(--acento); }
.hero-sub { color: var(--texto-suave); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.4rem .8rem; }
.hero-micro { font-size: .88rem; color: var(--texto-suave); margin-bottom: 1.4rem; }

.selo-nota {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--tinta);
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.selo-nota:hover { border-color: var(--dourado-escuro); box-shadow: var(--sombra); }
.selo-estrela { color: var(--dourado-escuro); font-size: 1.1rem; }

.hero-figura { display: flex; justify-content: center; }
.moldura { position: relative; max-width: 400px; }
.moldura::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--dourado);
  border-radius: var(--r-lg);
  transform: translate(12px, 12px);
  transition: transform .9s var(--ease-expo) .35s;
  pointer-events: none;
}
.moldura img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sombra);
  object-fit: cover;
}
.hero-figura .moldura { animation: hero-foto 1.2s var(--ease-expo) both .15s; }
@keyframes hero-foto {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figura { order: 2; }
  .hero-conteudo { order: 1; }
  .moldura img { max-height: 42vh; object-position: top; }
  .moldura { max-width: 320px; }
  .moldura::before { transform: translate(8px, 8px); }
}

/* ---------- atendimento (tom) ---------- */

.trust-strip {
  list-style: none;
  margin: 0 0 clamp(2rem, 5vw, 3.2rem);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: .9rem 2rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--sombra);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .97rem; }
.trust-strip svg { color: var(--dourado-escuro); flex: none; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}
.card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.card:hover::before { transform: scaleX(1); }
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--acento);
  margin-bottom: 1.1rem;
}
.card p { color: var(--texto-suave); margin: 0; }

.passos { margin-top: clamp(2.4rem, 6vw, 4rem); }
.passos-titulo { margin-bottom: 1.6rem; }
.passos-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  counter-reset: passo;
}
.passos-grid li { position: relative; padding-top: .4rem; }
.passo-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-number);
  font-weight: 700;
  line-height: 1;
  color: var(--acento);
  opacity: .22;
  margin-bottom: .2rem;
}
.passos-grid strong { display: block; margin-bottom: .3rem; }
.passos-grid p { color: var(--texto-suave); margin: 0; font-size: .97rem; }

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .passos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .passos-grid { grid-template-columns: 1fr; }
  .trust-strip { flex-direction: column; align-items: flex-start; }
}

/* ---------- sobre ---------- */

.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.sobre-figura { display: flex; justify-content: center; }
.moldura--sobre { max-width: 360px; }
.moldura--sobre::before { transform: translate(-12px, 12px); }
.sobre-texto p:not(.kicker) { color: var(--texto-suave); max-width: 56ch; }
.sobre-texto .btn { margin-top: .6rem; }

@media (max-width: 768px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-figura { order: 2; }
  .sobre-texto { order: 1; }
  .moldura--sobre { max-width: 300px; }
  .moldura--sobre::before { transform: translate(-8px, 8px); }
}

/* ---------- avaliações (escuro) ---------- */

.nota-bloco {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .4rem 1rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}
.nota-valor {
  font-family: var(--font-display);
  font-size: var(--text-number);
  font-weight: 700;
  line-height: 1;
  color: var(--texto-inverso);
}
.estrelas { position: relative; display: inline-block; font-size: 1.6rem; line-height: 1; letter-spacing: .12em; }
.estrelas-vazias { color: hsl(219 14% 72% / .35); }
.estrelas-cheias {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--dourado);
  transition: width .6s var(--ease) .25s;
}
.estrelas.is-cheia .estrelas-cheias { width: 100%; }
.nota-legenda { color: var(--texto-inverso-suave); }

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  max-width: 820px;
  margin: 0 auto;
}
.review-card {
  position: relative;
  margin: 0;
  background: var(--canvas-escuro-2);
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.review-aspas {
  position: absolute;
  top: .4rem;
  left: 1.2rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--dourado);
  opacity: .5;
}
.review-card blockquote {
  margin: 1.2rem 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}
.review-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; font-size: .95rem; }
.review-estrelas { color: var(--dourado); letter-spacing: .1em; }
.review-quando { color: var(--texto-inverso-suave); }

.avaliacoes-links { text-align: center; margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; }
.consulta-data { text-align: center; font-size: .82rem; color: var(--texto-inverso-suave); margin: .8rem 0 0; }

@media (max-width: 640px) {
  .reviews { grid-template-columns: 1fr; }
}

/* ---------- localização e FAQ ---------- */

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.local-info address { font-style: normal; margin-bottom: 1rem; }
.local-horario { color: var(--texto-suave); }
.local-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.mapa {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--sombra);
}
.mapa iframe { display: block; width: 100%; height: 280px; border: 0; }

.faq-titulo { margin-bottom: 1.2rem; }
.faq details {
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  margin-bottom: .7rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  min-height: 48px;
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.chev {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--dourado-escuro);
  border-bottom: 2px solid var(--dourado-escuro);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] .chev { transform: rotate(225deg); }
.faq-corpo { padding: 0 1.2rem; }
.faq-corpo p { color: var(--texto-suave); margin: 0 0 1rem; }
.faq details[open] .faq-corpo { animation: faq-abre .3s var(--ease); }
@keyframes faq-abre {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .local-grid { grid-template-columns: 1fr; }
}

/* ---------- fechamento ---------- */

.sec-agendar { position: relative; overflow: hidden; padding-bottom: 0; }
.agendar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sec-agendar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(217 42% 9% / .88), hsl(217 42% 9% / .96));
}
.agendar-conteudo {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.agendar-conteudo p { color: var(--texto-inverso-suave); max-width: 52ch; margin-inline: auto; }
.agendar-conteudo .btn { margin-top: .8rem; }

.rodape {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline-inversa);
  padding-block: 2rem 1.6rem;
  font-size: .92rem;
  color: var(--texto-inverso-suave);
}
.rodape-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.2rem;
}
.rodape p { margin: 0 0 .3rem; }
.rodape-nome { font-family: var(--font-display); font-weight: 700; color: var(--texto-inverso); font-size: 1.05rem; }
.rodape-legal { border-top: 1px solid var(--hairline-inversa); padding-top: 1.1rem; font-size: .8rem; }

/* ---------- sticky CTA mobile + zap-float ---------- */

.cta-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: hsl(220 18% 96% / .95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  display: none;
}
.cta-mobile .btn { width: 100%; }
.cta-mobile.is-on { transform: translateY(0); }

.zap-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acento);
  color: var(--texto-inverso);
  box-shadow: var(--sombra-hover);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease);
}
.zap-float.is-visivel { opacity: 1; transform: scale(1); }
.zap-float:hover { background: var(--acento-hover); }
.zap-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }

@media (max-width: 768px) {
  .cta-mobile { display: block; }
  .zap-float { display: none; }
  body { padding-bottom: 84px; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="left"] { transform: translateX(-16px); }
[data-reveal="right"] { transform: translateX(16px); }
[data-reveal="zoom"] { transform: scale(.96); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(16px); }
}

/* ---------- reduced motion (regra dura) ---------- */

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