/* Camilla Arantes · Advocacia — Porto, Cuiabá-MT
   Direção: DESIGN.md (navy profundo + dourado discreto, tipográfico premium) */

:root {
  /* superfícies */
  --canvas: hsl(40 25% 97%);
  --superficie: hsl(40 20% 93%);
  --canvas-tom: hsl(38 22% 89%);
  --canvas-escuro: hsl(215 38% 8%);
  --canvas-escuro-2: hsl(215 30% 13%);

  /* tinta */
  --tinta: hsl(215 30% 14%);
  --texto-suave: hsl(215 12% 38%);
  --texto-inverso: hsl(40 25% 96%);
  --texto-inverso-suave: hsl(215 15% 72%);

  /* acento */
  --acento: hsl(215 45% 28%);
  --acento-hover: hsl(215 50% 20%);
  --dourado: hsl(42 35% 48%);
  --dourado-texto-claro: hsl(42 45% 32%);
  --dourado-claro: hsl(42 45% 62%);

  /* linhas e sombras */
  --hairline: hsl(215 30% 14% / .12);
  --hairline-forte: hsl(215 30% 14% / .24);
  --hairline-inversa: hsl(40 25% 96% / .16);
  --sombra: 0 14px 40px hsl(215 40% 10% / .08);
  --sombra-hover: 0 4px 12px hsl(215 40% 10% / .08);

  /* tipografia */
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --text-h1: clamp(1.85rem, 5.5vw, 3.4rem);
  --text-h2: clamp(1.6rem, 3.6vw, 2.5rem);
  --text-h3: clamp(1.1rem, 1.8vw, 1.3rem);
  --text-body: clamp(1rem, calc(.4vw + .93rem), 1.125rem);
  --text-number: clamp(3rem, 7vw, 5rem);
  --text-kicker: .75rem;

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

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

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

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
h1 { font-size: var(--text-h1); letter-spacing: -.01em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { max-width: var(--maxw); margin-inline: 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); }

.kicker {
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dourado-texto-claro);
}
.kicker--escuro { color: var(--dourado-claro); }

.sec-cabeca { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-cabeca .kicker { margin-bottom: .75rem; }
.sec-sub { color: var(--texto-suave); margin-top: .9rem; }
.sec-sub--inversa { color: var(--texto-inverso-suave); }

/* linha dourada sob H2, cresce junto do reveal */
.linha-dourada::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: .8rem;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease) .25s;
}
.linha-dourada.is-in::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-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  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:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--primario { background: var(--acento); color: var(--texto-inverso); }
.btn--primario:hover { background: var(--acento-hover); }

.btn--claro { background: var(--canvas); color: var(--acento); }
.btn--claro:hover { background: #fff; }

.btn--ghost-escuro {
  border: 1px solid var(--hairline-inversa);
  color: var(--texto-inverso);
  background: transparent;
}
.btn--ghost-escuro:hover { border-color: var(--dourado-claro); color: var(--dourado-claro); box-shadow: none; }

.btn--topo { min-height: 44px; padding: 9px 18px; font-size: .92rem; background: var(--acento); color: var(--texto-inverso); }
.btn--topo:hover { background: var(--acento-hover); }

.btn--full { width: 100%; min-height: 52px; }

.ico-zap { flex: 0 0 auto; }

/* ---------- header fixo (SÓ por id, nunca por tag) ---------- */

#topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
#topo .topo-inner {
  max-width: var(--maxw);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topo-marca {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--texto-inverso);
  text-decoration: none;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.topo-marca span { color: var(--dourado-claro); margin-left: .35ch; }
.topo-nav { display: flex; gap: 1.4rem; }
.topo-nav a {
  color: var(--texto-inverso-suave);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
}
.topo-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1.5px;
  background: var(--dourado-claro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.topo-nav a:hover { color: var(--texto-inverso); }
.topo-nav a:hover::after { transform: scaleX(1); }

#topo.is-scrolled {
  background: hsl(215 38% 8% / .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hairline-inversa), 0 8px 24px hsl(215 40% 10% / .35);
}

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

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

.sec-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + 2rem) 4.5rem;
  overflow: clip;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, hsl(215 45% 22% / .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, hsl(42 35% 30% / .18), transparent 70%);
  pointer-events: none;
}
.hero-conteudo {
  position: relative;
  max-width: 680px;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(300px, 60vw);
  height: auto;
  mix-blend-mode: screen;
  filter: contrast(1.15) brightness(1.05);
  margin-bottom: .75rem;
}
.hero-conteudo .kicker { margin-bottom: 1rem; }
.hero-sub {
  color: var(--texto-inverso-suave);
  max-width: 56ch;
  margin-top: 1.1rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.8rem;
}
.hero-micro {
  font-size: .85rem;
  color: var(--texto-inverso-suave);
  margin-top: 1rem;
}

/* cascata de entrada do hero (no load) */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.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; }

