/* ══════════════════════════════════════════════════════════════════
   MOBILE MENU — Premium Dark Emerald Navigation Overlay
   Shared component: index.html · menu.html · reservation.html
   ══════════════════════════════════════════════════════════════════ */

@media (min-width: 1025px) {
  #mobile-menu { display: none !important; }
}

/* ── Overlay ──────────────────────────────────────────────────── */
#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10000 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  /* Layout */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0 !important;
  /* Visibility */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  /* Deep dark emerald atmosphere */
  background:
    radial-gradient(ellipse 70% 55% at 12% 88%, rgba(43, 74, 59, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 88% 12%, rgba(183, 147, 90, 0.06) 0%, transparent 50%),
    #080f09;
}

/* Grain texture */
#mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Inner wrapper ────────────────────────────────────────────── */
.mmenu-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;          /* fill full height of the flex overlay */
  min-height: 0;    /* allow shrink if content overflows */
  padding-top: calc(env(safe-area-inset-top, 0px) + 2rem);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
  transform: translateY(18px);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open .mmenu-inner {
  transform: translateY(0);
}

/* ── Header: brand + close ────────────────────────────────────── */
.mmenu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1.75rem 1.75rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.32s ease 0.05s, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

#mobile-menu.open .mmenu-header {
  opacity: 1;
  transform: translateY(0);
}

.mmenu-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mmenu-brand-wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: rgba(240, 235, 225, 0.92);
  line-height: 1;
}

.mmenu-brand-sub {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(183, 147, 90, 0.6);
}

/* Close button — circular */
.mmenu-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(240, 235, 225, 0.1);
  background: rgba(240, 235, 225, 0.04);
  color: rgba(240, 235, 225, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.mmenu-close:hover,
.mmenu-close:active {
  background: rgba(183, 147, 90, 0.12);
  border-color: rgba(183, 147, 90, 0.28);
  color: rgba(183, 147, 90, 0.9);
}

/* ── Gold separator ───────────────────────────────────────────── */
.mmenu-sep {
  height: 1px;
  margin: 0 1.75rem;
  background: linear-gradient(
    90deg,
    rgba(183, 147, 90, 0.32) 0%,
    rgba(183, 147, 90, 0.08) 65%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.28s ease 0.14s;
}

#mobile-menu.open .mmenu-sep {
  opacity: 1;
}

/* ── Navigation ───────────────────────────────────────────────── */
.mmenu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1.75rem;
}

.mmenu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0.5rem 1.1rem 0;
  border-bottom: 1px solid rgba(240, 235, 225, 0.05);
  text-decoration: none;
  color: rgba(240, 235, 225, 0.6);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s ease,
    padding-left 0.2s ease;
}

#mobile-menu.open .mmenu-item {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered entrance */
#mobile-menu.open .mmenu-item:nth-child(1) { transition-delay: 0.10s; }
#mobile-menu.open .mmenu-item:nth-child(2) { transition-delay: 0.16s; }
#mobile-menu.open .mmenu-item:nth-child(3) { transition-delay: 0.22s; }
#mobile-menu.open .mmenu-item:nth-child(4) { transition-delay: 0.28s; }

/* Gold left accent bar */
.mmenu-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 50%;
  width: 2px;
  height: 44%;
  background: linear-gradient(to bottom, #C9A96E, rgba(183, 147, 90, 0.35));
  border-radius: 2px;
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.mmenu-item:hover::before,
.mmenu-item.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.mmenu-item:hover,
.mmenu-item:active {
  color: rgba(240, 235, 225, 0.95);
  padding-left: 0.55rem;
}

.mmenu-item.is-active {
  color: rgba(210, 175, 110, 0.9);
}

/* Number badge */
.mmenu-item-num {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(183, 147, 90, 0.38);
  width: 1.55rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.mmenu-item:hover .mmenu-item-num,
.mmenu-item.is-active .mmenu-item-num {
  color: rgba(183, 147, 90, 0.72);
}

/* Label */
.mmenu-item-label {
  font-family: 'Instrument Serif', serif;
  font-size: 2.05rem;
  letter-spacing: -0.025em;
  line-height: 1;
  flex: 1;
}

/* Arrow */
.mmenu-item-arrow {
  color: rgba(183, 147, 90, 0.28);
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.22s ease, color 0.2s ease;
}

.mmenu-item:hover .mmenu-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: rgba(183, 147, 90, 0.65);
}

/* ── Footer: CTA + meta ───────────────────────────────────────── */
.mmenu-footer {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 0;
  border-top: 1px solid rgba(240, 235, 225, 0.06);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s ease 0.30s, transform 0.38s ease 0.30s;
}

#mobile-menu.open .mmenu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mmenu-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.3rem;
  border-radius: 9999px;
  background: rgba(183, 147, 90, 0.09);
  border: 1px solid rgba(183, 147, 90, 0.22);
  color: rgba(210, 175, 110, 0.88);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.mmenu-cta-pill:hover,
.mmenu-cta-pill:active {
  background: rgba(183, 147, 90, 0.17);
  border-color: rgba(183, 147, 90, 0.42);
  color: rgba(225, 192, 125, 0.95);
}

