/* Tokens: os mesmos do Reels da Distrito (src/theme.ts) */
:root {
  --preto: #0B0B0B;
  --painel: #242018;
  --ouro: #C9A15A;
  --ouro-claro: #E4C888;
  --ouro-fundo: #9A7B3E;
  --creme: #F3EEE3;
  --creme-suave: rgba(243, 238, 227, 0.68);
  --verde-aberto: #4CC873;
  --gradiente-ouro: linear-gradient(100deg, #9A7B3E 0%, #E4C888 38%, #C9A15A 62%, #E4C888 100%);
  --display: "Poppins", system-ui, sans-serif;
  --corpo: "Inter", system-ui, sans-serif;
  --mola: cubic-bezier(0.34, 1.32, 0.5, 1);
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--creme);
  font-family: var(--corpo);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; border-radius: 6px; }

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ouro); color: var(--preto); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.pular:focus { top: 12px; }

.icone { width: 20px; height: 20px; flex: none; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--suave), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.botao:active { transform: scale(0.97); }
.botao-ouro { background: var(--gradiente-ouro); color: var(--preto); box-shadow: 0 10px 30px rgba(201, 161, 90, 0.25); }
.botao-ouro:hover { filter: brightness(1.08); }
.botao-linha { border: 1.5px solid rgba(243, 238, 227, 0.35); color: var(--creme); }
.botao-linha:hover { border-color: var(--ouro); color: var(--ouro-claro); }
.botao-pequeno { min-height: 40px; padding: 0 18px; font-size: 14px; }
.botao-largo { width: 100%; }
.botao-icone {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(243, 238, 227, 0.3); color: var(--creme);
  transition: border-color 0.2s, color 0.2s;
}
.botao-icone:hover { border-color: var(--ouro); color: var(--ouro-claro); }
.topo-acoes { display: flex; align-items: center; gap: 10px; }

.link-ouro { display: inline-flex; align-items: center; gap: 8px; color: var(--ouro-claro); font-weight: 600; }
.link-ouro:hover { color: var(--creme); }

