/* ── VARIABLES ──────────────────────────────── */
:root {
  --bg:        #0a0705;
  --bg-card:   #130e08;
  --bg-el:     #1c1510;
  --gold:      #c4882f;
  --gold-lt:   #e0aa55;
  --gold-bg:   rgba(196,136,47,0.10);
  --gold-bdr:  rgba(196,136,47,0.22);
  --cream:     #ede3d0;
  --muted:     #7a6a55;
  --border:    rgba(196,136,47,0.14);
  --border-s:  rgba(255,255,255,0.05);
  --shadow:    0 8px 32px rgba(0,0,0,0.55);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--cream);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 80px;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1521017432531-fbd92d768814?auto=format&fit=crop&w=1400&q=85');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,7,5,0.45) 0%,
      rgba(10,7,5,0.62) 40%,
      rgba(10,7,5,0.92) 80%,
      #0a0705 100%),
    linear-gradient(135deg, rgba(10,7,5,0.3) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  animation: fadeUp 0.9s ease both;
}

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

/* Logo */
.logo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(196,136,47,0.55);
  margin: 0 auto 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 6px rgba(196,136,47,0.08), var(--shadow);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-fallback {
  font-size: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(196,136,47,0.6));
}

/* Café name */
.cafe-name {
  font-size: clamp(30px, 9vw, 48px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.15;
  background: linear-gradient(160deg, #f5ecd8 0%, #ede3d0 45%, #c4882f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  text-shadow: none;
}

.cafe-name-en {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Divider */
.gold-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.gold-line span:not(.diamond) {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.diamond { color: var(--gold); font-size: 9px; }

.cafe-address {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ── SECTION NAV ─────────────────────────────── */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,7,5,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-track {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0 8px;
  scrollbar-width: none;
}
.nav-track::-webkit-scrollbar { display: none; }

.section-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  outline: none;
  margin-bottom: -1px;
}

.section-tab .tab-icon { font-size: 16px; }

.section-tab:hover { color: var(--cream); }

.section-tab.active {
  color: var(--gold-lt);
  border-bottom-color: var(--gold);
}

/* ── MENU BODY ───────────────────────────────── */
.menu-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 12px 50px;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 20px;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 34px;
  height: 34px;
  border: 2.5px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SECTION CARD ────────────────────────────── */
.section-card {
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(90deg,
    rgba(196,136,47,0.12) 0%,
    rgba(28,21,16,0.0) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* Gold left accent bar (right in RTL = leading edge) */
.section-header::before {
  content: '';
  position: absolute;
  right: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold-lt), var(--gold));
  border-radius: 0 3px 3px 0;
}

.section-icon  { font-size: 22px; flex-shrink: 0; }
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  flex: 1;
  letter-spacing: 0.3px;
}
.section-count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--border-s);
}

/* ── ITEMS ───────────────────────────────────── */
.items-list { padding: 2px 0; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-s);
  transition: background 0.18s;
  cursor: default;
}
.menu-item:last-child  { border-bottom: none; }
.menu-item:hover       { background: rgba(255,255,255,0.022); }

.item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
  line-height: 1.45;
}

.item-sep {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0px, var(--border) 4px,
    transparent 4px, transparent 10px
  );
  min-width: 16px;
  max-width: 60px;
  opacity: 0.5;
}

.item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-lt);
  background: var(--gold-bg);
  border: 1px solid var(--gold-bdr);
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--bg) 0%, #070503 100%);
  border-top: 1px solid var(--border);
  padding: 48px 24px 60px;
}
.footer-inner { text-align: center; max-width: 400px; margin: 0 auto; }
.footer-logo  { font-size: 30px; margin-bottom: 10px; opacity: 0.75; }
.footer-name  { font-size: 17px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.footer-addr  { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bdr), transparent);
  margin: 0 auto 16px;
  max-width: 200px;
}
.footer-note  { font-size: 11px; color: var(--muted); opacity: 0.5; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (min-width: 560px) {
  .menu-main       { padding: 32px 20px 60px; }
  .section-header  { padding: 18px 24px; }
  .menu-item       { padding: 14px 24px; }
  .item-name       { font-size: 15px; }
  .item-sep        { max-width: 80px; }
}
