/* =========================================================
   Al Waha Restaurant — Premium Theme Stylesheet
   Mobile-first, no build step required.
   ========================================================= */

:root {
  --maroon-950: #3d0f16;
  --maroon-900: #5c1620;
  --maroon-800: #6f1b28;
  --maroon-700: #85202f;
  --gold-500: #c9a24b;
  --gold-400: #d9bd73;
  --gold-100: #f6ecd2;
  --cream-050: #fffaf2;
  --cream-100: #fdf3e3;
  --ink-900: #201512;
  --ink-700: #3c2b25;
  --ink-500: #6b5a52;
  --ink-300: #a7968d;
  --white: #ffffff;
  --success: #2f7a4d;
  --danger: #b23a2f;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(61, 15, 22, 0.12);
  --shadow-strong: 0 20px 50px rgba(32, 21, 18, 0.25);
  --container: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* The nav and cart drawers are parked off the right edge. Without this they
   widen the document and every mobile page scrolls sideways into them. */
html, body { overflow-x: hidden; max-width: 100%; }
/* Set while a drawer is open so the page behind it cannot scroll. */
html.scroll-locked, html.scroll-locked body { overflow: hidden; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink-900);
  background: var(--cream-050);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--maroon-950);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 18px;
}

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--dark {
  background: linear-gradient(160deg, var(--ink-900), var(--maroon-950));
  color: var(--cream-100);
}
.section--dark h2, .section--dark h3 { color: var(--gold-400); }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-heading .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-heading h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-heading p { color: var(--ink-500); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--maroon-950);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(201, 162, 75, 0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--gold-500);
  color: var(--gold-500);
}
.btn-outline.on-light { border-color: var(--maroon-800); color: var(--maroon-800); }
.btn-outline:hover { background: var(--gold-500); color: var(--maroon-950); }
.btn-dark {
  background: var(--maroon-950);
  color: var(--cream-100);
}
.btn-dark:hover { background: var(--maroon-800); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  /* Sticky + z-index makes this a stacking context, so the nav drawer inside it
     cannot out-stack the scrim on its own — the header itself has to sit above
     the scrim (110) for the drawer to stay clickable. */
  z-index: 130;
  background: rgba(32, 21, 18, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--cream-100); min-width: 0; }
.brand svg { width: 42px; height: 42px; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Playfair Display", serif; font-size: 1.2rem; color: var(--gold-400); }
.brand-text span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-300); }

.main-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 86vw);
  height: 100vh;
  background: var(--ink-900);
  padding: 90px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  z-index: 120;
  overflow-y: auto;
  /* Keeps the closed drawer out of hit-testing and off the scroll extent. */
  visibility: hidden;
}
.main-nav.is-open { transform: translateX(0); visibility: visible; box-shadow: var(--shadow-strong); }
.main-nav ul { display: flex; flex-direction: column; gap: 6px; }
.main-nav a {
  display: block;
  padding: 12px 6px;
  color: var(--cream-100);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.main-nav a.active, .main-nav a:hover { color: var(--gold-400); }
.main-nav .nav-cta { margin-top: 18px; }
/* The nav link colour would otherwise beat .btn-primary and leave the CTA
   cream-on-gold. */
.main-nav .nav-cta .btn-primary,
.main-nav .nav-cta .btn-primary:hover { color: var(--maroon-950); }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 110;
}
/* The cart drawer is a body-level element, so its scrim has to clear the
   header to keep tap-outside-to-close working across the whole screen. */
#cart-scrim { z-index: 150; }
.nav-scrim.is-open { opacity: 1; visibility: visible; }

.nav-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: var(--cream-100);
  font-size: 1.6rem;
  line-height: 1;
}

.header-actions { display: flex; align-items: center; gap: 6px; }


.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--cream-100);
  border: 1px solid rgba(201,162,75,0.3);
  transition: background 0.2s ease;
}
.icon-btn:hover { background: rgba(201,162,75,0.18); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--maroon-950);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink-900);
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,75,0.3);
  border-radius: 50%;
  padding: 0 11px;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--gold-400); border-radius: 2px; }

