/* ==========================================================================
   Fabrica Sites — folha compartilhada
   Tokens vindos do gerador; eixos: data-layout, data-corte, data-base.
   ========================================================================== */

:root {
  color-scheme: light;
  --tinta: #1b1713;
  --fundo: #fbf8f3;
  --superficie: #f3ece3;
  --marca: #7a2e12;
  --acento: #c9821f;
  --sobre-marca: #ffffff;
  --sobre-acento: #1a1208;
  --veu: 122, 46, 18;
  --raio: 18px;
  --raio-g: 28px;
  --sombra: 0 1px 2px rgba(24, 18, 12, 0.05), 0 18px 48px -24px rgba(24, 18, 12, 0.32);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --peso-display: 600;
  --trac-display: -0.02em;
  --linha: color-mix(in srgb, var(--tinta) 14%, transparent);
  --linha-forte: color-mix(in srgb, var(--tinta) 24%, transparent);
  --suave: color-mix(in srgb, var(--tinta) 64%, var(--fundo));
  --max: 1180px;
  --borda: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 clamp(16px, 0.55vw + 14.2px, 18px) / 1.65 var(--texto);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

[data-base="escuro"] { color-scheme: dark; }
[data-base="escuro"] body::after { opacity: 0.05; mix-blend-mode: soft-light; }
[data-base="escuro"] img { filter: brightness(0.92); }

img,
svg,
video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: var(--peso-display);
  letter-spacing: var(--trac-display);
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; }
::selection { background: var(--acento); color: var(--sobre-acento); }

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

/* -------------------------------------------------------------------------- */
/* Utilidades                                                                  */
/* -------------------------------------------------------------------------- */

.miolo {
  width: min(var(--max), 100% - clamp(32px, 8vw, 96px));
  margin-inline: auto;
}

.sec {
  padding-block: clamp(64px, 9vw, 124px);
  position: relative;
}

.sec + .sec { border-top: 1px solid var(--linha); }

.rotulo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 700 0.72rem/1.2 var(--texto);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marca);
}

.rotulo::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.lead {
  font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.2rem);
  line-height: 1.6;
  color: var(--suave);
  max-width: 58ch;
}

.cabeca {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 56px);
  display: grid;
  gap: 18px;
}

.cabeca h2,
.sec h2 {
  font-size: clamp(1.95rem, 3.4vw, 3.35rem);
}

.pular {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 90;
  background: var(--marca);
  color: var(--sobre-marca);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.pular:focus { top: 12px; }

.botao {
  --botao-bg: var(--marca);
  --botao-cor: var(--sobre-marca);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.85em 1.45em;
  border: 1px solid transparent;
  border-radius: calc(var(--raio) * 0.8);
  background: var(--botao-bg);
  color: var(--botao-cor);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s ease;
  will-change: transform;
}

.botao:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px var(--botao-bg);
}

.botao svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.botao.vazado {
  background: transparent;
  color: var(--tinta);
  border-color: var(--linha-forte);
}

.botao.vazado:hover {
  border-color: var(--marca);
  box-shadow: none;
  color: var(--marca);
}

.botao-claro {
  --botao-bg: var(--acento);
  --botao-cor: var(--sobre-acento);
}

.botao-pequeno {
  min-height: 42px;
  padding: 0.7em 1.1em;
  font-size: 0.88rem;
}

.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marca);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--marca) 40%, transparent);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}
.link-seta::after { content: "→"; }
.link-seta:hover { gap: 14px; border-color: var(--marca); }

