/* ===========================================================================
   Table menu — /menu/<slug>

   Its own stylesheet, not the site's. This page is read by someone sitting at
   a table on a phone, so it carries no nav, no hero and nothing decorative
   that costs a request. Loading the site's 41 KB of CSS to show 14 pictures
   would be most of the page weight.
   =========================================================================== */

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

:root {
  --ink:   #0a1c2e;
  --dim:   #6d8497;
  --line:  #e2ecf4;
  --paper: #f4f8fb;
  --aqua:  #0ea5c4;
  --amber: #ff8a1f;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  /* A column the height of the screen, so a short page still puts its footer
     at the bottom instead of leaving a band of empty paper beneath it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Room for the notch and the home indicator on a phone. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a { color: var(--aqua); }

/* ---- header ------------------------------------------------------------ */
.mhead {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
}
.mhead-logo { border-radius: 8px; flex: none; }
.mhead-text h1 { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.mhead-text p  { font-size: .74rem; color: #9db8cc; margin-top: 2px; }

/* ---- jump list --------------------------------------------------------- */
.mjump {
  position: sticky;
  top: 58px;
  z-index: 4;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mjump::-webkit-scrollbar { display: none; }
.mjump a {
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.mjump a:active { background: var(--ink); color: #fff; }

/* ---- pages ------------------------------------------------------------- */
.mpages {
  display: grid;
  gap: 18px;
  padding: 18px 14px 32px;
  max-width: 760px;
  margin: 0 auto;
}

.mpage { scroll-margin-top: 108px; }        /* clear both sticky bars */

.mpage-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 10px 24px -18px rgba(6, 24, 42, .5);
}
.mpage-btn img {
  display: block;
  width: 100%;
  height: auto;
  /* The intrinsic width/height attributes hold the space, so the page does
     not jump as each lazy image arrives. */
}
.mpage-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 28, 46, .82);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.mpage figcaption {
  padding: 9px 4px 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dim);
  text-align: center;
}

.mempty {
  padding: 60px 24px;
  text-align: center;
  color: var(--dim);
}

/* ---- zoom viewer ------------------------------------------------------- */
.mzoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #05121f;
  display: flex;
  flex-direction: column;
}
.mzoom[hidden] { display: none; }

.mzoom-scroll {
  flex: 1;
  overflow: auto;                 /* lets a zoomed image be panned */
  display: grid;
  place-items: center;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.mzoom-scroll img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* Wider than the screen on purpose once zoomed in — the browser's own
     pinch-zoom then has real pixels to magnify. */
}
.mzoom.is-wide .mzoom-scroll img { max-width: none; width: 200%; }

.mzoom-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mzoom-cap {
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  color: #9db8cc;
  font-size: .8rem;
  text-align: center;
}

/* ---- footer ------------------------------------------------------------ */
.mfoot {
  margin-top: auto;                 /* pushed to the bottom by the body flex */
  padding: 22px 20px 34px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: .82rem;
  color: var(--dim);
  line-height: 1.7;
}
.mfoot-call {
  display: inline-block;
  margin-bottom: 14px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--amber);
  color: #24160a;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.mfoot-sig { margin-top: 10px; font-size: .78rem; }
.mfoot-sig span { color: #9db4c6; }

/* ---- "no menu here" -----------------------------------------------------
   A full-height column so the footer sits at the bottom of the screen rather
   than floating halfway up with dead space beneath it. */
.mgone {
  min-height: calc(100vh - 58px - 84px);   /* viewport less the header and footer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 48px 28px;
  text-align: center;
}
.mgone-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--aqua);
}
.mgone h2 { font-size: 1.18rem; font-weight: 800; color: var(--ink); }
.mgone p  { max-width: 34ch; color: var(--dim); font-size: .92rem; line-height: 1.65; margin-top: 8px; }
.mgone-btn {
  margin-top: 22px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--amber);
  color: #24160a;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}

/* ---- desktop ----------------------------------------------------------- */
@media (min-width: 720px) {
  .mpages { grid-template-columns: 1fr 1fr; gap: 20px; }
  .mhead { padding: 14px 24px; }
  .mjump { padding: 12px 24px; }
}

@media print {
  .mhead, .mjump, .mfoot, .mpage-zoom { display: none; }
  .mpages { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .mpage-btn { border: 0; box-shadow: none; break-inside: avoid; }
}

/* A second action beside the call button, when the house publishes WhatsApp. */
.mfoot-wa {
  display: inline-block;
  margin: 0 0 14px 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