@media (min-width: 960px) {
  .hamburger { display: none; }
  .nav-close { display: none; }
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
    visibility: visible;
  }
  .main-nav { display: flex; align-items: center; gap: 28px; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 28px; }
  .main-nav a { border-bottom: none; padding: 6px 0; position: relative; }
  .main-nav a.active::after, .main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--gold-500);
  }
  /* The drawer CTA would stack under the links on desktop — hide it until
     there is room to show it inline beside them. */
  .main-nav .nav-cta { margin-top: 0; display: none; }
  .nav-scrim { display: none; }
}

@media (min-width: 1140px) {
  .main-nav .nav-cta { display: block; }
  .main-nav .nav-cta .btn { width: auto; padding: 10px 20px; font-size: 0.84rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--cream-100);
  background:
    linear-gradient(180deg, rgba(32,21,18,0.55), rgba(32,21,18,0.88)),
    url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1740&q=80') center/cover no-repeat fixed;
}
/* Fixed attachment is unreliable on mobile browsers — it stretches or freezes
   the backdrop while scrolling. */
@media (max-width: 900px) {
  .hero { background-attachment: scroll; min-height: 0; }
}
.hero .container { position: relative; z-index: 2; padding-block: 90px 60px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 720px;
}
.hero h1 em { color: var(--gold-400); font-style: normal; }
.hero p.lead { max-width: 560px; font-size: 1.05rem; color: var(--cream-100); opacity: 0.9; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
  max-width: 560px;
}
.hero-stats div { text-align: center; padding: 14px 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,162,75,0.25); border-radius: var(--radius-md); }
.hero-stats strong { display: block; font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--gold-400); }
.hero-stats span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-300); }

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--maroon-950);
  color: var(--gold-100);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.strip .track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 28s linear infinite;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.strip .track span { color: var(--gold-500); margin-right: 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Menu listing: 2-up on mobile, more columns as space allows */
.menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1100px) { .menu-grid { grid-template-columns: repeat(4, 1fr); } }

.menu-grid .dish-body { padding: 12px 12px 14px; gap: 6px; }
.menu-grid .dish-body h3 { font-size: 0.92rem; }
.menu-grid .dish-body p { font-size: 0.78rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.menu-grid .price { font-size: 0.98rem; }
.menu-grid .dish-foot { flex-wrap: wrap; }
.menu-grid .add-to-cart-btn { font-size: 0.74rem; padding: 8px 12px; }
@media (min-width: 720px) {
  .menu-grid .dish-body { padding: 16px 18px 18px; gap: 8px; }
  .menu-grid .dish-body h3 { font-size: 1.08rem; }
  .menu-grid .dish-body p { font-size: 0.88rem; }
  .menu-grid .add-to-cart-btn { font-size: 0.82rem; padding: 10px 16px; }
}

.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.about-media img { aspect-ratio: 4/3; object-fit: cover; }
.about-media .badge-float {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--gold-500);
  color: var(--maroon-950);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.feature-list { display: grid; gap: 16px; margin-top: 22px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--maroon-800);
  display: flex; align-items: center; justify-content: center;
}
.feature-list strong { display: block; color: var(--maroon-950); }
.feature-list span.desc { color: var(--ink-500); font-size: 0.92rem; }

/* Dish / menu card */
.dish-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(61,15,22,0.05);
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.dish-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dish-card:hover .dish-media img { transform: scale(1.06); }
.dish-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--gold-500);
  color: var(--maroon-950);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.dish-origin {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(32,21,18,0.75);
  color: var(--cream-100);
  font-size: 0.65rem;
  padding: 4px 9px;
  border-radius: 999px;
}
.dish-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-body h3 { font-size: 1.08rem; margin: 0; }
.dish-body p { font-size: 0.88rem; color: var(--ink-500); margin: 0; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.price { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.15rem; color: var(--maroon-800); }
.spice { color: var(--danger); font-size: 0.85rem; letter-spacing: 1px; }

.add-form { display: flex; }
.add-to-cart-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--maroon-950); color: var(--gold-400);
  border-radius: 999px; padding: 10px 16px; font-size: 0.82rem; font-weight: 600;
  border: none;
}
.add-to-cart-btn:hover { background: var(--maroon-800); }
.add-to-cart-btn svg { width: 15px; height: 15px; }

