/* ============================================================================
   Mambo Front Desk Hub — shared design system (P3-3)
   Hand-authored CSS, no framework/CDN/build (DEC-023 / DEC-073 / spec §6).
   Tokens are CSS custom properties; Midnight preset is baked in as the default
   so the page is styled before hub.js applies the per-client theme (no FOUC).
   Universal status colors (open/closed) are NOT themed per client (spec §1.1).
   ========================================================================== */

:root {
  /* ---- themeable tokens (overridden at runtime from clients.theme) ---- */
  --bg: #0d110e;
  --surface: #141a15;
  --surface-2: #1a231b;
  --text: #f0f5f0;
  --muted: #7a9b7d;
  --border: rgba(31, 214, 48, 0.18);
  --accent: #1fd630;
  --accent-ink: #0d110e;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius-card: 14px;
  --radius-pill: 100px;

  /* ---- universal (never per-client) ---- */
  --status-open: #1fd630;
  --status-closed: #e8a23a;
  --maxw: 520px;
  --nav-h: 64px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.display { font-family: var(--font-display); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-top: var(--s3); padding-bottom: var(--s3); min-height: 56px;
}
.brand { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.brand img.logo { height: 40px; width: auto; object-fit: contain; }
.brand .names { min-width: 0; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.05; }
.brand .tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }

/* hours pill */
.hours-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.hours-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-closed); }
.hours-pill.is-open .dot { background: var(--status-open); animation: pulse 2.4s infinite; }
.hours-pill.is-open { color: var(--status-open); }
.hours-pill.is-closed { color: var(--status-closed); }
.hours-panel {
  display: none; border-top: 1px solid var(--border); background: var(--surface);
}
.hours-panel.open { display: block; }
.hours-panel .wrap { padding-top: var(--s3); padding-bottom: var(--s3); }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.hours-row.today { color: var(--accent); font-weight: 600; }
.hours-note { margin-top: var(--s2); font-size: 12px; color: var(--status-closed); }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav ul { display: flex; max-width: var(--maxw); margin: 0 auto; list-style: none; padding: 0; }
.bottom-nav li { flex: 1; }
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: var(--nav-h); justify-content: center; font-size: 10px; font-weight: 600;
  color: var(--muted); letter-spacing: 0.02em;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--accent); }
