/* Stidham's Lounge — Menu page (pages/menu.html)
   Hero framing (layout: components.css .photo-hero), the menu photo and its
   full-screen viewer (sections/menu/menu.html). The closing lamp band is the
   shared .cta-band (components.css).
   Entrance motion: animations.css. Tablet/phone layouts: responsive.css.
   Viewer behaviour: js/menu.js. */

/* =========================================================
   HERO
   The shared photo hero (components.css .photo-hero*), as on the Services page.
   Its own: the food photo (Stidham's signature sandwich, cut in half; the
   title sits between the halves).
   ========================================================= */
.menu-hero .photo-hero-media img {
  object-position: 50% 50%;
  /* Dimmed for the copy over it, colour left true. */
  filter: brightness(.6) contrast(1.06);
}
.menu-hero .photo-hero-media::after {
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%, rgba(15, 14, 12, .72), rgba(15, 14, 12, 0) 76%),
    linear-gradient(to bottom,
      rgba(15, 14, 12, .85) 0%,
      rgba(15, 14, 12, .3) 26%,
      rgba(15, 14, 12, .42) 60%,
      rgba(15, 14, 12, .92) 88%,
      var(--charcoal) 100%);
}
.menu-hero .eyebrow { text-wrap: balance; }   /* no lone "NC" on small phones */

/* =========================================================
   MENU PHOTO
   The real menu, shown whole (never cropped) in a walnut-edged frame under a
   warm lamp glow. The whole frame is a button that opens the viewer.
   ========================================================= */
.menu {
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 128px);
}
/* Lamplight pooling behind the photo. */
.menu::before {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 45%, rgba(217, 163, 91, .09), rgba(217, 163, 91, 0) 72%);
}
#menu-board { scroll-margin-top: calc(var(--header-h, 82px) + 24px); }

.menu-board {
  max-width: 1120px;
  margin-inline: auto;
}
.menu-board-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: clamp(6px, 1vw, 12px);
  border: 1px solid var(--walnut-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #2c2119, #1a1511 70%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5),
    0 34px 70px -30px rgba(0, 0, 0, .95),
    0 0 90px -30px rgba(217, 163, 91, .22);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.menu-board-frame img {
  width: 100%;
  height: auto;   /* keep the photo's own proportions */
  border-radius: 2px;
}
.menu-board-hint {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(217, 163, 91, .4);
  border-radius: 999px;
  background: rgba(15, 14, 12, .82);
  font: 500 .7rem/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  backdrop-filter: blur(4px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
/* Magnifier drawn in CSS: a ring and a handle. */
.menu-board-hint-icon {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  margin-right: 3px;
}
.menu-board-hint-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 1.5px;
  background: var(--amber);
  transform: rotate(45deg);
}
@media (hover: hover) {
  .menu-board-frame:hover { border-color: rgba(217, 163, 91, .45); }
  .menu-board-frame:hover .menu-board-hint { background: rgba(15, 14, 12, .92); border-color: var(--amber); }
}
.menu-board-caption {
  max-width: 60ch;
  margin: clamp(16px, 2vw, 22px) auto 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

/* =========================================================
   FULL-SCREEN VIEWER (<dialog>, js/menu.js)
   Fits the photo to the screen; .is-zoomed shows it at full size in a
   scrollable stage (drag/scroll to pan).
   ========================================================= */
.menu-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: hidden;
}
.menu-viewer::backdrop { background: rgba(10, 9, 8, .94); }
.menu-viewer[open] { display: block; animation: m-fade .3s var(--ease) both; }

.menu-viewer-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(56px, 7vh, 72px) clamp(12px, 3vw, 40px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.menu-viewer-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 2 * clamp(56px, 7vh, 72px));
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  cursor: zoom-in;
}
.menu-viewer.is-zoomed .menu-viewer-stage { place-items: start; }
.menu-viewer.is-zoomed .menu-viewer-stage img {
  /* Full size, but never smaller than the screen is wide. */
  width: max(1600px, 100%);
  max-width: none;
  max-height: none;
  margin: auto;
  cursor: zoom-out;
}

.menu-viewer-close {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  z-index: 1;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 163, 91, .45);
  border-radius: 50%;
  background: rgba(15, 14, 12, .85);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
/* The X: two crossed bars. */
.menu-viewer-close::before,
.menu-viewer-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-viewer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-viewer-close:hover { background: var(--walnut); border-color: var(--amber); }

.menu-viewer-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vh, 22px);
  translate: -50% 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 14, 12, .8);
  font: 500 .68rem/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
/* Page behind the viewer doesn't scroll. */
html:has(.menu-viewer[open]) { overflow: hidden; }

/* ---------- The menu as text (under the photo) ---------- */
.menu-text { margin-top: clamp(40px, 6vw, 72px); }
.menu-text-title {
  margin-bottom: clamp(18px, 2.4vw, 28px);
  font: 400 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-display);
  letter-spacing: .04em;
  color: var(--cream);
  text-align: center;
}
.menu-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  align-items: start;
}
.menu-text-section h4 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font: 400 1.35rem/1 var(--font-display);
  letter-spacing: .06em;
  color: var(--amber);
}
.menu-text-section ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.menu-text-row { display: flex; justify-content: space-between; gap: 12px; color: var(--cream); font-weight: 500; }
.menu-text-price { flex: none; color: var(--amber); }
.menu-text-desc { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.menu-text-note { margin: 6px 0 10px; color: var(--muted); font-size: .88rem; }
.menu-text > .menu-text-note { text-align: center; }
@media (max-width: 1024px) { .menu-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .menu-text-grid { grid-template-columns: minmax(0, 1fr); } }
