/* ================================================
   الجمرة | EMBER KITCHEN — style.css
   Identity: Charcoal & Ember — dark smoky charcoal
   with warm amber/ember glow accents.
   ================================================ */

:root {
  --bg: #17120e;
  --bg-alt: #1e1712;
  --surface: #271e16;
  --surface-2: #2f2419;
  --cream: #f3e8d6;
  --cream-dim: #cdbda2;
  --cream-faint: #8f7f68;
  --amber: #d99a3e;
  --amber-dim: rgba(217, 154, 62, 0.15);
  --amber-line: rgba(217, 154, 62, 0.4);
  --ember: #b8452e;
  --ember-dim: rgba(184, 69, 46, 0.18);
  --ember-line: rgba(184, 69, 46, 0.45);
  --line: rgba(243, 232, 214, 0.1);
  --line-strong: rgba(243, 232, 214, 0.2);
  --radius: 6px;
  --radius-lg: 20px;
  --ease: 0.35s cubic-bezier(0.25, 0.8, 0.3, 1);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  line-height: 1.75;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(217,154,62,0.08), transparent),
    radial-gradient(ellipse 700px 500px at 0% 20%, rgba(184,69,46,0.07), transparent);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.font-display {
  font-family: 'Lalezar', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lalezar', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--amber-line); }

.section { padding: 100px 0; position: relative; }
.section-title {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 16px;
}
.section-desc { color: var(--cream-dim); max-width: 620px; margin: 0 auto 48px; font-size: 1.02rem; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lalezar', sans-serif;
  font-size: 1.05rem;
  padding: 15px 32px;
  border-radius: 50px;
  transition: var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-fill { background: var(--amber); color: #17120e; }
.btn-fill:hover { background: #e8ad57; transform: translateY(-2px); box-shadow: 0 10px 30px var(--amber-dim); }
.btn-line { border-color: var(--line-strong); color: var(--cream); background: rgba(0,0,0,0.2); backdrop-filter: blur(6px); }
.btn-line:hover { border-color: var(--amber-line); color: var(--amber); }
.btn-whatsapp {
  background: var(--ember);
  color: var(--cream);
}
.btn-whatsapp:hover { background: #cf5138; transform: translateY(-2px); }

/* ---------- Ember Badge (signature element) ---------- */
.ember-badge {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1.5px solid var(--amber-line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle, var(--ember-dim), transparent 70%);
}
.ember-badge::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px dashed var(--amber-line);
  border-radius: 50%;
}
.ember-badge .flame-icon { width: 30px; height: 30px; color: var(--amber); }
.ember-badge-inner { text-align: center; }
.ember-badge-inner span { display: block; }
.ember-num { font-family: 'Lalezar', sans-serif; font-size: 1.5rem; color: var(--amber); }
.ember-label { font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-faint); }

/* ================= NAVBAR ================= */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: var(--ease); }
.navbar.scrolled { background: rgba(23,18,14,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Lalezar', sans-serif; font-size: 1.6rem; color: var(--cream); }
.brand-mark { width: 36px; height: 36px; color: var(--amber); }
.brand-sub { display: block; font-family: 'Tajawal', sans-serif; font-weight: 400; font-size: 0.6rem; color: var(--cream-faint); letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--cream-dim); padding: 9px 16px; border-radius: var(--radius); transition: var(--ease); }
.nav-links a:hover { color: var(--cream); background: var(--surface); }
.nav-cta { background: var(--amber) !important; color: #17120e !important; font-weight: 700 !important; border-radius: 50px !important; padding: 9px 22px !important; }
.nav-cta:hover { background: #e8ad57 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; }

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1600&q=80');
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,18,14,0.55) 0%, rgba(23,18,14,0.88) 65%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-title {
  font-family: 'Lalezar', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.hero-title .hl { color: var(--amber); }
.hero-sub {
  color: var(--cream-dim);
  font-size: 1.12rem;
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ================= MENU ================= */
.menu-section { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.menu-tab {
  font-family: 'Lalezar', sans-serif;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 30px;
  border: 1.5px solid var(--line-strong);
  color: var(--cream-dim);
  background: transparent;
  transition: var(--ease);
}
.menu-tab:hover { border-color: var(--amber-line); color: var(--amber); }
.menu-tab.active { background: var(--amber); border-color: var(--amber); color: #17120e; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.menu-item {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease);
}
.menu-item:hover { border-color: var(--amber-line); transform: translateY(-4px); }
.menu-item-img { width: 130px; flex-shrink: 0; aspect-ratio: 1/1; overflow: hidden; }
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { padding: 18px 20px 18px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.menu-item-body h4 { font-family: 'Lalezar', sans-serif; font-size: 1.15rem; }
.menu-item-price { font-family: 'Lalezar', sans-serif; color: var(--amber); font-size: 1.1rem; white-space: nowrap; }
.menu-item-body p { font-size: 0.85rem; color: var(--cream-faint); }

/* ================= ABOUT ================= */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge-float {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--bg-alt);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}
.about-text p { color: var(--cream-dim); margin-bottom: 28px; max-width: 480px; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item .num { font-family: 'Lalezar', sans-serif; font-size: 2.2rem; color: var(--amber); display: block; }
.stat-item .lbl { font-size: 0.82rem; color: var(--cream-faint); }

/* ================= CONTACT ================= */
.contact-section { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-wrapper { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
}
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--amber-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.contact-row h5 { font-size: 0.92rem; margin-bottom: 3px; }
.contact-row p, .contact-row a { font-size: 0.86rem; color: var(--cream-faint); }
.contact-row a:hover { color: var(--amber); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { font-size: 0.84rem; font-weight: 700; color: var(--cream-dim); }
.form-group input, .form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
  direction: rtl;
  outline: none;
  transition: var(--ease);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.form-group textarea { resize: vertical; min-height: 100px; }
.whatsapp-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ember-dim);
  border: 1px solid var(--ember-line);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.whatsapp-cta p { font-size: 0.92rem; color: var(--cream-dim); }
.whatsapp-cta h4 { font-family: 'Lalezar', sans-serif; font-size: 1.1rem; margin-bottom: 4px; }

/* ================= FOOTER ================= */
.footer { padding: 50px 0 26px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 30px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--cream-dim); }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; font-size: 0.8rem; color: var(--cream-faint); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ================= FLOATING WHATSAPP BUTTON ================= */
.float-whatsapp {
  position: fixed;
  bottom: 26px; left: 26px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--ember);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(184,69,46,0.5);
  transition: var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; color: #fff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: 260px;
    background: var(--bg-alt); flex-direction: column; align-items: flex-start;
    padding: 90px 22px 22px; transform: translateX(-100%); transition: transform .35s ease;
    border-left: 1px solid var(--line); z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .hamburger { display: flex; z-index: 1000; }
  .menu-item { flex-direction: column; }
  .menu-item-img { width: 100%; aspect-ratio: 16/9; }
  .menu-item-body { padding: 16px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
  .whatsapp-cta { flex-direction: column; align-items: flex-start; }
}
