/* =============================================================
   MARKET BAR — lean scaffold styles
   Block 1: reset + CSS vars + base typography
   Block 2: bespoke layout for #mb-hero / #mb-host-event /
            #mb-discover / #mb-menu / #mb-happyhour / .mb-btn
   Block 3: ported bespoke rules from scripts/mb-global-overrides.css
            (.marketbar-*, .mb-header-nav, .mb-slider-nav,
             .marketbar-footer, #mb-event-modal)
   ============================================================= */

/* ---------- Block 1: reset + CSS vars + base ---------- */
:root {
  --mb-green: #1b4a2c;
  --mb-accent: #ebc475;
  --mb-accent-hover: #f5d592;
  --mb-accent-text: #1a1a1a;
  --mb-gold: var(--mb-accent);
  --mb-red: var(--mb-accent);
  --mb-cream: #fdf8f3;
  --mb-text: #1a1a1a;
  --mb-muted: #6b6b6b;
  --mb-border: rgba(27, 74, 44, 0.2);
  --mb-font: "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--mb-font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--mb-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mb-accent); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.mb-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- Block 2: bespoke layout ---------- */

/* Header */
.mb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--mb-border);
}
.mb-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 22px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mb-header__title {
  font-family: var(--mb-font);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--mb-text);
  padding: 4px 0;
  text-transform: uppercase;
}

/* Generic section helpers */
section { position: relative; }
.mb-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
}

/* Primary button */
.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--mb-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mb-btn--primary {
  background-color: var(--mb-accent);
  border-color: var(--mb-accent);
  color: var(--mb-accent-text);
}
.mb-btn--primary:hover {
  background-color: var(--mb-accent-hover);
  border-color: var(--mb-accent-hover);
  color: var(--mb-accent-text);
}

/* #mb-hero — replaces .page-section.gallery-section */
#mb-hero {
  --mb-hero-h: 600px;
  --mb-hero-pad: clamp(12px, 2vw, 20px);
  --mb-hero-gap: clamp(8px, 1.5vw, 12px);
  position: relative;
  height: var(--mb-hero-h);
  max-height: var(--mb-hero-h);
  overflow: hidden;
  padding: 0;
  background-color: var(--mb-accent);
}
.mb-hero__grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mb-hero-gap);
  padding: var(--mb-hero-pad);
  background-color: var(--mb-accent);
}
.mb-hero__cell {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.mb-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 767px) {
  #mb-hero {
    --mb-hero-h: min(600px, 72vh);
    --mb-hero-pad: 10px;
    --mb-hero-gap: 8px;
  }
}

/* #mb-host-event — green CTA panel */
#mb-host-event {
  background-color: var(--mb-green);
  color: #fff;
  text-align: center;
}
#mb-host-event .mb-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
#mb-host-event h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* #mb-discover — marquee section */
#mb-discover {
  background: #fff;
  color: var(--mb-text);
  text-align: center;
  overflow: hidden;
}
#mb-discover .mb-section__inner {
  padding-left: 0;
  padding-right: 0;
}
.mb-discover__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: clamp(16px, 3vw, 32px);
}
.mb-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.mb-marquee__track {
  display: inline-flex;
  gap: 1em;
  animation: mb-marquee 28s linear infinite;
  will-change: transform;
}
.mb-marquee__item {
  display: inline-block;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  padding-right: 1em;
}
@keyframes mb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mb-marquee__track { animation: none; }
}

/* #mb-menu — wraps the .marketbar-menu card */
#mb-menu {
  background: #fff;
}
.mb-menu__heading {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: clamp(24px, 4vw, 48px);
}

/* #mb-happyhour — green text + image panel */
#mb-happyhour {
  background-color: var(--mb-green);
  color: #fff;
}
.mb-happyhour__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (min-width: 768px) {
  .mb-happyhour__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.mb-happyhour__text h3 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
}
.mb-happyhour__text ul {
  margin-top: 0.75rem;
}
.mb-happyhour__text li {
  position: relative;
  padding-left: 1.25em;
  margin: 0.45em 0;
}
.mb-happyhour__text li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mb-accent);
  font-weight: 700;
}
.mb-happyhour__image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .mb-happyhour__image img { max-height: min(420px, 55vh); }
}

/* Sentinel for happy-hour copy size */
.sqsrte-large {
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.45;
}

/* ---------- Block 3: ported bespoke rules ---------- */