/* assinatura: swash caligráfico se desenhando (única animação protagonista) */
.hero-swash {
  position: absolute;
  bottom: clamp(1rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 70vw);
  height: auto;
  color: var(--dourado-claro);
  opacity: .8;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-swash path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: swash-draw 1.2s var(--ease-expo) .5s forwards;
  }
  @keyframes swash-draw { to { stroke-dashoffset: 0; } }
}

@media (max-width: 640px) {
  .hero-logo { width: min(170px, 50vw); margin-bottom: .4rem; }
  .sec-hero { padding-block: calc(var(--header-h) + 1.25rem) 5rem; }
  .hero-sub { font-size: .97rem; }
  .hero-ctas { margin-top: 1.4rem; width: 100%; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- reveal on scroll (gramática única: vertical) ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- trust-strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--tinta);
}
.trust-strip svg { color: var(--dourado-texto-claro); flex: 0 0 auto; }

@media (max-width: 768px) {
  .trust-strip { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- pilares (cards) ---------- */

.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  /* longhand: preserva o stagger do reveal (opacity/transform) e mantém o hover rápido */
  transition-property: opacity, transform, border-color, box-shadow;
  transition-duration: .55s, .55s, .25s, .25s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s;
}
.card:hover {
  border-color: var(--dourado);
  box-shadow: var(--sombra-hover);
}
.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--acento);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--texto-suave); font-size: .97rem; }

.quem-fala {
  max-width: 62ch;
  margin-top: clamp(1.8rem, 3.5vw, 2.5rem);
  padding-left: 1.1rem;
  border-left: 2px solid var(--dourado);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--texto-suave);
}

.sec-cta { margin-top: clamp(2rem, 4vw, 2.75rem); }
.cta-micro { font-size: .85rem; color: var(--texto-suave); margin-top: .7rem; }

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

/* ---------- passos numerados ---------- */

.passos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: passo;
}
.passo { position: relative; padding-left: clamp(3.4rem, 6vw, 4.5rem); }
.passo-num {
  position: absolute;
  left: 0;
  top: -.35em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-number);
  line-height: 1;
  color: var(--acento);
  opacity: .22;
}
.passo h3 { margin-bottom: .45rem; }
.passo p { color: var(--texto-suave); font-size: .97rem; }

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

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

.fecho-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.fecho-convite .kicker { margin-bottom: .8rem; }
.fecho-convite h2 { margin-bottom: .9rem; }
.fecho-convite .btn { margin-top: 1.6rem; }
.fecho-tel { margin-top: 1rem; font-size: .95rem; color: var(--texto-inverso-suave); }
.fecho-tel a { color: var(--texto-inverso); text-decoration-color: var(--dourado-claro); }

.fecho-info { display: grid; gap: 1.25rem; }
.info-bloco {
  background: var(--canvas-escuro-2);
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
}
.info-bloco h3 {
  font-size: .8rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--dourado-claro);
  margin-bottom: .8rem;
}
.info-bloco p { color: var(--texto-inverso-suave); }
.link-inverso {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--texto-inverso);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--dourado-claro);
  transition: color .2s var(--ease);
  margin-top: .4rem;
}
.link-inverso:hover { color: var(--dourado-claro); }

.horarios { display: grid; gap: .45rem; }
.horarios li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--texto-inverso-suave);
  font-size: .97rem;
  border-bottom: 1px dashed var(--hairline-inversa);
  padding-bottom: .45rem;
}
.horarios li span:last-child { color: var(--texto-inverso); font-weight: 600; }
.horarios li:last-child { border-bottom: 0; padding-bottom: 0; }

.rodape {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline-inversa);
  color: var(--texto-inverso-suave);
  font-size: .9rem;
  display: grid;
  gap: .35rem;
}
.rodape-nome { font-family: var(--font-display); font-weight: 700; color: var(--texto-inverso); font-size: 1rem; }
.rodape a { color: var(--texto-inverso-suave); }
.rodape a:hover { color: var(--texto-inverso); }
.rodape-mini { font-size: .8rem; }

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

/* ---------- sticky CTA mobile ---------- */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: hsl(40 25% 97% / .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 -6px 24px hsl(215 40% 10% / .12);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  display: none;
}
.sticky-cta.is-on { transform: translateY(0); }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .sec-fechamento { padding-bottom: calc(var(--section-space) + 84px); }
}

/* ---------- zap-float (desktop) ---------- */

.zap-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(142 70% 40%);
  color: #fff;
  box-shadow: 0 10px 30px hsl(142 70% 20% / .35);
  opacity: 0;
  transform: scale(.6);
  animation: zap-in .4s var(--ease) 1.2s forwards;
  transition: opacity .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
@keyframes zap-in { to { opacity: 1; transform: scale(1); } }
.zap-float:hover { transform: scale(1.06); box-shadow: 0 14px 36px hsl(142 70% 20% / .45); }
.zap-float.is-hidden { opacity: 0 !important; transform: scale(.6) !important; pointer-events: none; }

@media (max-width: 768px) {
  .zap-float { display: none; }
}

/* ---------- 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;
  }
  .zap-float { opacity: 1; transform: none; }
}