/* Topo */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.topo.solido { background: rgba(11, 11, 11, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(201, 161, 90, 0.18); }
.topo-marca { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.topo-marca img { width: 40px; height: 40px; border-radius: 50%; }

.status {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(36, 32, 24, 0.75); border: 1px solid rgba(201, 161, 90, 0.3);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.status-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--creme-suave); }
.status.aberto .status-ponto { background: var(--verde-aberto); box-shadow: 0 0 0 0 rgba(76, 200, 115, 0.6); animation: pulso 2.4s infinite; }
.status.fechado .status-ponto { background: #d8605a; }
@keyframes pulso { 70% { box-shadow: 0 0 0 8px rgba(76, 200, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 200, 115, 0); } }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 110px 16px 72px; text-align: center; overflow: hidden; isolation: isolate;
}
.hero-fundo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.62) 45%, var(--preto) 100%),
    url("assets/img/fachada.webp") center 30% / cover no-repeat;
  animation: aproximar 2.6s var(--suave) both;
}
@keyframes aproximar { from { transform: scale(1.1); filter: brightness(0.4); } to { transform: scale(1); filter: none; } }
.hero-conteudo { max-width: 1000px; }
.hero-logo {
  width: clamp(120px, 22vw, 180px); height: auto; margin: 0 auto 28px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(201, 161, 90, 0.7), 0 0 80px rgba(201, 161, 90, 0.35);
  animation: surgir 0.9s var(--mola) 0.15s both;
}
@keyframes surgir { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.hero-titulo { font-weight: 900; font-size: clamp(28px, 8.4vw, 92px); white-space: nowrap; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.linha { display: block; overflow: hidden; padding: 0.08em 0.04em 0.06em; margin: -0.08em 0 -0.06em; }
.linha > span { display: inline-block; animation: subir 0.9s var(--suave) both; }
.linha:nth-child(1) > span { animation-delay: 0.45s; }
.linha:nth-child(2) > span { animation-delay: 0.58s; }
.linha:nth-child(3) > span { animation-delay: 0.71s; }
.linha-ouro > span { background: var(--gradiente-ouro); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes subir { from { transform: translateY(105%); } to { transform: none; } }
.hero-sub { margin: 22px auto 34px; font-size: clamp(17px, 2.2vw, 21px); color: var(--creme-suave); animation: aparecer 0.8s ease 1s both; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; animation: aparecer 0.8s ease 1.15s both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Destilados: o palco */
.destilados {
  position: relative; padding: 96px 0 72px;
  background: radial-gradient(ellipse at 50% 46%, #2a2114 0%, var(--preto) 62%);
  overflow: hidden;
}
.kicker { display: flex; align-items: center; justify-content: center; gap: 18px; }
.kicker span { width: 56px; height: 1.5px; background: var(--ouro); }
.kicker h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ouro); padding-left: 0.4em; }

.palco {
  position: relative; height: clamp(420px, 66vh, 620px); max-width: 1100px; margin: 24px auto 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.palco:active { cursor: grabbing; }
.palco:focus-visible { outline-offset: -6px; border-radius: 24px; }
.palco-categoria {
  position: absolute; left: 50%; top: 22%; margin: 0;
  font-family: var(--display); font-weight: 900; font-size: clamp(110px, 23vw, 300px); letter-spacing: -0.03em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--ouro); opacity: 0.45; white-space: nowrap;
  transform: translateX(-50%); transition: transform 0.6s var(--suave), opacity 0.4s;
  pointer-events: none;
}
.palco-categoria.saindo { opacity: 0; transform: translateX(calc(-50% + var(--dir, 1) * -140px)); transition-duration: 0.25s; }
.palco-luz { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(201, 161, 90, 0.28), transparent 62%); pointer-events: none; }
.palco-piso { position: absolute; left: 0; right: 0; bottom: 18%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--ouro-fundo), transparent); opacity: 0.7; }

.palco-garrafas { position: absolute; inset: 0; perspective: 1200px; }
.garrafa {
  position: absolute; left: 50%; bottom: 18%; height: 74%;
  transform: translateX(-50%); transition: transform 0.75s var(--mola), opacity 0.45s, filter 0.5s;
  will-change: transform;
}
.garrafa img { height: 100%; width: auto; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.garrafa-corpo { height: 100%; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 0.25s ease-out; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.65)); }
.garrafa-reflexo { position: absolute; top: 100%; left: 0; height: 100%; margin-top: 4px; transform: scaleY(-1); transform-origin: top; opacity: 0.2; filter: blur(2px); -webkit-mask-image: linear-gradient(0deg, transparent 72%, #000 100%); mask-image: linear-gradient(0deg, transparent 72%, #000 100%); }
.garrafa[data-pos="esq"] { transform: translateX(-180%) rotate(-9deg); opacity: 0; filter: blur(14px); }
.garrafa[data-pos="dir"] { transform: translateX(80%) rotate(9deg); opacity: 0; filter: blur(14px); }
.garrafa[data-pos="ativa"] { transform: translateX(-50%); opacity: 1; filter: none; }
.palco.arrastando .garrafa { transition: none; }

.palco-seta {
  position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(36, 32, 24, 0.7); border: 1px solid rgba(201, 161, 90, 0.35);
  transition: background-color 0.2s, transform 0.2s var(--suave);
}
.palco-seta:hover { background: var(--painel); transform: scale(1.06); }
.palco-seta svg { width: 22px; height: 22px; fill: none; stroke: var(--ouro-claro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.palco-seta-esq { left: clamp(8px, 4vw, 40px); }
.palco-seta-dir { right: clamp(8px, 4vw, 40px); }

.palco-info { text-align: center; padding: 0 16px; margin-top: -8px; }
.palco-nome { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.01em; }
.palco-desc { margin: 8px auto 24px; max-width: 46ch; color: var(--creme-suave); min-height: 1.55em; }
.palco-info.trocando .palco-nome, .palco-info.trocando .palco-desc { animation: aparecer 0.5s var(--suave) both; }

.miniaturas { display: flex; justify-content: center; gap: clamp(10px, 3vw, 22px); margin-top: 40px; padding: 0 16px; }
.miniatura {
  position: relative; display: grid; place-items: end center; width: 64px; height: 104px; padding: 8px 0 12px;
  border: 0; border-radius: 14px; background: transparent; cursor: pointer; opacity: 0.45;
  transition: opacity 0.25s, background-color 0.25s;
}
.miniatura img { height: 80px; width: auto; }
.miniatura::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ouro); transform: scaleX(0); transition: transform 0.3s var(--suave); }
.miniatura:hover { opacity: 0.8; }
.miniatura[aria-selected="true"] { opacity: 1; background: rgba(36, 32, 24, 0.6); }
.miniatura[aria-selected="true"]::after { transform: none; }

/* Copão */
.copao { padding: 104px clamp(16px, 5vw, 48px); }
.copao-grade { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.copao-copos { display: flex; justify-content: center; align-items: flex-end; height: clamp(300px, 46vw, 520px); }
.copao-copos img {
  height: 82%; width: auto; margin: 0 -7%;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6)) saturate(0.7) brightness(0.85);
  transition: filter 0.5s, transform 0.5s var(--mola);
}
.copao-copos img:nth-child(2) { height: 100%; position: relative; z-index: 1; }
.copao-copos.saborizado img { filter: drop-shadow(0 0 40px var(--brilho)) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6)); transform: translateY(-10px); }
.copao-copos.saborizado img:nth-child(2) { transition-delay: 0.06s; }
.copao-copos.saborizado img:nth-child(3) { transition-delay: 0.12s; }
.copao-texto h2 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.copao-sub { color: var(--creme-suave); margin: 14px 0 30px; max-width: 40ch; }