/* ---------- Category tabs (menu page) ---------- */
.cat-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 36px; scrollbar-width: thin; }
.cat-tabs a {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(61,15,22,0.15);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cat-tabs a.active, .cat-tabs a:hover { background: var(--maroon-950); border-color: var(--maroon-950); color: var(--gold-400); }
.menu-category { margin-bottom: 50px; }
.menu-category h2 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; }
.menu-category h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); }

/* ---------- Offcanvas cart ---------- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(400px, 92vw);
  background: var(--cream-050);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s ease, visibility 0.32s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-strong);
  visibility: hidden;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; background: var(--maroon-950); color: var(--gold-400);
}
.cart-drawer-head h3 { color: var(--gold-400); margin: 0; font-size: 1.15rem; }
.cart-drawer-head button { background: none; border: none; color: var(--cream-100); font-size: 1.4rem; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-line {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid rgba(61,15,22,0.08);
}
.cart-line img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info h4 { margin: 0 0 4px; font-size: 0.95rem; font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink-900); }
.cart-line-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.qty-control { display: inline-flex; align-items: center; gap: 6px; }
.qty-control button:not(.qty-delete) { width: 28px; height: 28px; background: var(--cream-100); border: 1px solid rgba(61,15,22,0.15); border-radius: 8px; font-weight: 700; color: var(--maroon-900); }
.qty-control span { width: 22px; text-align: center; font-size: 0.85rem; }

.qty-delete {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(178,58,47,0.08); border: 1px solid rgba(178,58,47,0.25); border-radius: 8px;
  color: var(--danger);
}
.qty-delete:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.qty-delete svg { width: 15px; height: 15px; }
.cart-drawer-foot { padding: 18px 20px 24px; border-top: 1px solid rgba(61,15,22,0.08); background: var(--white); }
.cart-subtotal-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 14px; font-size: 1.05rem; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-500); }
.cart-empty svg { width: 60px; height: 60px; color: var(--ink-300); margin: 0 auto 14px; }

/* ---------- Cart / checkout page tables ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(61,15,22,0.07); }
.cart-table th { background: var(--maroon-950); color: var(--gold-400); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cart-table .prod { display: flex; align-items: center; gap: 12px; }
.cart-table .prod img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-summary-box { background: var(--white); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); position: sticky; top: 100px; }
.cart-summary-box h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-500); }
.summary-row.total { color: var(--ink-900); font-weight: 700; font-size: 1.15rem; border-top: 1px solid rgba(61,15,22,0.1); margin-top: 8px; padding-top: 14px; }

.checkout-grid { display: grid; gap: 30px; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1.5fr 1fr; } }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink-700); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(61,15,22,0.15);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink-900);
}
.form-control:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,75,0.2); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-cards label {
  border: 1.5px solid rgba(61,15,22,0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
}
.radio-cards input { margin-right: 6px; }
.radio-cards input:checked + span,
.radio-cards label:has(input:checked) { color: var(--maroon-900); }
.radio-cards label:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.error-text { color: var(--danger); font-size: 0.82rem; margin-top: 4px; display: block; }
.form-hint { color: var(--ink-500); font-size: 0.8rem; margin-top: 4px; display: block; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e5f4ea; color: var(--success); border: 1px solid #bfe3cb; }
.alert-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f3c6c0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-300); }
.footer-top { padding-block: 60px 30px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { color: var(--gold-400); font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a:hover { color: var(--gold-400); }
.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand svg { width: 38px; height: 38px; }
.footer-brand strong { font-family: "Playfair Display", serif; color: var(--gold-400); font-size: 1.15rem; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(201,162,75,0.3);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold-500); color: var(--maroon-950); }
.social-row svg { width: 16px; height: 16px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; }
.contact-line svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold-500); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Static/legal pages */
.page-hero {
  background: linear-gradient(160deg, var(--ink-900), var(--maroon-950));
  color: var(--cream-100);
  padding: 70px 0 40px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .crumbs { color: var(--ink-300); font-size: 0.85rem; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 34px; font-size: 1.35rem; }
.prose p, .prose li { color: var(--ink-700); font-size: 0.98rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }

/* Order success */
.success-box { text-align: center; max-width: 560px; margin: 0 auto; }
.success-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--gold-100); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-icon svg { width: 42px; height: 42px; }
.order-number { font-family: "Playfair Display", serif; font-size: 1.6rem; color: var(--maroon-800); margin: 10px 0 24px; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--maroon-950);
  color: var(--gold-100);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  z-index: 300;
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* ---------- Installer wizard ---------- */
.install-shell {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--ink-900), var(--maroon-950));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.install-card {
  width: 100%;
  max-width: 640px;
  background: var(--cream-050);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.install-card-head {
  background: var(--maroon-950);
  color: var(--gold-400);
  padding: 28px 34px;
  text-align: center;
}
.install-card-head .brand { justify-content: center; margin-bottom: 8px; }
.install-card-head p { color: var(--ink-300); margin: 0; font-size: 0.9rem; }
.install-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px 34px 0;
}
.install-steps span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(61,15,22,0.12);
}
.install-steps span.done { background: var(--gold-500); }
.install-card-body { padding: 30px 34px 34px; }
.req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgba(61,15,22,0.08);
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.req-row .status { font-weight: 700; font-size: 0.8rem; }
.req-row .status.ok { color: var(--success); }
.req-row .status.fail { color: var(--danger); }
.fieldset-title { font-weight: 700; color: var(--maroon-900); margin: 22px 0 10px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fieldset-title:first-child { margin-top: 0; }

/* ---------- Header extras: currency selector, cart-in-nav, profile ---------- */
.nav-cart-link a { display: flex; align-items: center; gap: 6px; }
@media (min-width: 960px) {
  .nav-cart-link { display: none; }
}
.currency-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,162,75,0.3);
  color: var(--gold-400);
}
.currency-ico { width: 16px; height: 16px; flex-shrink: 0; }
.currency-select select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding-right: 2px;
  cursor: pointer;
}
.currency-select select:focus { outline: none; }
.currency-select option { color: var(--ink-900); }