/* -------------------------------------------------------------------------- */
/* Cabeçalho                                                                   */
/* -------------------------------------------------------------------------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--fundo) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.topo[data-rolou="sim"] {
  border-bottom-color: var(--linha);
  box-shadow: 0 12px 36px -32px rgba(0, 0, 0, 0.6);
}

.topo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.marca-simbolo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: calc(var(--raio) * 0.62);
  background: var(--marca);
  color: var(--sobre-marca);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marca-texto {
  font-family: var(--display);
  font-weight: var(--peso-display);
  letter-spacing: var(--trac-display);
  font-size: 1.06rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 26ch;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}

.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--suave);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--marca);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover { color: var(--tinta); }
.nav a:hover::after { transform: scaleX(1); }

.topo-acoes { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--linha);
  border-radius: calc(var(--raio) * 0.6);
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu-movel {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 49;
  background: var(--fundo);
  border-bottom: 1px solid var(--linha);
  padding: 24px clamp(20px, 6vw, 48px) 28px;
  box-shadow: var(--sombra);
}
.menu-movel[hidden] { display: none; }
.menu-movel nav { display: grid; gap: 2px; }
.menu-movel a {
  display: block;
  padding: 14px 0;
  font-family: var(--display);
  font-size: 1.4rem;
  text-decoration: none;
  border-bottom: 1px solid var(--linha);
}
.menu-movel .botao { margin-top: 18px; width: 100%; }

/* -------------------------------------------------------------------------- */
/* Herói                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 82% 4%, color-mix(in srgb, var(--acento) 22%, transparent), transparent 58%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--marca) 16%, transparent), transparent 62%),
    var(--fundo);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 46vw;
  height: 46vw;
  border: 1px solid color-mix(in srgb, var(--marca) 18%, transparent);
  border-radius: 50%;
  z-index: -1;
}

.hero-grade {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(48px, 7vw, 96px);
}

.hero-texto { max-width: 740px; }

.hero h1 {
  font-size: clamp(2.65rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: calc(var(--trac-display) - 0.01em);
  margin-bottom: 22px;
}

[data-layout="sobreposto"] .hero h1 { max-width: 17ch; }
[data-layout="tipografico"] .hero h1 { max-width: 15ch; }

.hero-sub {
  max-width: 54ch;
  font-size: clamp(1.05rem, 0.55vw + 0.94rem, 1.28rem);
  line-height: 1.6;
  color: var(--suave);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.provas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid var(--linha);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--suave);
}

.provas li { display: inline-flex; align-items: center; gap: 9px; }
.provas li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acento);
  flex: none;
}

.hero-figura {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  overflow: hidden;
  border-radius: var(--raio-g);
  box-shadow: var(--sombra);
  background: var(--superficie);
}

.hero-figura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.hero-figura:hover img { transform: scale(1.055); }

.hero-figura::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: none;
}

.hero-fundo img { width: 100%; height: 100%; object-fit: cover; }

.hero-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--fundo) 96%, transparent) 0%,
    color-mix(in srgb, var(--fundo) 88%, transparent) 42%,
    color-mix(in srgb, var(--fundo) 54%, transparent) 72%,
    color-mix(in srgb, var(--fundo) 30%, transparent) 100%);
}

/* Layout: tipográfico */
[data-layout="tipografico"] .hero-grade {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.78fr);
  align-items: end;
}

[data-layout="tipografico"] .hero-figura {
  align-self: end;
  margin-bottom: clamp(-72px, -5vw, -28px);
}

/* Layout: sobreposto */
[data-layout="sobreposto"] .hero { min-height: 78svh; display: flex; align-items: center; }
[data-layout="sobreposto"] .hero-fundo { display: block; }
[data-layout="sobreposto"] .hero-grade { grid-template-columns: 1fr; }
[data-layout="sobreposto"] .hero-figura { display: none; }

/* Layout: split */
[data-layout="split"] .hero-grade { grid-template-columns: 1fr 1fr; }
[data-layout="split"] .hero-figura { aspect-ratio: 1 / 1.08; max-height: 560px; }

/* Cortes */
[data-corte="arco"] .hero-figura {
  border-radius: 999px 999px var(--raio-g) var(--raio-g) / 42% 42% var(--raio-g) var(--raio-g);
}

[data-corte="diagonal"] .hero-figura {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  border-radius: 0;
}
[data-corte="diagonal"] .hero-figura img { transform: scale(1.06); }

[data-corte="reto"] .hero-figura { border-radius: calc(var(--raio) * 0.45); }

