@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #130306;
  --wine-rich: #6b0712;
  --wine-dark: #38040a;
  --gold-highlight: #fff2cc;
  --gold-primary: #d9b563;
  --gold-secondary: #a37525;
  --gold-glow: rgba(217, 181, 99, 0.16);
  --crimson-glow: rgba(189, 23, 38, 0.22);
  --glass-card: rgba(255, 255, 255, 0.04);
  --glass-card-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-gold: rgba(217, 181, 99, 0.32);
  --text-main: #ffffff;
  --text-dim: #ebd8ba;
  --text-muted: #bda78d;
  --radius-outer: 32px;
  --radius-card: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 15%, rgba(217, 181, 99, 0.14) 0 4%, transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(189, 23, 38, 0.18) 0 6%, transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(107, 7, 18, 0.2) 0 8%, transparent 28%),
    linear-gradient(135deg, #2b0409 0%, #130306 50%, #3a060e 100%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.13;
  z-index: -2;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(217, 181, 99, 0.08) 20px 22px, transparent 22px 42px),
    repeating-linear-gradient(-45deg, transparent 0 30px, rgba(255, 255, 255, 0.03) 30px 32px, transparent 32px 64px);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 3vw, 36px) clamp(10px, 3vw, 24px);
}

.brand-shell {
  width: 100%;
  max-width: 520px;
  position: relative;
  border-radius: var(--radius-outer);
  background: linear-gradient(165deg, rgba(107, 7, 18, 0.95), rgba(45, 4, 9, 0.98) 55%, rgba(19, 3, 6, 0.99));
  border: 1px solid var(--glass-border-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  padding: clamp(16px, 3.5vw, 26px);
  overflow: hidden;
}

.page-wrapper.menu-mode .brand-shell.menu-shell {
  max-width: 860px;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.glow-1 { width: 250px; height: 250px; background: var(--gold-glow); top: -90px; left: -80px; }
.glow-2 { width: 220px; height: 220px; background: var(--crimson-glow); bottom: -90px; right: -60px; }

.inner-frame {
  position: relative;
  border: 1px solid rgba(217, 181, 99, 0.22);
  border-radius: calc(var(--radius-outer) - 8px);
  padding: clamp(18px, 3vw, 28px) clamp(14px, 2.5vw, 24px);
}

.gold-corner-border {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--radius-outer) - 14px);
  pointer-events: none;
}

/* Header & Brand Identity */
.hero-header {
  text-align: center;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
}
.brand-kicker::before, .brand-kicker::after {
  content: "";
  height: 1px;
  width: 32px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.brand-kicker::after {
  background: linear-gradient(-90deg, transparent, var(--gold-primary));
}

.logo-container {
  width: min(250px, 75%);
  margin: 12px auto 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-img {
  width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  display: block;
}

.brand-tag {
  color: var(--gold-highlight);
  font-size: clamp(13px, 2vw, 14.5px);
  font-weight: 600;
  margin-top: 4px;
}

.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px auto;
  max-width: 340px;
  color: var(--gold-primary);
}
.ornamental-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(217, 181, 99, 0.4));
}
.ornamental-divider span:last-child {
  background: linear-gradient(-90deg, transparent, rgba(217, 181, 99, 0.4));
}
.ornamental-divider b { font-size: 10px; }

.main-heading {
  font-size: clamp(21px, 3.5vw, 25px);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.sub-heading {
  color: var(--text-dim);
  font-size: clamp(12px, 2vw, 13px);
  margin-top: 5px;
  margin-bottom: 22px;
}

/* Hub Cards on Home Page */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-main);
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 18px);
  border-radius: var(--radius-card);
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 0.2s cubic-bezier(0.3, 0, 0.2, 1), border-color 0.2s, background-color 0.2s;
  min-height: 68px;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-gold);
  background: var(--glass-card-hover);
}

