
/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --fundo: #0c0a09;          /* MESMA cor usada nos prompts das imagens */
  --fundo-2: #14110d;
  --texto: #f4efe9;
  --texto-suave: #b4a99a;
  --acento: #ef6603;         /* laranja da marca */
  --acento-texto: #0c0a09;
  --linha: rgb(244 239 233 / .13);
  --painel: rgb(16 13 11 / .66);
  --mistura: lighten;

  --fonte-titulo: "Instrument Serif", Georgia, serif;
  --fonte-texto: "Manrope", system-ui, sans-serif;

  --raio: 16px;
  --gutter: clamp(18px, 4vw, 64px);
  --largura: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; color-scheme: dark; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(15.5px, 1.02vw, 17.5px)/1.7 var(--fonte-texto);
  letter-spacing: .005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.menu-aberto { overflow: hidden; }
::selection { background: var(--acento); color: var(--acento-texto); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* Grão de filme: tira o aspecto "liso de IA" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(4) infinite;
}
@keyframes grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 5.9vw, 88px); line-height: .98; }
h2 { font-size: clamp(34px, 4.3vw, 62px); }
h3 { font-family: var(--fonte-texto); font-weight: 600; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.3; margin: 0 0 .4em; letter-spacing: -.005em; }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }
.painel > :last-child { margin-bottom: 0; }

/* ── Topo ──────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  background: linear-gradient(to bottom, rgb(12 10 9 / .55), transparent);
  transition: background .4s var(--ease), backdrop-filter .4s, padding .4s var(--ease);
}
.topo.rolou {
  padding-block: 12px;
  background: rgb(12 10 9 / .74);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgb(244 239 233 / .08);
}
.marca { text-decoration: none; display: flex; align-items: center; position: relative; z-index: 72; }
.marca-logo { height: clamp(38px, 3.4vw, 50px); width: auto; }

.menu { display: flex; gap: clamp(18px, 2.2vw, 32px); align-items: center; font-size: 12.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.menu a { text-decoration: none; opacity: .74; transition: opacity .3s; position: relative; padding: 4px 0; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--acento); transition: width .35s var(--ease); }
.menu a:hover { opacity: 1; }
.menu a:hover::after { width: 100%; }
.menu-cta {
  border: 1px solid var(--linha); padding: 10px 18px !important; border-radius: 999px;
  opacity: 1 !important; transition: background .3s, border-color .3s, color .3s;
}
.menu-cta::after { display: none; }
.menu-cta:hover { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); }

.menu-botao {
  display: none; position: relative; z-index: 72;
  width: 44px; height: 44px; border: 1px solid var(--linha); border-radius: 50%;
  background: rgb(12 10 9 / .4); color: var(--texto); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.menu-botao span { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.menu-botao[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-botao[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Abertura cinematográfica ──────────────────────────────────────────── */
.cine { position: relative; height: var(--altura, 470vh); }
.cine-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--fundo); }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(12 10 9 / .6), transparent 20%),
    radial-gradient(120% 92% at 50% 44%, transparent 48%, rgb(0 0 0 / .5) 100%),
    linear-gradient(to bottom, transparent 62%, var(--fundo) 100%);
}
.momento {
  position: absolute; inset: auto var(--gutter) 12vh; max-width: 700px;
  opacity: 0; transform: translateY(26px); filter: blur(7px);
  transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); bottom: 16vh; max-width: 540px; }
.momento--centro {
  left: 50%; right: auto; transform: translate(-50%, 26px); text-align: center;
  width: min(620px, calc(100% - 2 * var(--gutter)));
}
.momento--centro.ativo { transform: translate(-50%, 0); }
.momento .painel { padding: clamp(26px, 3.2vw, 44px); }
.momento--centro .painel { padding-inline: clamp(22px, 4vw, 52px); }

.sobre-titulo {
  display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--acento); margin-bottom: 18px;
}
.titulo-abertura { margin-bottom: .28em; }
.titulo-abertura em { font-style: italic; color: var(--acento); }
.apoio { font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.65; margin: 0; max-width: 48ch; }
.momento--centro .apoio { margin-inline: auto; }
.destaque { font-family: var(--fonte-titulo); font-size: clamp(25px, 2.7vw, 40px); line-height: 1.12; color: var(--texto); margin: 0 0 .55em; letter-spacing: -.01em; }
.momento--centro .botao { margin-top: 27px; }

.cine-dica {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 10px; letter-spacing: .34em;
  text-transform: uppercase; opacity: .55; transition: opacity .5s;
}
.cine-dica span { width: 1px; height: 38px; background: linear-gradient(var(--texto), transparent); animation: dica 2s var(--ease) infinite; }
@keyframes dica { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cine.andou .cine-dica { opacity: 0; }

/* ── Painéis ───────────────────────────────────────────────────────────── */
.painel {
  position: relative;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(26px, 3.4vw, 52px);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
}
.painel--vidro { background: rgb(10 8 7 / .52); border-color: rgb(244 239 233 / .17); }
.rotulo {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--acento); margin-bottom: 20px;
}
.rotulo::after { content: ""; width: 42px; height: 1px; background: var(--acento); opacity: .55; }