/* ---------- Currency dropdown (custom, progressive enhancement) ----------
   The native <select> above stays fully functional and visible as the
   fallback; these rules only ever apply once currency-dropdown.js has
   successfully built the custom popup and added this class. A native
   select's own open option list can't be restyled cross-browser — this
   replaces that experience instead of fighting it, using the same colour
   slots (--gold-400/--gold-500, --ink-900/--maroon-950, --cream-100,
   --shadow-strong, --radius-sm) every other themed component already reads,
   so both the Classic and Quiet Minimal themes and any admin colour
   overrides reach it automatically. */
.currency-select--enhanced { cursor: pointer; user-select: none; }
.currency-select--enhanced:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.currency-select--enhanced select {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.currency-select-label {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--gold-400);
}
.currency-select--enhanced::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 1px;
  border-right: 1.5px solid var(--gold-400);
  border-bottom: 1.5px solid var(--gold-400);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.currency-select--enhanced.is-open::after { transform: rotate(-135deg); }
.currency-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 96px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ink-900);
  border: 1px solid rgba(201,162,75,0.25);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
  z-index: 140;
  max-height: 260px;
  overflow-y: auto;
}
.currency-dropdown-option {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream-100);
  cursor: pointer;
}
.currency-dropdown-option:hover,
.currency-dropdown-option:focus-visible {
  background: rgba(201,162,75,0.15);
}
.currency-dropdown-option.is-selected {
  color: var(--gold-400);
  background: rgba(201,162,75,0.12);
}

