/* =========================================================
   Alan Sodré Advogado — landing (sóbrio-jurídico, preto e ouro)
   ========================================================= */

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

:root {
  /* superfícies */
  --canvas: hsl(40 25% 97%);
  --superficie: hsl(40 20% 94%);
  --canvas-tom: hsl(38 20% 90%);
  --canvas-escuro: hsl(30 8% 10%);
  --canvas-escuro-2: hsl(28 8% 14%);
  --preto-fundo: hsl(24 10% 6%);

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

  /* acento (navy) + ouro (só detalhe) */
  --acento: hsl(215 45% 28%);
  --acento-hover: hsl(215 50% 20%);
  --ouro: hsl(40 42% 52%);
  --ouro-claro: hsl(43 58% 72%);

  /* linhas e sombras */
  --hairline: hsl(215 20% 15% / .12);
  --hairline-forte: hsl(215 20% 15% / .24);
  --hairline-inversa: hsl(40 30% 92% / .14);
  --ouro-linha: hsl(40 42% 52% / .45);
  --sombra: 0 18px 45px hsl(215 30% 14% / .09);
  --sombra-hover: 0 26px 60px hsl(215 30% 14% / .16);

  /* tipografia */
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --text-h1: clamp(2.2rem, 5.2vw, 3.9rem);
  --text-h2: clamp(1.75rem, 3.6vw, 2.85rem);
  --text-h3: clamp(1.12rem, 1.7vw, 1.35rem);
  --text-body: clamp(1rem, calc(.35vw + .95rem), 1.12rem);
  --text-number: clamp(2.75rem, 6vw, 4.5rem);
  --text-kicker: .74rem;

  /* layout */
  --maxw: 1220px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 7vw, 6.25rem);
  --content-gap: clamp(1.5rem, 3vw, 2.75rem);
  --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);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--acento); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: .002em; }
em { font-style: italic; }

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

.sec {
  position: relative;
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-h) + 8px);
  overflow: clip;
}
.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--preto  { background: var(--preto-fundo); color: var(--texto-inverso); }

/* ---------- Kicker + cabeçalho de seção ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: var(--text-kicker);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--texto-suave);
  margin-bottom: .85rem;
}
.kicker--ouro { color: var(--ouro); }
.sec--escuro .kicker, .sec--preto .kicker { color: var(--texto-inverso-suave); }
.sec--escuro .kicker--ouro, .sec--preto .kicker--ouro { color: var(--ouro-claro); }

.sec-cabecalho { max-width: 44rem; margin-bottom: var(--content-gap); }
.sec-titulo { font-size: var(--text-h2); position: relative; }
.sec-intro { color: var(--texto-suave); margin-top: 1rem; max-width: 40rem; }
.sec--escuro .sec-intro, .sec--preto .sec-intro { color: var(--texto-inverso-suave); }

.fio-secao { display: block; width: 120px; max-width: 60%; height: 6px; margin-top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  --gap: .55rem;
  display: inline-flex; align-items: center; gap: var(--gap);
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  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: #fff; 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--grande { padding: 1rem 2rem; font-size: 1.06rem; min-height: 54px; }

.btn--fantasma {
  background: transparent; color: inherit;
  border-color: var(--hairline-forte);
}
.sec--escuro .btn--fantasma { border-color: var(--hairline-inversa); }
.btn--fantasma:hover { border-color: var(--ouro); color: var(--ouro-claro); transform: translateY(-2px); }
.sec--claro .btn--fantasma:hover { color: var(--acento); border-color: var(--acento); }

.btn--sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .92rem; }

/* ---------- Ícones (mask) ---------- */
.ico-zap {
  width: 1.25em; height: 1.25em; flex: none;
  background-color: currentColor;
  -webkit-mask: var(--zap) center/contain no-repeat;
  mask: var(--zap) center/contain no-repeat;
  --zap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 0 0-8.52 15.26L2 22l4.9-1.28A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.18-1.14l-.3-.18-2.9.76.77-2.83-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3Cpath fill='black' d='M9.5 7.3c-.18-.4-.36-.4-.53-.41h-.45c-.16 0-.42.06-.64.3-.22.24-.84.82-.84 2s.86 2.32.98 2.48c.12.16 1.68 2.64 4.15 3.6 2.06.8 2.48.64 2.93.6.45-.04 1.45-.6 1.65-1.17.2-.58.2-1.07.14-1.17-.06-.1-.22-.16-.46-.28-.24-.12-1.45-.72-1.67-.8-.22-.08-.39-.12-.55.12-.16.24-.63.8-.77.96-.14.16-.28.18-.52.06-.24-.12-1.03-.38-1.96-1.21-.72-.64-1.21-1.44-1.35-1.68-.14-.24-.02-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.53-1.3-.72-1.78z'/%3E%3C/svg%3E");
}
.ico-zap--grande { width: 28px; height: 28px; }