/* Sem banco de imagens: o texto ocupa a página, sem placeholder falso. */
.hero-sem-imagem .hero-grade { grid-template-columns: minmax(0, 1fr); }
.hero-sem-imagem .hero-texto { max-width: 860px; }
.hero-sem-imagem .hero h1 { max-width: 19ch; }

.sobre-sem-midia { grid-template-columns: minmax(0, 1fr); }
.sobre-sem-midia .sobre-texto { max-width: 760px; }

/* -------------------------------------------------------------------------- */
/* Faixa / marquee                                                             */
/* -------------------------------------------------------------------------- */

.faixa {
  overflow: hidden;
  border-block: 1px solid var(--linha);
  background: color-mix(in srgb, var(--superficie) 70%, var(--fundo));
  padding-block: 16px;
}

.faixa-trilho {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: faixa-rolar 38s linear infinite;
}

.faixa:hover .faixa-trilho { animation-play-state: paused; }

.faixa-item {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font: 700 0.74rem/1 var(--texto);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--suave);
  white-space: nowrap;
}

.faixa-item::after {
  content: "✦";
  color: var(--acento);
  font-size: 0.7rem;
  letter-spacing: 0;
}

@keyframes faixa-rolar {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------- */
/* Serviços                                                                    */
/* -------------------------------------------------------------------------- */

.grade-servicos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.servico {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: color-mix(in srgb, var(--superficie) 46%, var(--fundo));
  transition: transform 0.45s var(--ease), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.45s var(--ease);
  transform-style: preserve-3d;
}

.servico:hover {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-4px);
  border-color: color-mix(in srgb, var(--marca) 42%, transparent);
  background: var(--fundo);
  box-shadow: var(--sombra);
}

.servico-num {
  font: 600 0.78rem/1 var(--texto);
  letter-spacing: 0.12em;
  color: var(--marca);
  opacity: 0.72;
}

.servico h3 {
  font-size: clamp(1.16rem, 0.6vw + 1.02rem, 1.36rem);
  line-height: 1.14;
  margin-top: 2px;
}

.servico p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--suave);
}

.servico-seta {
  margin-top: auto;
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  color: var(--marca);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease);
}

.servico:hover .servico-seta {
  background: var(--marca);
  color: var(--sobre-marca);
  transform: translateX(3px);
}

.nota-servico {
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--suave);
}
.nota-servico a { color: var(--marca); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* Sobre                                                                       */
/* -------------------------------------------------------------------------- */

.sobre-grade {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}

.sobre-midia { position: relative; }

.sobre-foto {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--raio-g);
  background: var(--superficie);
  box-shadow: var(--sombra);
}

.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }

[data-corte="arco"] .sobre-foto {
  border-radius: 999px 999px var(--raio-g) var(--raio-g) / 38% 38% var(--raio-g) var(--raio-g);
}

[data-corte="diagonal"] .sobre-foto {
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  border-radius: 0;
}

[data-corte="reto"] .sobre-foto { border-radius: calc(var(--raio) * 0.45); }

.sobre-foto-menor {
  position: absolute;
  right: clamp(-18px, -1.5vw, -10px);
  bottom: clamp(18px, 4vw, 44px);
  width: 38%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid var(--fundo);
  border-radius: calc(var(--raio) * 0.85);
  box-shadow: var(--sombra);
  transform: rotate(3deg);
}

.sobre-foto-menor img { width: 100%; height: 100%; object-fit: cover; }

.selo-local {
  position: absolute;
  left: clamp(-12px, -1vw, -6px);
  top: clamp(18px, 3vw, 34px);
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: calc(var(--raio) * 0.7);
  background: var(--marca);
  color: var(--sobre-marca);
  box-shadow: var(--sombra);
}

.selo-local span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}

.selo-local strong { font-size: 0.94rem; line-height: 1.2; }

.sobre-texto h2 { margin-bottom: 20px; max-width: 18ch; }

.sobre-texto p {
  color: var(--suave);
  margin-bottom: 16px;
  max-width: 58ch;
}

.compromissos {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--linha);
}

