
/* ── Tokens: ajuste pela identidade visual do cliente ───────────────────── */
:root {
  --fundo: #0b0b0c;          /* MESMA cor usada nos prompts das imagens */
  --fundo-2: #161618;
  --texto: #ededeb;
  --texto-suave: #a9a9ad;
  --acento: #c9a24a;         /* dourado do logo Carrara */
  --acento-texto: #0b0b0c;   /* texto sobre o acento */
  --linha: rgb(237 237 235 / 0.12);
  --painel: rgb(22 22 24 / 0.62);
  --mistura: lighten;        /* tema escuro: lighten | tema claro: multiply */

  --fonte-titulo: "Geist", system-ui, sans-serif;
  --fonte-texto: "Geist", system-ui, sans-serif;

  --raio: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --largura: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
/* Tema claro (marcas de luz, saúde, casamento etc.): troque os tokens assim
:root {
  --fundo: #f4efe7; --fundo-2: #ebe4d8; --texto: #1d1a16; --texto-suave: #5d564c;
  --linha: rgb(29 26 22 / .12); --painel: rgb(244 239 231 / .7); --mistura: multiply;
}
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--fonte-texto);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Grão de filme: tira o aspecto "liso de IA" */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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, h3 { font-family: var(--fonte-titulo); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 96px); }
h2 { font-size: clamp(32px, 4.2vw, 64px); }
h3 { font-size: clamp(21px, 1.8vw, 27px); font-weight: 500; }
p { margin: 0 0 1em; color: var(--texto-suave); text-wrap: pretty; }

/* ── Topo ──────────────────────────────────────────────────────────────── */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.topo.rolou { background: rgb(11 11 12 / .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.marca { text-decoration: none; display: flex; align-items: center; }
.marca-logo { height: 56px; width: auto; }
@media (max-width: 760px) { .marca-logo { height: 44px; } }
.marca-texto { font-family: var(--fonte-titulo); font-size: 22px; letter-spacing: .02em; }
.menu { display: flex; gap: 28px; align-items: center; font-size: 14px; letter-spacing: .04em; }
.menu a { text-decoration: none; opacity: .8; transition: opacity .3s; }
.menu a:hover { opacity: 1; }
.menu-cta { border: 1px solid var(--linha); padding: 9px 16px; border-radius: 999px; opacity: 1 !important; }
@media (max-width: 760px) { .menu a:not(.menu-cta) { display: none; } }

/* ── Abertura cinematográfica ──────────────────────────────────────────── */
.cine { position: relative; height: var(--altura, 400vh); }
.cine-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cine-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .45) 100%),
    linear-gradient(to bottom, transparent 70%, var(--fundo) 100%);
}
.momento {
  position: absolute; inset: auto var(--gutter) 12vh; max-width: 640px;
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity 1.2s var(--ease), transform 1.5s var(--ease), filter 1.2s var(--ease);
  pointer-events: none;
}
.momento.ativo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.momento--direita { left: auto; right: var(--gutter); }
.momento--centro { left: 50%; right: auto; transform: translate(-50%, 24px); text-align: center; width: min(640px, calc(100% - 2 * var(--gutter))); }
.momento--centro.ativo { transform: translate(-50%, 0); }
.titulo-abertura { margin-bottom: .3em; }
.apoio { font-size: clamp(16px, 1.3vw, 20px); margin: 0; }
.destaque { font-family: var(--fonte-titulo); font-size: clamp(24px, 2.8vw, 42px); line-height: 1.2; color: var(--texto); margin: 0 0 .6em; }
.destaque:last-child { margin: 0; }
.cine-dica {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
  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 (todo texto mora num painel) ──────────────────────────────── */
.painel {
  position: relative;
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: clamp(24px, 3.2vw, 48px);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.painel--vidro { background: rgb(11 11 12 / .38); }
.painel > :last-child { margin-bottom: 0; }
.rotulo { display: block; font-size: 12px; letter-spacing: .3em; color: var(--acento); margin-bottom: 18px; }

/* ── Seções ────────────────────────────────────────────────────────────── */
.secao {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; padding: 18vh var(--gutter);
  display: grid; align-content: center;
}
.secao-grade { width: 100%; max-width: var(--largura); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 560px) 1fr; }
.secao-grade--direita { grid-template-columns: 1fr minmax(0, 560px); }
.secao-grade--direita > .painel { grid-column: 2; }
.secao--larga { gap: 28px; justify-items: center; }
.painel--cabecalho { width: 100%; max-width: var(--largura); }
.cartoes { width: 100%; max-width: var(--largura); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cartao h3 { margin-bottom: .4em; }
.cartao { transition: transform .5s var(--ease), border-color .5s; }
.cartao:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acento) 50%, transparent); }
.passos { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: p; display: grid; gap: 22px; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
.passos li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--fonte-titulo); color: var(--acento); font-size: 22px; }
.passos strong { font-weight: 600; }
.passos span { color: var(--texto-suave); }

