/* ==========================================================================
   Plaza Café — experiência animada (etapa 1: esqueleto em movimento)
   Sem JS ou com "menos movimento": tudo visível e estático.
   Com a classe .exp (posta por js/exp/pre.js): animações presas à rolagem.
   ========================================================================== */

:root {
  --bg: #F7F2EA;
  --bg-alt: #EFE6D8;
  --surface: #FFFFFF;
  --ink: #2B211B;
  --ink-soft: #6B5D50;
  --brand: #4A342A;
  --accent: #A9752F;
  --accent-texto: #885A20;   /* mesmo caramelo, mais escuro: textos pequenos com contraste AA */
  --border: #E6DBC8;
  --escuro: #1C120C;
  --creme: #F3E9DC;
  --cafe: #6B3818;
  --raio: 22px;
  --borda-lado: clamp(16px, 4vw, 64px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1512; --bg-alt: #211A15; --surface: #231D18; --ink: #F2EAE0; --ink-soft: #B7A99A;
    --brand: #2E211A; --accent: #D9A552; --accent-texto: #D9A552; --border: #3A2F26;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1512; --bg-alt: #211A15; --surface: #231D18; --ink: #F2EAE0; --ink-soft: #B7A99A;
  --brand: #2E211A; --accent: #D9A552; --accent-texto: #D9A552; --border: #3A2F26;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
}
.pular:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.largura { max-width: 1400px; margin: 0 auto; padding-inline: var(--borda-lado); }

/* Lenis (rolagem suave) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Controles flutuantes
   ========================================================================== */
.flutua {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: clamp(14px, 2.4vw, 32px) var(--borda-lado) 0;
  pointer-events: none;                 /* sem barra: só os botões recebem clique */
}
.flutua > *, .flutua-acoes > * { pointer-events: auto; }
.flutua-logo { position: relative; display: block; width: clamp(118px, 11vw, 176px); }
.flutua-logo img { display: block; width: 100%; height: auto; transition: opacity 0.5s ease; }
.flutua-logo .logo-claro { position: absolute; inset: 0; opacity: 0; }
/* sobre a máquina (fundo escuro) o logo fica claro */
.flutua.no-escuro .flutua-logo img:first-child { opacity: 0; }
.flutua.no-escuro .flutua-logo .logo-claro { opacity: 1; }

.flutua-acoes { display: flex; gap: 10px; align-items: center; }

.pilula {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: 700 14px/1 "Karla", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s cubic-bezier(.3,.7,.4,1), background-color 0.3s ease, color 0.3s ease;
}
.pilula:hover { transform: translateY(-2px); }
.pilula-clara { background: rgba(250, 246, 240, 0.96); color: #2B211B; }
.pilula, .som { box-shadow: 0 0 0 1px rgba(43, 33, 27, 0.08), 0 10px 28px -14px rgba(20, 12, 8, 0.55); }
.pilula-escura { background: #2B211B; color: #F7F2EA; }
.pilula-grande { height: 60px; padding: 0 30px; font-size: 15px; }

.menu-pontos { display: inline-flex; gap: 4px; margin-left: 4px; }
.menu-pontos i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.3s ease; }
.menu-botao[aria-expanded="true"] .menu-pontos { flex-direction: column; gap: 3px; }
.menu-botao[aria-expanded="true"] .menu-pontos i { width: 5px; height: 5px; }

/* Botão de som: onda em movimento quando toca, linha reta quando para */
.som {
  width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(247, 242, 234, 0.94); color: #2B211B; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.3s cubic-bezier(.3,.7,.4,1);
}
.som:hover { transform: translateY(-2px); }
.som svg { width: 30px; height: 18px; overflow: visible; }
.som-onda {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke;
  transform-origin: 50% 50%; transform-box: view-box;
  transform: scaleY(0.04);
  transition: transform 0.45s cubic-bezier(.3,.7,.4,1);
}
.som.tocando .som-onda { transform: scaleY(1); animation: onda-anda 1.1s linear infinite; }
@keyframes onda-anda { from { translate: 0 0; } to { translate: 14px 0; } }

/* Painel do menu (flutua sob o botão) */
.menu-painel {
  position: absolute; right: var(--borda-lado); top: calc(clamp(14px, 2.4vw, 32px) + 62px);
  width: min(380px, calc(100vw - 2 * var(--borda-lado)));
  display: grid; gap: 10px;
}
.menu-painel[hidden] { display: none; }
.menu-cartao {
  display: block; border-radius: 18px; background: #FBF7F1; color: #2B211B;
  box-shadow: 0 24px 60px -24px rgba(20, 12, 8, 0.45);
  text-decoration: none;
}
nav.menu-cartao { padding: 18px 28px; }
nav.menu-cartao a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; text-decoration: none;
  font: 500 clamp(24px, 2.2vw, 30px)/1.15 "Fraunces", Georgia, serif;
}
nav.menu-cartao a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
nav.menu-cartao a:hover { color: #A9752F; }
.menu-cardapio, .menu-insta, .menu-modo {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 20px 28px; font: 700 15px/1.2 "Karla", sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
}
.menu-insta { background: #2B211B; color: #F7F2EA; }
.menu-insta span:nth-of-type(1) { flex: 1; }

@media (max-width: 760px), (max-height: 520px) {
  .pilula:not(.menu-botao):not(.pilula-grande) { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .pilula:not(.menu-botao):not(.pilula-grande) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .som, .menu-botao { height: 48px; }
  .som { width: 48px; }
  .menu-botao { padding: 0 16px; }
  .flutua-acoes { gap: 7px; }
  .menu-painel { top: calc(clamp(14px, 2.4vw, 32px) + 58px); }
}
@media (max-width: 420px) { .menu-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ==========================================================================
   Abertura: a máquina (preenche a tela como "cover"; botões em % da foto)
   ========================================================================== */
.abertura {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  overflow: hidden; isolation: isolate;
  background: var(--escuro); color: var(--creme);
}
.palco {
  position: absolute; left: 50%; top: 50%;
  width: max(100%, calc(max(100svh, 520px) * 16 / 9));
  aspect-ratio: 16 / 9;
  translate: -50% -50%;
}
.maquina-previa, .maquina-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maquina-previa { filter: blur(18px) saturate(1.1); transform: scale(1.04); }
.maquina-foto:not([src]) { visibility: hidden; }
.maquina-logo {   /* logo do Plaza na plaquinha de latão */
  position: absolute; left: 55.8%; top: 52.2%; width: 5.5%; height: 6.2%;
  object-fit: contain; opacity: 0.8; pointer-events: none;
  filter: brightness(0) sepia(0.6) opacity(0.75);
  mix-blend-mode: multiply;
}

.abertura::after {  /* leitura do texto sobre a foto */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 48% 60% at 0% 78%, rgba(18, 10, 6, 0.78), rgba(18, 10, 6, 0) 100%),
    linear-gradient(to top, rgba(18, 10, 6, 0.85) 0%, rgba(18, 10, 6, 0) 38%),
    linear-gradient(to bottom, rgba(18, 10, 6, 0.55) 0%, rgba(18, 10, 6, 0) 22%);
}
.abertura-texto {
  position: absolute; z-index: 2;
  left: var(--borda-lado); bottom: clamp(56px, 11vh, 120px);
  max-width: min(640px, 46vw);
}
.abertura .sobretitulo { color: #E0A960; }
.abertura h1 { font-size: clamp(32px, 4vw, 66px); color: #FBF4EA; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.abertura-dica { margin: 16px 0 0; color: #E3D3BE; font-size: 16px; }
.abertura-horario {
  position: absolute; z-index: 2; right: var(--borda-lado); bottom: clamp(56px, 11vh, 120px); margin: 0;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; background: rgba(20, 12, 8, 0.6); font-size: 15px;
}
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #7BC67E; box-shadow: 0 0 0 4px rgba(123, 198, 126, 0.2); }
.role {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; margin: 0;
  display: grid; justify-items: center; gap: 8px;
  font: 700 12px/1 "Karla", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #E3D3BE;
}
.role i { width: 1px; height: 26px; background: linear-gradient(#E3D3BE, transparent); animation: role-desce 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes role-desce { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }

/* Barra de carregamento: sutil, no meio da máquina */
.carregando {
  position: absolute; z-index: 3; left: 50.2%; top: 44%; translate: -50% -50%;
  display: none; justify-items: center; gap: 8px;
  padding: 12px 16px 14px; border-radius: 14px;
  background: rgba(20, 12, 8, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #F3E9DC;
}
.exp .carregando { display: grid; }
.exp-pronta .carregando { pointer-events: none; }
.carregando-num { font: 600 13px/1 "Karla", sans-serif; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.carregando-trilho { width: clamp(110px, 12vw, 180px); height: 2px; border-radius: 2px; background: rgba(243, 233, 220, 0.22); overflow: hidden; }
.carregando-barra { display: block; height: 100%; width: 100%; background: #E0A960; transform-origin: left; transform: scaleX(0); }

/* Botões da máquina (links reais) */
.maquina-botoes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bm {
  position: absolute; top: 33.75%; width: 3.3%; aspect-ratio: 1; translate: -50% -50%;
  pointer-events: auto; border-radius: 10px; text-decoration: none; color: inherit;
}
.bm:nth-child(1) { left: 43.85%; }
.bm:nth-child(2) { left: 47.1%; }
.bm:nth-child(3) { left: 50.3%; }
.bm:nth-child(4) { left: 53.55%; }
.bm:nth-child(5) { left: 56.8%; }
.bm::before {
  content: ""; position: absolute; inset: 14%; border-radius: 6px;
  transition: box-shadow 0.25s ease, transform 0.12s ease;
}
.bm:hover::before, .bm:focus-visible::before, .bm.acende::before {
  box-shadow: 0 0 0 1px rgba(255, 200, 120, 0.6), 0 0 18px 4px rgba(255, 170, 80, 0.5), inset 0 0 10px rgba(255, 190, 110, 0.4);
}
.bm:active::before { transform: scale(0.9); }
.bm-rotulo {
  position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0;
  padding: 5px 12px 6px; border-radius: 999px; background: #F5C77E; color: #2B211B;
  font: 700 clamp(11px, 0.85vw, 14px)/1 "Karla", sans-serif; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bm:hover .bm-rotulo, .bm:focus-visible .bm-rotulo, .bm.acende .bm-rotulo { opacity: 1; transform: none; }

@media (max-height: 520px) and (orientation: landscape) {
  .abertura { min-height: 0; }
  .palco { width: max(100%, calc(100svh * 16 / 9)); }
  .abertura-texto { bottom: 22px; max-width: min(420px, 39vw); }
  .abertura h1 { font-size: clamp(22px, 7.4vh, 40px); }
  .abertura .sobretitulo { margin-bottom: 8px; font-size: 11px; }
  .abertura-dica { margin-top: 8px; font-size: 13px; }
  .abertura-horario { bottom: 22px; font-size: 13px; padding: 6px 12px; }
  .role { display: none; }
  .flutua-logo { width: 104px; }
  .menu-painel { max-height: calc(100svh - 80px); overflow: auto; }
  nav.menu-cartao { padding: 10px 22px; }
  nav.menu-cartao a { padding: 5px 0; font-size: 21px; }
}
@media (max-width: 760px) {
  .abertura-texto { max-width: none; right: var(--borda-lado); bottom: 92px; }
  .abertura-horario { left: var(--borda-lado); right: auto; bottom: 48px; font-size: 14px; }
  .role { display: none; }
}

/* ==========================================================================
   Seções
   ========================================================================== */
.secao { padding: clamp(96px, 14vw, 200px) 0; }
.secao-alt { background: var(--bg-alt); }
.sobretitulo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 700 13px/1 "Karla", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-texto);
}
.sobretitulo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cabeca { max-width: 900px; margin-bottom: clamp(48px, 7vw, 96px); }
.cabeca h2, .sobre h2 { font-size: clamp(38px, 5.6vw, 88px); }
.cabeca p { margin: 24px 0 0; max-width: 620px; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-soft); }

.grade-cardapio { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.cartao { display: block; text-decoration: none; }
.cartao-foto { border-radius: var(--raio); overflow: hidden; aspect-ratio: 16 / 11; background: var(--border); }
.cartao-foto img { width: 100%; height: 100%; object-fit: cover; }
.cartao h3 { margin-top: 22px; font-size: clamp(28px, 3vw, 46px); }
.cartao p { margin: 10px 0 0; color: var(--ink-soft); max-width: 46ch; }
.centro { text-align: center; margin: clamp(48px, 7vw, 96px) 0 0; }

.sobre { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.sobre-foto { border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 5; }
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
.sobre-texto p { margin: 22px 0 0; font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-soft); }

.grade-ambiente { display: grid; grid-template-columns: 1.3fr 1fr; grid-auto-rows: clamp(220px, 26vw, 400px); gap: clamp(14px, 2vw, 28px); }
.amb-foto { border-radius: var(--raio); overflow: hidden; background: var(--border); }
.amb-foto img { width: 100%; height: 100%; object-fit: cover; }
.amb-foto:nth-child(1) { grid-row: span 2; }
.amb-foto:nth-child(4) { grid-column: 1 / -1; }

.localizacao { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.info-lista { display: grid; gap: 28px; align-content: start; }
.info-item p { margin: 6px 0 0; font-size: 19px; }
.rotulo { font: 700 13px/1 "Karla", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-texto); }
.mapa { border-radius: var(--raio); overflow: hidden; min-height: 380px; background: var(--border); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.contato { text-align: center; }
.contato .sobretitulo { justify-content: center; }
.contato-titulo { font-size: clamp(42px, 7.4vw, 120px); max-width: 14ch; margin: 0 auto; }
.contato > p { max-width: 640px; margin: 28px auto 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-soft); }
.contato-canais { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; margin-top: clamp(40px, 6vw, 80px); text-align: left; }
.canal {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 4px;
  padding: 26px 28px; border-radius: var(--raio); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(.3,.7,.4,1);
}
.canal:hover { transform: translateY(-4px); }
.canal .ico { grid-row: 1 / span 3; width: 34px; height: 34px; }
.canal-whats .ico { color: #1FA855; }
.canal-insta .ico { color: #C1358A; }
.canal-rotulo { font: 600 22px/1.2 "Fraunces", Georgia, serif; }
.canal-detalhe { color: var(--ink-soft); }
.canal-acao { font-weight: 700; color: var(--accent-texto); }

.rodape { padding: 36px 0 48px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--border); }

@media (max-width: 860px) {
  .grade-cardapio, .sobre, .localizacao { grid-template-columns: 1fr; }
  .grade-ambiente { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .contato-canais { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Modo experiência
   ========================================================================== */
/* enquanto carrega, a página não rola e nada abaixo da abertura aparece */
.exp:not(.exp-pronta) body { overflow: hidden; }
.exp:not(.exp-pronta) main > section:not(.abertura),
.exp:not(.exp-pronta) .rodape { visibility: hidden; }
.exp:not(.exp-pronta) .abertura-texto,
.exp:not(.exp-pronta) .abertura-horario,
.exp:not(.exp-pronta) .role,
.exp:not(.exp-pronta) .maquina-botoes,
.exp:not(.exp-pronta) .maquina-logo,
.exp:not(.exp-pronta) .flutua { opacity: 0; }

/* letras e palavras quebradas pelo SplitText */
[data-letras] .letra, [data-palavras] .palavra { display: inline-block; will-change: transform, opacity, filter; }
[data-surge] { will-change: clip-path, transform; }

@media (prefers-reduced-motion: reduce) {
  .som.tocando .som-onda, .role i { animation: none; }
}

/* Máquina viva (etapa 2): tela WebGL sobre a foto, mesmo tamanho dela */
.maquina-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.abertura { touch-action: pan-y; }
.info-item p.info-dica { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.info-dica a { color: var(--accent-texto); font-weight: 700; }

/* Ícones gravados nos botões da máquina + piscada de convite (3 vezes, logo após carregar) */
.bm { display: grid; place-items: center; }
.bm-ico {
  position: relative; width: 46%; height: 46%;
  color: rgba(236, 224, 206, 0.62); stroke-width: 1.7;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7));
  transition: color 0.25s ease, filter 0.25s ease;
}
.bm:hover .bm-ico, .bm:focus-visible .bm-ico, .bm.acende .bm-ico {
  color: #FFE2B0; filter: drop-shadow(0 0 4px rgba(255, 190, 110, 0.9));
}
.maquina-botoes.chamando .bm::before { animation: bm-pisca 0.95s ease-in-out 3; }
.maquina-botoes.chamando .bm-ico { animation: bm-ico-pisca 0.95s ease-in-out 3; }
@keyframes bm-pisca {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 120, 0); }
  45% { box-shadow: 0 0 0 1px rgba(255, 200, 120, 0.65), 0 0 20px 5px rgba(255, 170, 80, 0.55), inset 0 0 10px rgba(255, 190, 110, 0.45); }
}
@keyframes bm-ico-pisca { 45% { color: #FFE2B0; filter: drop-shadow(0 0 5px rgba(255, 190, 110, 0.95)); } }

/* ==========================================================================
   Página do cardápio
   ========================================================================== */
.cardapio-abertura {
  position: relative; overflow: hidden;
  padding: clamp(150px, 24vh, 240px) 0 clamp(70px, 10vw, 130px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(169, 117, 47, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(107, 56, 24, 0.35), transparent 70%),
    var(--escuro);
  color: var(--creme);
}
.voltar {
  display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(243, 233, 220, 0.25);
  font: 700 13px/1 "Karla", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: #E3D3BE;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.voltar:hover { background: #F3E9DC; color: #2B211B; }
.cardapio-abertura .sobretitulo { display: flex; color: #E0A960; }
.cardapio-abertura h1 { font-size: clamp(46px, 8.4vw, 136px); max-width: 12ch; color: #FBF4EA; }
.cardapio-lead { max-width: 640px; margin: 30px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: #E3D3BE; }
.cardapio-nota { margin: 12px 0 0; font-size: 15px; color: #B7A99A; }
.cardapio-indice { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(36px, 5vw, 64px); }
.cardapio-indice a {
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  background: rgba(243, 233, 220, 0.08); border: 1px solid rgba(243, 233, 220, 0.18); color: #F3E9DC;
  font: 700 14px/1 "Karla", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(.3,.7,.4,1);
}
.cardapio-indice a:hover { background: #F3E9DC; color: #2B211B; transform: translateY(-2px); }

.cat { padding: clamp(80px, 11vw, 170px) 0; }
.cat:nth-of-type(odd):not(.cat-bebidas) { background: var(--bg-alt); }
.cat-grade { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.cat:nth-of-type(even) .cat-foto { order: 2; }
.cat-foto {
  position: sticky; top: 13vh; margin: 0;
  border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 5; background: var(--border);
}
.cat-foto img { width: 100%; height: 100%; object-fit: cover; }
.cat-num {
  display: block; font: 500 clamp(64px, 9vw, 150px)/0.9 "Fraunces", Georgia, serif;
  color: transparent; -webkit-text-stroke: 1.2px var(--accent); margin-bottom: 18px;
}
.cat h2 { font-size: clamp(36px, 4.6vw, 72px); }
.cat-intro { margin: 18px 0 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-soft); max-width: 46ch; }
.itens { list-style: none; margin: clamp(30px, 4vw, 52px) 0 0; padding: 0; }
.itens li, .grupos > div {
  position: relative; display: grid; gap: 4px; padding: 20px 0;
}
.itens li::before, .grupos > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--border);
  transform-origin: left; transform: scaleX(var(--linha, 1));
}
.itens strong { font: 500 clamp(21px, 1.8vw, 27px)/1.2 "Fraunces", Georgia, serif; }
.itens span { color: var(--ink-soft); }
.grupos { margin-top: clamp(30px, 4vw, 52px); }
.grupos h3 { font-size: clamp(21px, 1.8vw, 27px); }
.grupos p { margin: 0; color: var(--ink-soft); }
.sabores-titulo { margin: 36px 0 14px; font: 700 13px/1 "Karla", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-texto); }
.sabores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sabores li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }

.cat-bebidas { background: var(--escuro); color: var(--creme); }
.cat-bebidas h2 { color: #FBF4EA; }
.cat-bebidas .cat-intro { color: #E3D3BE; }
.cat-bebidas .sabores { margin-top: 36px; }
.sabores-claros li { background: rgba(243, 233, 220, 0.08); border-color: rgba(243, 233, 220, 0.2); color: #F3E9DC; }
.balcao { margin: 36px 0 0; font-size: clamp(18px, 1.6vw, 23px); color: #E3D3BE; max-width: 50ch; }
.balcao strong { color: #F5C77E; }

.cat-fim { padding: clamp(110px, 15vw, 220px) 0; text-align: center; }
.cat-fim p { max-width: 560px; margin: 26px auto 0; font-size: clamp(17px, 1.5vw, 22px); color: var(--ink-soft); }
.cat-fim-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.pilula-borda { box-shadow: inset 0 0 0 1px var(--border), 0 10px 28px -14px rgba(20, 12, 8, 0.4); }

@media (max-width: 860px) {
  .cat-grade { grid-template-columns: 1fr; }
  .cat:nth-of-type(even) .cat-foto { order: 0; }
  .cat-foto { position: relative; top: 0; aspect-ratio: 4 / 3; }
}

.cat-fim-volta { margin: 40px 0 0; }
.voltar-claro { margin: 0; border-color: var(--border); color: var(--ink-soft); }
.voltar-claro:hover { background: #2B211B; color: #F3E9DC; }

/* ==========================================================================
   Etapa 5 — celular: escolha da experiência, aviso "gire o celular", troca no menu
   ========================================================================== */
.escolha, .gire {
  position: fixed; inset: 0; z-index: 400; overflow: auto;
  display: grid; place-items: center; padding: 24px 20px;
  background:
    radial-gradient(ellipse 80% 55% at 90% 0%, rgba(169, 117, 47, 0.3), transparent 70%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(107, 56, 24, 0.4), transparent 70%),
    var(--escuro);
  color: var(--creme); text-align: center;
}
.escolha[hidden], .gire[hidden] { display: none; }
.escolha-caixa { width: min(640px, 100%); }
.escolha-logo { width: 140px; height: auto; margin: 0 auto 22px; display: block; }
.escolha-titulo { margin: 0 0 26px; font: 500 clamp(28px, 7vw, 40px)/1.1 "Fraunces", Georgia, serif; color: #FBF4EA; }
.escolha-opcoes { display: grid; gap: 12px; }
.escolha-op {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: center;
  width: 100%; padding: 18px 20px; border-radius: 22px; cursor: pointer; text-align: left;
  border: 1px solid rgba(243, 233, 220, 0.2); background: rgba(243, 233, 220, 0.06); color: #F3E9DC;
  font: inherit; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.escolha-op:active { transform: scale(0.98); }
.escolha-op.agora { border-color: #E0A960; background: rgba(224, 169, 96, 0.14); }
.escolha-ico { grid-row: 1 / span 2; width: 40px; height: 40px; color: #E0A960; stroke-width: 1.5; }
.escolha-op strong { font: 500 22px/1.15 "Fraunces", Georgia, serif; color: #FBF4EA; }
.escolha-op span { font-size: 15px; line-height: 1.4; color: #CDBBA5; }
.escolha-nota { margin: 20px 0 0; font-size: 14px; color: #A8998A; }
@media (orientation: landscape) {
  .escolha-opcoes { grid-template-columns: 1fr 1fr; }
  .escolha-logo { width: 110px; margin-bottom: 12px; }
  .escolha-titulo { margin-bottom: 16px; font-size: clamp(24px, 6vh, 34px); }
}

.gire { align-content: center; gap: 0; }
.gire-ico { width: 64px; height: 64px; color: #E0A960; stroke-width: 1.3; margin: 0 auto; animation: gire-gira 2.4s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes gire-gira { 0%, 25% { rotate: 0deg; } 55%, 85% { rotate: -90deg; } 100% { rotate: 0deg; } }
.gire-titulo { margin: 22px 0 8px; font: 500 30px/1.1 "Fraunces", Georgia, serif; color: #FBF4EA; }
.gire-texto { margin: 0 auto; max-width: 280px; color: #CDBBA5; }
.gire-leve {
  margin: 28px auto 0; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243, 233, 220, 0.3); background: none; color: #F3E9DC;
  font: 700 13px/1 "Karla", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}

.menu-modo { width: 100%; border: 0; cursor: pointer; text-align: left; background: #FBF7F0; color: #2B211B; }
.menu-modo .menu-modo-rotulo { flex: 1; }
.menu-modo[hidden] { display: none; }
