:root {
    --bg-dark: #050505;
    --gold-gradient: linear-gradient(45deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    --gold-solid: #D4AF37;
    --glass-bg: rgba(10, 10, 10, 0.9);
    --glass-border: rgba(212, 175, 55, 0.3);
    --text-light: #f5f5f5;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Cairo', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg-dark); color: var(--text-light); font-family: var(--font-ar); line-height: 1.6; overflow-x: hidden; }
body.lang-en { font-family: var(--font-en); direction: ltr; }

/* Utilities */
.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.gold-bg { background: var(--gold-gradient); color: #000; border: none; font-weight: bold; }
.glassmorphism { background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 0.5px solid var(--glass-border); }
.hidden { display: none !important; }

/* Layout Sections */
.split-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; height: auto; background: var(--bg-dark); align-items: stretch; overflow: hidden; }
.split-section.reverse { direction: ltr; }
.split-section.reverse .owner-text { direction: rtl; text-align: right; }
body.lang-en .split-section.reverse .owner-text { direction: ltr; text-align: left; }

.story-text, .owner-text { padding: 80px 10%; display: flex; flex-direction: column; justify-content: center; }
.main-desc { font-size: 1.15rem; line-height: 2; color: #ccc; margin-bottom: 30px; text-align: justify; }
.quote-footer { font-style: italic; font-size: 1.5rem; font-weight: 700; border-right: 4px solid var(--gold-solid); padding: 5px 25px; margin-top: 20px; }
body.lang-en .quote-footer { border-right: none; border-left: 4px solid var(--gold-solid); }

.parallax-img { width: 100%; min-height: 500px; background-size: cover; background-position: center; }

/* Navigation */
.glass-nav { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: 0.4s var(--ease); }
.glass-nav.scrolled { background: rgba(5, 5, 5, 0.95); padding: 0.8rem 0; border-bottom: 1px solid var(--glass-border); }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.nav-links a { color: #fff; text-decoration: none; margin: 0 1.2rem; font-size: 0.9rem; font-weight: 700; transition: 0.3s; }

/* Menu Grid */
.menu-container { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.category-tabs { display: flex; gap: 15px; overflow-x: auto; padding: 20px 0; margin-bottom: 30px; scrollbar-width: none; }
.category-btn { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); padding: 10px 25px; border-radius: 30px; cursor: pointer; white-space: nowrap; transition: 0.3s; }
.category-btn.active { background: var(--gold-gradient); color: #000; border: none; font-weight: 700; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.menu-card { background: rgba(20, 20, 20, 0.7); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; }
.card-img { width: 100%; height: 250px; object-fit: cover; }
.card-info { padding: 20px; }

/* Cart Components */
.cart-drawer { position: fixed; top: 0; right: 0; width: 450px; height: 100%; z-index: 2000; transform: translateX(100%); transition: 0.5s var(--ease); visibility: hidden; display: flex; flex-direction: column; padding: 40px; }
.cart-drawer.active { transform: translateX(0); visibility: visible; }
.fac-pill { position: fixed; bottom: 110px; right: 30px; padding: 15px 30px; border-radius: 50px; cursor: pointer; z-index: 900; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }

/* Mobile UI */
@media (max-width: 992px) {
    .split-section { grid-template-columns: 1fr; height: auto; }
    .split-section.reverse { direction: unset; }
    .story-image, .owner-image { height: 350px; order: -1; }
    .story-text, .owner-text { padding: 40px 6%; }
    .mobile-bottom-nav { position: fixed; bottom: 20px; left: 5%; right: 5%; height: 75px; border-radius: 40px; display: flex; justify-content: space-around; align-items: center; z-index: 1500; }
    .desktop-only { display: none; }
    .cart-drawer { width: 100%; }
}

/* ===== Layout Restructure & Luxury Dark Theme Enhancements ===== */
:root{
  --bg-dark: #070503;
  --bg-card: rgba(20, 13, 9, 0.78);
  --gold: #D4AF37;
  --gold-soft: rgba(212,175,55,0.20);
  --earth: #3A2414;
}

body, html{
  font-family: var(--font-ar);
}

body.lang-en{
  font-family: var(--font-en);
}

.section-pad{
  padding: clamp(48px, 6vw, 96px) 5%;
}

.section-title{
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 0 0 10px 0;
  letter-spacing: .2px;
}

.section-subtitle{
  margin: 0 0 18px 0;
  color: rgba(255,255,255,0.76);
  font-size: 1.02rem;
}

.gold-text{ color: var(--gold); }

/* Hero */
.hero-section{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 5% 90px;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transform: scale(1.03);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0.40), rgba(0,0,0,0.86)),
    linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.35));
}

.hero-content{
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-title{
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.15;
  margin: 0 0 14px 0;
  text-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

.hero-subtitle{
  margin: 0 auto 22px;
  max-width: 56ch;
  font-size: clamp(16px, 2.3vw, 20px);
  color: rgba(255,255,255,0.86);
}

.hero-cta{
  display: flex;
  justify-content: center;
}

.hero-cta-btn{
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
}

/* Intro animation */
.fade-up{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .7s ease forwards;
}
.fade-up.delay-1{ animation-delay: .12s; }
.fade-up.delay-2{ animation-delay: .22s; }

@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

/* Top nav: transparent + appears on scroll */
.glass-nav{
  background: transparent;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .25s ease, border-color .25s ease;
}

.glass-nav.scrolled{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(0,0,0,0.38);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  backdrop-filter: blur(14px);
}

.brand-logo{
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-sep{
  opacity: .55;
}

.brand-ar{
  font-weight: 700;
  opacity: .95;
}

.nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.glass-btn:hover{
  border-color: rgba(212,175,55,0.28);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.gold-bg{
  background: linear-gradient(135deg, rgba(212,175,55,0.95), rgba(212,175,55,0.72));
  border-color: rgba(212,175,55,0.32);
  color: #0b0705;
  font-weight: 800;
}
.gold-bg:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.icon-btn{
  padding: 10px 12px;
}

/* Split sections: ensure media visible */
.parallax-img{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
}
.parallax-img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.03) saturate(0.95);
}
.owner-photo{
  object-fit: contain;
  background: rgba(0,0,0,0.22);
}
.media-frame{
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,175,55,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Maps grid */
.branches-section{
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.06), rgba(0,0,0,0));
}

.maps-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.map-card{
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid rgba(212,175,55,0.12);
}

.map-title{
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}

.map-container{
  position: relative;
  width: 100%;
  padding-top: 66%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.luxury-footer{
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.65)), var(--bg-dark);
  border-top: 1px solid rgba(212,175,55,0.12);
  padding: 44px 5% 18px;
}

.footer-content{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-logo{
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-tagline{
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

.footer-cols{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer-title{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: rgba(255,255,255,0.72);
}

.footer-link{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-link:hover{
  color: rgba(212,175,55,0.95);
}

.footer-bottom{
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-size: .95rem;
}

/* Overlay */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 1400;
}
.overlay.active{
  opacity: 1;
  visibility: visible;
}

/* Language toggles for inline bilingual spans */
.lang-en{ display: none; }
body.lang-en .lang-en{ display: inline; }
body.lang-en .lang-ar{ display: none; }

/* Utility */
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive */
@media (max-width: 900px){
  .maps-grid{ grid-template-columns: 1fr; }
  .footer-content{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: 1fr; }
  .glass-nav.scrolled{ opacity: 1; } /* keep behavior; still appears after scroll */
}
