/* =========================================================
   SANTA — Cardápio de clássicos
   Carrossel em roda + detalhe do drink, no padrão visual da Santa
   ========================================================= */

@font-face {
  font-family: "Spalla";
  src: url("../assets/fonts/SpallaTrial-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #eb4945;
  --blue: #1737c3;
  --cream: #fdf2e1;
  --white: #fff;
  --line: rgba(23, 55, 195, .22);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Spalla", "Montserrat", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --pad: clamp(16px, 2.1vw, 30px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.view-wheel { height: 100svh; overflow: hidden; overscroll-behavior: none; }

/* Carregamento e transição de páginas: css/loader.css + js/loader.js (compartilhados pelo site) */

/* =========================================================
   CARROSSEL EM RODA
   ========================================================= */
.wheel {
  position: fixed; inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
  transition: opacity .7s var(--ease), visibility 0s;
}
.wheel.is-dragging { cursor: grabbing; }
.view-detail .wheel { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }

.wheel__disc {
  position: absolute;
  left: calc(var(--cx) - var(--rc));
  top: calc(var(--cy) - var(--rc));
  width: calc(var(--rc) * 2);
  height: calc(var(--rc) * 2);
  transition: transform 1.6s var(--ease);
}
.is-loading .wheel__disc, .wheel.is-entering .wheel__disc { transform: translateY(40%); }
.wheel__circles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Título "Drinks clássicos" — Spalla: contorno + cheio */
.wheel__title {
  position: absolute; left: 50%; top: var(--title-y, 22vh);
  translate: -50% -50%;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  column-gap: .22em;
  width: max-content; max-width: calc(100vw - 2 * var(--pad));
  font-family: var(--font-display);
  font-size: clamp(36px, min(5.6vw, 8.5vh), 86px);
  line-height: .9;
  color: var(--blue);
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.wheel__kicker {
  flex-basis: 100%;
  margin-top: .75em;              /* abaixo de "Drinks clássicos" */
  font-family: var(--font-sans);
  font-weight: 700; font-size: clamp(10px, .85vw, 12px);
  letter-spacing: .34em; line-height: 1;
  color: var(--red);
  transition: opacity .8s var(--ease) .2s;
}
.is-loading .wheel__kicker { opacity: 0; }
.wheel__title .split { display: inline-flex; overflow: hidden; padding: .06em .02em 0; }
.wheel__title-a { font-weight: 300; color: transparent; -webkit-text-stroke: 1.2px var(--blue); paint-order: stroke fill; }
.wheel__title-b { font-weight: 800; }
.wheel__title .ch { transition-duration: 1.1s; }

.wheel__items { position: absolute; inset: 0; will-change: filter; z-index: 2; }
.wheel__item {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 100%;   /* gira apoiado na base do copo */
  will-change: transform;
}
.wheel__item button {
  position: relative;
  display: block; width: 100%; height: 100%;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wheel__item img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(23, 20, 60, .22));
  transition: transform .6s var(--ease);
}
.wheel__item button:hover img, .wheel__item button:hover .spin { transform: translateY(-6px); }

/* Canvas do giro 3D do conteúdo: assume o lugar da foto quando o WebGL está pronto */
.spin {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(23, 20, 60, .22));
  transition: transform .6s var(--ease);
}
.has-spin .spin { opacity: 1; }
.has-spin img { opacity: 0; }
.wheel__item button:focus-visible { outline-offset: -6px; border-radius: 24px; }

.wheel__caption {
  position: absolute; left: 50%;
  top: var(--cap);              /* centrada na faixa vermelha (calculada no JS) */
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--white);
  text-align: center;
  pointer-events: none;
}
.wheel__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 2.9vw, 42px); line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .3s, translate .45s var(--ease);
}
.wheel__name.is-swap { opacity: 0; translate: 0 10px; }
/* "Role para descobrir" */
.wheel__hint {
  position: absolute; left: 50%; top: var(--hint); translate: -50% -50%;   /* centrada no azul */
  font-weight: 700; font-size: 10px; letter-spacing: .32em;
  color: var(--white); opacity: .75;
  white-space: nowrap; pointer-events: none;
}
.wheel__nav {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.wheel__btn {
  pointer-events: auto;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--blue); background: var(--cream);
  font-size: 18px;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.wheel__btn:hover { background: var(--blue); color: var(--white); transform: scale(1.06); }
.wheel__btn { position: relative; }
/* avanço automático: a borda da seta "próximo" se preenche de vermelho até trocar de drink
   (como o carrossel da Awake). O progresso vem de js/cardapio.js (stroke-dashoffset 1 → 0) */
.wheel__ring {
  position: absolute; inset: -1px;            /* cobre a caixa da borda: o traço fica sobre a borda azul */
  width: calc(100% + 2px); height: calc(100% + 2px);
  overflow: visible; pointer-events: none;
  transform: rotate(-90deg);                  /* começa no topo e enche no sentido horário */
}
.wheel__ring-fill {
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.wheel__caption, .wheel__hint, .wheel__nav { transition: opacity .8s var(--ease) .6s; }
.is-loading .wheel__caption, .is-loading .wheel__hint, .is-loading .wheel__nav { opacity: 0; }
.wheel__caption, .wheel__hint, .wheel__nav { z-index: 3; }

/* =========================================================
   DETALHE
   ========================================================= */
.detail { display: none; }
.view-detail .detail { display: block; }
.detail { animation: detail-in .6s var(--ease) both; }
@keyframes detail-in { from { opacity: 0; } }
.detail.is-leaving { opacity: 0; transition: opacity .45s var(--ease); }
.detail.is-swap { animation: detail-swap-in .55s var(--ease) both; }
@keyframes detail-swap-in { from { opacity: 0; } }

.detail__hero {
  position: relative;
  min-height: max(100svh, 620px);       /* o JS aumenta se o drink precisar */
  display: grid; place-items: start center;
  padding: clamp(130px, 24vh, 250px) var(--pad) 80px;   /* título no alto, como na Agrumea */
  overflow: clip;
}
.detail__title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--ts, 180px);
  line-height: .86;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.detail__title .line { display: block; overflow: hidden; padding: .04em .02em 0; }
.split .ch, .detail__title .ch { display: inline-block; translate: 0 110%; transition: translate 1s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.detail__title.is-in .ch, .split.is-in .ch { translate: 0 0; }

.detail__drink {
  position: absolute; z-index: 2;
  left: 50%; top: 40%;                  /* topo e altura definidos no JS (sobre o nome) */
  height: min(80svh, 760px);
  translate: -50% 0;
  pointer-events: none;
  transform-origin: 50% 30%;
  will-change: transform;
}
.detail__drink-in { position: relative; height: 100%; rotate: 9deg; }
.detail__drink img {
  height: 100%; width: auto;
  filter: drop-shadow(0 30px 40px rgba(23, 20, 60, .25));
}
.detail__drink .spin { filter: drop-shadow(0 30px 40px rgba(23, 20, 60, .25)); }
.detail__drink-in.is-floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; rotate: 11deg; } }