.compromissos li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--tinta);
}

.compromissos li::before {
  content: "";
  width: 15px;
  height: 1px;
  background: var(--acento);
  flex: none;
  transform: translateY(-4px);
}

/* -------------------------------------------------------------------------- */
/* Diferenciais                                                                */
/* -------------------------------------------------------------------------- */

.lista-dif {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 76px);
}

.dif {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-top: 1px solid var(--linha);
}

.dif:nth-child(-n + 2) { border-top-color: var(--linha-forte); }

.dif-num {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--marca);
  opacity: 0.6;
  padding-top: 3px;
}

.dif h3 {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.28rem);
  margin-bottom: 8px;
}

.dif p { font-size: 0.94rem; line-height: 1.58; color: var(--suave); }

/* -------------------------------------------------------------------------- */
/* Galeria                                                                     */
/* -------------------------------------------------------------------------- */

.grade-galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(130px, 15vw, 190px);
  gap: clamp(10px, 1.2vw, 16px);
}

.galeria-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--raio) * 0.8);
  background: var(--superficie);
}

.galeria-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--raio-g);
}

.galeria-item:nth-child(2) { grid-column: span 2; }
.galeria-item:nth-child(3) { grid-column: span 2; }
.galeria-item:nth-child(4) { grid-column: span 2; }
.galeria-item:nth-child(5) { grid-column: span 2; }

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.galeria-item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.galeria-item:hover img { transform: scale(1.045); }
.galeria-item:hover::after { opacity: 1; }

.galeria-item figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.galeria-item:hover figcaption {
  opacity: 1;
  transform: none;
}

[data-corte="arco"] .galeria-item:nth-child(1) {
  border-radius: 999px 999px var(--raio-g) var(--raio-g) / 30% 30% var(--raio-g) var(--raio-g);
}

[data-corte="diagonal"] .galeria-item:nth-child(1) {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  border-radius: 0;
}

[data-corte="reto"] .galeria-item { border-radius: calc(var(--raio) * 0.3); }

/* -------------------------------------------------------------------------- */
/* FAQ                                                                         */
/* -------------------------------------------------------------------------- */

.faq-grade {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.faq-cabeca { position: sticky; top: 110px; }
.faq-cabeca h2 { margin-bottom: 18px; }
.faq-cabeca .lead { margin-bottom: 24px; }

.faq-lista { border-top: 1px solid var(--linha-forte); }

.faq-item { border-bottom: 1px solid var(--linha); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.1rem);
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--marca); }

.faq-sinal {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--linha-forte);
  border-radius: 50%;
}

.faq-sinal::before,
.faq-sinal::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 1px;
  background: var(--marca);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq-sinal::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-sinal::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] summary { color: var(--marca); }

.faq-resposta {
  padding: 0 44px 24px 0;
  color: var(--suave);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* -------------------------------------------------------------------------- */
/* Chamada final                                                               */
/* -------------------------------------------------------------------------- */

.chamada {
  position: relative;
  overflow: hidden;
  background: var(--marca);
  color: var(--sobre-marca);
  padding-block: clamp(56px, 8vw, 104px);
  isolation: isolate;
}

.chamada::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -60%;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acento) 55%, transparent), transparent 66%);
  z-index: -1;
  opacity: 0.55;
}

.chamada::after {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -40%;
  width: 34vw;
  height: 34vw;
  border: 1px solid color-mix(in srgb, var(--sobre-marca) 22%, transparent);
  border-radius: 50%;
  z-index: -1;
}

.chamada-grade {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.chamada .rotulo { color: color-mix(in srgb, var(--sobre-marca) 72%, transparent); }
.chamada h2 { max-width: 20ch; margin-bottom: 16px; }
.chamada p { color: color-mix(in srgb, var(--sobre-marca) 82%, transparent); max-width: 48ch; }

.chamada-acoes { display: grid; gap: 16px; justify-items: start; }
.chamada-acoes .botao { width: 100%; max-width: 340px; }

.chamada-info {
  font-size: 0.85rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--sobre-marca) 72%, transparent);
}

