/* ═══════════════════════════════════════════════════════
   HEAVENLY BITES — menu.css
   Menu page + "DM order list" drawer. Shares tokens from
   style.css (:root). Editorial light-pink palette.
═══════════════════════════════════════════════════════ */

.menu-page { background: var(--bg); }

/* ── Header ──────────────────────────────────────────── */
.menu-head {
  padding: 9.5rem 2.5rem 3rem;
  text-align: center;
  position: relative;
}

.menu-head::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 78% 6%, rgba(242, 196, 206, 0.30) 0%, transparent 62%),
    radial-gradient(ellipse 38% 50% at 14% 30%, rgba(201, 107, 133, 0.10) 0%, transparent 65%);
  z-index: -1;
}

.menu-head-inner { max-width: 760px; margin: 0 auto; }

.menu-head .eyebrow { color: var(--gold); }

.menu-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
  margin: 0.4rem 0 1.25rem;
}
.menu-title em { font-style: italic; color: var(--gold); }

.menu-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Grid ────────────────────────────────────────────── */
.menu-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2.5rem 7rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.menu-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s ease, border-color 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(58, 31, 43, 0.10);
  border-color: var(--gold-border);
}

.menu-card.in-order {
  border-color: rgba(201, 107, 133, 0.45);
  box-shadow: 0 14px 38px rgba(201, 107, 133, 0.14);
}

.mc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight zoom anchored top-left so any bottom-right Gemini "✦" watermark
     gets cropped out (same approach as the specialty bands). */
  transform: scale(1.06);
  transform-origin: top left;
  transition: transform 0.7s var(--ease-spring);
}
.menu-card:hover .mc-media img { transform: scale(1.1); }

/* Real (watermark-free) photos: keep centered, no crop-zoom */
.mc-media.mc-media--photo img { transform: none; transform-origin: center; }
.menu-card:hover .mc-media.mc-media--photo img { transform: scale(1.05); }

.mc-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 252, 253, 0.82);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.mc-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem 1.4rem 1.5rem;
  flex: 1;
}

.mc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.mc-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.15;
}
.mc-unit {
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mc-price {
  flex-shrink: 0;
  font-family: var(--font-sub);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-dim);
  white-space: nowrap;
}

.mc-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.mc-add {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.mc-add:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.mc-add:active { transform: scale(0.98); }

.menu-card.in-order .mc-add {
  background: var(--gold-glow);
  border-color: rgba(201, 107, 133, 0.4);
  color: var(--gold-dim);
}

/* Pack selector (firm, tiered-price treats) */
.mc-packs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mc-pack {
  flex: 1 1 auto;
  padding: 0.45rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mc-pack:hover { border-color: var(--gold-border); color: var(--gold-dim); }
.mc-pack.is-selected {
  background: var(--gold-glow);
  border-color: rgba(201, 107, 133, 0.42);
  color: var(--gold-dim);
  font-weight: 500;
}

.menu-foot-note {
  text-align: center;
  margin: 3.5rem auto 0;
  max-width: 48ch;
  font-family: var(--font-sub);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Floating Order button (FAB) ─────────────────────── */
.order-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 7000;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(201, 107, 133, 0.38);
  transition: background 0.3s ease, transform 0.2s var(--ease-spring), box-shadow 0.3s ease;
}
.order-fab:hover { background: var(--gold-lt); transform: translateY(-2px); }
.order-fab svg { stroke: #fff; }

.order-fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  background: #fff;
  color: var(--gold-dim);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
}

@keyframes fabPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.order-fab.pulse { animation: fabPulse 0.4s var(--ease-spring); }

/* ── Backdrop ────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(42, 18, 28, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.drawer-backdrop.show { opacity: 1; }

/* ── Order Drawer ────────────────────────────────────── */
.order-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8500;
  height: 100dvh;
  width: min(430px, 92vw);
  display: flex;
  flex-direction: column;
  background: rgba(253, 248, 249, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid var(--gold-border);
  box-shadow: -24px 0 60px rgba(58, 31, 43, 0.18);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-spring);
}
.order-drawer.open { transform: translateX(0); }

.od-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.6rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.od-eyebrow {
  font-family: var(--font-sub);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.od-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
}
.od-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.od-close:hover { background: var(--bg-surface); border-color: var(--gold-border); }

.od-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.6rem 1.6rem;
}

/* Empty state */
.od-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.od-empty svg { stroke: var(--gold); opacity: 0.6; margin-bottom: 0.5rem; }
.od-empty p { font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); }
.od-empty span { font-size: 0.88rem; max-width: 26ch; }

/* Items */
.od-items { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.od-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.odi-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.odi-name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--cream);
  line-height: 1.2;
}
.odi-price { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.02em; }

.odi-qty {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.18rem;
}
.odi-step {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--gold-dim);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.odi-step:hover { background: var(--gold); color: #fff; }
.odi-count { min-width: 1.4rem; text-align: center; font-size: 0.9rem; font-weight: 500; color: var(--cream); }

/* Live block: estimate + note + message */
.od-live { margin-top: 1.4rem; }

.od-estimate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.1rem;
}
.od-estimate span { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }
.od-estimate strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-dim);
}
.od-disclaimer { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.35rem; }

.od-note-label {
  display: block;
  margin: 1.4rem 0 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cream);
}
.od-note-label span { font-weight: 300; color: var(--text-muted); }

.od-note {
  width: 100%;
  resize: vertical;
  min-height: 3.5rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  line-height: 1.6;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.od-note:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.od-note::placeholder { color: rgba(58, 31, 43, 0.38); }

.od-preview-label {
  margin: 1.3rem 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.od-message {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

/* Actions footer */
.od-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 1.6rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(253, 248, 249, 0.6);
}
.od-copy { width: 100%; cursor: pointer; }
.od-copy.copied { background: #6FA771; box-shadow: 0 8px 26px rgba(111, 167, 113, 0.32); }
.od-copy.copy-failed { background: var(--gold-dim); }

.od-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.od-ig:hover { background: var(--gold-glow); border-color: var(--gold); }

.od-clear {
  align-self: center;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: color 0.25s ease;
}
.od-clear:hover { color: var(--gold-dim); text-decoration: underline; }

/* Lock background scroll when drawer is open */
body.drawer-open { overflow: hidden; }

/* Active nav link */
.nav-links a.is-active { color: var(--gold); }
.nav-links a.is-active::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--gold);
  opacity: 0.6;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-head { padding: 8rem 1.5rem 2rem; }
  .menu-wrap { padding: 1.5rem 1.5rem 6rem; }

  .order-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85rem 1.2rem;
  }

  .order-drawer { width: 100vw; }
}

@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .menu-card { flex-direction: row; }
  .mc-media { width: 38%; aspect-ratio: auto; flex-shrink: 0; }
  .mc-body { padding: 1rem 1.1rem 1.1rem; }
  .mc-name { font-size: 1.12rem; }
  .mc-head { flex-direction: column; gap: 0.2rem; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .order-drawer { transition: none; }
  .order-fab.pulse { animation: none; }
  .menu-card:hover { transform: none; }
}