.detail__side {
  position: absolute; z-index: 3;
  bottom: 18%;
  font-weight: 500; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.3;
  opacity: 0; translate: 0 16px;
  transition: opacity .8s var(--ease) .5s, translate .8s var(--ease) .5s;
}
.detail__side--left { left: calc(var(--pad) + 4vw); }
.detail__side--right { right: calc(var(--pad) + 4vw); text-align: right; }
.detail__title.is-in ~ .detail__side { opacity: 1; translate: 0 0; }
.detail__side small { display: block; font-weight: 700; font-size: 10px; letter-spacing: .28em; color: var(--red); margin-bottom: 6px; }

.diamond {
  display: block; width: 10px; height: 10px;
  margin: 0 auto;
  background: var(--red);
  rotate: 45deg;
}

.detail__intro {
  max-width: 1120px; margin: 0 auto;
  padding: 56px var(--pad) 72px;
  text-align: center;
}
/* mesma tipografia do badge "servido também sem álcool" */
.detail__tagline { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); line-height: 1.5; max-width: 760px; margin: 0 auto; }
.detail__ingredients {
  margin-top: clamp(56px, 7vw, 110px);
  font-size: clamp(22px, 2.35vw, 34px); line-height: 1.38;
}
.detail__ingredients strong { font-weight: 800; }
.detail__note { margin-top: clamp(40px, 5vw, 72px); font-size: 14px; }

