/* Full menu — port of redesign_july MenuPage / MenuGallery / ZoomLightbox
   Palette adapted to Night Canopy moss drench */

:root {
  --moss: #26370d;
  --moss-lift: #314612;
  --ink: #0f1609;
  --ink-warm: #141c0c;
  --leaf: #9bc45a;
  --harvest: #d4a24c;
  --bloom: #eef2e4;
  --mist: #b7c4a4;
  --mute: #7a8a68;
  --panel: #1a2410;
  --display: "Young Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bloom);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  background: var(--harvest);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header — redesign_july sticky 3-col */
.menu-page-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  min-height: 76px;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid color-mix(in oklab, var(--moss-lift) 55%, transparent);
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
}

.menu-page-logo,
.menu-page-wa {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in oklab, var(--moss-lift) 70%, transparent);
}

.menu-page-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.menu-page-wa {
  background: var(--harvest);
  color: var(--ink);
}

.menu-page-title h1 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.menu-page-title p {
  margin-top: 4px;
  color: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

/* Section */
.menu-section {
  padding: 42px 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  color: var(--harvest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 7vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.menu-state {
  margin-top: 1.5rem;
  color: var(--mist);
  font-weight: 600;
}
.menu-state.is-error { color: #e8a070; }
.menu-state[hidden] { display: none; }

/* Tabs */
.menu-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.menu-tabs[hidden] { display: none; }

.menu-tabs button {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid color-mix(in oklab, var(--moss-lift) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--panel) 85%, transparent);
  color: var(--bloom);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 15px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.menu-tabs button.active,
.menu-tabs button:hover {
  background: var(--harvest);
  border-color: var(--harvest);
  color: var(--ink);
}

/* Gallery */
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.menu-gallery[hidden] { display: none; }

@media (min-width: 720px) {
  .menu-gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.menu-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--panel);
  cursor: zoom-in;
  padding: 0;
  text-align: left;
  width: 100%;
}

.menu-item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.menu-item:hover img { transform: scale(1.04); }

.menu-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 14px;
  background: rgba(15, 22, 9, 0.72);
  color: var(--bloom);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

@media (max-width: 480px) {
  .menu-item,
  .menu-item img { min-height: 200px; }
}

/* Footer */
.menu-page-footer {
  display: grid;
  gap: 16px;
  padding: 42px 14px 70px;
  text-align: center;
  border-top: 1px solid color-mix(in oklab, var(--moss-lift) 45%, transparent);
  margin-top: 24px;
}

.menu-page-footer > p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 400;
}

.menu-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
}

.primary-action {
  background: var(--harvest);
  color: var(--ink);
}

.secondary-action {
  border: 1px solid color-mix(in oklab, var(--bloom) 30%, transparent);
  color: var(--bloom);
}

.menu-page-footer small {
  color: var(--mute);
  font-weight: 700;
  font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 12, 5, 0.88);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100vw);
  height: min(92svh, 100%);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  padding: 12px;
}

.lightbox-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink-warm);
  touch-action: none;
  min-height: 0;
}

.lightbox-image-container {
  width: 100%;
  height: 100%;
  min-height: 50svh;
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: min(70svh, 100%);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  color: var(--bloom);
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }

.lightbox-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--bloom);
  padding: 0 4px;
}
.lightbox-info strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 400;
}
.lightbox-info span { color: var(--mist); font-size: 0.85rem; font-weight: 700; }

.lightbox-hint {
  color: var(--mute);
  font-size: 0.75rem;
  text-align: center;
  padding-bottom: 4px;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .menu-page-actions { flex-direction: column; align-items: stretch; }
  .primary-action,
  .secondary-action { width: 100%; }
}