/* ---------- Hero: 3D heading + crossfade dish backdrop ---------- */
.hero { background: none; }
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,21,18,0.62), rgba(32,21,18,0.92));
  z-index: 1;
}
.hero-slides .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
  transform: scale(1.08);
}
.hero-slides .slide:nth-child(1) { animation-delay: 0s; }
.hero-slides .slide:nth-child(2) { animation-delay: 4s; }
.hero-slides .slide:nth-child(3) { animation-delay: 8s; }
.hero-slides .slide:nth-child(4) { animation-delay: 12s; }
.hero-slides .slide:nth-child(5) { animation-delay: 16s; }
.hero-slides .slide:nth-child(6) { animation-delay: 20s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.08); }
  4% { opacity: 1; transform: scale(1.02); }
  16% { opacity: 1; transform: scale(1); }
  20% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide { animation: none; opacity: 1; }
  .hero-slides .slide:not(:first-child) { display: none; }
}
.hero-3d {
  color: #fff;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  max-width: 720px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-3d em { color: var(--gold-400); font-style: normal; }
.hero .container { position: relative; z-index: 2; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-soft);
}
/* The feature tile only earns its extra space once there are four columns to
   flow the rest into; in the two-column phone layout it left a hole. */
@media (min-width: 720px) {
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 3/4; }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(32,21,18,0.85));
  color: #fff; font-family: "Playfair Display", serif; font-size: 0.95rem;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(61,15,22,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--maroon-950); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--ink-900); font-size: 0.95rem; }
.review-stars { color: var(--gold-500); font-size: 0.9rem; letter-spacing: 1px; }
.review-comment { color: var(--ink-500); font-size: 0.9rem; margin: 0; flex: 1; }
.review-date { font-size: 0.72rem; color: var(--ink-300); }

.star-picker { display: flex; gap: 6px; direction: rtl; justify-content: flex-end; }
.star-picker input { display: none; }
.star-picker label {
  font-size: 1.6rem; color: rgba(201,162,75,0.3); cursor: pointer; transition: color .15s ease;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--gold-500); }


/* =========================================================
   Mobile refinements (<= 560px)

   Phones lay this out at roughly 320-430 CSS pixels. The desktop
   scale overflows there — the header controls alone ran 7px past a
   360px viewport — so the whole system is stepped down here: tighter
   gutters, smaller controls, and type sized for the width rather
   than shrunk from a desktop figure.
   ========================================================= */