.fi-ico, .pilar-ico { position: relative; display: inline-flex; }
.fi-ico {
  width: 1.15em; height: 1.15em; flex: none;
  background-color: var(--ouro);
  -webkit-mask: var(--i) center/contain no-repeat;
  mask: var(--i) center/contain no-repeat;
}
.ico-pin      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.ico-relogio  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-zap-fino { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-12.5 7.5L3 20.5l1.5-5.5A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.ico-escudo   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7l8-4z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }

.pilar-ico { width: 56px; height: 56px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--superficie); border: 1px solid var(--ouro-linha); }
.pilar-ico::before {
  content: ""; width: 26px; height: 26px;
  background-color: var(--acento);
  -webkit-mask: var(--i) center/contain no-repeat;
  mask: var(--i) center/contain no-repeat;
}
.ico-conversa   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.5 7.2L3 21l1.8-6.5A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 11h7M8.5 14h4'/%3E%3C/svg%3E"); }
.ico-livro      { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h5v17H6a2 2 0 0 0-2 2V5z'/%3E%3Cpath d='M20 5a2 2 0 0 0-2-2h-5v17h5a2 2 0 0 1 2 2V5z'/%3E%3C/svg%3E"); }
.ico-acompanhar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7L10 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- 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-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.topo.is-scrolled {
  background: hsl(30 10% 8% / .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--ouro-linha);
  box-shadow: 0 10px 30px hsl(0 0% 0% / .28);
}
.marca { display: inline-flex; align-items: center; gap: .6rem; color: var(--texto-inverso); }
.marca-mono { color: var(--ouro); display: inline-flex; }
.marca-nome { display: flex; flex-direction: column; line-height: 1.02; }
.marca-nome strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .01em; }
.marca-nome em { font-family: var(--font-body); font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .32em; color: var(--texto-inverso-suave); }
.topo-nav { margin-left: auto; display: flex; gap: 1.5rem; }
.topo-nav a { color: var(--texto-inverso-suave); font-size: .95rem; font-weight: 600; position: relative; padding: .4rem 0; }
.topo-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--ouro); 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-cta { margin-left: 0; background: transparent; border-color: var(--ouro-linha); color: var(--texto-inverso); }
.topo-nav + .topo-cta { margin-left: 1.5rem; }
.topo-cta:hover { border-color: var(--ouro); color: var(--ouro-claro); transform: translateY(-1px); }

/* ---------- Blobs decorativos ---------- */
.blob {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(90px); opacity: .22; pointer-events: none;
}
.blob--ouro { width: 460px; height: 460px; background: radial-gradient(circle, var(--ouro), transparent 68%); top: -120px; right: -80px; }
.blob--baixo { top: auto; bottom: -160px; right: 50%; transform: translateX(50%); opacity: .16; }

/* ---------- Hero ---------- */
.sec-hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: var(--section-space);
  background:
    radial-gradient(120% 90% at 85% 0%, hsl(30 12% 15%) 0%, transparent 55%),
    linear-gradient(180deg, hsl(30 9% 11%) 0%, hsl(28 9% 8%) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-conteudo { max-width: 34rem; }
.hero-titulo {
  font-size: var(--text-h1);
  margin: .3rem 0 0;
  color: var(--texto-inverso);
}
.hero-titulo em { color: var(--ouro-claro); }
.fio-assinatura { display: block; width: 220px; max-width: 78%; height: 8px; margin-top: 1.1rem; }
.hero-sub { margin-top: 1.4rem; color: var(--texto-inverso-suave); font-size: 1.1rem; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero-micro { margin-top: 1.1rem; font-size: .88rem; color: var(--texto-inverso-suave); letter-spacing: .01em; }

.hero-emblema { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.emblema-painel {
  position: relative;
  width: min(100%, 460px);
  border-radius: var(--r-lg);
  padding: 10px;
  background: linear-gradient(150deg, hsl(40 42% 52% / .55), hsl(40 42% 52% / .12) 40%, hsl(40 42% 52% / .04));
  box-shadow: 0 30px 70px hsl(0 0% 0% / .45);
}
.emblema-painel::after {
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 8px);
  box-shadow: inset 0 0 0 1px hsl(40 42% 52% / .35), inset 0 0 60px hsl(0 0% 0% / .6);
  pointer-events: none;
}
.emblema-img {
  width: 100%; height: auto;
  border-radius: calc(var(--r-lg) - 8px);
  background: hsl(30 8% 10%);
}
.emblema-legenda { font-size: .84rem; color: var(--texto-inverso-suave); letter-spacing: .04em; }

/* ---------- Faixa institucional ---------- */
.faixa-institucional {
  list-style: none; padding: 1.1rem clamp(1rem, 3vw, 1.75rem);
  margin: 0 0 var(--content-gap);
  display: flex; flex-wrap: wrap; gap: .75rem clamp(1.25rem, 3vw, 2.5rem);
  justify-content: center; align-items: center;
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--sombra);
}
.faixa-institucional li {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem; color: var(--tinta);
}

/* ---------- Pilares ---------- */
.pilares {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
}
.pilar {
  background: var(--superficie);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--ouro-linha); }
