/* Site Cinematográfico · © 2026 Labrego IA · LBG-SC-2026-v1 */

/* ── Tokens: ajuste pela identidade visual do cliente ───────────────────── */
:root {
  --fundo: #1a120c;          /* MESMA cor usada nos prompts das imagens */
  --fundo-2: #241912;
  --texto: #f2efe6;
  --texto-suave: #c4b7a6;
  --acento: #f7b334;         /* amarelo da chama (logo) */
  --acento-texto: #1a120c;   /* texto sobre o acento */
  --verde: #3dbb6c;          /* verde Brasil do logo, aberto para ler no escuro */
  --linha: rgb(242 239 230 / 0.12);
  --painel: rgb(32 22 15 / 0.66);
  --mistura: lighten;        /* tema escuro: lighten | tema claro: multiply */

  --fonte-titulo: "Fraunces", Georgia, serif;
  --fonte-texto: "Montserrat", 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: 300; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; 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(26 18 12 / .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.marca { text-decoration: none; display: flex; align-items: center; }
.marca-logo { height: clamp(40px, 4vw, 52px); width: auto; }
.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 .7s var(--ease), transform .9s var(--ease), filter .7s 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(26 18 12 / .42); }
.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;
  grid-template-columns: minmax(0, 1fr);
  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); }

/* ── Forneria Brasil ───────────────────────────────────────────────────── */
h1 em, h2 em { font-style: italic; color: var(--acento); }
.menu { gap: 24px; font-weight: 500; }
.menu-cta { background: var(--acento); color: var(--acento-texto); border-color: transparent; }
@media (max-width: 1080px) and (min-width: 761px) { .menu { gap: 16px; font-size: 13px; } }
.cartoes--cardapio { align-items: start; }
.cartao h3 { color: var(--acento); }
.pratos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pratos li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--linha); }
.pratos li:last-child { border-bottom: 0; padding-bottom: 0; }
.pratos strong { font-weight: 600; color: var(--texto); }
.pratos span { font-size: .9em; color: var(--texto-suave); }
.link-seta { color: var(--acento); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-seta::after { content: " →"; transition: margin .3s var(--ease); }
.link-seta:hover::after { margin-left: 4px; }
.botao--espaco { margin-top: 32px; }
.painel--local { width: 100%; max-width: 760px; text-align: center; }
.info { margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), auto)); justify-content: center; gap: 20px 44px; }
.info div { display: grid; gap: 4px; }
.info dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--verde); font-weight: 600; }
.info dd { margin: 0; color: var(--texto); overflow-wrap: break-word; }
.info a { text-decoration: none; border-bottom: 1px solid var(--acento); }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto-suave) 50%), linear-gradient(135deg, var(--texto-suave) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.campo select option { background: var(--fundo-2); color: var(--texto); }
.rodape-logo { height: 40px; width: auto; }
#cardapio .arte--fundo { opacity: .34; }
#cardapio .cartao { background: rgb(32 22 15 / .8); }
.rotulo { font-weight: 600; }

/* ── 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; }
.credito { font-size: 12px; opacity: .6; text-decoration: none; letter-spacing: .04em; }
.credito:hover { opacity: 1; }

/* ── 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, .momento--centro { left: var(--gutter); right: var(--gutter); bottom: 10vh; width: auto; }
  .momento--centro { transform: translateY(24px); }
  .momento--centro.ativo { transform: none; }
}

@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; }
}

/* Hero: texto direto sobre o vídeo, sem painel */
.momento .painel { background: none; border: 0; padding: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.momento .titulo-abertura, .momento .destaque, .momento .apoio { text-shadow: 0 2px 24px rgb(0 0 0 / .65), 0 1px 3px rgb(0 0 0 / .55); }
.momento .apoio { color: var(--texto); }
.cine-vinheta {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 50%, rgb(0 0 0 / .5) 100%),
    linear-gradient(to top, rgb(26 18 12 / .85) 0%, rgb(26 18 12 / .35) 38%, transparent 60%);
}

/* Localização: mapa */
.painel--local { max-width: 900px; }
.info { text-align: left; justify-content: space-between; }
.info dd { line-height: 1.6; }
.mapa { margin-top: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--linha); aspect-ratio: 16 / 7; max-width: 100%; }
.mapa iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.25) brightness(.85) contrast(1.05); }
@media (max-width: 640px) { .info { text-align: center; justify-content: center; } .mapa { aspect-ratio: 4 / 3; } }

/* Cardápio completo em abas */
.cardapio { width: 100%; max-width: var(--largura); background: rgb(32 22 15 / .82); }
.abas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.abas button {
  flex: none; font: 600 14px var(--fonte-texto, inherit); color: var(--texto-suave); background: transparent;
  border: 1px solid var(--linha); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: color .3s, background .3s, border-color .3s;
}
.abas button:hover { color: var(--texto); border-color: color-mix(in srgb, var(--acento) 50%, transparent); }
.abas button[aria-selected="true"] { color: #1a120c; background: var(--acento); border-color: var(--acento); }
.abas button:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
.colunas { display: flex; justify-content: flex-end; gap: 0; margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }
.colunas span, .preco { width: 84px; text-align: right; }
.itens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 48px; }
.itens li { padding: 14px 0; border-bottom: 1px solid var(--linha); }
.itens .item { display: flex; align-items: baseline; gap: 12px; }
.itens strong { font-weight: 600; color: var(--texto); flex: 1; min-width: 0; }
.precos { display: flex; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--acento); }
.itens p { margin: 4px 0 0; font-size: .9em; color: var(--texto-suave); max-width: 46ch; }
.colunas + .itens { grid-template-columns: 1fr; }
.grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 40px; }
.grupos h3 { color: var(--acento); margin: 0 0 4px; }
.cardapio-nota { margin: 22px 0 18px; font-size: 14px; color: var(--texto-suave); }
@media (max-width: 760px) {
  .colunas span, .preco { width: 70px; }
  .itens strong { font-size: 15px; }
}

/* Alergênicos */
.sprite-alerg { position: absolute; width: 0; height: 0; overflow: hidden; }
.alerg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.alerg svg, .legenda-alerg svg {
  width: 28px; height: 28px; padding: 4.5px; border-radius: 50%; flex: none;
  fill: none; stroke: var(--acento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: rgb(247 179 52 / .1); border: 1px solid rgb(247 179 52 / .28);
}
.legenda-alerg { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--linha); border-radius: 14px; background: rgb(255 255 255 / .03); }
.legenda-titulo { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--acento); }
.legenda-alerg ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.legenda-alerg li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto); }
.legenda-alerg > p:last-child { margin: 0; font-size: 13px; color: var(--texto-suave); }
.legenda-alerg + .cardapio-nota { margin-top: 16px; }

/* Instagram */
.insta { display: inline-flex; align-items: center; gap: 8px; color: var(--texto); text-decoration: none; transition: color .3s; }
.insta:hover { color: var(--acento); }
.insta svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.insta .ponto { fill: currentColor; stroke: none; }
.info dd a { color: var(--acento); }
