:root {
  --bg-cream: #F4E5C8;
  --surface-card: #FFF9EE;
  --ink: #111111;
  --crimson: #D92B2B;
  --gold: #F4B41A;
  --border-w: 3px;
  --shadow-hard: 4px 4px 0px #111111;
  --shadow-lg: 7px 7px 0px #111111;
  --radius-sm: 8px;
  --radius-pill: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-cream);
  color: var(--ink);
  font-family: 'Cairo', 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

.container { width: min(1200px, 92%); margin-inline: auto; }

/* HEADER & NAV PILLS */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-cream);
  border-bottom: var(--border-w) solid var(--ink);
  padding: 0.75rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.dragon-emblem { width: 58px; height: 46px; flex-shrink: 0; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand-ar { font-weight: 900; font-size: 0.9rem; color: var(--crimson); }

.main-nav { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.nav-pill {
  background: var(--surface-card);
  color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-family: inherit; font-weight: 800; font-size: 0.92rem;
  text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0px var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0px var(--ink); }
.nav-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--ink); }
.nav-pill-primary { background: var(--crimson); color: #FFFFFF; }
.cart-count {
  background: var(--gold); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 0 0.45rem; font-size: 0.8rem; font-weight: 900;
}

/* HERO SECTION */
.hero-section { padding: 2.5rem 0 3rem; border-bottom: var(--border-w) solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero-headline-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.stamp-badge {
  width: 88px; height: 88px; flex-shrink: 0;
  border: var(--border-w) solid var(--ink);
  border-radius: 50%;
  background: var(--surface-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 0.78rem; line-height: 1.15;
  transform: rotate(-10deg);
  box-shadow: 3px 3px 0px var(--ink);
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em;
}
.hero-subtitle { font-size: 1.1rem; font-weight: 700; max-width: 54ch; margin-bottom: 1.6rem; color: #26221E; }
.hero-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn-brutal {
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: inherit; font-weight: 900;
  padding: 0.65rem 1.35rem;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  box-shadow: var(--shadow-hard);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-brutal:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0px var(--ink); }
.btn-brutal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0px var(--ink); }
.btn-crimson { background: var(--crimson); color: #FFFFFF; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-lg { font-size: 1.2rem; padding: 0.85rem 2rem; border-radius: 999px; }
.btn-full { width: 100%; }

.live-status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-card); border: 2px solid var(--ink);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-weight: 800; font-size: 0.9rem;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #16A34A; border: 1.5px solid var(--ink); }

.hero-visual { position: relative; max-width: 460px; margin-inline: auto; }
.hero-frame {
  border: 4px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--crimson);
}
.hero-frame img { width: 100%; height: auto; display: block; }
.sticker-starburst {
  position: absolute; z-index: 3;
  background: var(--gold); color: var(--ink);
  border: var(--border-w) solid var(--ink);
  border-radius: 14px; padding: 0.45rem 0.75rem;
  font-weight: 900; font-size: 0.82rem; line-height: 1.1; text-align: center;
  box-shadow: 3px 3px 0px var(--ink);
}
.sticker-left { top: -12px; right: -12px; transform: rotate(8deg); }
.sticker-right { bottom: 16px; left: -14px; transform: rotate(-7deg); background: var(--surface-card); }

/* MENU SECTION */
.menu-section { padding: 3rem 0; }
.section-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 900; }
.category-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cat-tab {
  background: var(--surface-card); border: var(--border-w) solid var(--ink);
  border-radius: 10px; padding: 0.45rem 1rem; font-family: inherit; font-weight: 800;
  cursor: pointer; box-shadow: 3px 3px 0px var(--ink);
}
.cat-tab.active { background: var(--ink); color: var(--gold); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.4rem; }
.menu-card {
  background: var(--surface-card);
  border: var(--border-w) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  display: flex; flex-direction: column; overflow: hidden;
}
.card-img-wrap { position: relative; border-bottom: var(--border-w) solid var(--ink); aspect-ratio: 1 / 1; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 8px;
  padding: 0.2rem 0.55rem; font-size: 0.78rem; font-weight: 900;
}
.card-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.card-title { font-size: 1.2rem; font-weight: 900; }
.card-price { font-family: 'Space Grotesk', 'Cairo', sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--crimson); white-space: nowrap; }
.card-desc { font-size: 0.9rem; color: #3A342E; flex: 1; }
.card-actions { margin-top: 0.6rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }

/* TRACK & LOCATIONS */
.track-section, .locations-section { padding: 2rem 0 3rem; }
.brutal-panel {
  background: var(--surface-card); border: var(--border-w) solid var(--ink);
  border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.track-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.track-form input, .checkout-form input, .checkout-form select, .auth-form input {
  background: #FFFFFF; border: 2.5px solid var(--ink); border-radius: 10px;
  padding: 0.65rem 0.9rem; font-family: inherit; font-size: 0.95rem; font-weight: 700;
  min-height: 44px;
}
.track-result { margin-top: 1rem; padding: 1rem; background: var(--bg-cream); border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; }

.branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.branch-card { background: var(--surface-card); border: var(--border-w) solid var(--ink); border-radius: 14px; padding: 1.25rem; box-shadow: var(--shadow-hard); }

/* MODALS & DRAWERS */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(17, 17, 17, 0.68);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.brutal-modal, .brutal-drawer {
  background: var(--surface-card); border: 3.5px solid var(--ink);
  border-radius: 16px; box-shadow: 8px 8px 0px var(--ink);
  width: min(520px, 100%); max-height: 90dvh; display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  background: var(--gold); border-bottom: var(--border-w) solid var(--ink);
  padding: 0.85rem 1.15rem; display: flex; align-items: center; justify-content: space-between;
}
.close-btn {
  background: var(--surface-card); border: 2px solid var(--ink); border-radius: 8px;
  width: 36px; height: 36px; font-weight: 900; cursor: pointer;
}
.modal-body, .drawer-scroll { padding: 1.15rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-foot {
  border-top: var(--border-w) solid var(--ink); padding: 0.85rem 1.15rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--bg-cream);
}
.qty-control { display: flex; align-items: center; gap: 0.65rem; font-weight: 900; font-size: 1.1rem; }
.qty-btn { width: 38px; height: 38px; border: 2.5px solid var(--ink); border-radius: 8px; background: #FFF; font-weight: 900; cursor: pointer; }

.addon-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.8rem; border: 2px solid var(--ink); border-radius: 10px;
  background: #FFFFFF; cursor: pointer; font-weight: 700;
}
.checkout-form, .auth-form { display: flex; flex-direction: column; gap: 0.75rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.checkout-form label, .auth-form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 800; font-size: 0.88rem; }
.coupon-row { display: flex; gap: 0.5rem; }
.coupon-row input { flex: 1; }
.pm-option {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem;
  border: 2.5px solid var(--ink); border-radius: 10px; background: #FFF; font-weight: 800;
}
.summary-box { background: var(--bg-cream); border: 2px solid var(--ink); border-radius: 10px; padding: 0.75rem; font-weight: 800; }

/* AUTH TABS & STRENGTH */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.auth-tab { padding: 0.55rem; border: 2.5px solid var(--ink); border-radius: 10px; background: #FFF; font-family: inherit; font-weight: 900; cursor: pointer; }
.auth-tab.active { background: var(--ink); color: var(--gold); }
.pass-wrap { position: relative; display: flex; }
.pass-wrap input { width: 100%; }
.pass-eye { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.strength-bar { height: 6px; background: #DDD; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.strength-bar span { display: block; height: 100%; width: 0%; transition: width 0.2s ease; }

/* TOAST & MOBILE BAR */
.brutal-toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: var(--gold); border: 2.5px solid var(--gold);
  border-radius: 12px; padding: 0.75rem 1.25rem; font-weight: 800; box-shadow: var(--shadow-hard);
}
.site-footer { border-top: var(--border-w) solid var(--ink); padding: 1.5rem 0 5rem; background: var(--surface-card); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-weight: 800; }

.mobile-bottom-bar { display: none; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-nav a[href="#locations"], .main-nav a[href="#track"] { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .mobile-bottom-bar {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
    background: var(--surface-card); border-top: var(--border-w) solid var(--ink);
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mob-tab {
    padding: 0.7rem 0.25rem; text-align: center; text-decoration: none;
    color: var(--ink); font-family: inherit; font-weight: 900; font-size: 0.85rem;
    background: none; border: none; border-inline-end: 2px solid var(--ink);
  }
  .mob-tab-cart { background: var(--crimson); color: #FFF; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
