/* ============================================================
   Reney Mendes Fernandes Advocacia — style.css
   Modo tipográfico (sem fotos). Azul-marinho com dourado discreto.
   ============================================================ */

:root {
  /* superfícies */
  --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 */
  --tinta:               hsl(215 30% 14%);
  --texto-suave:         hsl(215 12% 38%);
  --texto-inverso:       hsl(40 25% 96%);
  --texto-inverso-suave: hsl(210 15% 74%);

  /* acento */
  --acento:            hsl(215 45% 28%);
  --acento-hover:      hsl(215 50% 20%);
  --acento-secundario: hsl(42 35% 48%);   /* dourado: SÓ detalhe fino */

  /* 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 18px 55px hsl(215 40% 10% / .10);
  --sombra-hover: 0 26px 70px hsl(215 40% 10% / .16);

  /* tipografia */
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-h1:     clamp(2.5rem, 7vw, 5.25rem);
  --text-h2:     clamp(1.75rem, 3.6vw, 3rem);
  --text-h3:     clamp(1.15rem, 1.8vw, 1.4rem);
  --text-body:   clamp(1rem, calc(.35vw + .94rem), 1.125rem);
  --text-number: clamp(2.75rem, 6vw, 5rem);
  --text-kicker: .78rem;

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

  /* 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);
}

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

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

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

img, svg, iframe { max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; }

p { margin: 0; }

::selection { background: var(--acento); color: var(--texto-inverso); }

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  position: relative;
  padding-block: var(--section-space);
  overflow: hidden;
}

.sec--claro  { background: var(--canvas); }
.sec--tom    { background: var(--canvas-tom); }
.sec--escuro { background: var(--canvas-escuro); color: var(--texto-inverso); }

/* ---------- kicker / cabeçalho de seção ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1rem;
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acento);
}
.kicker--inverso { color: var(--texto-inverso-suave); }

.sec-num {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0;
  color: hsl(40 52% 32%);
}
.kicker--inverso .sec-num { color: var(--acento-secundario); }
.ponto { color: var(--acento-secundario); }

.sec-cab { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-titulo { font-family: var(--font-display); font-size: var(--text-h2); }
.sec-intro { margin-top: 1.1rem; color: var(--texto-suave); max-width: 40rem; }
.sec-cab--inverso .sec-intro { color: var(--texto-inverso-suave); }

/* ---------- fio dourado (assinatura) ---------- */
.fio-ouro {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--acento-secundario), hsl(42 35% 48% / 0));
  border-radius: 2px;
  transform-origin: left center;
}
.fio-hero {
  width: min(320px, 60%);
  margin: 1.5rem 0 1.75rem;
  transform: scaleX(0);
  animation: fio-draw 1s var(--ease-expo) .5s forwards;
}
@keyframes fio-draw { to { transform: scaleX(1); } }
.fio-centro {
  width: 120px;
  margin: 1.75rem auto;
  background: linear-gradient(90deg, hsl(42 35% 48% / 0), var(--acento-secundario), hsl(42 35% 48% / 0));
  transform-origin: center;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .75rem 1.5rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px 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-grande { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn-compacto { padding: .55rem 1.1rem; min-height: 40px; font-size: .95rem; }

.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;
  color: var(--acento);
  border-color: var(--hairline-forte);
}
.btn-secundario:hover { border-color: var(--acento); color: var(--acento-hover); transform: translateY(-2px); }
.btn-secundario--inverso { color: var(--texto-inverso); border-color: var(--hairline-inversa); }
.btn-secundario--inverso:hover { border-color: var(--texto-inverso); color: var(--texto-inverso); }

.ico-zap { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- link com seta ---------- */
.link-seta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 1.15rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--acento);
  min-height: 44px;
}
.link-seta span { transition: transform .25s var(--ease); }
.link-seta:hover span { transform: translateX(4px); }
.link-seta--inverso { color: var(--texto-inverso); }

/* ============================================================
   HEADER FIXO — por ID (nunca por tag header)
   ============================================================ */
#topo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  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(215 40% 10% / .96);
  border-bottom-color: hsl(42 35% 48% / .45);
  box-shadow: 0 10px 30px hsl(215 40% 6% / .35);
}
.topo-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marca { display: flex; flex-direction: column; line-height: 1.05; color: var(--texto-inverso); }
.marca-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.marca-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--acento-secundario); }

/* ============================================================
   HERO
   ============================================================ */
.sec-hero {
  min-height: min(92vh, 760px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 100% 0%, hsl(215 45% 20%) 0%, hsl(215 45% 20% / 0) 55%),
    radial-gradient(90% 80% at 0% 100%, hsl(215 50% 14%) 0%, hsl(215 50% 14% / 0) 55%),
    linear-gradient(150deg, hsl(215 42% 12%), hsl(215 45% 8%));
}
.hero-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsl(40 25% 96% / .5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .05;
}
.hero-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(215 45% 8% / .2), hsl(215 45% 8% / .55));
}
.hero-fundo--suave { opacity: .9; }

.hero-inner { position: relative; z-index: 1; }
.hero-conteudo { max-width: 46rem; }

.hero-nome {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--texto-inverso);
}
.hero-nome em { font-style: italic; color: var(--texto-inverso); position: relative; }