/* ── Arte: imagens fundidas ao fundo (nunca retângulo com borda) ───────── */
.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;
  /* closest-side: a elipse zera exatamente na borda, então nunca sobra linha reta */
  -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: .32; }
/* Parallax leve aplicado pelo app.js */
.arte[data-parallax] { will-change: transform; }

/* ── Contato ───────────────────────────────────────────────────────────── */
.secao--contato { justify-items: center; }
.painel--form { width: 100%; max-width: 760px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.campo { display: grid; gap: 6px; }
.campo--inteiro { grid-column: 1 / -1; }
.campo label { font-size: 13px; letter-spacing: .04em; color: var(--texto-suave); }
.campo input, .campo textarea, .campo select {
  width: 100%; font: inherit; color: var(--texto);
  background: rgb(255 255 255 / .04); border: 1px solid var(--linha); border-radius: 12px;
  padding: 14px 16px; transition: border-color .3s, background .3s; resize: vertical;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--acento); background: rgb(255 255 255 / .07); }
.campo.erro input { border-color: #d9776b; }
.pote { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 14px; }
.form-status.ok { color: var(--acento); }
.form-status.falha { color: #e39a90; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ── Botões ────────────────────────────────────────────────────────────── */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--fonte-texto); letter-spacing: .02em; 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.08); }
.botao[disabled] { opacity: .6; cursor: progress; }

/* ── 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 / .35);
  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) 40px; }
.rodape-painel { max-width: var(--largura); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--texto-suave); padding: 24px 32px; }

/* ── Revelar ao rolar ──────────────────────────────────────────────────── */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

/* ── Celular ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .secao { padding: 14vh var(--gutter); min-height: auto; }
  .secao-grade, .secao-grade--direita { grid-template-columns: 1fr; }
  .secao-grade--direita > .painel { grid-column: 1; }
  .arte--direita, .arte--esquerda { left: 0; right: 0; width: 100%; height: 70%; opacity: .55;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 55%, transparent); }
  .momento, .momento--direita { left: var(--gutter); right: var(--gutter); bottom: 10vh; }
  .momento--centro { width: auto; transform: translateY(24px); }
  .momento--centro.ativo { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar, .momento--primeiro { opacity: 1; transform: none; filter: none; }
  .cine { height: 100svh; }
  .momento:not(.momento--primeiro), .cine-dica, .logo-hero { display: none; }
}

/* ── Carrara: componentes do projeto ───────────────────────────────────── */
.campo select option { background: var(--fundo-2); color: var(--texto); }
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--linha); }
.numeros div { display: grid; gap: 4px; }
.numeros dt { font-family: var(--fonte-titulo); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; color: var(--acento); }
.numeros dd { margin: 0; font-size: 14px; color: var(--texto-suave); }
.marcas { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); }
.marcas li { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 20px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); text-align: center; }
.marcas img { display: block; max-width: 72%; max-height: 52px; width: auto; height: auto; object-fit: contain; opacity: .7; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.marcas li:hover img { opacity: 1; transform: scale(1.04); }
.marca-nome { font-family: var(--fonte-titulo); font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--texto); opacity: .7; transition: opacity .35s var(--ease), color .35s var(--ease); }
.marca-nome:hover { opacity: 1; color: var(--acento); }
@media (max-width: 860px) { .marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); } .marcas li { min-height: 88px; padding: 14px; } .marcas img { max-height: 38px; max-width: 80%; } .marca-nome { font-size: 13px; letter-spacing: .05em; } }
.lista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 20px; }
.lista li { display: grid; gap: 2px; padding-left: 20px; border-left: 1px solid color-mix(in srgb, var(--acento) 60%, transparent); }
.lista strong { font-weight: 600; }
.lista span { color: var(--texto-suave); }
.painel--estreito { max-width: 760px; }
.contato-info { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--linha); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-size: 15px; }
.contato-info li { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.contato-info span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--acento); }
.contato-info a { text-decoration: none; }
.contato-info a:hover { text-decoration: underline; }
.contato-info address { font-style: normal; color: var(--texto-suave); }
@media (max-width: 640px) { .contato-info { grid-template-columns: 1fr; } }
.rodape-logo { height: 56px; width: auto; }
.rodape-painel a { text-decoration: none; }
.destaque { font-weight: 400; letter-spacing: -.02em; }
.numeros dt { font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lista li, .passos li { transition: border-color .35s var(--ease), transform .45s var(--ease); }
.lista li:hover { border-left-color: var(--acento); transform: translateX(4px); }
.passos li:hover { transform: translateX(4px); }
.passos li strong { transition: color .35s var(--ease); }
.passos li:hover strong { color: var(--acento); }
.momento:not(.momento--centro) { max-width: 760px; }
.titulo-abertura { font-size: clamp(36px, 5vw, 76px); }

/* ── Tela de carregamento ─────────────────────────────────────────────── */
body.carregando { overflow: hidden; }
.preload {
  position: fixed; inset: 0; z-index: 200; background: var(--fundo);
  display: grid; place-content: center; justify-items: center; gap: 28px;
  transition: opacity .8s var(--ease), visibility 0s .8s;
  animation: preload-saida 0s 12s forwards; /* se o JS falhar, nunca prende a página */
}
.preload.saiu { opacity: 0; visibility: hidden; }
.preload-logo { width: clamp(160px, 18vw, 240px); height: auto; animation: preload-respira 2.4s var(--ease) infinite alternate; }
.preload-barra { width: clamp(180px, 22vw, 280px); height: 2px; background: var(--linha); border-radius: 2px; overflow: hidden; }
.preload-barra span { display: block; height: 100%; width: 100%; background: var(--acento); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .35s var(--ease); }
.preload-pct { margin: -12px 0 0; font-size: 12px; letter-spacing: .3em; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes preload-respira { from { opacity: .75; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes preload-saida { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .preload-logo { animation: none; } }

/* ── Logo grande no hero ──────────────────────────────────────────────── */
/* Centralizada; entra em fade quando o carregamento termina e sai quando a rolagem começa */
.logo-hero {
  position: absolute; left: 50%; top: 50%; width: clamp(240px, 30vw, 460px); height: auto;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none;
  filter: drop-shadow(0 12px 40px rgb(0 0 0 / .6));
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.pronto .logo-hero { opacity: 1; transform: translate(-50%, -50%); }
.pronto .cine.andou .logo-hero { opacity: 0; transform: translate(-50%, -56%) scale(.97); transition-duration: .6s, .8s; }
@media (max-width: 860px) { .logo-hero { width: 240px; } }
/* Sombra suave atrás da logo: destaca o "Representações Comerciais" sobre as prateleiras */
.logo-hero-fundo {
  position: absolute; left: 50%; top: 50%; width: clamp(520px, 62vw, 980px); aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgb(11 11 12 / .62), rgb(11 11 12 / .38) 45%, transparent);
  transition: opacity 1.1s var(--ease);
}
.pronto .logo-hero-fundo { opacity: 1; }
.pronto .cine.andou .logo-hero-fundo { opacity: 0; transition-duration: .6s; }
@media (max-width: 860px) { .logo-hero-fundo { width: 150vw; } }
@media (prefers-reduced-motion: reduce) { .logo-hero-fundo { display: none; } }
.topo .marca { transition: opacity .5s var(--ease); }
.topo:not(.rolou) .marca { opacity: 0; pointer-events: none; }

/* ── Grade de marcas: a última linha sempre fecha (sem marca sozinha) ── */
.marcas li:last-child:nth-child(5n+1) { grid-column: span 5; }
.marcas li:last-child:nth-child(5n+2) { grid-column: span 4; }
.marcas li:last-child:nth-child(5n+3) { grid-column: span 3; }
.marcas li:last-child:nth-child(5n+4) { grid-column: span 2; }
@media (max-width: 860px) {
  .marcas li:last-child:nth-child(n) { grid-column: auto; }
  .marcas li:last-child:nth-child(3n+1) { grid-column: span 3; }
  .marcas li:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* Logos quadradas: mais altura para terem o mesmo peso visual das horizontais */
.marcas img.marca-quadrada { max-height: 76px; }
@media (max-width: 860px) { .marcas img.marca-quadrada { max-height: 56px; } }
