/* =========================================================================
   Maria Greice · Advocacia (Quilombo, Cuiabá-MT)
   Modo sem fotos (tipográfico premium) — nicho Advocacia opção 3
   ========================================================================= */

:root {
  /* superfícies — ritmo claro / tom / escuro */
  --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 33% 15%);

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

  /* acento navy + dourado (dourado SÓ decorativo, nunca texto sobre claro) */
  --acento: hsl(215 45% 28%);
  --acento-hover: hsl(215 52% 21%);
  --acento-claro: hsl(214 48% 55%);
  --dourado: hsl(42 38% 50%);
  --dourado-escuro: hsl(42 46% 30%);

  /* whatsapp */
  --zap: hsl(145 63% 42%);
  --zap-hover: hsl(145 66% 34%);

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

  /* tipografia */
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --text-h1: clamp(2.5rem, 8vw, 5rem);
  --text-h2: clamp(1.85rem, 4.2vw, 3rem);
  --text-h3: clamp(1.15rem, 2vw, 1.4rem);
  --text-body: clamp(1rem, calc(.35vw + .95rem), 1.14rem);
  --text-number: clamp(3.2rem, 9vw, 6rem);
  --text-kicker: .76rem;

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

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

/* --- reset enxuto --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--tinta);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 4px;
}

.pular-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--acento); color: var(--texto-inverso);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.pular-link:focus { top: 12px; }

/* --- layout --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec { padding-block: var(--section-space); 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-cab { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-titulo { font-size: var(--text-h2); color: var(--acento); letter-spacing: -.01em; }
.sec--escuro .sec-titulo, .sec-titulo--inverso { color: var(--texto-inverso); }
.sec-intro { margin-top: 1rem; color: var(--texto-suave); max-width: 58ch; }
.sec--escuro .sec-intro { color: var(--texto-inverso-suave); }

.kicker {
  font-size: var(--text-kicker);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--acento);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--dourado);
  display: inline-block;
}
.kicker-ouro { color: var(--dourado); }
.sec--escuro .kicker { color: var(--texto-inverso-suave); }

/* --- botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  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(--zap); color: #fff; box-shadow: 0 10px 26px hsl(145 63% 30% / .30); }
.btn-primario:hover { background: var(--zap-hover); transform: translateY(-2px); box-shadow: 0 16px 34px hsl(145 63% 28% / .38); }
.btn-primario:active { transform: translateY(0); }

.btn-topo {
  background: var(--acento); color: var(--texto-inverso);
  min-height: 44px; padding: 10px 20px;
}
.btn-topo:hover { background: var(--acento-hover); transform: translateY(-2px); }

.btn-fantasma {
  background: transparent; color: var(--acento);
  border-color: var(--hairline-forte);
}
.btn-fantasma:hover { border-color: var(--acento); color: var(--acento); transform: translateY(-2px); }
.btn-fantasma--claro { color: var(--texto-inverso); border-color: var(--hairline-inversa); }
.btn-fantasma--claro:hover { border-color: var(--dourado); color: var(--texto-inverso); }

.ico-zap { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
#topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
#topo.is-scrolled {
  background: hsl(40 25% 97% / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.topo-interno {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}
.marca { display: flex; flex-direction: column; line-height: 1.05; margin-right: auto; }
.marca-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; color: var(--acento); transition: color .25s var(--ease); }
.marca-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dourado-escuro); font-weight: 600; }
#topo:not(.is-scrolled) .marca-nome { color: var(--texto-inverso); }
#topo:not(.is-scrolled) .marca-sub { color: var(--dourado); }

.topo-nav { display: flex; gap: 1.75rem; }
.topo-nav a {
  font-size: .95rem; font-weight: 600; color: var(--texto-inverso-suave);
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.topo-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--dourado); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.topo-nav a:hover { color: var(--texto-inverso); }
.topo-nav a:hover::after { transform: scaleX(1); }
#topo.is-scrolled .topo-nav a { color: var(--texto-suave); }
#topo.is-scrolled .topo-nav a:hover { color: var(--acento); }

/* =========================================================================
   HERO
   ========================================================================= */