/* -------------------------------------------------------------------------- */
/* Rodapé                                                                      */
/* -------------------------------------------------------------------------- */

.rodape {
  background: var(--rodape);
  color: var(--sobre-rodape);
  padding-block: clamp(48px, 6vw, 76px) 22px;
  font-size: 0.92rem;
  /* Reaponta o token para as regras internas continuarem legíveis no escuro. */
  --fundo: var(--sobre-rodape);
}

.rodape-grade {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
}

.rodape-marca .marca-texto { color: var(--fundo); white-space: normal; }
.rodape-marca .marca-simbolo { background: var(--acento); color: var(--sobre-acento); }
.rodape-marca p {
  margin-top: 16px;
  color: color-mix(in srgb, var(--fundo) 62%, transparent);
  max-width: 34ch;
  line-height: 1.6;
}

.rodape h3 {
  font: 700 0.7rem/1.2 var(--texto);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fundo) 55%, transparent);
  margin-bottom: 16px;
}

.rodape ul { display: grid; gap: 9px; }

.rodape a {
  color: color-mix(in srgb, var(--fundo) 82%, transparent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rodape a:hover { color: var(--fundo); text-decoration: underline; }

.rodape p { color: color-mix(in srgb, var(--fundo) 78%, transparent); }
.rodape .credito { font-size: 0.78rem; color: color-mix(in srgb, var(--fundo) 60%, transparent); margin-top: 12px; }

.rodape-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--fundo) 16%, transparent);
  font-size: 0.76rem;
  color: color-mix(in srgb, var(--fundo) 60%, transparent);
}

/* -------------------------------------------------------------------------- */
/* WhatsApp flutuante                                                          */
/* -------------------------------------------------------------------------- */

.zap-flutuante {
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 13px;
  border-radius: 999px;
  background: #25d366;
  color: #083b20;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(6, 50, 26, 0.55);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s ease, box-shadow 0.3s ease;
}

.zap-flutuante.pronto {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.zap-flutuante:hover { box-shadow: 0 16px 36px -10px rgba(6, 50, 26, 0.65); }
.zap-flutuante svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.zap-flutuante span { line-height: 1; }

.zap-flutuante::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25d366;
  animation: zap-pulso 3.6s ease-out infinite;
  pointer-events: none;
}

@keyframes zap-pulso {
  0%, 100% { opacity: 0; transform: scale(1); }
  8% { opacity: 0.55; }
  40% { opacity: 0; transform: scale(1.18); }
}

/* -------------------------------------------------------------------------- */
/* Movimento e revelação                                                       */
/* -------------------------------------------------------------------------- */

.cursor-luz {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--acento) 26%, transparent), transparent 62%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s ease;
}

html.js[data-modulos*="cursor"] .cursor-luz.ativo { opacity: 0.85; }

html.js [data-revelar] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

html.js [data-revelar].visivel {
  opacity: 1;
  transform: none;
}

html.js [data-revelar-item] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js [data-revelar].visivel [data-revelar-item] {
  opacity: 1;
  transform: none;
}

