@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-ExtraBold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-BlackItalic.ttf") format("truetype"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("assets/fonts/roboto-900.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --breu: #120E0B;
  --osso: #F1E9DA;
  --espuma: #F6F0E4;
  --tinta: #1C1612;
  --ouro: #F2D04B;
  --vinho: #5A0A0E;

  --display: "Instrument Serif", Georgia, serif;
  --texto: "Roboto", Arial, sans-serif;

  --margem: clamp(1rem, 4vw, 3.5rem);
  --topo-h: 4rem;
  --saida: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topo-h); scrollbar-color: #4a3d33 var(--breu); }
body {
  margin: 0;
  background: var(--breu);
  color: var(--espuma);
  font: 400 1.125rem/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ouro); color: var(--breu); }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 2px; }
svg use { color: inherit; }
.icones { position: absolute; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.75rem 1.6rem;
  font: 700 0.95rem/1.1 var(--texto); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 0;
  transition: transform 0.25s var(--saida), background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.botao svg { width: 1.3em; height: 1.3em; flex: none; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.55); }
.botao:active { transform: translateY(0); }
.botao--ouro { background: var(--ouro); color: var(--breu); }
.botao--ouro:hover { background: #F7DD72; }
.botao--linha { border-color: currentColor; color: inherit; background: transparent; }
.botao--linha:hover { background: rgb(246 240 228 / 0.08); }
.botao--grande { min-height: 3.75rem; font-size: 1.05rem; padding-inline: 2rem; }

.estrelas { display: block; width: 104px; height: 24px; color: var(--ouro); margin-inline: auto; }

.titulo-secao {
  font: 400 clamp(2.4rem, 5vw, 4rem)/1 var(--display);
  letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance;
}

/* ---------- Tela de idade ---------- */
.idade {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; overflow-y: auto;
  padding: 2rem var(--margem);
  background: var(--breu);
}
.idade__caixa { width: min(100%, 34rem); text-align: center; display: grid; gap: 2rem; justify-items: center; }
.idade__logo { width: min(100%, 22rem); }
.idade h1 { font: 400 clamp(1.8rem, 5vw, 2.5rem)/1.15 var(--display); text-wrap: balance; }
.idade p { color: rgb(246 240 228 / 0.78); margin-top: 0.75rem; }
.idade__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem; }
.idade__menor { font: italic 400 1.35rem/1.4 var(--display); color: var(--espuma); max-width: 26rem; }
.idade__menor:focus { outline: none; }

.site { display: none; }
.idade-ok .idade { display: none; }
.idade-ok .site { display: block; }
html:not(.idade-ok) body { overflow: hidden; }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--topo-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--margem);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.8);
}
/* Fundo invisível; desce de cima para baixo ao passar o mouse (ou focar no menu) */
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(18 14 11 / 0.96); border-bottom: 1px solid rgb(242 208 75 / 0.18);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.45s var(--saida);
}
.topo:hover::before, .topo:focus-within::before { transform: scaleY(1); }
.topo__marca img { height: 2.1rem; width: auto; }
.topo nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.topo nav a {
  font: 700 0.85rem/1 var(--texto); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 0.6rem 0; position: relative;
}
.topo nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px; background: var(--ouro);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--saida);
}
.topo nav a:hover::after { transform: scaleX(1); }

