@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Aref+Ruqaa:wght@400;700&display=swap');

:root, :root[data-theme="dark"] {
  --bg: #0a0805;
  --bg-alt: #120d08;
  --panel: #16110a;
  --panel-2: #0e0b06;
  --gold: #c9a24b;
  --gold-bright: #eccb7c;
  --terracotta: #b5502f;
  --cream: #f3ead9;
  --text-dim: #cbb99a;
  --text-dimmer: #8a7a5f;
  --line: rgba(201, 162, 75, 0.18);
  --hero-glow: #241a0f;
  --nav-bg-scrolled: rgba(10, 8, 5, 0.86);
  --container: 1180px;
}

:root[data-theme="light"] {
  --bg: #faf6ec;
  --bg-alt: #f2e9d6;
  --panel: #ffffff;
  --panel-2: #f8efdb;
  --gold: #8a6015;
  --gold-bright: #6e4a10;
  --terracotta: #a2461f;
  --cream: #2b2013;
  --text-dim: #5c5140;
  --text-dimmer: #6f6350;
  --line: rgba(120, 90, 30, 0.22);
  --hero-glow: #fbe9c8;
  --nav-bg-scrolled: rgba(250, 246, 236, 0.86);
}

* { box-sizing: border-box; }
*, *::before, *::after { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  margin: 0;
  font-family: 'Cairo', system-ui, sans-serif;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.display {
  font-family: 'Aref Ruqaa', 'Cairo', serif;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark {
  font-family: 'Aref Ruqaa', serif;
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--gold-bright);
  opacity: 0;
  animation: preloaderIn 1.6s ease forwards;
}
@keyframes preloaderIn {
  0% { opacity: 0; letter-spacing: 0.4em; filter: blur(6px); }
  60% { opacity: 1; letter-spacing: 0.05em; filter: blur(0); }
  100% { opacity: 1; letter-spacing: 0.02em; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 500;
  padding: 22px 0;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--gold); cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(201,162,75,0.1); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Aref Ruqaa', serif; font-size: 1.5rem; color: var(--gold-bright); display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo small { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-dim); font-family: 'Cairo', sans-serif; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.92rem; color: var(--text-dim); position: relative; padding: 4px 0; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), #a9812f);
  color: #16110a; font-weight: 700; padding: 10px 22px; border-radius: 999px;
  font-size: 0.88rem; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,75,0.35); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 600; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, var(--hero-glow) 0%, var(--bg) 62%);
}
.hero-bg-layer {
  position: absolute; inset: -10%; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(181,80,47,0.28), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201,162,75,0.22), transparent 50%);
  filter: blur(2px);
  opacity: 1;
}
:root[data-theme="light"] .hero-bg-layer { opacity: 0.55; }
.hero-pattern {
  position: absolute; inset: 0; z-index: 0; opacity: 0.10;
  background-image: repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 34px),
                     repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 34px);
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-eyebrow {
  color: var(--gold); letter-spacing: 0.35em; font-size: 0.8rem; font-weight: 600; margin-bottom: 22px;
  text-transform: uppercase; opacity: 0;
}
.hero-title {
  font-family: 'Aref Ruqaa', serif; font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 8.5rem); line-height: 1;
  color: var(--cream);
  background: linear-gradient(180deg, var(--gold-bright) 10%, var(--gold) 55%, #8a6a2a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0; opacity: 0;
}
.hero-subtitle {
  font-family: 'Aref Ruqaa', serif; font-size: clamp(1.4rem, 3.4vw, 2.2rem); color: var(--text-dim);
  margin: 10px 0 28px; opacity: 0;
}
.hero-tagline { max-width: 560px; margin: 0 auto 40px; color: var(--text-dim); font-size: 1.05rem; line-height: 1.9; opacity: 0; }
.hero-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; opacity: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #16110a; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(201,162,75,0.35); }
.btn-ghost { border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,162,75,0.08); }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dimmer);
  font-size: 0.75rem; letter-spacing: 0.2em;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2s ease infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Section shared ---------- */
.section { position: relative; padding: 140px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-title { font-family: 'Aref Ruqaa', serif; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--cream); margin: 0 0 18px; }
.section-desc { color: var(--text-dim); line-height: 1.9; font-size: 1.02rem; }

/* ---------- Story ---------- */
.story { background: var(--bg-alt); padding: 120px 0; }
.story-track { display: flex; flex-direction: column; gap: 90px; max-width: 700px; margin: 0 auto; padding: 0 24px; }
.story-beat { display: flex; align-items: center; justify-content: center; }
.story-beat-inner { max-width: 620px; text-align: center; }
.story-num { font-family: 'Aref Ruqaa', serif; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.2em; margin-bottom: 18px; }
.story-beat-inner h3 { font-family: 'Aref Ruqaa', serif; font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--gold-bright); margin: 0 0 22px; }
.story-beat-inner p { color: var(--text-dim); font-size: 1.12rem; line-height: 2; }