/* ── Seções ────────────────────────────────────────────────────────────── */
.secao {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; padding: 15vh var(--gutter);
  display: grid; align-content: center;
  background: var(--fundo);
}
.secao:not(.secao--contato)::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(to right, transparent, var(--linha) 10%, var(--linha) 90%, transparent);
}
.secao-grade { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 40px; }
.secao-grade--direita { grid-template-columns: 1fr minmax(0, 620px); }
.secao-grade--direita > .painel { grid-column: 2; }
.secao--larga { gap: 26px; justify-items: center; }
.painel--cabecalho { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px 56px; align-items: end; }
.painel--cabecalho .rotulo { grid-column: 1 / -1; margin-bottom: 0; }
.painel--cabecalho h2 { margin-bottom: 0; }
.entrada { margin: 0 0 6px; font-size: 15.5px; line-height: 1.65; max-width: 44ch; }

.fatos { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.fatos li { border-top: 1px solid var(--linha); padding: 12px 0 12px 20px; position: relative; font-size: 14px; color: var(--texto-suave); }
.fatos li:last-child { border-bottom: 1px solid var(--linha); }
.fatos li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 6px; height: 6px; background: var(--acento); }
.link-seta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--texto); padding-bottom: 7px;
  border-bottom: 1px solid var(--acento); transition: gap .35s var(--ease);
}
.link-seta span { color: var(--acento); }
.link-seta:hover { gap: 18px; }

/* ── Serviços ──────────────────────────────────────────────────────────── */
.servicos-painel { width: 100%; max-width: var(--largura); padding: 8px clamp(10px, 2vw, 26px); }
.servicos-lista { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.servico {
  display: grid; grid-template-columns: 42px 1fr; gap: 4px 10px;
  padding: 26px 4px; border-top: 1px solid var(--linha);
  transition: background .4s var(--ease), padding-left .4s var(--ease);
}
.servico:nth-child(-n+2) { border-top: 0; }
.servico:hover { background: rgb(255 255 255 / .022); padding-left: 10px; }
.servico-num { font-family: var(--fonte-titulo); font-size: 17px; line-height: 1.5; color: var(--acento); opacity: .9; }
.servico h3 { margin-bottom: .3em; }
.servico p { margin: 0; font-size: 14px; line-height: 1.6; }
.servico > div { min-width: 0; }

/* ── Sistemas ──────────────────────────────────────────────────────────── */
.sistemas-lista { margin-top: 26px; border-top: 1px solid var(--linha); }
.sistema {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 21px 0; border-bottom: 1px solid var(--linha); text-decoration: none;
  transition: padding-left .4s var(--ease);
}
.sistema h3 { margin-bottom: .25em; transition: color .3s; }
.sistema p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 46ch; }
.sistema-seta { color: var(--acento); font-size: 21px; line-height: 1.3; transition: transform .4s var(--ease); }
.sistema:hover { padding-left: 8px; }
.sistema:hover h3 { color: var(--acento); }
.sistema:hover .sistema-seta { transform: translate(4px, -4px); }
.sistema[href="#contato"]:hover .sistema-seta { transform: translateX(5px); }
.nota { font-size: 12px; letter-spacing: .04em; color: var(--texto-suave); opacity: .7; margin: 18px 0 0; }

/* ── Processo ──────────────────────────────────────────────────────────── */
.passos { list-style: none; margin: 26px 0 0; padding: 0; }
.passos li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--linha); }
.passos li:last-child { border-bottom: 1px solid var(--linha); }
.passo-num { font-family: var(--fonte-titulo); font-size: 42px; line-height: .95; color: var(--acento); opacity: .85; }
.passos strong { display: block; font-size: 16.5px; font-weight: 600; margin: 4px 0 5px; }
.passos p { margin: 0; font-size: 14px; line-height: 1.6; }

