/* =========================================================
   NEW VIP LOUNGE — Lubumbashi
   Digital menu · powered by QuickQR (an Aether product)
   Elegant dark + gold, mobile-first.
   ========================================================= */

:root {
  --gold: #c8a24b;
  --gold-light: #e7c976;
  --gold-deep: #9a7b2e;
  --gold-soft: rgba(200, 162, 75, 0.14);
  --gold-line: rgba(200, 162, 75, 0.28);

  --bg: #0d0c0a;
  --bg-2: #14120d;
  --surface: #1a1711;
  --surface-2: #211d15;
  --line: rgba(231, 201, 118, 0.12);

  --text: #f4efe2;
  --text-soft: #c9c1ac;
  --muted: #8a8169;

  --veg: #7bc47f;
  --vegan: #57c98a;

  --maxw: 680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 116px; /* compact sticky bar + category nav */
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* warm ambient glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vh at 50% -8%, rgba(200,162,75,0.16), transparent 70%),
    radial-gradient(50vw 40vh at 90% 12%, rgba(154,123,46,0.10), transparent 70%),
    var(--bg);
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 40px 18px 30px;
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(200,162,75,0.10), transparent 70%);
}
.hero-crest {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold-light);
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem;
  background: radial-gradient(circle at 50% 30%, rgba(200,162,75,0.22), transparent 70%);
  box-shadow: 0 6px 26px rgba(200,162,75,0.18);
}
.hero-name {
  font-size: clamp(2rem, 8vw, 3rem);
  background: linear-gradient(100deg, var(--gold-light), var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.02em;
}
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px auto 10px; max-width: 320px; }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); }
.hero-rule .diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.hero-tagline { color: var(--text-soft); font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-note { color: var(--muted); font-size: 0.78rem; margin-top: 12px; font-style: italic; }

/* ---------- Sticky head (bar + search + category nav stick together) ---------- */
.stickyhead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 12, 10, 0.9);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.topbar {
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 9px 14px; display: flex; align-items: center; gap: 10px; }
.tb-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--gold-light); white-space: nowrap; }
.tb-spacer { flex: 1; }

/* language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--gold-line); color: var(--text);
  font-weight: 600; font-size: 0.82rem; transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--gold); }
.lang-flag { font-size: 1rem; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none;
  background: #19160f; border: 1px solid var(--gold-line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5); padding: 7px; min-width: 188px; max-height: 320px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s var(--ease); z-index: 80;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 0.9rem; color: var(--text-soft); transition: background 0.15s, color 0.15s; }
.lang-menu li:hover, .lang-menu li.active { background: var(--gold-soft); color: var(--gold-light); }
.lang-menu li .flag { font-size: 1.1rem; }
.lang-menu li .code { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: var(--muted); }

/* ---------- Search + filters ---------- */
.controls { max-width: var(--maxw); margin: 0 auto; padding: 10px 14px 9px; }
.ctrl-row { display: flex; align-items: center; gap: 9px; }
.ctrl-row .search { flex: 1; min-width: 0; }
.ctrl-row .lang-switch { flex: none; }
.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.search input {
  width: 100%; padding: 11px 40px 11px 42px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--gold-line); color: var(--text);
  font-family: inherit; font-size: 0.96rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,0.14); }
.search .clear { position: absolute; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--surface-2); color: var(--text-soft); display: none; place-items: center; font-size: 1rem; line-height: 1; }
.search .clear.show { display: grid; }

.diet { display: flex; gap: 8px; margin-top: 8px; }
.diet button {
  padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--gold-line);
  color: var(--text-soft); font-size: 0.8rem; font-weight: 600; transition: all 0.2s;
}
.diet button.active { background: linear-gradient(100deg, var(--gold), var(--gold-deep)); border-color: var(--gold); color: #1a1206; }

/* ---------- Category nav (horizontal scroll) ---------- */
.catnav {
  border-top: 1px solid var(--line);
}
.catnav-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav button {
  white-space: nowrap; padding: 7px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--gold-line); color: var(--text-soft);
  font-size: 0.82rem; font-weight: 600; transition: all 0.2s; flex: none;
}
.catnav button .ci { margin-right: 5px; }
.catnav button.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-light); }

/* ---------- Menu sections ---------- */
.menu { padding: 8px 0 60px; min-height: 50vh; }
.cat-section { scroll-margin-top: var(--header-h); padding-top: 18px; }
.cat-head {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 6px;
}
.cat-head .cat-emoji {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.25rem;
  border-radius: 11px; background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.cat-head h2 {
  font-size: 1.5rem; color: var(--gold-light); letter-spacing: 0.01em;
}
.cat-head .cat-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }

.item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 13px 4px; border-bottom: 1px dashed var(--line);
}
.item:last-child { border-bottom: none; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-weight: 600; font-size: 1rem; color: var(--text); display: inline; }
.item-dots { display: inline-flex; gap: 5px; margin-left: 7px; vertical-align: middle; }
.diet-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.diet-dot.veg { background: var(--veg); }
.diet-dot.vegan { background: var(--vegan); }
.item-desc { display: block; color: var(--text-soft); font-size: 0.85rem; margin-top: 3px; }
.item-lead { flex: 1; border-bottom: 1px dotted var(--gold-line); transform: translateY(-4px); min-width: 16px; opacity: 0.5; }
.item-price { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.02rem; color: var(--gold-light); white-space: nowrap; }

.diet-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; color: var(--muted); font-size: 0.8rem; }
.diet-legend span { display: inline-flex; align-items: center; gap: 6px; }

.no-results { text-align: center; color: var(--muted); padding: 48px 20px; font-style: italic; display: none; }
.no-results.show { display: block; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 34px 18px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gold-line); }
.foot .thanks { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold-light); margin-bottom: 18px; }
.powered {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--gold-line); color: var(--text-soft); font-size: 0.85rem; transition: border-color 0.2s, transform 0.2s;
}
.powered:hover { border-color: var(--gold); transform: translateY(-2px); }
.powered b { color: var(--text); font-weight: 700; }
.powered .qr-mark { width: 18px; height: 18px; }
.foot-meta { color: var(--muted); font-size: 0.74rem; margin-top: 14px; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(26, 23, 17, 0.92); color: var(--gold-light); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.totop svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* reveal */
.cat-section { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.cat-section.in { opacity: 1; transform: none; }

@media (min-width: 700px) {
  .hero { padding-top: 56px; }
  .item-name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .cat-section { opacity: 1; transform: none; }
}