.bottom-nav a.chat { color: var(--accent-ink); }
.bottom-nav a.chat .ico { background: var(--accent); border-radius: 50%; padding: 7px; display: grid; place-items: center; margin-top: -14px; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.bottom-nav a.chat .ico svg { width: 22px; height: 22px; }
.bottom-nav a.chat span { color: var(--muted); }

/* ---------- generic page scaffolding ---------- */
main { padding-top: var(--s5); padding-bottom: var(--s6); position: relative; }
.page-head { text-align: center; margin-bottom: var(--s5); }
.page-head h1 { font-size: 30px; }
.page-head p { color: var(--muted); margin: var(--s2) 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 12px;
}
.eyebrow svg { width: 14px; height: 14px; }
.section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: var(--s5) 0 var(--s3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-pill); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn-block { width: 100%; }

/* ---------- hero (landing) ---------- */
.hero { position: relative; border-radius: var(--radius-card); overflow: hidden; margin-bottom: var(--s5); border: 1px solid var(--border); min-height: 360px; display: flex; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.no-img { background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), var(--surface) 70%); min-height: 300px; }
.hero .hero-body { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s3); padding: var(--s5); background: linear-gradient(to top, rgba(0,0,0,.8) 12%, rgba(0,0,0,.25) 55%, transparent); }
.hero.no-img .hero-body { background: none; align-items: center; text-align: center; justify-content: center; }
.hero h1 { font-size: 28px; }
.hero p { margin: 0; color: #e9efe9; }
.hero .cta-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.hero.no-img .cta-row { justify-content: center; }

/* ---------- notice banner ---------- */
.banner {
  display: flex; gap: var(--s3); align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: var(--s3) var(--s4); margin-bottom: var(--s4);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.banner.warn { background: color-mix(in srgb, var(--status-closed) 12%, var(--surface)); border-color: color-mix(in srgb, var(--status-closed) 35%, transparent); }
.banner .b-title { font-weight: 600; }
.banner .b-text { font-size: 13px; color: var(--muted); }
.banner button.dismiss { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }

/* ---------- explore tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .t-ico { width: 26px; height: 26px; color: var(--accent); }
.tile .t-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tile .t-sub { font-size: 12px; color: var(--muted); }

/* ---------- teaser ---------- */
.teaser { margin-top: var(--s5); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); }
.teaser .t-body { padding: var(--s4); }

/* ---------- content cards (specials / events) ---------- */
.cards { display: flex; flex-direction: column; gap: var(--s4); }
.card { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--surface); transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.card-img { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .grad { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; opacity: .35; }
.grad-0 { background: linear-gradient(135deg,#1a2e1a,#0f3420,#0a4020); }
.grad-1 { background: linear-gradient(135deg,#1a1a2e,#20163e,#35086e); }
.grad-2 { background: linear-gradient(135deg,#2e251a,#3e2f0f,#5a3b00); }
.grad-3 { background: linear-gradient(135deg,#2e1a1a,#3e1616,#600f0f); }
.card-body { padding: var(--s4); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid var(--border); color: var(--accent); }
.card h3 { font-size: 18px; }
.price { display: inline-flex; align-items: baseline; gap: 2px; flex-shrink: 0; }
.price .cur { font-size: 12px; color: var(--accent); font-weight: 600; }
.price .amt { font-size: 24px; font-weight: 800; color: var(--accent); font-family: var(--font-display); line-height: 1; }
.card .desc { font-size: 14px; color: var(--muted); margin: var(--s3) 0; }
.card .validity { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.card .validity svg { width: 14px; height: 14px; flex-shrink: 0; }
.card .actions { margin-top: var(--s4); display: flex; justify-content: flex-end; }
.card .cross-link { text-align: center; }

/* event date block on image corner */
.date-block { position: absolute; top: var(--s3); left: var(--s3); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; text-align: center; }
.date-block .d { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.date-block .m { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.when { color: var(--accent); font-weight: 600; font-size: 13px; }

/* ---------- menu ---------- */
.jumpbar { position: sticky; top: 56px; z-index: 40; display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s3) 0; background: var(--bg); -ms-overflow-style: none; scrollbar-width: none; }
.jumpbar::-webkit-scrollbar { display: none; }
.jumpbar a { flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.jumpbar a.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.menu-cat { margin-top: var(--s5); scroll-margin-top: 110px; }
.menu-cat > h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.menu-row { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); align-items: center; }
.menu-row:last-child { border-bottom: none; }
.menu-row .thumb { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.menu-row .mr-main { flex: 1; min-width: 0; }
.menu-row .mr-name { font-weight: 600; }
.menu-row .mr-desc { font-size: 13px; color: var(--muted); }
.menu-row .mr-price { color: var(--accent); font-weight: 700; font-family: var(--font-display); white-space: nowrap; }

/* ---------- location ---------- */
.loc-map { display: block; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; margin-bottom: var(--s4); position: relative; aspect-ratio: 16/9; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), var(--surface) 70%); display: grid; place-items: center; text-align: center; }
.loc-map .pin { font-size: 40px; }
.loc-list { display: flex; flex-direction: column; gap: var(--s2); }
.loc-item { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.loc-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.loc-item .li-main { flex: 1; min-width: 0; }
.loc-item .li-label { font-size: 12px; color: var(--muted); }
.loc-item .li-val { font-weight: 600; }
.socials { display: flex; gap: var(--s3); justify-content: center; margin-top: var(--s5); }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.venue-photo { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--border); margin-top: var(--s5); }

/* ---------- states ---------- */
.state { text-align: center; padding: var(--s7) var(--s4); }
.state .big { font-size: 40px; margin-bottom: var(--s3); }
.state h3 { font-size: 18px; margin-bottom: var(--s2); }
.state p { color: var(--muted); margin: 0 0 var(--s4); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto var(--s3); animation: spin .8s linear infinite; }
[hidden] { display: none !important; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: var(--s5) var(--s4); border-top: 1px solid var(--border); margin-top: var(--s6); }
.footer p { font-size: 11px; color: var(--muted); margin: 0; }
.footer .brandmark { color: var(--accent); font-weight: 700; }

/* ---------- animation ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .45s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- desktop niceties ---------- */
@media (min-width: 560px) { .page-head h1 { font-size: 34px; } .hero h1 { font-size: 32px; } }