/* ----- .mb-header-nav (from mb-global-overrides.css lines 116-165) ----- */
.mb-header-nav {
  width: 100%;
}
.mb-header-nav__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 2px 0;
}
.mb-header-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--mb-accent);
  background: #fff;
  color: var(--mb-text);
  font-family: var(--mb-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mb-header-nav__btn:hover {
  background: var(--mb-accent);
  border-color: var(--mb-accent);
  color: var(--mb-accent-text);
}
.mb-header-nav__btn--event {
  background: rgba(235, 196, 117, 0.25);
}
@media (min-width: 768px) {
  /* Hero overlay nav is desktop-redundant — hide it on >=768 */
  #mb-hero .mb-slider-nav { display: none; }
}
@media (max-width: 767px) {
  /* On mobile, the header nav buttons stack hidden — rely on hero overlay */
  .mb-header-nav { display: none; }
}

/* ----- .mb-slider-nav (lines 389-445) ----- */
.mb-slider-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 20px 36px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
}
.mb-slider-nav__inner {
  pointer-events: all;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.mb-slider-nav__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mb-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.mb-slider-nav__btn:hover,
.mb-slider-nav__btn--event {
  background: var(--mb-accent);
  border-color: var(--mb-accent);
  color: var(--mb-accent-text);
}
@media (max-width: 767px) {
  .mb-slider-nav { padding: 16px 12px 20px; }
  .mb-slider-nav__btn { padding: 10px 14px; font-size: 11px; }
}

/* ----- .marketbar-menu (HTML lines 3063-3146 + overrides 517-608) ----- */
.marketbar-menu,
.marketbar-menu *,
.marketbar-menu *::before,
.marketbar-menu *::after {
  box-sizing: border-box;
}
.marketbar-menu {
  font-family: var(--mb-font);
  background: var(--mb-cream);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}
.marketbar-menu__header { margin-bottom: 20px; }
.marketbar-menu__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.marketbar-menu__contact { margin: 4px 0; font-size: 14px; }
.marketbar-menu__contact a { color: var(--mb-green); text-decoration: none; }
.marketbar-menu__contact a:hover { color: var(--mb-accent); }

.marketbar-menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "pizza mains"
    "appetizers appetizers";
  grid-auto-rows: min-content;
  column-gap: clamp(20px, 3vw, 32px);
  row-gap: clamp(24px, 3vw, 32px);
  align-items: start;
  justify-items: stretch;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}
.marketbar-menu__section {
  position: relative;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 2px solid var(--mb-green);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
  isolation: isolate;
}
.marketbar-menu__section--full {
  grid-area: appetizers;
  grid-column: 1 / -1;
  max-width: 100%;
}
.marketbar-menu__section-title {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--mb-text);
}
.marketbar-menu__section-title::before { content: none; }
.marketbar-menu__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--mb-border);
}
.marketbar-menu__item:last-child { border-bottom: none; }
.marketbar-menu__item h4 { margin: 0; font-size: 1rem; font-weight: 700; }
.marketbar-menu__item p { margin: 4px 0 0; font-size: 12px; color: var(--mb-muted); }
.marketbar-menu__item strong { white-space: nowrap; font-weight: 800; }

.marketbar-menu__app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  width: 100%;
}
.marketbar-menu__app-grid p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
}
.marketbar-menu__note { font-size: 12px; margin-top: 12px; }

#mb-pizza { grid-area: pizza; }
#mb-mains { grid-area: mains; }
#mb-appetizers {
  grid-area: appetizers;
  margin-top: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .marketbar-menu__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pizza"
      "mains"
      "appetizers";
  }
  .marketbar-menu__app-grid { grid-template-columns: minmax(0, 1fr); }
  .marketbar-menu__section--full {
    grid-area: appetizers;
    grid-column: auto;
  }
}

/* ----- .marketbar-footer (lines 804-845) ----- */
.marketbar-footer-wrap {
  background: var(--mb-green);
  padding: clamp(32px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
}
.marketbar-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  color: #fff;
  font-family: var(--mb-font);
}
.marketbar-footer__tagline {
  margin: 0 0 clamp(20px, 4vw, 36px);
  text-align: center;
  font-size: clamp(3rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--mb-accent);
}
.marketbar-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 48px;
}
@media (min-width: 768px) {
  .marketbar-footer__grid { grid-template-columns: 1fr 1fr; }
}
.marketbar-footer__heading {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mb-accent);
}
.marketbar-footer p {
  margin: 0 0 0.35em;
  line-height: 1.45;
  color: rgba(255,255,255,0.85);
  white-space: normal;
}
.marketbar-footer a { color: inherit; text-decoration: none; }
.marketbar-footer a:hover { color: var(--mb-accent); }
.marketbar-footer__social a:hover { color: var(--mb-accent); }

/* Footer social icons (lines 81-109) */
.marketbar-footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 40px);
}
.marketbar-footer__social-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: var(--mb-accent);
}
.marketbar-footer__social-icon svg {
  width: 100%;
  height: 100%;
}
.marketbar-footer__social-icon svg,
.marketbar-footer__social-icon svg use,
.marketbar-footer__social-icon svg path {
  color: var(--mb-accent);
  fill: var(--mb-accent);
}
.marketbar-footer__social-icon:hover svg,
.marketbar-footer__social-icon:hover svg use,
.marketbar-footer__social-icon:hover svg path {
  color: var(--mb-accent-hover);
  fill: var(--mb-accent-hover);
}

/* ----- #mb-event-modal (lines 701-795 verbatim) ----- */
#mb-event-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#mb-event-modal.is-open { display: flex; }
#mb-event-modal__card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(92vh, 900px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
#mb-event-modal__header {
  padding: 20px 24px;
  background: var(--mb-green);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
#mb-event-modal__header h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#mb-event-modal__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
#mb-event-modal__body {
  padding: 20px 24px 24px;
  overflow-y: auto;
}
#mb-event-modal__form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mb-text);
}
#mb-event-modal__form input,
#mb-event-modal__form select,
#mb-event-modal__form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--mb-border);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
#mb-event-modal__form textarea { min-height: 88px; resize: vertical; }
#mb-event-modal__submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--mb-accent);
  color: var(--mb-accent-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
#mb-event-modal__thanks {
  display: none;
  text-align: center;
  padding: 32px 16px;
  font-weight: 700;
  color: var(--mb-green);
}
#mb-event-modal__thanks.is-visible { display: block; }