.seletor { border: 0; padding: 0; margin: 0 0 20px; }
.seletor legend { font-size: 14px; color: var(--creme-suave); margin-bottom: 10px; }
.seletor-opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 999px; background: var(--painel); border: 1px solid rgba(201, 161, 90, 0.25); }
.seletor-opcoes label { position: relative; }
.seletor-opcoes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seletor-opcoes span { display: grid; place-items: center; min-height: 46px; border-radius: 999px; font-weight: 600; transition: background-color 0.25s, color 0.25s; }
.seletor-opcoes input:checked + span { background: var(--gradiente-ouro); color: var(--preto); }
.seletor-opcoes input:focus-visible + span { outline: 2px solid var(--ouro-claro); outline-offset: 2px; }

.chave { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 500; position: relative; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave-trilho { width: 56px; height: 32px; border-radius: 999px; background: var(--painel); border: 1px solid rgba(201, 161, 90, 0.35); position: relative; transition: background-color 0.3s; }
.chave-bola { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--creme); transition: transform 0.35s var(--mola); }
.chave input:checked + .chave-trilho { background: var(--ouro); }
.chave input:checked + .chave-trilho .chave-bola { transform: translateX(24px); background: var(--preto); }
.chave input:focus-visible + .chave-trilho { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }

.preco { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 26px; font-family: var(--display); font-weight: 900; line-height: 0.9; }
.preco-moeda { font-size: clamp(26px, 3vw, 36px); color: var(--ouro-claro); margin-top: 0.35em; }
.preco-valor { font-size: clamp(76px, 11vw, 132px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--gradiente-ouro); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Catálogo */
.catalogo { padding: 40px 16px 104px; text-align: center; }
.catalogo h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.catalogo-lista { list-style: none; padding: 0; margin: 30px auto 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.catalogo-lista li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px; border: 1px solid rgba(201, 161, 90, 0.3); background: rgba(36, 32, 24, 0.45); font-weight: 600; }
.catalogo-lista svg { width: 22px; height: 22px; fill: none; stroke: var(--ouro); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Loja */
.loja { padding: 0 0 104px; }
.loja-cabeca { max-width: 1100px; margin: 0 auto 28px; padding: 0 clamp(16px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; }
.loja-cabeca h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.loja-fotos { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.loja-fotos figure { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--painel); }
.loja-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--suave); }
.loja-fotos figure:hover img { transform: scale(1.04); }

/* Local */
.local { padding: 104px clamp(16px, 5vw, 48px); background: linear-gradient(180deg, var(--preto), #15120d 50%, var(--preto)); }
.local-grade { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.local h2 { font-size: clamp(26px, 2.9vw, 40px); font-weight: 800; white-space: nowrap; }
.local-ref { color: var(--creme-suave); margin: 8px 0 28px; }
.horarios { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.horarios td { padding: 11px 14px; border-bottom: 1px solid rgba(243, 238, 227, 0.1); }
.horarios td:first-child { color: var(--creme-suave); }
.horarios td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.horarios tr.hoje td { background: rgba(201, 161, 90, 0.12); color: var(--ouro-claro); border-bottom-color: transparent; }
.horarios tr.hoje td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; }
.horarios tr.hoje td:last-child { border-radius: 0 10px 10px 0; }
.horarios .marca-hoje { margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--ouro); color: var(--preto); font-weight: 700; vertical-align: 2px; }
.horarios tr.fechado td:last-child { color: rgba(243, 238, 227, 0.45); }
.mapa { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid rgba(201, 161, 90, 0.25); background: var(--painel); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.4) brightness(0.95); }

/* Final */
.final { padding: 112px 16px 120px; text-align: center; background: radial-gradient(ellipse at 50% 30%, rgba(201, 161, 90, 0.16), transparent 60%); }
.final-logo { width: 96px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 161, 90, 0.6); }
.final h2 { font-size: 15px; font-weight: 600; letter-spacing: 0.4em; padding-left: 0.4em; text-transform: uppercase; color: var(--ouro); }
.final-telefone {
  display: block; width: fit-content; margin: 18px auto 34px;
  font-family: var(--display); font-weight: 900; font-size: clamp(40px, 9vw, 104px); letter-spacing: -0.02em; line-height: 1; white-space: nowrap;
  background: linear-gradient(100deg, #9A7B3E 0%, #E4C888 30%, #C9A15A 45%, #FFF6DD 50%, #C9A15A 55%, #E4C888 70%, #C9A15A 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-telefone.brilhar { animation: brilho 1.6s ease-in-out 0.2s both; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* Rodapé */
.rodape { padding: 32px 16px 40px; text-align: center; border-top: 1px solid rgba(201, 161, 90, 0.18); font-size: 14px; color: rgba(243, 238, 227, 0.5); }
.rodape p { margin: 4px 0; }
.rodape-aviso { color: var(--creme-suave); font-weight: 500; }

/* Barra fixa no celular */
.barra { display: none; }

@media (max-width: 860px) {
  .copao-grade, .local-grade { grid-template-columns: 1fr; }
  .copao-copos { height: 300px; }
  .loja-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
  .loja-fotos::-webkit-scrollbar { display: none; }
  .loja-fotos figure { flex: 0 0 76%; scroll-snap-align: center; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topo-acoes { display: none; }
  .topo-marca span { display: none; }
  .palco { height: 440px; }
  .palco-seta { width: 46px; height: 46px; margin-top: -23px; top: 46%; }
  .palco-categoria { top: 26%; }
  .barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 52px 1.6fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 11, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 161, 90, 0.2);
    transform: translateY(110%); transition: transform 0.4s var(--suave);
  }
  .barra.visivel { transform: none; }
  .barra a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; font-weight: 600; border: 1.5px solid rgba(243, 238, 227, 0.3); }
  .barra .barra-whats { background: var(--gradiente-ouro); color: var(--preto); border: 0; }
}

@media (max-width: 380px) {
  .status { font-size: 12px; padding: 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