.pilar h3 { font-size: var(--text-h3); margin: 1.1rem 0 .5rem; }
.pilar p { color: var(--texto-suave); }

.sobre-texto {
  margin-top: var(--content-gap);
  max-width: 46rem;
  font-size: 1.08rem;
  color: var(--texto-suave);
  padding-left: 1.1rem;
  border-left: 2px solid var(--ouro-linha);
}

/* ---------- Áreas de atuação ---------- */
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--content-gap);
}
.area-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex; flex-direction: column; gap: .7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--ouro); }
.area-ico {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--acento);
  border: 1.4px solid var(--ouro-linha);
  border-radius: 10px;
}
.area-card h3 { font-size: var(--text-h3); }
.area-card p { color: var(--texto-suave); flex-grow: 1; }
.area-link {
  margin-top: .4rem; font-weight: 600; font-size: .95rem;
  color: var(--acento); text-decoration: underline; text-underline-offset: 3px;
  align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center;
}
.area-link:hover { color: var(--acento-hover); }

/* ---------- Etapas (como funciona) ---------- */
.etapas {
  list-style: none; padding: 0; margin: 0 0 calc(var(--section-space) * .8);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--content-gap);
}
.etapa { position: relative; padding-top: 1rem; }
.etapa-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-number); line-height: 1;
  color: var(--acento); opacity: .18;
  position: absolute; top: -.35em; left: -.05em; z-index: 0;
}
.etapa h3 { position: relative; z-index: 1; font-size: var(--text-h3); margin-bottom: .45rem; }
.etapa p { position: relative; z-index: 1; color: var(--texto-suave); }

/* ---------- Localização ---------- */
.local-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--content-gap); align-items: stretch;
  margin-bottom: calc(var(--section-space) * .8);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.local-titulo { font-size: var(--text-h3); margin: .3rem 0 .6rem; }