/* ---------- Abertura ---------- */
/* Palco de 1366x768 (medidas do HERO3.png) escalado pela tela: --u = 1px do desenho */
.abertura {
  --u: min(100vw / 1366, 100svh / 768);
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  background: #0B0805;
}
.palco { position: relative; width: calc(1366 * var(--u)); height: calc(768 * var(--u)); }
.abertura__titulo { margin: 0; font-family: "Poppins", var(--texto); text-transform: uppercase; line-height: 1; letter-spacing: 0; }
.abertura__titulo .linha {
  position: absolute; white-space: nowrap; z-index: 2; font-weight: 800; color: #fff;
  /* sombreado: as letras escurecem de leve ao chegar na garrafa */
  -webkit-mask-image: linear-gradient(to right, #000 70%, rgb(0 0 0 / 0.55));
  mask-image: linear-gradient(to right, #000 70%, rgb(0 0 0 / 0.55));
}
.l1 { left: calc(196.7 * var(--u)); top: calc(222.9 * var(--u)); font-size: calc(85.5 * var(--u)); }
.abertura__titulo .l2 { left: calc(411 * var(--u)); top: calc(283 * var(--u)); font-size: calc(132 * var(--u)); padding-bottom: 0.3em; /* a máscara corta o que passa da caixa: dá espaço à perna do j */ text-transform: none; font-family: var(--display); font-weight: 400; font-style: italic; color: #FFDE59; }
.l3 { left: calc(204.2 * var(--u)); top: calc(407.5 * var(--u)); font-size: calc(96 * var(--u)); }
.palavra { white-space: nowrap; }
.letra { display: inline-block; animation: letra-surge 0.6s ease-out calc(var(--i) * var(--passo, 0.05s)) both; }
.sobre { --passo: 0.03s; }
.sobre:not(.visivel) .letra { animation-play-state: paused; }
@keyframes letra-surge { from { opacity: 0; transform: translateY(10px); } }
.abertura__cta {
  position: absolute; z-index: 2; left: calc(202 * var(--u)); top: calc(512 * var(--u));
  width: calc(292 * var(--u)); height: calc(58 * var(--u)); min-height: 0; padding: 0;
  font-size: calc(13.5 * var(--u)); letter-spacing: 0.06em;
}
.abertura__garrafa, .abertura__copo { position: absolute; width: auto; max-width: none; }
.abertura__garrafa { z-index: 3; left: calc(755.5 * var(--u)); top: calc(80 * var(--u)); height: calc(646 * var(--u)); }
.abertura__copo { left: calc(951 * var(--u)); top: calc(398 * var(--u)); height: calc(324 * var(--u)); mix-blend-mode: lighten; }
/* flutuação suave; o copo desfasado da garrafa */
.abertura__garrafa { animation: entra 1s var(--saida) both, flutua 6s ease-in-out 1s infinite; }
.abertura__copo { animation: entra 1s var(--saida) 0.2s both, flutua 7s ease-in-out 1.2s infinite reverse; }
@keyframes entra { from { opacity: 0; transform: translateY(calc(24 * var(--u))); } }
@keyframes flutua { 50% { transform: translateY(calc(-10 * var(--u))); } }
@media (prefers-reduced-motion: reduce) { .abertura__garrafa, .abertura__copo { animation: none; } }

/* ---------- Cerveja ---------- */
.cerveja {
  --fundo: var(--breu); --cor: var(--espuma); --destaque: var(--ouro);
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: center;
  grid-template-columns: 1fr minmax(13rem, 26vw) 1fr;
  grid-template-areas: "info garrafa dados";
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: calc(var(--topo-h) + 3rem) var(--margem) 4rem;
  background: var(--fundo); color: var(--cor);
}
.cerveja__fantasma {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  translate: -50% -50%;
  font: 400 clamp(7rem, 24vw, 22rem)/0.8 var(--display);
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
  color: var(--cor); opacity: 0.08; pointer-events: none; user-select: none;
}
.cerveja__info { grid-area: info; justify-self: end; max-width: 24rem; }
.cerveja__estilo {
  display: block; margin-bottom: 0.4rem;
  font: 700 0.95rem/1.2 var(--texto); letter-spacing: 0.22em; text-transform: uppercase; color: var(--destaque);
}
.cerveja h2 { font: 400 clamp(2.8rem, 5.5vw, 5rem)/0.95 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.cerveja__fio { display: block; width: 4.5rem; height: 3px; background: var(--destaque); margin: 1.25rem 0; }
.cerveja__descricao { max-width: 34ch; }
.cerveja__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.cerveja .botao--cerveja { background: var(--botao); color: var(--botao-texto); }
.cerveja__email { font-weight: 700; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.4em; padding-block: 0.6rem; }
.cerveja__email svg { width: 1.15em; height: 1.15em; }

.cerveja__garrafa { grid-area: garrafa; justify-self: center; }
.cerveja__garrafa img { height: min(74svh, 46rem); width: auto; filter: drop-shadow(0 30px 36px rgb(0 0 0 / 0.5)); }

.cerveja__dados { grid-area: dados; justify-self: start; max-width: 20rem; display: grid; gap: 2rem; }
.cerveja__dados dt {
  font: 700 0.8rem/1.2 var(--texto); letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 0.5rem;
}
.cerveja__dados dd { margin: 0; }
.cerveja__teor { font: 400 clamp(3rem, 5vw, 4.25rem)/1 var(--display); font-variant-numeric: lining-nums; }
.cerveja__teor small { font: 700 1rem/1 var(--texto); letter-spacing: 0.1em; margin-left: 0.35rem; }
.cerveja__dados ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.cerveja__dados li { display: flex; gap: 0.6rem; align-items: baseline; }
.cerveja__dados li::before { content: ""; width: 0.45rem; height: 0.45rem; flex: none; background: var(--destaque); rotate: 45deg; translate: 0 -0.1em; }

/* A palavra de fundo desliza com a rolagem onde o navegador suporta */
@supports (animation-timeline: view()) {
  .cerveja__fantasma { animation: deslizar linear both; animation-timeline: view(); }
  @keyframes deslizar { from { translate: -38% -50%; } to { translate: -62% -50%; } }
}

/* Telas largas: uma tela presa; a rolagem troca a cerveja com animação */
.cervejas__pontos { display: none; }
@media (min-width: 861px) {
  .cervejas { height: calc(var(--n, 3) * 100svh); }
  .cervejas__palco { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .cervejas .cerveja {
    position: absolute; inset: 0; min-height: 0;
    opacity: 0; visibility: hidden; transition: opacity 0.7s, visibility 0s 0.7s;
  }
  .cervejas .cerveja.ativa { opacity: 1; visibility: visible; transition: opacity 0.7s; }
  .cervejas .cerveja__fantasma { animation: none; transition: translate 1.2s var(--saida); translate: -40% -50%; }
  .cervejas .cerveja__garrafa,
  .cervejas .cerveja__info,
  .cervejas .cerveja__dados { transition: transform 0.9s var(--saida), opacity 0.9s; opacity: 0; }
  .cervejas .cerveja__garrafa { transform: translateY(12%); }
  .cervejas .cerveja__info { transform: translateX(-2.5rem); }
  .cervejas .cerveja__dados { transform: translateX(2.5rem); }
  .cervejas .ativa .cerveja__fantasma { translate: -50% -50%; }
  .cervejas .ativa :is(.cerveja__garrafa, .cerveja__info, .cerveja__dados) { transform: none; opacity: 1; }
  .cervejas .ativa :is(.cerveja__info, .cerveja__dados) { transition-delay: 0.15s; }

  .cervejas__pontos {
    position: absolute; z-index: 5; right: var(--margem); top: 50%; translate: 0 -50%;
    display: grid; gap: 0.4rem;
  }
  .cervejas__pontos button {
    width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .cervejas__pontos button::before {
    content: ""; width: 0.75rem; height: 0.75rem; border-radius: 50%;
    border: 2px solid var(--ouro); transition: background-color 0.3s, transform 0.3s var(--saida);
  }
  .cervejas__pontos button:hover::before { transform: scale(1.2); }
  .cervejas__pontos [aria-current]::before { background: var(--ouro); }
}

/* ---------- Sobre ---------- */
.sobre {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 120svh; display: grid; align-items: center;
  background: var(--osso); color: var(--tinta);
  padding: clamp(5rem, 12vw, 9rem) var(--margem) clamp(5rem, 12vw, 9rem) max(var(--margem), 40vw);
}
/* Garrafa grande e torta, cortada pelo canto inferior esquerdo */
.sobre__silhueta {
  position: absolute; z-index: -1; left: 14vw; bottom: -22%;
  height: 118%; width: auto; max-width: none;
  rotate: -24deg; transform-origin: bottom center;
}
.sobre__miolo { max-width: 44rem; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.sobre .titulo-secao::after { content: ""; display: block; width: 4.5rem; height: 3px; background: var(--vinho); margin-top: 1.5rem; }
.sobre__texto { display: grid; gap: 1.25rem; font-size: 1.2rem; max-width: 62ch; }

/* ---------- Contato ---------- */
.contato {
  text-align: center; padding: clamp(5rem, 12vw, 9rem) var(--margem);
  background: var(--breu);
}
.contato .titulo-secao { margin-top: 1.5rem; }
.contato__texto { margin: 1.25rem auto 0; max-width: 34rem; color: rgb(246 240 228 / 0.8); font-size: 1.2rem; }
.contato__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* ---------- Rodapé ---------- */
.rodape {
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  padding: 3rem var(--margem) 6rem; border-top: 1px solid rgb(242 208 75 / 0.18);
  font-size: 0.95rem; color: rgb(246 240 228 / 0.72);
}
.rodape img { height: 2rem; width: auto; opacity: 0.9; }
.rodape a { color: var(--espuma); }

/* ---------- WhatsApp fixo ---------- */
.zap-fixo {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 30;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3.5rem; padding: 0 1.4rem 0 1.1rem;
  background: var(--ouro); color: var(--breu); text-decoration: none;
  font: 700 0.95rem/1 var(--texto); letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px; box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.6);
  transition: transform 0.25s var(--saida);
}
.zap-fixo svg { width: 1.6rem; height: 1.6rem; }
.zap-fixo:hover { transform: translateY(-3px); }

/* ---------- Política de Privacidade e Termos ---------- */
.topo--solido::before { transform: scaleY(1); }
.legal {
  background: var(--osso); color: var(--tinta);
  padding: calc(var(--topo-h) + clamp(3rem, 8vw, 6rem)) var(--margem) clamp(4rem, 10vw, 7rem);
}
.legal__miolo { max-width: 46rem; margin-inline: auto; }
.legal__atalhos { margin-top: 1.5rem; font-weight: 700; }
.legal section { margin-top: clamp(3rem, 7vw, 5rem); scroll-margin-top: calc(var(--topo-h) + 1.5rem); }
.legal h2 { font: 400 clamp(2rem, 4vw, 2.75rem)/1.1 var(--display); }
.legal h2::after { content: ""; display: block; width: 4.5rem; height: 3px; background: var(--vinho); margin-top: 1rem; }
.legal h3 { font: 700 0.95rem/1.3 var(--texto); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2.5rem; }
.legal p, .legal ul, .legal ol { margin: 1rem 0 0; max-width: 68ch; }
.legal ul, .legal ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.legal a { color: var(--vinho); }
.legal :focus-visible { outline-color: var(--vinho); }

/* ---------- Aviso de cookies ---------- */
.cookies {
  position: fixed; left: var(--margem); right: var(--margem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  max-width: 56rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--breu); border: 1px solid rgb(242 208 75 / 0.35);
  box-shadow: 0 12px 28px -8px rgb(0 0 0 / 0.6);
  font-size: 0.95rem; color: rgb(246 240 228 / 0.85);
}
.cookies[hidden] { display: none; }
.cookies p { flex: 1 1 22rem; }
.cookies__botoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  /* palco encolhido: mostra só de x=190 a x=950 do desenho */
  .abertura { --u: calc(100vw / 760); justify-items: start; }
  .palco { margin-left: calc(-190 * var(--u)); }
  .cerveja {
    grid-template-columns: 1fr; grid-template-areas: "garrafa" "info" "dados";
    gap: 2rem; padding-top: calc(var(--topo-h) + 2rem); min-height: 0;
  }
  .cerveja__fantasma { top: 22rem; font-size: clamp(6rem, 30vw, 12rem); }
  .cerveja__info, .cerveja__dados { justify-self: stretch; max-width: none; }
  .cerveja__garrafa img { height: min(58svh, 26rem); }
  .cerveja__dados { grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; }
  /* garrafa embaixo do texto, para não ficar atrás das letras */
  .sobre { min-height: 0; align-items: start; padding: clamp(4rem, 12vw, 6rem) var(--margem) 75vw; }
  .sobre__silhueta { height: 85vw; bottom: -18vw; left: 20vw; }
}
@media (max-width: 520px) {
  :root { --topo-h: 3.5rem; }
  .topo__marca img { height: 1.6rem; }
  .topo nav { gap: 1rem; }
  .topo nav a { font-size: 0.75rem; letter-spacing: 0.1em; }
  /* não cabe um 4º item no topo do celular; o link continua no rodapé */
  .topo__politicas { display: none; }
  .zap-fixo { padding: 0; width: 3.5rem; justify-content: center; }
  .zap-fixo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cerveja__dados { grid-template-columns: 1fr; }
  .botao--grande { width: 100%; }
  .cookies__botoes { width: 100%; }
  .cookies__botoes .botao { flex: 1; }
}

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