/* =========================================================
   روّاق — قائمة مقهى رقمية (تصميم دافئ فخم عصري)
   ========================================================= */
:root {
  --cream:     #F5EEE3;
  --cream-2:   #FBF7F0;
  --surface:   #FFFFFF;
  --espresso:  #2C2521;
  --espresso-2:#4A3F37;
  --muted:     #8C7D6C;
  --gold:      #B98A44;
  --gold-deep: #976C2C;
  --gold-soft: #F1E6D0;
  --terra:     #C05F3C;
  --line:      #E9DECC;
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-pill: 999px;
  --shadow-sm: 0 4px 14px -6px rgba(90,60,20,0.18);
  --shadow-md: 0 16px 40px -18px rgba(90,60,20,0.28);
  --ease: cubic-bezier(0.22,0.61,0.36,1);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --sans: "IBM Plex Sans Arabic","Tajawal",system-ui,sans-serif;
  --serif: "Aref Ruqaa", var(--sans);
  --disp: "Tajawal", var(--sans);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { direction:rtl; scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--sans);
  color: var(--espresso);
  line-height: 1.7;
  background:
    radial-gradient(1100px 500px at 50% -8%, #FBF5EA 0%, transparent 60%),
    var(--cream);
  overflow-x: hidden;
}
a { text-decoration:none; color:inherit; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
.cm-container { width:100%; max-width:960px; margin:0 auto; padding:0 22px; }

/* ============ الهيدر ============ */
.cm-header {
  position: sticky; top:0; z-index:60;
  background: rgba(245,238,227,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.cm-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(251,247,240,0.9); }
.cm-header-inner { display:flex; align-items:center; justify-content:space-between; height:70px; }
.cm-brand { display:flex; align-items:center; gap:11px; }
.cm-brand-text { display:flex; flex-direction:column; line-height:1.15; }
.cm-brand-text b { font-family:var(--serif); font-size:22px; color:var(--espresso); font-weight:700; }
.cm-brand-text small { font-size:11px; color:var(--gold-deep); letter-spacing:.5px; font-weight:600; }
.cm-music-btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 16px; border-radius:var(--r-pill);
  border:1.5px solid var(--gold); color:var(--gold-deep);
  font-size:13.5px; font-weight:600;
  transition: all .22s var(--ease);
}
.cm-music-btn:hover { background:var(--gold-soft); }
.cm-music-btn.playing { background:var(--gold); border-color:var(--gold); color:#fff; }
.cm-music-btn svg { flex-shrink:0; }
.cm-music-btn.playing .ico-play { animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ الهيرو ============ */
.cm-hero { position:relative; text-align:center; padding:60px 0 50px; overflow:hidden; }
.cm-hero-glow {
  position:absolute; top:-120px; left:50%; transform:translateX(-50%);
  width:600px; height:400px;
  background: radial-gradient(circle, rgba(185,138,68,0.18), transparent 65%);
  filter: blur(20px); pointer-events:none;
}
.cm-hero-inner { position:relative; }
.cm-hero-eyebrow {
  display:inline-block; font-size:13px; font-weight:700; letter-spacing:2px;
  color:var(--gold-deep); text-transform:uppercase; margin-bottom:8px;
}
.cm-hero-title {
  font-family:var(--serif); font-weight:700;
  font-size: clamp(58px, 12vw, 108px); line-height:1;
  color:var(--espresso); margin-bottom:6px;
}
.cm-ornament { display:flex; align-items:center; justify-content:center; gap:14px; margin:6px 0 16px; }
.cm-ornament .line { width:70px; height:1.5px; background:linear-gradient(90deg, transparent, var(--gold)); }
.cm-ornament .line:last-child { background:linear-gradient(270deg, transparent, var(--gold)); }
.cm-hero-tagline { font-size:clamp(15px,2.4vw,18px); color:var(--espresso-2); max-width:520px; margin:0 auto 22px; }
.cm-hero-meta { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; font-size:13.5px; color:var(--muted); }
.cm-hero-meta .dot { color:var(--gold); }

/* ============ التبويبات ============ */
.cm-tabs {
  position: sticky; top:70px; z-index:50;
  display:flex; gap:9px; overflow-x:auto; scrollbar-width:none;
  padding:14px 22px; max-width:960px; margin:0 auto;
  background: rgba(245,238,227,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-overflow-scrolling: touch;
}
.cm-tabs::-webkit-scrollbar { display:none; }
.cm-tab {
  flex-shrink:0; padding:9px 18px; border-radius:var(--r-pill);
  border:1.5px solid var(--line); background:var(--surface);
  font-size:14px; font-weight:600; color:var(--espresso-2);
  white-space:nowrap; transition: all .22s var(--ease);
}
.cm-tab:hover { border-color:var(--gold); }
.cm-tab.active { background:var(--espresso); border-color:var(--espresso); color:var(--cream); }

/* ============ الأقسام ============ */
.cm-sections { padding: 26px 22px 60px; }
.cm-section { padding-top: 26px; scroll-margin-top: 132px; }
.cm-section-head { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.cm-section-icon {
  width:44px; height:44px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:22px;
  background:var(--gold-soft); border-radius:var(--r-sm);
}
.cm-section-title { font-family:var(--disp); font-weight:800; font-size:26px; color:var(--espresso); }
.cm-section-note { font-size:13px; color:var(--muted); }
.cm-section-head .cm-section-line { flex:1; height:1px; background:var(--line); }

.cm-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.cm-item {
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-md); padding:18px 20px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  opacity:0; transform: translateY(14px);
}
.cm-item.in { opacity:1; transform:none; }
.cm-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cm-item-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.cm-item-name { display:flex; align-items:center; gap:9px; font-family:var(--disp); font-weight:700; font-size:17.5px; color:var(--espresso); }
.cm-item-emoji { font-size:19px; }
.cm-item-price { font-family:var(--disp); font-weight:800; font-size:19px; color:var(--gold-deep); white-space:nowrap; }
.cm-item-price small { font-size:12px; font-weight:600; color:var(--gold); }
.cm-item-desc { font-size:13.5px; color:var(--muted); margin-top:7px; }
.cm-tags { display:flex; gap:6px; margin-top:11px; flex-wrap:wrap; }
.cm-tag { font-size:11px; font-weight:700; padding:3px 10px; border-radius:var(--r-pill); }
.cm-tag.best { background:var(--gold-soft); color:var(--gold-deep); }
.cm-tag.new  { background:#FCE9E1; color:var(--terra); }
.cm-tag.orig { background:#E9F0E4; color:#5C7A44; }
.cm-tag.veg  { background:#E4F1EC; color:#3E8E6E; }

/* عنصر مميّز (توصية الباريستا) */
.cm-item.feat {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--espresso) 0%, #3C322B 100%);
  border-color: transparent; color:var(--cream);
  display:flex; align-items:center; gap:20px; padding:22px 24px;
}
.cm-item.feat .cm-feat-badge {
  font-size:11px; font-weight:700; color:var(--espresso);
  background:var(--gold); padding:4px 12px; border-radius:var(--r-pill);
  display:inline-block; margin-bottom:8px;
}
.cm-item.feat .cm-item-name { color:#fff; font-size:22px; }
.cm-item.feat .cm-item-desc { color:rgba(255,255,255,0.72); }
.cm-item.feat .cm-item-price { color:var(--gold); font-size:26px; }
.cm-feat-emoji {
  width:78px; height:78px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:40px;
  background:rgba(255,255,255,0.08); border-radius:var(--r-md);
}
.cm-feat-body { flex:1; }

/* ============ الفوتر ============ */
.cm-footer { background:var(--espresso); color:var(--cream); text-align:center; padding:48px 0 40px; margin-top:20px; }
.cm-foot-brand { font-family:var(--serif); font-weight:700; font-size:34px; margin-bottom:4px; }
.cm-foot-tag { color:rgba(255,255,255,0.6); font-size:14px; margin-bottom:22px; }
.cm-foot-meta { display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap; font-size:13.5px; color:rgba(255,255,255,0.8); margin-bottom:20px; }
.cm-foot-note { font-size:12.5px; color:rgba(255,255,255,0.5); border-top:1px solid rgba(255,255,255,0.12); padding-top:20px; max-width:520px; margin:0 auto; }
.cm-foot-credit { display:inline-block; margin-top:16px; font-size:13px; color:var(--gold); font-weight:600; }

/* زر العودة للأعلى */
.cm-top-btn {
  position:fixed; bottom:24px; inset-inline-start:24px; z-index:40;
  width:48px; height:48px; border-radius:50%;
  background:var(--espresso); color:var(--cream);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition: all .3s var(--ease);
}
.cm-top-btn.show { opacity:1; visibility:visible; transform:none; }
.cm-top-btn:hover { background:var(--gold-deep); }

/* ============ استجابة ============ */
@media (max-width: 680px) {
  .cm-grid { grid-template-columns:1fr; }
  .cm-item.feat { flex-direction:column; text-align:center; }
  .cm-feat-emoji { width:64px; height:64px; font-size:34px; }
  .cm-music-label { display:none; }
  .cm-hero { padding:44px 0 36px; }
  .cm-tabs { top:70px; }
}