@keyframes subir {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

html.js .hero-texto > * {
  animation: subir 0.95s var(--ease) both;
}
html.js .hero-texto > :nth-child(2) { animation-delay: 0.08s; }
html.js .hero-texto > :nth-child(3) { animation-delay: 0.16s; }
html.js .hero-texto > :nth-child(4) { animation-delay: 0.24s; }
html.js .hero-texto > :nth-child(5) { animation-delay: 0.32s; }
html.js .hero-figura { animation: subir 1.2s var(--ease) 0.12s both; }

[data-tilt] { transition: transform 0.25s ease; }

/* -------------------------------------------------------------------------- */
/* Responsivo                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .grade-servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sobre-grade { grid-template-columns: 1fr 1fr; gap: 36px; }
  .rodape-grade { grid-template-columns: 1.2fr 1fr 1fr; }
  .rodape-grade > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav, .topo-zap { display: none; }
  .menu-btn { display: grid; }

  .hero-grade,
  [data-layout="tipografico"] .hero-grade,
  [data-layout="split"] .hero-grade {
    grid-template-columns: 1fr;
    padding-block: 44px 56px;
  }

  [data-layout="tipografico"] .hero-figura { margin-bottom: 0; max-height: 460px; }
  [data-layout="split"] .hero-figura { max-height: 480px; aspect-ratio: 4 / 3; }
  [data-layout="sobreposto"] .hero { min-height: auto; }
  [data-layout="sobreposto"] .hero-fundo::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--fundo) 94%, transparent) 0%,
      color-mix(in srgb, var(--fundo) 88%, transparent) 58%,
      color-mix(in srgb, var(--fundo) 74%, transparent) 100%);
  }

  .sobre-grade { grid-template-columns: 1fr; }
  .sobre-midia { max-width: 520px; }
  .sobre-foto { aspect-ratio: 1 / 1; }
  .sobre-foto-menor { width: 34%; }

  .lista-dif { grid-template-columns: 1fr; }
  .dif:nth-child(2) { border-top-color: var(--linha); }

  .faq-grade { grid-template-columns: 1fr; gap: 28px; }
  .faq-cabeca { position: static; }

  .chamada-grade { grid-template-columns: 1fr; }

  .rodape-grade { grid-template-columns: 1fr 1fr; }

  .grade-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .galeria-item:nth-child(2),
  .galeria-item:nth-child(3),
  .galeria-item:nth-child(4),
  .galeria-item:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 620px) {
  .topo-inner { min-height: 68px; gap: 12px; }
  .menu-movel { inset-block-start: 68px; }
  .marca-texto { font-size: 0.98rem; max-width: 17ch; }
  .marca-simbolo { width: 36px; height: 36px; }

  .hero h1 { font-size: clamp(2.05rem, 10.5vw, 3.2rem); overflow-wrap: break-word; }
  .provas { gap: 10px 18px; font-size: 0.82rem; }
  .acoes .botao { flex: 1 1 100%; }

  .grade-servicos { grid-template-columns: 1fr; }
  .servico { min-height: 0; }

  .galeria-item figcaption { opacity: 1; transform: none; font-size: 0.76rem; }
  .galeria-item::after { opacity: 0.55; }

  .rodape-grade { grid-template-columns: 1fr; gap: 28px; }
  .rodape-grade > :last-child { grid-column: auto; }
  .rodape-base { flex-direction: column; align-items: flex-start; }

  .zap-flutuante span { display: none; }
  .zap-flutuante { padding: 14px; }
  .zap-flutuante svg { width: 26px; height: 26px; }
}

@media (hover: none) {
  .galeria-item figcaption { opacity: 1; transform: none; }
  .galeria-item::after { opacity: 0.45; }
}

/* -------------------------------------------------------------------------- */
/* Preferências do sistema                                                     */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-revelar],
  html.js [data-revelar-item],
  html.js .hero-texto > *,
  html.js .hero-figura {
    opacity: 1 !important;
    transform: none !important;
  }
  .faixa-trilho { animation: none; }
  .zap-flutuante::before { display: none; }
}

@media print {
  .topo, .zap-flutuante, .faixa, .cursor-luz { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .chamada, .rodape { background: #fff !important; color: #000 !important; }
  a { text-decoration: underline; }
}

/* -------------------------------------------------------------------------- */
/* Etapas (molde autoridade)                                                    */
/* -------------------------------------------------------------------------- */

.lista-etapas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.etapa {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 20px;
  border-top: 1px solid var(--linha-forte);
}

.etapa-num {
  font: 600 0.8rem/1 var(--texto);
  letter-spacing: 0.12em;
  color: var(--marca);
  opacity: 0.7;
}

.etapa h3 {
  font-size: clamp(1.06rem, 0.35vw + 1rem, 1.22rem);
  line-height: 1.2;
}

.etapa p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--suave);
}

@media (max-width: 860px) {
  .lista-etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lista-etapas { grid-template-columns: 1fr; }
}
