/* ==============================================================================
   Site da WM Distribuidora. Cores tiradas da logo (preto, ouro da coroa, branco) e da foto do balcão (âmbar, luzes do bar).
   ============================================================================== */
:root {
  --noite: #0b090c;
  --balcao: #171015;
  --balcao-2: #21171d;
  --linha: #3a2b31;
  --malte: #d9822b;
  --coroa: #e9bb57;
  --papel: #f6f0e7;
  --fumaca: #bdb1b2;
  --whats: #25c264;
  --titulo: 'Bodoni Moda', Didot, 'Bodoni MT', 'Playfair Display', Georgia, serif;
  --texto: 'Outfit', system-ui, 'Segoe UI', Roboto, sans-serif;
  --lado: clamp(1.15rem, 4.5vw, 4.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noite); color: var(--papel); font: 400 1.0625rem/1.55 var(--texto); overflow-x: clip; }
img, canvas, svg, iframe { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--titulo); font-weight: 500; line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coroa); outline-offset: 3px; }
.pular { position: fixed; left: 1rem; top: -4rem; z-index: 90; background: var(--coroa); color: var(--noite); padding: 0.7rem 1.1rem; border-radius: 0.6rem; }
.pular:focus { top: 1rem; }
.miolo { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--lado); }

/* botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.1rem; padding: 0.6rem 1.5rem; border-radius: 99px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.botao:active { transform: scale(0.97); }
.botao--cheio { background: var(--coroa); color: #1c1207; }
.botao--cheio:hover { background: #f6cf78; }
.botao--vazio { background: rgb(11 9 12 / 0.35); border-color: rgb(246 240 231 / 0.45); color: var(--papel); }
.botao--vazio:hover { border-color: var(--coroa); color: var(--coroa); }
.botao--topo { min-height: 2.75rem; padding: 0.4rem 1.25rem; }

/* faixa de rascunho e topo */
.faixa { position: relative; z-index: 60; padding: 0.45rem var(--lado); background: var(--coroa); color: #1c1207; font-size: 0.92rem; font-weight: 500; text-align: center; }
.topo { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem var(--lado); transition: background-color 0.3s, backdrop-filter 0.3s; }
.topo.rolou { background: rgb(11 9 12 / 0.82); backdrop-filter: blur(14px); }
.marca { display: flex; align-items: center; gap: 0.7rem; font-family: var(--titulo); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.marca img { border-radius: 50%; }
.menu { display: flex; gap: 1.6rem; margin-left: auto; }
.menu a { text-decoration: none; padding: 0.4rem 0; border-bottom: 1.5px solid transparent; }
.menu a:hover { border-color: var(--coroa); }

/* capa */
.capa { position: relative; min-height: calc(90svh - 4rem); margin-top: -4.2rem; padding: 7rem var(--lado) 5rem; display: grid; align-items: end; isolation: isolate; overflow: hidden; background: radial-gradient(90% 70% at 78% 12%, #2c1620 0%, transparent 70%), radial-gradient(70% 60% at 8% 88%, #1d1018 0%, transparent 70%), var(--noite); }
.luzes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.capa::after { content: ''; position: absolute; inset: auto 0 0; height: 45%; z-index: -1; background: linear-gradient(transparent, var(--noite)); }
.capa h1 { font-size: clamp(3.3rem, 12.2vw, 11.2rem); line-height: 0.86; letter-spacing: -0.035em; }
.capa h1 em { display: block; color: var(--coroa); }
.capa p { max-width: 33rem; margin-top: 1.6rem; color: #e4dad3; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.capa-acoes { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* as telas que sobem: cada uma gruda no topo e a próxima sobe por cima */
.subida { position: relative; }
.cena { position: sticky; top: 0; height: 100svh; overflow: hidden; border-radius: 2.4rem 2.4rem 0 0; background: var(--fundo, var(--balcao)); box-shadow: 0 -18px 50px rgb(0 0 0 / 0.45); }
.cena-dentro { position: absolute; inset: 0; transform: scale(calc(1 - var(--q, 0) * 0.07)); filter: brightness(calc(1 - var(--q, 0) * 0.55)); transform-origin: 50% 0; }
.cena-texto { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 var(--lado) clamp(2.2rem, 6vh, 4.5rem); transform: translateY(calc((1 - var(--p, 1)) * 60px)); opacity: calc(0.15 + var(--p, 1) * 0.85); pointer-events: none; }
.cena-texto a { pointer-events: auto; }
.cena-texto h2 { font-size: clamp(3.6rem, 9.4vw, 9.2rem); line-height: 0.84; letter-spacing: -0.04em; }
.cena-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.3rem; }
.cena-linha p { max-width: 24rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.provisoria { position: absolute; left: 0.9rem; top: 0.9rem; z-index: 5; padding: 0.12rem 0.75rem; border-radius: 99px; background: var(--coroa); color: #1c1207; font-size: 0.82rem; font-weight: 600; }

/* foto que ocupa a tela inteira */
.cena-fundo { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(46px) brightness(0.42) saturate(1.25); }
.cena-foto { position: absolute; inset: -14% 0; width: 100%; height: 128%; object-fit: cover; transform: translateY(calc((1 - var(--p, 1)) * 16%)) scale(calc(1.12 - var(--p, 1) * 0.12)); }
.cena--foto .cena-dentro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 52%, rgb(11 9 12 / 0.82)); }
.cena--foto .provisoria { top: 5.4rem; left: var(--lado); }
@media (max-aspect-ratio: 1/1) {
  .cena-foto { inset: -3% 0 auto; height: 88%; -webkit-mask-image: linear-gradient(#000 66%, transparent); mask-image: linear-gradient(#000 66%, transparent); }
}
@media (min-aspect-ratio: 1/1) {
  .cena-foto { inset: -8% 0 auto auto; width: auto; height: 120%; aspect-ratio: 1; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%); mask-image: linear-gradient(90deg, transparent, #000 34%); }
}

/* foto por cima do fundo animado: sobe girando e assenta */
.cartaz { --largura: min(46vw, calc(70svh * var(--razao)), var(--maximo)); position: absolute; z-index: 2; right: var(--lado); top: 47%; width: var(--largura); aspect-ratio: var(--razao); margin: 0; border-radius: 1.7rem; overflow: hidden; box-shadow: 0 44px 90px rgb(0 0 0 / 0.42), 0 10px 24px rgb(0 0 0 / 0.25); transform: translateY(calc(-50% + (1 - var(--p, 1)) * 78vh)) rotate(calc(-2deg + (1 - var(--p, 1)) * 11deg)); }
.cartaz img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--p, 1) * 0.12)); }

/* cerveja: o copo enche conforme a pessoa desce */
.cena--cerveja { --fundo: #2a1606; color: #240f02; }
.liquido { position: absolute; inset: auto 0 0; height: calc(12% + var(--p, 1) * 72%); background: linear-gradient(#f8c254, #e79f33 52%, #d4821f); }
.liquido canvas, .bolhas-frente { position: absolute; inset: 0; width: 100%; height: 100%; }
.bolhas-frente { z-index: 3; pointer-events: none; clip-path: inset(calc(88% - var(--p, 1) * 72%) 0 0); }   /* nunca acima da espuma, nem enquanto o copo enche */
.espuma { position: absolute; left: 0; right: 0; bottom: 100%; height: 92px; margin-bottom: -30px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='92'%3E%3Cpath fill='%23fffaf0' d='M0 92V58c8-20 34-24 48-8 8-26 48-30 62-4 12-18 40-18 50 0 12-22 50-20 58 4 14-14 36-10 42 8v34Z'/%3E%3C/svg%3E") 0 100% / 260px 92px repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='330' height='92'%3E%3Cpath fill='%23f9e4b8' d='M0 92V46c14-26 50-28 64-4 12-34 62-36 76-2 16-24 54-22 64 4 18-28 58-24 68 4 14-18 46-18 58 2v42Z'/%3E%3C/svg%3E") 90px 100% / 330px 92px repeat-x;
  clip-path: inset(4px 0 0); }
.cena--cerveja .botao--cheio { background: #240f02; color: #ffe9c4; }
.cena--cerveja .botao--cheio:hover { background: #43200a; }

/* destilados, energéticos e gelo: os desenhos sobem em velocidades diferentes, atrás da foto */
.cena--garrafas { --fundo: radial-gradient(75% 70% at 70% 22%, #43210f 0%, transparent 70%), radial-gradient(60% 60% at 10% 85%, #2a1420 0%, transparent 70%), #0e090b; }
.cena--latas { --fundo: radial-gradient(80% 70% at 70% 20%, #4b1f6b 0%, transparent 70%), radial-gradient(60% 60% at 10% 80%, #27405a 0%, transparent 70%), #140b1c; }
.cena--gelo { --fundo: linear-gradient(#f4fbff, #c6e4f4 55%, #93c3dd); color: #0c2735; }
.cena--gelo .botao--cheio { background: #0c2735; color: #f4fbff; }
.cena--gelo .botao--cheio:hover { background: #17455c; }
.sobe { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, calc((1 - var(--p, 1)) * var(--v) * 100vh)) rotate(calc(var(--r) + (1 - var(--p, 1)) * var(--g, 40deg))); }
.sobe--frente { z-index: 3; }
.sobe svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 34px rgb(0 0 0 / 0.35)); }
.cena--gelo .sobe svg { filter: drop-shadow(0 18px 26px rgb(20 80 110 / 0.28)); }

/* a loja */
.loja { position: relative; z-index: 9; padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--balcao); }
.loja h2, .onde h2 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.loja { overflow: clip; }
.loja-fotos { display: flex; gap: 1.1rem; margin-top: 1.8rem; }   /* as fotos ficam lado a lado, com a mesma altura */
.loja-fotos figure { flex: var(--r) 1 0; min-width: 0; margin: 0; overflow: hidden; border-radius: 1.5rem; }
.loja-fotos img { width: 100%; aspect-ratio: var(--r); object-fit: cover; }
.loja-falta { flex: 1; }
/* elas também sobem com a rolagem (nos navegadores que ainda não têm esse efeito, só aparecem paradas) */
@supports (animation-timeline: view()) {
  .loja-fotos figure { animation: loja-sobe linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
  .loja-fotos figure:nth-child(2) { animation-name: loja-sobe-2; }
}
@keyframes loja-sobe { from { transform: translateY(110px) rotate(-2.5deg); } }
@keyframes loja-sobe-2 { from { transform: translateY(220px) rotate(4deg); } }
.loja-falta { display: grid; place-items: center; min-height: 15rem; padding: 2rem; border: 2px dashed var(--linha); border-radius: 1.5rem; color: var(--fumaca); text-align: center; text-wrap: balance; }

/* onde estamos */
.onde { position: relative; z-index: 9; padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--noite); }
.onde-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.endereco { max-width: 22rem; margin-top: 1.3rem; font-size: 1.2rem; }
.horario { margin-top: 0.6rem; color: var(--fumaca); }
.mapa { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 1.5rem; background: var(--balcao-2); }

.rodape { position: relative; z-index: 9; padding: 2.2rem 0 7rem; border-top: 1px solid var(--linha); background: var(--noite); color: var(--fumaca); font-size: 0.95rem; }
.rodape .aviso { margin-bottom: 0.6rem; color: var(--papel); font-size: 1.1rem; font-weight: 500; }

/* botão flutuante do celular */
.flutuante { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.3rem; padding: 0.5rem 1.3rem; border-radius: 99px; background: var(--whats); color: #04180b; font-weight: 600; text-decoration: none; box-shadow: 0 12px 34px rgb(0 0 0 / 0.5); opacity: 0; translate: 0 1.5rem; pointer-events: none; transition: opacity 0.25s, translate 0.25s; }
.flutuante.mostra { opacity: 1; translate: 0 0; pointer-events: auto; }
@media (min-width: 761px) { .flutuante { display: none; } }   /* no computador, "Pedir no WhatsApp" já fica sempre no topo */

/* idade */
dialog { color: var(--papel); border: 0; }
.idade { width: min(27rem, calc(100vw - 2rem)); padding: 2.2rem 1.8rem; border-radius: 1.8rem; background: var(--balcao); text-align: center; }
.idade::backdrop { background: rgb(5 3 6 / 0.93); backdrop-filter: blur(18px); }
.idade img { margin: 0 auto 1.2rem; border-radius: 50%; }
.idade h2 { font-size: 2.1rem; }
.idade p { margin-top: 0.9rem; color: #dcd2cc; }
.idade-botoes { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.idade-botoes[hidden] { display: none; }
.idade-recado { color: var(--coroa) !important; font-weight: 600; }

@media (max-width: 760px) {
  .menu, .botao--topo { display: none; }
  .capa { min-height: calc(88svh - 4rem); padding-bottom: 3.2rem; }
  .capa h1 { font-size: clamp(3.6rem, 20.5vw, 7rem); }
  .cena, .cena-dentro { border-radius: 1.7rem 1.7rem 0 0; }
  .cena-texto { padding-bottom: 5.8rem; }
  .cena-texto h2 { font-size: clamp(3.3rem, 16vw, 6rem); }
  .cartaz { --largura: min(84vw, calc(47svh * var(--razao)), var(--maximo)); right: auto; left: 50%; top: 35svh; transform: translate(-50%, calc(-50% + (1 - var(--p, 1)) * 78vh)) rotate(calc(-2deg + (1 - var(--p, 1)) * 11deg)); }
  .sobe { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .onde-grade { grid-template-columns: minmax(0, 1fr); }
  .loja-fotos { flex-direction: column; }
  .loja-fotos figure { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cena-foto, .cena-texto, .cena-dentro, .cartaz img { transform: none; opacity: 1; filter: none; }
  .cartaz { transform: translateY(-50%) rotate(-2deg); }
  .sobe { transform: translate(-50%, 0) rotate(var(--r)); }
  .liquido { height: 84%; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .cartaz { transform: translate(-50%, -50%) rotate(-2deg); } }