.sec-hero {
  min-height: clamp(600px, 92svh, 860px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  overflow: clip;
  background:
    radial-gradient(120% 90% at 15% 10%, hsl(215 45% 18%) 0%, transparent 55%),
    linear-gradient(150deg, hsl(215 42% 12%) 0%, hsl(215 44% 9%) 55%, hsl(216 40% 7%) 100%);
}
.hero-fundo {
  position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: 0;
  opacity: 0; animation: fundo-entra 1.3s var(--ease) .1s forwards;
  background-image:
    repeating-linear-gradient(135deg, hsl(40 30% 90% / .05) 0 1px, transparent 1px 42px);
}
@keyframes fundo-entra { to { opacity: 1; } }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .38;
}
.blob-a { width: 44%; height: 60%; top: -12%; right: -8%; background: hsl(215 55% 34%); }
.blob-b { width: 34%; height: 46%; bottom: -14%; left: -6%; background: hsl(42 40% 34%); opacity: .22; }
.blob-c { width: 46%; height: 70%; top: -10%; right: -10%; background: hsl(215 55% 30%); opacity: .30; }

.hero-conteudo { position: relative; z-index: 1; max-width: 46rem; }
.hero-titulo { color: var(--texto-inverso); margin-bottom: .35rem; }
.hero-nome {
  display: block;
  font-size: var(--text-h1);
  letter-spacing: -.015em;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
.rubrica {
  display: block;
  height: 3px; width: min(230px, 62%);
  margin: .55rem 0 .9rem;
  background: linear-gradient(90deg, var(--dourado), hsl(42 40% 60%));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .75s var(--ease-expo);
}
.rubrica.is-in { transform: scaleX(1); }
.hero-subnome {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: .02em;
  color: var(--texto-inverso-suave);
}
.hero-sub { margin: 1.4rem 0 2rem; color: var(--texto-inverso-suave); max-width: 42ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-micro { margin-top: 1.15rem; font-size: .9rem; color: var(--texto-inverso-suave); }

/* cascata de entrada do hero */
.hero-conteudo > * { animation: hero-rise .8s var(--ease) both; }
.hero-conteudo > *:nth-child(2) { animation-delay: .1s; }
.hero-conteudo > *:nth-child(3) { animation-delay: .22s; }
.hero-conteudo > *:nth-child(4) { animation-delay: .34s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   COMO ATUAMOS (pilares)
   ========================================================================= */
.pilares {
  display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pilar {
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--dourado); }
.pilar-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: hsl(215 45% 28% / .08);
  margin-bottom: 1.1rem;
}
.pilar-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--dourado-escuro); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pilar-titulo { font-size: var(--text-h3); color: var(--acento); margin-bottom: .5rem; }
.pilar p { color: var(--texto-suave); }

/* =========================================================================
   ORIENTAÇÃO (situações)
   ========================================================================= */
.areas-grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.area-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--dourado); }
.area-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: hsl(215 45% 28% / .08); margin-bottom: 1rem;
}
.area-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--acento); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.area-titulo { font-size: var(--text-h3); color: var(--acento); margin-bottom: .5rem; }
.area-card p { color: var(--texto-suave); flex: 1; }
.area-link {
  margin-top: 1.15rem; font-weight: 600; color: var(--acento);
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
}
.area-link .seta { transition: transform .25s var(--ease); }
.area-link:hover { color: var(--acento-hover); }
.area-link:hover .seta { transform: translateX(4px); }

.areas-nota {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--canvas-escuro);
  color: var(--texto-inverso);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  border-left: 3px solid var(--dourado);
}
.areas-nota p { max-width: 46ch; color: var(--texto-inverso-suave); }

/* =========================================================================
   COMO FUNCIONA (etapas)
   ========================================================================= */
.etapas {
  display: grid; gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.etapa { position: relative; padding-top: .4rem; }
.etapa-num {
  font-family: var(--font-display);
  font-size: var(--text-number);
  font-weight: 700;
  color: var(--acento);
  opacity: .16;
  line-height: .8;
  display: block;
  margin-bottom: -.35em;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transform: translateY(10px);
}
.etapa.is-in .etapa-num { opacity: .16; transform: none; }
.etapa-txt { position: relative; }
.etapa-txt h3 { font-size: var(--text-h3); color: var(--acento); margin-bottom: .4rem; }
.etapa-txt p { color: var(--texto-suave); }
/* linha conectora */
.etapa-linha {
  display: none;
  position: absolute; top: 42px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--dourado), hsl(42 30% 70% / .3));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-expo) .2s;
  z-index: 0;
}
.etapa-linha.is-in { transform: scaleX(1); }
@media (min-width: 900px) { .etapa-linha { display: block; } }