.detail__info {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.info { padding: 26px 26px 80px; border-top: 1px solid var(--line); }
.info + .info { border-left: 1px solid var(--line); }
.info:first-child { padding-left: 0; }
.info__label { font-weight: 800; font-size: 11px; letter-spacing: .2em; color: var(--red); margin-bottom: 14px; }
.info__text { font-size: 16px; line-height: 1.55; }
.chips { display: flex; gap: 6px; }
.chip {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line);
  font-weight: 700; font-size: 11px;
  transition: background .4s, color .4s, border-color .4s;
}
.info__note {
  display: flex; align-items: center; width: fit-content; margin: 28px auto 0; height: 34px; padding: 0 16px 0 12px;
  border-radius: 999px; background: #f7d3cf; color: var(--red);
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.info__note-icon { flex: none; margin-right: 8px; }
.info__note[hidden] { display: none; }
.chip.is-on { background: var(--red); border-color: var(--red); color: var(--white); }

[data-reveal] { opacity: 0; translate: 0 30px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Outros drinks */
.others { padding: clamp(80px, 10vw, 150px) 0 clamp(60px, 7vw, 110px); }
.others__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(54px, 10vw, 150px); line-height: .9;
  color: var(--red); text-align: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
.others__track {
  display: flex; gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  padding: 0 var(--pad) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
}
.others__track::-webkit-scrollbar { display: none; }
.others__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.card {
  flex: none;
  position: relative;
  width: clamp(240px, 23vw, 340px);
  aspect-ratio: 34 / 44;
  border-radius: 14px;
  background: var(--tint, #fff);
  scroll-snap-align: start;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 20px 16px 22px;
  overflow: hidden;
  transition: transform .6s var(--ease);
}
.card img {
  position: absolute; left: 50%; top: 9%;
  height: 66%; width: auto;
  translate: -50% 0;
  filter: drop-shadow(0 14px 18px rgba(23, 20, 60, .2));
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.card__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); line-height: 1; text-align: center; text-transform: uppercase; }
.card__cat { margin-top: 6px; font-weight: 700; font-size: 10px; letter-spacing: .26em; color: var(--red); text-transform: uppercase; }
.card:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.04); }
.detail__back {
  display: table; margin: 48px auto 0;
  font-weight: 700; font-size: 12px; letter-spacing: .24em;
  text-decoration: underline; text-underline-offset: 4px;
}

/* Rodapé */
.foot {
  position: relative;
  margin: 0 var(--pad);
  background: var(--blue);
  color: var(--white);
  border-radius: clamp(28px, 3.5vw, 51px) clamp(28px, 3.5vw, 51px) 0 0;
  padding: clamp(56px, 7vw, 100px) var(--pad) clamp(64px, 8vw, 110px);
  text-align: center;
  overflow: hidden;
}
.foot__more { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.foot__text { margin: 16px auto 0; max-width: 520px; font-size: 16px; line-height: 1.5; }
.foot__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--line { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn--line:hover { background: var(--white); color: var(--blue); }

/* "Descubra o drink" — segue o cursor sobre os drinks */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 95;
  pointer-events: none;
  will-change: transform;
}
.cursor-label__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  transform-origin: 0 50%;
  transform: translate(18px, -50%) scale(.4);
  opacity: 0;
  transition: transform .5s cubic-bezier(.645, .045, .355, 1), opacity .35s cubic-bezier(.645, .045, .355, 1);
}
.cursor-label.is-visible .cursor-label__pill { transform: translate(18px, -50%) scale(1); opacity: 1; }
.cursor-label__diamond { width: 7px; height: 7px; border-radius: 1px; background: var(--red); rotate: 45deg; flex: none; }
.cursor-label__text { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; line-height: 1.3; }
.view-detail .cursor-label { display: none; }
@media (hover: none), (pointer: coarse) { .cursor-label { display: none; } }
@media (hover: none), (pointer: coarse) {
  .wheel__hint { font-size: 11px; letter-spacing: .26em; }
}

/* Clone da transição */
.flyer {
  position: fixed; z-index: 60; left: 0; top: 0;
  pointer-events: none; display: none;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 30px 40px rgba(23, 20, 60, .25));
}

/* ---------- Responsivo ---------- */
/* setas anterior/próximo: continuam no tablet (alternativa ao gesto de arrastar); no celular ficam menores */
@media (max-width: 600px) {
  .wheel__nav { bottom: 16px; }
  .wheel__btn { width: 44px; height: 44px; font-size: 16px; }
}
@media (max-width: 800px) {
  /* mobile: título no alto, drink sobe por baixo e cobre só a parte inferior */
  .detail__hero { padding-top: 21svh; min-height: max(92svh, 600px); place-items: start center; }
  .detail__side { bottom: 5%; }
  .detail__side--left { left: var(--pad); }
  .detail__side--right { right: var(--pad); }
  .detail__info { grid-template-columns: 1fr; }
  .info, .info:first-child { padding: 22px 0 32px; }
  .info + .info { border-left: 0; }
}
@media (max-width: 560px) {
  .wheel__title { flex-direction: column; align-items: center; row-gap: .02em; }
  .wheel__kicker { margin-top: .9em; }
}
@media (max-width: 480px) {
  .wheel__hint { font-size: 11px; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