.hero-sub {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  color: var(--texto-inverso-suave);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero-micro {
  margin-top: 1.35rem;
  font-size: .92rem;
  color: var(--texto-inverso-suave);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.sec-confianca { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.fatos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, 1fr);
}
.fato { display: flex; gap: 1rem; align-items: flex-start; }
.fato-ico {
  width: 30px; height: 30px; flex: none;
  fill: none;
  stroke: var(--acento-secundario);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.fato strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; color: var(--tinta); }
.fato span { color: var(--texto-suave); font-size: .96rem; line-height: 1.55; }

/* ============================================================
   CARDS DE ÁREA
   ============================================================ */
.cards-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  position: relative;
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-fio {
  width: 34px;
  height: 2px;
  margin-bottom: 1.35rem;
  transform: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: hsl(42 35% 48% / .55); }

.area-ico {
  width: 42px; height: 42px;
  fill: none;
  stroke: var(--acento);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}
.area-card h3 { font-family: var(--font-display); font-size: var(--text-h3); margin-bottom: .6rem; }
.area-card p { color: var(--texto-suave); font-size: .97rem; }

.areas-nota {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--acento-secundario);
  background: hsl(215 45% 28% / .05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--texto-suave);
  font-size: .98rem;
  max-width: 46rem;
}

/* ============================================================
   COMO ATUAMOS (escuro)
   ============================================================ */
.sec-atuamos .hero-fundo { z-index: 0; }
.sec-atuamos .wrap { position: relative; z-index: 1; }
.pilares {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.pilar {
  background: hsl(215 32% 15% / .7);
  border: 1px solid var(--hairline-inversa);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.pilar-fio { width: 34px; height: 2px; margin-bottom: 1.25rem; transform: none; }
.pilar h3 { font-family: var(--font-display); font-size: var(--text-h3); color: var(--texto-inverso); margin-bottom: .55rem; }
.pilar p { color: var(--texto-inverso-suave); font-size: .97rem; }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.etapas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.etapa { display: flex; gap: 1.1rem; align-items: flex-start; }
.etapa-num {
  font-family: var(--font-display);
  font-size: var(--text-number);
  line-height: .85;
  font-weight: 700;
  color: var(--acento);
  opacity: .22;
  flex: none;
}
.etapa h3 { font-family: var(--font-display); font-size: var(--text-h3); margin-bottom: .4rem; }
.etapa p { color: var(--texto-suave); font-size: .97rem; }

.funciona-cta { margin-top: clamp(2.25rem, 4vw, 3.25rem); }

/* ============================================================
   SOBRE + FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.faq-sobre .sec-titulo { margin-bottom: 1.25rem; }
.sobre-texto { color: var(--texto-suave); margin-bottom: 1rem; }

.faq-lista { display: grid; gap: .75rem; }
.faq-item {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: hsl(42 35% 48% / .5); box-shadow: var(--sombra); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tinta);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sinal {
  position: relative;
  width: 18px; height: 18px; flex: none;
}
.faq-sinal::before, .faq-sinal::after {
  content: "";
  position: absolute;
  background: var(--acento-secundario);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq-sinal::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-sinal::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-sinal::after { transform: scaleY(0); opacity: 0; }

.faq-corpo {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-item[open] .faq-corpo { grid-template-rows: 1fr; }
.faq-corpo > p {
  overflow: hidden;
  padding: 0 1.25rem;
  color: var(--texto-suave);
  font-size: .97rem;
}
.faq-item[open] .faq-corpo > p { padding-bottom: 1.15rem; }

/* ============================================================
   FECHAMENTO / AGENDAR
   ============================================================ */
.sec-agendar .wrap { position: relative; z-index: 1; }
.agendar-topo { text-align: center; max-width: 42rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.agendar-topo .sec-titulo { font-size: var(--text-h2); }
.agendar-topo .btn { margin-top: .5rem; }

.agendar-info {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.info-bloco h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--texto-inverso); margin-bottom: .65rem; }
.info-bloco p { color: var(--texto-inverso-suave); font-size: .97rem; }
.info-mapa {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline-inversa);
  min-height: 210px;
  grid-column: 1 / -1;
}
@media (min-width: 720px) { .info-mapa { grid-column: auto; } }
.info-mapa iframe { display: block; width: 100%; height: 100%; min-height: 210px; border: 0; filter: grayscale(.25) contrast(1.02); }

/* ---------- rodapé ---------- */
.rodape {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline-inversa);
}
.rodape-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.rodape-marca { display: flex; flex-direction: column; }
.rodape-marca .marca-nome { font-size: 1.15rem; }
.rodape-links { display: flex; flex-direction: column; gap: .55rem; }
.rodape-links a { color: var(--texto-inverso-suave); font-size: .95rem; transition: color .2s var(--ease); }
.rodape-links a:hover { color: var(--texto-inverso); }
.rodape-contato p { color: var(--texto-inverso-suave); font-size: .95rem; margin-bottom: .3rem; }
.rodape-contato a:hover { color: var(--texto-inverso); }

.rodape-base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--hairline-inversa);
}
.rodape-base p { color: var(--texto-inverso-suave); font-size: .82rem; line-height: 1.6; }
.rodape-compliance { margin-top: .4rem; opacity: .8; }

/* ============================================================
   STICKY CTA (mobile) + ZAP FLOAT (desktop)
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: hsl(215 40% 10% / .97);
  border-top: 1px solid hsl(42 35% 48% / .4);
  transform: translateY(115%);
  transition: transform .35s var(--ease);
  display: none;
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

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

@media (min-width: 769px) { .zap-float { display: flex; } }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 78px; }
  .marca-sub { display: none; }
  .btn-compacto span { display: none; }
  .btn-compacto { padding: .55rem .8rem; }
}

/* ============================================================
   MOTION — reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* No mobile, nenhum reveal horizontal (aqui já é só Y, mantido por segurança) */
@media (max-width: 600px) {
  [data-reveal] { transform: translateY(18px); }
}

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .fatos { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 400px) {
  :root { --gutter: 1.15rem; }
}

/* ============================================================
   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;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .fio-hero { transform: scaleX(1) !important; }
}