/* --- FAQ --- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-titulo { font-size: var(--text-h3); color: var(--acento); margin-bottom: 1.25rem; text-align: center; }
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--canvas);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.1rem 1.25rem;
  min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--tinta);
}
.faq-item summary::-webkit-details-marker { display: none; }
.chevron {
  width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--dourado-escuro);
  border-bottom: 2px solid var(--dourado-escuro);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
  margin-bottom: 3px;
}
.faq-item[open] .chevron { transform: rotate(-135deg); margin-bottom: -3px; }
.faq-corpo {
  display: grid; grid-template-rows: 1fr;
  padding: 0 1.25rem 1.15rem;
}
.faq-corpo p { color: var(--texto-suave); }
.faq-item[open] summary { color: var(--acento); }

/* =========================================================================
   CONTATO
   ========================================================================= */
.sec-contato { overflow: clip; }
.contato-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .contato-grid { grid-template-columns: 1fr 1fr; } }
.contato-intro { margin: 1rem 0 1.75rem; color: var(--texto-inverso-suave); max-width: 42ch; }
.contato-lista { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contato-lista li { display: flex; align-items: flex-start; gap: .85rem; color: var(--texto-inverso-suave); }
.contato-lista a { color: var(--texto-inverso); font-weight: 600; }
.contato-lista a:hover { color: var(--dourado); }
.contato-ico {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: hsl(40 25% 96% / .08);
}
.contato-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--dourado); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contato-mapa {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-inversa);
  box-shadow: var(--sombra);
}
.contato-mapa iframe { width: 100%; height: clamp(280px, 44vw, 420px); border: 0; filter: grayscale(.2) contrast(1.05); }

/* =========================================================================
   RODAPÉ
   ========================================================================= */
.rodape { background: var(--canvas-escuro-2); color: var(--texto-inverso-suave); padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.rodape-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; padding-bottom: 1.75rem; border-bottom: 1px solid var(--hairline-inversa); }
.rodape-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--texto-inverso); display: block; }
.rodape-sub { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dourado); }
.rodape-info { text-align: right; font-size: .95rem; }
.rodape-info a { color: var(--texto-inverso); font-weight: 600; }
.rodape-info a:hover { color: var(--dourado); }
.rodape-legal { margin-top: 1.75rem; font-size: .82rem; line-height: 1.7; color: hsl(210 15% 60%); }
.rodape-legal p + p { margin-top: .5rem; }

/* =========================================================================
   FLUTUANTES
   ========================================================================= */
.zap-float {
  position: fixed; right: clamp(16px, 3vw, 26px); bottom: clamp(16px, 3vw, 26px);
  z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--zap); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px hsl(145 63% 28% / .4);
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .2s var(--ease);
}
.zap-float.is-ready { opacity: 1; transform: scale(1); }
.zap-float.is-hidden { opacity: 0 !important; transform: scale(.6) !important; pointer-events: none; }
.zap-float:hover { background: var(--zap-hover); }
.zap-float svg { width: 30px; height: 30px; fill: currentColor; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  padding: .7rem clamp(.9rem, 4vw, 1.25rem) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: hsl(40 25% 97% / .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }
@media (min-width: 769px) { .sticky-cta { display: none; } }
@media (max-width: 768px) { .zap-float { display: none; } }

/* =========================================================================
   REVEAL (fade-up uniforme)
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 768px) {
  .topo-nav { display: none; }
  main { padding-bottom: 78px; } /* espaço para o sticky CTA não cobrir conteúdo */
  .rodape { padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .areas-nota { flex-direction: column; align-items: flex-start; }
  .areas-nota .btn { width: 100%; }
  .rodape-grid { flex-direction: column; }
  .rodape-info { text-align: left; }
}
@media (max-width: 640px) {
  /* garante que nenhum reveal horizontal cause overflow (segurança) */
  [data-reveal] { transform: translateY(16px); }
}

/* =========================================================================
   PREFERS-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;
  }
  .rubrica { transform: scaleX(1); }
  [data-reveal] { opacity: 1; transform: none; }
}