.primary-hub {
  background: linear-gradient(105deg, rgba(217, 181, 99, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(217, 181, 99, 0.45);
}
.review-hub {
  background: linear-gradient(105deg, rgba(255, 193, 7, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 193, 7, 0.38);
}

.hub-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--gold-primary), var(--gold-secondary));
  color: #240307;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.star-icon { background: linear-gradient(140deg, #ffc107, #ff9800); color: #2e0409; }
.map-icon { background: linear-gradient(140deg, #e67e22, #d35400); color: #fff; }
.insta-icon { background: linear-gradient(140deg, #fd1d1d, #833ab4); color: #fff; }
.fb-icon { background: linear-gradient(140deg, #1877f2, #0d5cb8); color: #fff; }

.hub-text { flex: 1; }
.hub-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hub-text strong { display: block; font-size: clamp(14.5px, 2.2vw, 16px); font-weight: 800; color: #fff; }
.hub-text small { display: block; color: var(--text-dim); font-size: clamp(11px, 1.8vw, 12px); margin-top: 3px; line-height: 1.45; }
.hub-pill { font-size: 10px; padding: 2px 8px; border-radius: 20px; background: rgba(217, 181, 99, 0.25); color: var(--gold-highlight); font-weight: 700; }
.review-pill { background: rgba(255, 193, 7, 0.25); color: #ffd54f; }
.hub-arrow { color: var(--gold-primary); font-size: 24px; font-weight: 700; padding-right: 4px; }

.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-half { min-height: 60px; padding: 10px 12px; }
.social-half .hub-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 11px; }

/* =======================================================
   MENU INTERFACE & DEDICATED LANGUAGE SWITCHER
   ======================================================= */
.menu-navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(24, 3, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border-gold);
  margin: -18px -14px 18px;
  padding: 14px 14px 10px;
  border-radius: calc(var(--radius-outer) - 10px) calc(var(--radius-outer) - 10px) 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.nav-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 181, 99, 0.25);
  transition: all 0.2s;
  flex-shrink: 0;
}
.back-pill:hover { background: rgba(217, 181, 99, 0.2); }

.nav-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
}
.nav-logo-img { height: 24px; width: auto; object-fit: contain; }

/* 🌟 High-End Frosted Glass Language Slider 🌟 */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(217, 181, 99, 0.35);
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.lang-opt {
  all: unset;
  display: inline-block;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.lang-opt:hover {
  color: #ffffff;
}

.lang-opt.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
  color: #1a0205 !important;
  box-shadow: 0 2px 10px rgba(217, 181, 99, 0.45);
  transform: scale(1.02);
}

/* =======================================================
   LANGUAGE MODES (ARABIC / ENGLISH / BOTH)
   ======================================================= */
/* 1. Both Mode (Default) - Stacked Vertically & Clean */
html.mode-both .name-ar { display: block; }
html.mode-both .name-en { display: block; }
html.mode-both .desc-ar { display: block; }
html.mode-both .desc-en { display: block; }

/* 2. Arabic Only Mode */
html.mode-ar .name-ar { display: block; }
html.mode-ar .name-en { display: none !important; }
html.mode-ar .desc-ar { display: block; }
html.mode-ar .desc-en { display: none !important; }

/* 3. English Only Mode */
html.mode-en { direction: ltr; }
html.mode-en .name-ar { display: none !important; }
html.mode-en .name-en { 
  display: block; 
  font-size: 15px; 
  font-weight: 800; 
  color: #ffffff; 
}
html.mode-en .desc-ar { display: none !important; }
html.mode-en .desc-en { display: block; }
html.mode-en .back-chevron { transform: rotate(180deg); }

/* Search Box */
.search-box { position: relative; margin-bottom: 12px; }
.search-box input {
  width: 100%;
  padding: 10px 42px 10px 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.search-box input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.09);
}
.search-ico {
  position: absolute;
  inset-inline-start: auto;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.7;
  pointer-events: none;
}
.clear-btn {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: none;
}

/* Categories Carousel */
.categories-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.categories-bar::-webkit-scrollbar { display: none; }

.nav-chip {
  all: unset;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: all 0.2s ease;
}
.nav-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.nav-chip.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  border-color: var(--gold-primary);
  color: #1a0205;
  box-shadow: 0 4px 16px rgba(217, 181, 99, 0.4);
  transform: scale(1.02);
}

/* Catalog Grid & Dish Cards */
.catalog-section {
  margin-bottom: 30px;
  scroll-margin-top: 155px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--gold-primary);
  font-weight: 800;
  white-space: nowrap;
}
.section-decor {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(217, 181, 99, 0.35), transparent);
}

.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.dish-card {
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, transform 0.2s, background-color 0.2s;
}
.dish-card:hover {
  border-color: var(--glass-border-gold);
  background: var(--glass-card-hover);
  transform: translateY(-2px);
}

/* =======================================================
   DISH CARD TYPOGRAPHY (ABSOLUTE SEPARATION)
   ======================================================= */
.dish-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dish-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Arabic Headline */
.name-ar {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

/* English Subtitle: separate, never inline */
.name-en {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.3px;
  line-height: 1.3;
  margin-top: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Price */
.dish-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-highlight);
  white-space: nowrap;
  direction: ltr;
  flex-shrink: 0;
}
.dish-price small {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Dual Prices Chips (Small / Big) */
.dual-prices {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.price-chip {
  background: rgba(217, 181, 99, 0.15);
  border: 1px solid rgba(217, 181, 99, 0.35);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-highlight);
  white-space: nowrap;
}
.price-chip small {
  font-size: 10px;
  color: var(--text-dim);
  margin-inline-end: 3px;
}

/* Descriptions in Separate Blocks */
.dish-descriptions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.desc-ar {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.desc-en {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin: 0;
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Badges */
.dish-badges { margin-top: 10px; }
.tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-block;
}
.tag-popular {
  background: rgba(217, 181, 99, 0.2);
  color: #ffebac;
  border: 1px solid rgba(217, 181, 99, 0.35);
}

/* Footer Section */
.footer-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.call-action { font-size: 12px; color: var(--text-muted); }
.phone-link {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  direction: ltr;
  letter-spacing: 0.5px;
  text-decoration: none;
  margin: 6px 0;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 181, 99, 0.25);
  transition: all 0.2s;
}
.phone-link:hover {
  background: rgba(217, 181, 99, 0.2);
  color: var(--gold-highlight);
}
.badge-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 10.5px;
  color: var(--gold-primary);
  border: 1px solid rgba(217, 181, 99, 0.25);
  background: rgba(0, 0, 0, 0.25);
}