/* ---------- Signature dishes (snap carousel) ---------- */
.dishes-track {
  display: flex; gap: 32px; padding: 10px 8vw 30px; align-items: stretch;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.dishes-track::-webkit-scrollbar { height: 8px; }
.dishes-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.dish-card {
  scroll-snap-align: start;
  min-width: min(80vw, 400px); background: linear-gradient(155deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 22px; padding: 46px 38px; position: relative; overflow: hidden;
}
.dish-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,162,75,0.14), transparent 60%);
}
.dish-icon { width: 60px; height: 60px; margin-bottom: 26px; color: var(--gold); position: relative; }
.dish-name { font-family: 'Aref Ruqaa', serif; font-size: 2rem; color: var(--gold-bright); margin: 0 0 14px; position: relative; }
.dish-desc { color: var(--text-dim); line-height: 1.85; margin-bottom: 26px; position: relative; min-height: 80px; }
.dish-price { display: flex; align-items: baseline; gap: 8px; font-weight: 700; color: var(--cream); position: relative; }
.dish-price .num { font-size: 1.6rem; color: var(--gold-bright); font-family: 'Aref Ruqaa', serif; }
.dish-price .note { color: var(--text-dimmer); font-size: 0.82rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px 26px; text-align: center; opacity: 0; transform: translateY(30px); }
.feature-icon { width: 46px; height: 46px; margin: 0 auto 20px; color: var(--gold); }
.feature-card h4 { font-family: 'Aref Ruqaa', serif; font-size: 1.3rem; color: var(--cream); margin: 0 0 12px; }
.feature-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.8; margin: 0; }

/* ---------- Menu ---------- */
.menu { background: var(--bg-alt); }
.menu-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 56px; }
.menu-tab {
  padding: 10px 24px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; background: transparent; transition: all 0.3s ease;
}
.menu-tab.active, .menu-tab:hover { background: var(--gold); color: #16110a; border-color: var(--gold); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.menu-item {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  padding: 22px 6px; border-bottom: 1px dashed var(--line); opacity: 0; transform: translateY(18px);
}
.menu-item-main h4 { font-family: 'Aref Ruqaa', serif; color: var(--cream); font-size: 1.25rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.menu-item-main p { color: var(--text-dimmer); font-size: 0.88rem; line-height: 1.7; margin: 0; max-width: 380px; }
.badge-featured { font-size: 0.62rem; background: var(--terracotta); color: #fff6ec; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.05em; }
.menu-item-price { white-space: nowrap; text-align: left; font-family: 'Aref Ruqaa', serif; color: var(--gold-bright); font-size: 1.3rem; }
.menu-item-price small { display: block; color: var(--text-dimmer); font-size: 0.65rem; font-family: 'Cairo', sans-serif; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-item {
  border-radius: 14px; overflow: hidden; position: relative; cursor: pointer;
  background: linear-gradient(160deg, var(--panel), var(--panel-2)); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:nth-child(5n+1) { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .ph { font-family: 'Aref Ruqaa', serif; color: var(--gold); opacity: 0.5; font-size: 1.4rem; text-align: center; padding: 10px; }

/* ---------- Location / contact ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.location-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; filter: grayscale(0.4) sepia(0.25) contrast(1.05); }
.location-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.info-list { display: flex; flex-direction: column; gap: 22px; margin: 30px 0 36px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .ic { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.info-row strong { display: block; color: var(--cream); margin-bottom: 4px; font-size: 0.95rem; }
.info-row span { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }
.contact-form { display: grid; gap: 14px; margin-top: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  color: var(--cream); font-family: inherit; font-size: 0.95rem;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.85rem; color: var(--gold-bright); min-height: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { font-family: 'Aref Ruqaa', serif; font-size: 2rem; color: var(--gold-bright); margin-bottom: 14px; }
.footer p { color: var(--text-dimmer); line-height: 1.8; font-size: 0.9rem; }
.footer h5 { color: var(--cream); font-size: 0.95rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; color: var(--gold); transition: all 0.25s;
}
.footer-social a:hover { background: var(--gold); color: #16110a; }
.footer-bottom { text-align: center; color: var(--text-dimmer); font-size: 0.82rem; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom a { color: var(--gold); }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; bottom: 26px; left: 26px; z-index: 400; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  animation: fabPulse 2.6s ease infinite;
}
@keyframes fabPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Reveal utility ---------- */
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 78vw; background: var(--bg-alt);
    flex-direction: column; padding: 110px 32px 32px; gap: 26px; transform: translateX(100%);
    transition: transform 0.4s ease; border-right: 1px solid var(--line); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .section { padding: 90px 0; }
}