@media (max-width: 560px) {
  :root { --header-h: 62px; }

  .container { padding-inline: 14px; }

  .section { padding: 38px 0; }
  .section--tight { padding: 24px 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading .eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; margin-bottom: 7px; }
  .section-heading h2 { font-size: clamp(1.35rem, 6.5vw, 1.85rem); }
  .section-heading p { font-size: 0.88rem; }

  /* ---- Header: brand plus four controls must fit inside 320px ---- */
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; }
  .brand svg, .brand-logo { width: 34px; height: 34px; }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 0.86rem; line-height: 1.15; }
  .brand-text span { font-size: 0.56rem; }

  .header-actions { gap: 5px; flex-shrink: 0; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .cart-badge { min-width: 17px; height: 17px; font-size: 0.58rem; top: -3px; right: -3px; border-width: 1.5px; }
  .currency-select { height: 34px; padding: 0 4px; gap: 0; }
  .currency-ico { display: none; }
  .currency-select select { font-size: 0.66rem; }
  .currency-select-label { font-size: 0.66rem; }
  .currency-dropdown-list { right: -4px; }
  .hamburger { width: 34px; height: 34px; }

  .main-nav { padding: 76px 22px 24px; }
  .main-nav a { padding: 11px 4px; font-size: 0.95rem; }
  .nav-close { top: 18px; right: 20px; }

  /* ---- Hero ---- */
  .hero { min-height: 0; }
  .hero .container { padding-block: 52px 42px; }
  .hero .eyebrow { font-size: 0.64rem; letter-spacing: 0.14em; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.15rem); }
  .hero p.lead { font-size: 0.92rem; margin-bottom: 22px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; padding: 11px 18px; font-size: 0.85rem; }
  .hero-stats { gap: 8px; }
  .hero-stats div { padding: 10px 4px; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats span { font-size: 0.58rem; letter-spacing: 0.05em; }

  .strip .track { font-size: 0.82rem; }

  /* ---- Dish cards ---- */
  .dish-body { padding: 12px 12px 14px; gap: 6px; }
  .dish-body h3 { font-size: 0.92rem; }
  .dish-body p { font-size: 0.78rem; }
  .dish-foot { flex-wrap: wrap; gap: 8px; }
  .price { font-size: 0.96rem; }
  .add-to-cart-btn { font-size: 0.74rem; padding: 8px 12px; }
  .dish-tag, .dish-origin { font-size: 0.58rem; padding: 3px 8px; }

  .cat-tabs a { font-size: 0.78rem; padding: 7px 13px; }

  /* ---- Cart drawer and cart page ---- */
  .cart-drawer { width: min(340px, 92vw); }
  .cart-drawer-head { padding: 14px 16px; }
  .cart-drawer-head h3 { font-size: 1rem; }
  .cart-drawer-body { padding: 12px 16px; }
  .cart-drawer-foot { padding: 14px 16px; }
  .cart-line { gap: 10px; padding: 12px 0; }
  .cart-line img { width: 52px; height: 52px; }
  .cart-line-info h4 { font-size: 0.85rem; }
  .cart-line-meta { gap: 6px; margin-top: 5px; }
  .cart-line-meta .price { font-size: 0.86rem; }
  .qty-control { gap: 5px; }
  .qty-control button:not(.qty-delete) { width: 26px; height: 26px; }
  .qty-control span { width: 20px; font-size: 0.8rem; }
  .qty-delete { width: 28px; height: 28px; }
  .qty-delete svg { width: 14px; height: 14px; }
  .cart-summary-box { padding: 18px 16px; }

  /* ---- Reviews ---- */
  .review-card { padding: 16px; }
  .review-comment { font-size: 0.86rem; }

  /* ---- Footer ---- */
  .footer-top { padding-block: 38px 22px; }
  .footer-grid { gap: 26px; }
  .footer-grid h4 { font-size: 0.92rem; margin-bottom: 12px; }
  .footer-grid ul li { margin-bottom: 7px; }
  .footer-grid ul a { font-size: 0.85rem; }
  .footer-about p { font-size: 0.85rem; }
  .footer-brand svg, .footer-brand .brand-logo { width: 32px; height: 32px; }
  .footer-brand strong { font-size: 1.02rem; }
  .social-row a { width: 34px; height: 34px; }
  .contact-line { font-size: 0.85rem; margin-bottom: 10px; }
  .footer-bottom { font-size: 0.75rem; padding-block: 16px; }
  .legal-links { flex-wrap: wrap; justify-content: center; gap: 8px 14px; }

  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; left: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }

  /* ---- Page hero and forms ---- */
  .page-hero { padding: 44px 0 30px; }
  .page-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .form-control { font-size: 0.9rem; }
}


/* ---------- Order tracking ---------- */
.track-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(61, 15, 22, 0.1);
}
.track-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 2px;
}

/* The journey reads top-to-bottom on a phone, so the connector is a vertical
   rule behind the dots rather than a horizontal progress bar. */
.track-steps {
  position: relative;
  margin: 22px 0 4px;
  padding-left: 6px;
}
.track-steps::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(61, 15, 22, 0.12);
}
.track-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}
.track-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream-100);
  border: 2px solid rgba(61, 15, 22, 0.18);
}
.track-step.is-done .track-dot { background: var(--success); border-color: var(--success); }
.track-step.is-current .track-dot {
  background: var(--gold-500);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25);
}
.track-step-label { font-size: 0.94rem; color: var(--ink-300); }
.track-step.is-done .track-step-label { color: var(--ink-500); }
.track-step.is-current .track-step-label { color: var(--maroon-950); font-weight: 600; }
.track-now {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon-800);
  background: var(--gold-100);
  padding: 3px 9px;
  border-radius: 999px;
}

.track-meta {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(61, 15, 22, 0.1);
  font-size: 0.9rem;
  color: var(--ink-700);
}
@media (min-width: 620px) { .track-meta { grid-template-columns: 1fr 1fr; } }

/* ---------- Menu search & filters ---------- */
.menu-search {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
@media (min-width: 720px) {
  .menu-search { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}
.menu-search .form-group { margin-bottom: 0; }
.menu-search-actions { display: flex; gap: 8px; }
.menu-search-actions .btn { flex: 1; }
.menu-result-note {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 18px;
}
.menu-result-note strong { color: var(--maroon-950); }
