/* Interactive menu page. Loads after style.css. */

:root {
  --cream: #f1e9dc;
  --cream-2: #cfc6b8;
  --walnut: #1a1411;
}

body.menu-page { background: #0f0e0d; color: var(--cream); }
body.menu-page p, body.menu-page h1, body.menu-page h2, body.menu-page h3 { color: var(--cream); }

/* Atmosphere: fixed layers, no filters on anything that moves */
.stage-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 110%, #2a1d15 0%, #17120f 45%, #0f0e0d 100%); }
.stage-light { position: absolute; width: 60vmax; height: 60vmax; border-radius: 999px; opacity: 0.35; will-change: transform, opacity;
  background: radial-gradient(circle at center, rgba(224, 164, 88, 0.28) 0%, rgba(224, 164, 88, 0.08) 35%, rgba(224, 164, 88, 0) 70%); }
.stage-light-a { top: -20vmax; left: -15vmax; }
.stage-light-b { bottom: -30vmax; right: -20vmax; width: 80vmax; height: 80vmax; opacity: 0.25; }
.stage-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px; }

/* Header block */
.menu-hero { padding: calc(var(--nav-h) + 2.5rem) 0 1.5rem; text-align: left; }
.menu-kicker { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
.menu-sub { font-size: 0.95rem; color: var(--cream-2); margin: 0 0 1.5rem; }
.menu-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 0; }

/* Category row (desktop) */
.cats { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 2.2rem; padding: 1.25rem 0 1.75rem; border-top: 1px solid rgba(241, 233, 220, 0.12); }
.cat { position: relative; z-index: 1; background: none; border: 0; padding: 0.4rem 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1; color: var(--cream-2);
  transform-origin: left bottom; will-change: transform, opacity; transition: color 0.35s; }
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.cat.active { color: var(--accent); }
.cat-spot { position: absolute; z-index: 0; width: 340px; height: 200px; left: 0; top: 0; margin: -100px 0 0 -170px; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(224, 164, 88, 0.22), rgba(224, 164, 88, 0)); will-change: transform, opacity; }

/* Stage: items left, visual right */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: stretch; min-height: 520px; padding: 0 0 3rem; }
.stage-items { position: relative; }
.panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.panel.active { position: relative; opacity: 1; visibility: visible; }
.panel h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 0 0 1.25rem; }
.panel h2 small { display: block; font-family: var(--font-body); font-size: 0.85rem; color: var(--cream-2); letter-spacing: 0; margin-top: 0.35rem; }
.items { list-style: none; margin: 0; padding: 0; }
.item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 1.25rem; align-items: baseline; padding: 0.9rem 0; cursor: default; }
.item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(241, 233, 220, 0.12); }
.item::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); z-index: 1; }
.item:hover::before { transform: scaleX(1); }
.item .name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; transition: transform 0.4s var(--ease-out); will-change: transform; }
.item .ml { font-size: 0.8rem; color: var(--cream-2); letter-spacing: 0.06em; }
.item .price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cream-2); transition: color 0.3s; white-space: nowrap; }
.item:hover .name { transform: translateX(10px); }
.item:hover .price { color: var(--accent-2); }
.item .name, .item .ml, .item .price { will-change: transform, opacity; }

.stage-visual { position: relative; border-radius: 6px; overflow: hidden; min-height: 420px; background: var(--walnut); isolation: isolate; }
.stage-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
.stage-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 14, 13, 0.55), rgba(15, 14, 13, 0) 45%), linear-gradient(to right, rgba(15, 14, 13, 0.25), rgba(15, 14, 13, 0)); pointer-events: none; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.fx-steam { position: absolute; bottom: 30%; left: 50%; width: 110px; height: 110px; border-radius: 999px; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(241, 233, 220, 0.55), rgba(241, 233, 220, 0)); }
.fx-bubble { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 999px; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle at 35% 35%, rgba(255, 245, 225, 0.95), rgba(255, 220, 160, 0.35)); }
.fx-drip { position: absolute; top: -10px; width: 2px; height: 26px; border-radius: 2px; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(to bottom, rgba(241, 233, 220, 0), rgba(241, 233, 220, 0.5)); }
.stage-caption { position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 3; font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); opacity: 0; will-change: transform, opacity; }

.menu-foot { padding: 1rem 0 4rem; color: var(--cream-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; border-top: 1px solid rgba(241, 233, 220, 0.12); padding-top: 1.5rem; }
.menu-foot p { margin: 0; color: var(--cream-2); }

/* Mobile: accordion. Panels get moved under their buttons by JS. */
@media (max-width: 900px) {
  .menu-hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .cats { display: block; padding: 0.5rem 0 0; border-top: 0; }
  .cat-spot { display: none; }
  .acc { border-top: 1px solid rgba(241, 233, 220, 0.14); }
  .acc:last-child { border-bottom: 1px solid rgba(241, 233, 220, 0.14); }
  .cat { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1.1rem 0; font-size: 1.85rem; color: var(--cream); transform: none !important; opacity: 1 !important; }
  .cat::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; color: var(--accent); transition: transform 0.35s var(--ease-out); }
  .cat.active::after { transform: rotate(45deg); }
  .acc .panel { position: relative; inset: auto; opacity: 1; visibility: visible; height: 0; overflow: hidden; }
  .acc .panel h2 { display: none; }
  .acc .panel .items { padding-bottom: 1.25rem; }
  .item { padding: 0.75rem 0; }
  .item .name { font-size: 1.3rem; }
  .item:hover .name { transform: none; }
  .stage { display: block; min-height: 0; padding: 0 0 1rem; }
  .stage-visual { position: fixed; inset: 0; z-index: -1; border-radius: 0; min-height: 0; opacity: 0.55; }
  .stage-visual::after { background: linear-gradient(to bottom, rgba(15, 14, 13, 0.85), rgba(15, 14, 13, 0.55) 40%, rgba(15, 14, 13, 0.9)); }
  .stage-caption { display: none; }
  .stage-items:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .item::before, .item .name, .cat { transition: none; }
}
