/* MESOXWRI full rebuild v51: no dead space, no weird scrolling, responsive menu */
:root {
  --bg: #050505;
  --bg-2: #0b0806;
  --panel: #171717;
  --panel-2: #202020;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(232,133,58,.38);
  --text: #f7f3ed;
  --muted: rgba(247,243,237,.72);
  --accent: #E8853A;
  --accent-2: #ff9b45;
  --shadow: 0 28px 70px rgba(0,0,0,.46);
  --header-h: 76px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
main { display: block; width: 100%; background: var(--bg); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(18px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(5,5,5,.94);
  border-color: rgba(232,133,58,.2);
  box-shadow: 0 16px 42px rgba(0,0,0,.32);
}
.menu-wrapper {
  width: min(1180px, 100%);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-2);
  font: 800 .92rem/1 "Oswald", sans-serif;
  box-shadow: 0 0 0 7px rgba(232,133,58,.07);
}
.brand-text { font-size: .88rem; white-space: nowrap; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.main-nav a:hover, .main-nav a.active {
  color: #180b02;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-1px);
}
.mobile-menu-head { display: none; }

.nav-toggle, .nav-close {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}
.nav-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-toggle:hover { border-color: rgba(232,133,58,.42); background: rgba(232,133,58,.12); }
.nav-toggle:active { transform: scale(.96); }
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(-50%);
  transition: top .25s ease, transform .25s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle.is-open span:nth-child(1) { top: 23px; transform: translateX(-50%) rotate(45deg); background: var(--accent-2); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 23px; transform: translateX(-50%) rotate(-45deg); background: var(--accent-2); }

.home-hero, .menu-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  background:
    radial-gradient(circle at 73% 18%, rgba(232,133,58,.2), transparent 30%),
    radial-gradient(circle at 20% 5%, rgba(255,155,69,.12), transparent 28%),
    linear-gradient(180deg, #120b07 0%, #050505 100%);
}
.home-hero { padding: calc(var(--header-h) + 74px) 18px 76px; }
.menu-hero {
  padding: calc(var(--header-h) + 34px) 18px 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .9;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(232,133,58,.09) 52% 53%, transparent 53%),
    repeating-radial-gradient(circle at 78% 32%, transparent 0 86px, rgba(232,133,58,.09) 88px 112px, transparent 114px 166px);
  pointer-events: none;
}
.home-hero-inner, .menu-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}
.script-title {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-family: "Caveat", cursive;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: .9;
}
h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3.1rem, 10vw, 7.2rem);
  line-height: .88;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 18px 52px rgba(0,0,0,.42);
}
.menu-hero h1 { font-size: clamp(2.55rem, 7.5vw, 5.2rem); }
h1 span { display: block; color: #fff; }
.hero-copy {
  width: min(620px, 100%);
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 170px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn.primary { color: #170901; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 18px 46px rgba(232,133,58,.2); }
.btn.secondary { color: var(--text); background: rgba(255,255,255,.06); }
.btn:hover { transform: translateY(-2px); border-color: rgba(232,133,58,.5); }
.btn:active { transform: scale(.98); }

.category-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.035)),
    radial-gradient(circle at 75% 20%, rgba(232,133,58,.22), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.category-card strong { font-family: "Oswald", sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .96; letter-spacing: .03em; }
.category-card span:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.category-card em { color: var(--accent-2); font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.menu-section {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 16px;
}
.section-kicker { text-align: center; margin-bottom: 12px; }
.menu-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.menu-card {
  width: 100%;
  margin: 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035)),
    var(--panel);
  box-shadow: var(--shadow);
}
.menu-card:last-child { margin-bottom: 0; }
.menu-card h2 {
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-2);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.65rem, 4.8vw, 2.2rem);
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.095);
}
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.item-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.88);
  font-size: clamp(.82rem, 2.4vw, .96rem);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}
.item-price {
  color: var(--accent-2);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .menu-wrapper { width: 100%; padding: 10px 14px; }
  .brand-text { font-size: .78rem; letter-spacing: .1em; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100dvh - var(--header-h));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 75% 18%, rgba(232,133,58,.18), transparent 34%),
      rgba(5,5,5,.98);
    box-shadow: -22px 0 60px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.2,.85,.18,1), opacity .25s ease, visibility .25s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 4px 12px;
    color: var(--muted);
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .nav-close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: rgba(255,255,255,.065);
    color: var(--accent-2);
    font-size: 2rem;
    line-height: 1;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
  }
  .nav-close:active { transform: scale(.95); }
  .main-nav a {
    width: 100%;
    min-height: 60px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    justify-content: flex-start;
    background: rgba(255,255,255,.055);
    font-size: .9rem;
  }
  .main-nav a:hover, .main-nav a.active { transform: none; }
  .home-hero { padding: calc(var(--header-h) + 52px) 16px 46px; }
  .menu-hero { padding: calc(var(--header-h) + 28px) 14px 24px; }
  .category-section { grid-template-columns: 1fr; padding: 18px 0 20px; width: min(100% - 28px, 560px); }
  .category-card { min-height: 220px; border-radius: 24px; }
  .menu-section { width: min(100% - 24px, 760px); padding: 14px 0 10px; }
  .menu-list { gap: 14px; }
  .menu-card { border-radius: 22px; }
  .menu-item { padding: 11px 0; gap: 10px; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .menu-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .item-price { justify-self: start; }
  .menu-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* v51: keep only the navbar hamburger/X; remove inner duplicate X */
.nav-close {
  display: none !important;
}

@media (max-width: 820px) {
  .mobile-menu-head {
    justify-content: flex-start !important;
    padding-right: 0 !important;
  }
}