.local-endereco { color: var(--texto-suave); }
.horarios { list-style: none; padding: 0; margin: 1.25rem 0; }
.horarios li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--hairline);
}
.horarios li span:first-child { color: var(--tinta); font-weight: 600; }
.horarios li span:last-child { color: var(--texto-suave); }
.horarios .fechado span:last-child { color: hsl(0 40% 45%); }
.local-nota { color: var(--texto-suave); font-size: .95rem; margin-bottom: 1.4rem; }
.local-mapa {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--hairline); box-shadow: var(--sombra);
  min-height: 320px; aspect-ratio: 4 / 3;
}
.local-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem .25rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: var(--tinta);
}
.faq summary::-webkit-details-marker { display: none; }
.chevron {
  width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--acento); border-bottom: 2px solid var(--acento);
  transform: rotate(45deg); transition: transform .3s var(--ease); margin-top: -4px;
}
.faq details[open] .chevron { transform: rotate(-135deg); margin-top: 2px; }
.faq-corpo {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq details[open] .faq-corpo { grid-template-rows: 1fr; }
.faq-corpo > p { overflow: hidden; color: var(--texto-suave); padding-bottom: 1.15rem; padding-right: 1.5rem; }

/* ---------- Fechamento ---------- */
.sec-fechamento { text-align: center; }
.fechamento-conteudo { position: relative; z-index: 1; max-width: 40rem; margin-inline: auto; }
.fechamento-mono { color: var(--ouro); display: inline-flex; margin-bottom: 1.2rem; }
.fechamento-titulo { font-size: var(--text-h2); color: var(--texto-inverso); }
.fechamento-sub { margin-top: 1.2rem; color: var(--texto-inverso-suave); }
.sec-fechamento .btn--primario { margin-top: 2rem; }

/* ---------- Rodapé ---------- */
.rodape { background: hsl(28 10% 5%); color: var(--texto-inverso-suave); padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.rodape-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--content-gap); padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline-inversa);
}
.rodape-marca { display: flex; align-items: center; gap: .6rem; }
.rodape-marca .marca-mono { color: var(--ouro); }
.rodape-nome { display: flex; flex-direction: column; line-height: 1.05; color: var(--texto-inverso); }
.rodape-nome strong { font-family: var(--font-display); font-size: 1.1rem; }
.rodape-nome em { font-family: var(--font-body); font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .3em; color: var(--texto-inverso-suave); }
.rodape-col h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ouro-claro); margin-bottom: .8rem; }
.rodape-col p { margin-bottom: .5rem; font-size: .96rem; }
.rodape-col a { color: var(--texto-inverso-suave); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; display: inline-block; }
.rodape-col a:hover { color: var(--texto-inverso); }
.rodape-base { padding-block: 1.6rem; font-size: .82rem; color: hsl(40 12% 55%); }
.rodape-base p { margin-bottom: .4rem; }
.rodape-compliance { max-width: 60rem; line-height: 1.5; }

/* ---------- Sticky CTA mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: hsl(30 10% 8% / .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--ouro-linha);
  transform: translateY(115%); transition: transform .35s var(--ease);
  display: none;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta.is-hidden { transform: translateY(115%); }

/* ---------- Zap float desktop ---------- */
.zap-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--acento); color: #fff;
  box-shadow: 0 14px 34px hsl(215 40% 12% / .4);
  transform: scale(0); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease), background-color .2s var(--ease);
}
.zap-float.is-ready { transform: scale(1); opacity: 1; }
.zap-float:hover { background: var(--acento-hover); transform: scale(1.06); }
.zap-float.is-hidden { transform: scale(.5); opacity: 0; pointer-events: none; }

/* ---------- Foco visível ---------- */
a:focus-visible, .btn:focus-visible, summary:focus-visible, .zap-float:focus-visible {
  outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.hero-acoes[data-reveal], .fechamento-conteudo .btn[data-reveal] { transform: none; }

/* fio-assinatura: desenho do traço */
.fio-assinatura path, .fio-secao path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fio-assinatura.is-in path, .fio-secao.is-in path {
  transition: stroke-dashoffset 1.2s var(--ease); stroke-dashoffset: 0;
}

/* ---------- 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: .2s; }
.hero-conteudo > .hero-acoes { animation: hero-fade .9s var(--ease) .3s both; }
.hero-conteudo > .hero-micro  { animation: hero-fade .9s var(--ease) .42s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.emblema-painel { animation: emblema-assenta 1.1s var(--ease-expo) both; animation-delay: .2s; }
@keyframes emblema-assenta {
  from { opacity: 0; transform: translateY(-10px) scale(.98); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-conteudo { max-width: none; order: 2; }
  .hero-emblema { order: 1; }
  .emblema-painel { width: min(70vw, 340px); }
  .pilares, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .etapas { grid-template-columns: repeat(2, 1fr); row-gap: calc(var(--content-gap) + .5rem); }
  .local-grid { grid-template-columns: 1fr; }
  .rodape-grid { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .topo-nav { display: none; }
  .topo-cta { margin-left: auto; }
  .sticky-cta { display: block; }
  .zap-float { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 620px) {
  :root { --header-h: 62px; }
  .pilares, .areas-grid, .etapas { grid-template-columns: 1fr; }
  .emblema-painel { width: min(78vw, 300px); }
  .faixa-institucional { flex-direction: column; align-items: flex-start; }
  .rodape-grid { grid-template-columns: 1fr; }
  /* anti-overflow: reveals horizontais viram verticais (nenhum X aqui, mas garante) */
  [data-reveal] { transform: translateY(14px); }
  [data-reveal].is-in { transform: none; }
}

@media (max-width: 400px) {
  .btn { font-size: .95rem; padding: .8rem 1.15rem; }
  .marca-nome strong { font-size: .98rem; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .fio-assinatura path, .fio-secao path { stroke-dashoffset: 0; }
}