/* ── Contato ───────────────────────────────────────────────────────────── */
.secao--contato { padding-top: 16vh; padding-bottom: 12vh; }
.contato-grade {
  width: 100%; max-width: var(--largura); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr);
  gap: 24px; align-items: start;
}
.painel--form h2 { margin-bottom: .35em; }
.painel--form > p { max-width: 52ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 26px; }
.campo { display: grid; gap: 7px; min-width: 0; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.campo input, .campo textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--texto);
  background: rgb(255 255 255 / .035); border: 1px solid var(--linha); border-radius: 10px;
  padding: 14px 15px; transition: border-color .3s, background .3s; resize: vertical;
}
.campo input::placeholder, .campo textarea::placeholder { color: rgb(244 239 233 / .32); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); background: rgb(255 255 255 / .06); }
.campo.erro input { border-color: #d9776b; }
.pote { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 13.5px; }
.form-status.ok { color: var(--acento); }
.form-status.falha { color: #e39a90; }

.contato-info { position: sticky; top: 104px; }
.contato-info h3 { font-size: 19px; margin-bottom: 20px; }
.contato-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 17px; }
.contato-lista li { display: grid; gap: 3px; }
.contato-lista span { font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--acento); }
.contato-lista a { text-decoration: none; font-size: 14.5px; line-height: 1.5; color: var(--texto); transition: color .3s; }
.contato-lista a:hover { color: var(--acento); }
.botao.botao--zap { width: 100%; margin-top: 26px; background: #25d366; color: #06130b; }
.botao.botao--zap:hover { filter: brightness(1.05); }

/* ── Botões ────────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--fonte-texto); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  color: var(--acento-texto); background: var(--acento); border: 0; border-radius: 999px;
  padding: 17px 30px; transition: transform .4s var(--ease), filter .3s;
}
.botao:hover { transform: translateY(-2px); filter: brightness(1.07); }
.botao[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── WhatsApp flutuante ────────────────────────────────────────────────── */
.whats {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .4);
  transform: scale(0); transition: transform .5s var(--ease);
}
.whats.visivel { transform: scale(1); }
.whats:hover { transform: scale(1.07); }
.whats svg { width: 30px; height: 30px; }
.whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; }
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ── Rodapé ────────────────────────────────────────────────────────────── */
.rodape { padding: 0 var(--gutter) 32px; background: var(--fundo); }
.rodape-painel {
  max-width: var(--largura); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 36px;
  align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--texto-suave);
  padding: 24px 30px;
}
.rodape-logo { height: 30px; width: auto; }

/* ── Arte: imagens fundidas ao fundo ───────────────────────────────────── */
.arte {
  position: absolute; z-index: -1; pointer-events: none;
  object-fit: cover; mix-blend-mode: var(--mistura);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.arte--direita, .arte--esquerda { top: 0; bottom: 0; width: 64vw; height: 100%; }
.arte--direita {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to left, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--esquerda {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to right, #000 38%, transparent 96%), linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.arte--fundo {
  inset: 0; width: 100%; height: 100%; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: radial-gradient(closest-side, #000 35%, transparent 100%), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.arte--suave { opacity: .34; }
.arte[data-parallax] { will-change: transform; }

/* ── Revelar ao rolar ──────────────────────────────────────────────────── */
.revelar { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.15s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .secao-grade, .secao-grade--direita { grid-template-columns: minmax(0, 560px) 1fr; gap: 28px; }
  .secao-grade--direita { grid-template-columns: 1fr minmax(0, 560px); }
  .contato-grade { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
  .painel--cabecalho { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Celular ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .menu-botao { display: flex; }
  .menu {
    position: fixed; inset: 0; z-index: 65;
    flex-direction: column; justify-content: center; gap: 26px;
    padding: 90px var(--gutter) 48px;
    background: rgb(12 10 9 / .97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    font-size: 21px; letter-spacing: .06em;
    transform: translateY(-100%); opacity: 0; visibility: hidden;
    transition: transform .55s var(--ease), opacity .4s, visibility .4s;
  }
  .menu.aberto { transform: none; opacity: 1; visibility: visible; }
  .menu a::after { display: none; }
  .menu-cta { font-size: 15px; padding: 14px 24px !important; }

  .cine { --altura: 400vh !important; }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: 9vh; max-width: none; }
  .momento--centro { left: 50%; right: auto; width: calc(100% - 2 * var(--gutter)); }
  .momento .painel { padding: 22px; }
  .apoio { font-size: 14px; }
  .titulo-abertura { font-size: clamp(38px, 10.8vw, 54px); }

  .secao { padding: 13vh var(--gutter); min-height: auto; }
  .secao-grade, .secao-grade--direita { grid-template-columns: 1fr; gap: 0; }
  .secao-grade--direita > .painel { grid-column: 1; }
  .arte--direita, .arte--esquerda {
    left: 0; right: 0; width: 100%; height: 82%; opacity: .5;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 58%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 58%, transparent);
  }
  .servicos-lista { grid-template-columns: 1fr; }
  .servico:nth-child(2) { border-top: 1px solid var(--linha); }
  .contato-grade { grid-template-columns: 1fr; }
  .contato-info { position: static; order: 2; }
  .painel--form { order: 1; }
  .passos li { grid-template-columns: 52px 1fr; }
  .passo-num { font-size: 34px; }
  .rodape-painel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .servico { grid-template-columns: 34px 1fr; }
  .contato-lista a { font-size: 14px; }
  .cine-dica { bottom: 18px; }
  .whats { width: 50px; height: 50px; right: 14px; bottom: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .45), 0 0 0 4px rgb(12 10 9 / .55); }
  .whats svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .momento:first-of-type { opacity: 1; transform: none; filter: none; }
  .cine { height: 100svh; }
  .momento:not(:first-of-type), .cine-dica { display: none; }
}
