/* =====================================================================
   الموقع التعريفي — ألوان العميل من لوحة التحكم (--p الأساسي / --a الثانوي)
   ===================================================================== */
:root {
  --p: #440206;
  --a: #EEE1D1;
  --ink: #23130F;
  --ink-2: #5A4741;
  --muted: #8E7D76;
  --bg: color-mix(in srgb, var(--a) 28%, #FFFDF9);
  --bg-2: color-mix(in srgb, var(--a) 55%, #FFFFFF);
  --card: #FFFFFF;
  --line: color-mix(in srgb, var(--p) 10%, #EDE5DB);
  --p-soft: color-mix(in srgb, var(--p) 8%, transparent);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --num: 'Fraunces', Georgia, serif;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(35, 19, 15, .04), 0 12px 32px -14px rgba(35, 19, 15, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.stars { color: #E3A72F; letter-spacing: 2px; }
.stars span { opacity: .25; }
::selection { background: var(--p); color: var(--a); }

/* ---------------- الشريط العلوي ---------------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--p) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--a); border-bottom: 1px solid color-mix(in srgb, var(--a) 12%, transparent); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.nav-wide { height: 38px; width: auto; max-width: 180px; object-fit: contain; }
.nav-mark { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; opacity: .85; transition: .2s; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, var(--a) 12%, transparent); }
.nav-links .nav-cta { background: var(--a); color: var(--p); opacity: 1; font-weight: 600; margin-inline-start: 8px; }
.nav-links .nav-cta:hover { background: #fff; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle .ic { width: 26px; height: 26px; }

/* ---------------- الواجهة ---------------- */
.hero { background: var(--p); color: var(--a); position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; inset-inline-start: -260px; bottom: -420px; border: 110px solid color-mix(in srgb, var(--a) 5%, transparent); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--a) 10%, transparent), transparent 70%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--a) 12%, transparent); font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.hero-copy > p { font-size: clamp(17px, 1.6vw, 20px); opacity: .82; margin-top: 18px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 20px; border-radius: 14px; background: var(--a); color: var(--p); font-weight: 600; font-size: 17px; line-height: 1.15; transition: transform .2s var(--ease), box-shadow .2s; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(0,0,0,.5); }
.store-btn .ic { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.store-btn span { direction: ltr; text-align: right; }
.btn-ghost-light { padding: 12px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--a) 35%, transparent); font-weight: 500; transition: .2s; }
.btn-ghost-light:hover { background: color-mix(in srgb, var(--a) 10%, transparent); }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 36px; }
.hero-facts b { display: block; font-family: var(--num); font-size: 34px; line-height: 1; }
.hero-facts span { font-size: 14px; opacity: .7; }
.open-dot { position: relative; padding-inline-end: 16px; }
.open-dot::after { content: ""; position: absolute; top: 6px; inset-inline-end: 0; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hero-visual { display: flex; justify-content: center; }
.hero-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }

/* موكاب الجوال */
.phone { width: 290px; height: 590px; border-radius: 46px; background: #0E0E0E; padding: 11px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), inset 0 0 0 2px #2a2a2a; position: relative; transform: rotate(-4deg); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 14px; background: #0E0E0E; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); color: var(--ink); font-size: 12px; display: flex; flex-direction: column; }
.ph-head { background: var(--p); color: var(--a); padding: 52px 18px 20px; }
.ph-head small { opacity: .7; }
.ph-head h5 { font-size: 17px; margin: 2px 0 12px; }
.ph-points { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--a) 13%, transparent); }
.ph-points b { font-family: var(--num); font-size: 20px; }
.ph-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ph-usual { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.ph-usual small { opacity: .6; }
.ph-usual i { font-style: normal; background: var(--p); color: var(--a); border-radius: 9px; padding: 5px 10px; font-size: 11px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ph-grid div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.ph-grid img, .ph-grid i { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); font-style: normal; font-size: 26px; margin-bottom: 6px; }
.ph-grid b { font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- الأقسام ---------------- */
.sec { padding: 96px 0; }
.sec:nth-of-type(even) { background: var(--bg-2); }
.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--p); background: var(--p-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.sec h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.3px; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* عن الكافيه */
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-in:not(:has(.about-img)) { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.about-img { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; color: var(--ink-2); margin-top: 18px; line-height: 1.95; }

/* المنيو */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; position: sticky; top: 80px; z-index: 5; }
.tab { font: inherit; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink-2); font-weight: 500; transition: .2s; }
.tab:hover { border-color: var(--p); }
.tab.active { background: var(--p); color: var(--a); border-color: var(--p); }
.cat-block + .cat-block { margin-top: 48px; }
.cat-block.hide { display: none; }
.cat-title { font-size: 22px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat-title small { font-size: 13px; font-weight: 500; color: var(--muted); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.item { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; transition: transform .25s var(--ease), box-shadow .25s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.item-img { width: 112px; height: 112px; flex: none; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; font-size: 36px; position: relative; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.flag { position: absolute; top: 6px; inset-inline-start: 6px; font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--p); color: var(--a); padding: 1px 8px; border-radius: 6px; }
.item-body { flex: 1; min-width: 0; padding-top: 2px; }
.item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item h4 { font-size: 17px; }
.item-en { display: block; font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; }
.item p { font-size: 14px; color: var(--ink-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-family: var(--num); font-weight: 700; font-size: 19px; white-space: nowrap; color: var(--p); }
.price small { font-family: var(--font); font-size: 12px; font-weight: 500; }
.price del { font-size: 13px; color: var(--muted); font-weight: 400; }
.kcal { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); background: var(--bg-2); padding: 1px 9px; border-radius: 6px; }
.menu-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 36px; }

/* العروض */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.offer { border-radius: var(--r); overflow: hidden; background: var(--p); color: var(--a); position: relative; min-height: 190px; display: flex; align-items: flex-end; }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 75%); z-index: 1; }
.offer:not(:has(img))::before { background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--a) 14%, transparent), transparent); }
.offer > div { position: relative; z-index: 2; padding: 22px; }
.offer h4 { font-size: 21px; }
.offer p { opacity: .85; }
.code { display: inline-block; margin-top: 10px; padding: 3px 12px; border: 1.5px dashed color-mix(in srgb, var(--a) 60%, transparent); border-radius: 8px; font-size: 14px; }

/* الولاء */
.loyalty { background: var(--p) !important; color: var(--a); }
.loyalty .eyebrow { background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.loyalty-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.perks li { padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--a) 8%, transparent); border: 1px solid color-mix(in srgb, var(--a) 14%, transparent); }
.perks b { display: block; font-family: var(--num); font-size: 32px; line-height: 1.1; }
.perks span { opacity: .8; font-size: 14.5px; }
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier-card { padding: 20px 22px; border-radius: 18px; color: #fff; background: linear-gradient(130deg, var(--t), color-mix(in srgb, var(--t) 50%, #000)); display: flex; flex-direction: column; box-shadow: 0 14px 34px -18px rgba(0,0,0,.6); transition: transform .25s var(--ease); }
.tier-card:nth-child(2) { margin-inline-start: 24px; }
.tier-card:nth-child(3) { margin-inline-start: 48px; }
.tier-card:hover { transform: translateX(-6px); }
.tier-card strong { font-size: 20px; }
.tier-card span { font-size: 13.5px; opacity: .85; }
.tier-card small { font-size: 13px; opacity: .9; margin-top: 4px; }

/* الفروع */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.branch { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.branch-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.branch-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.branch-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.branch-top h3 { font-size: 21px; }
.status { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #FCEBEA; color: #B42318; white-space: nowrap; }
.status.on { background: #E5F5EB; color: #217A45; }
.addr { color: var(--ink-2); font-size: 14.5px; display: flex; gap: 6px; align-items: flex-start; }
.addr .ic { margin-top: 4px; color: var(--muted); }
.types { display: flex; flex-wrap: wrap; gap: 6px; }
.types span { font-size: 12.5px; padding: 3px 10px; border-radius: 8px; background: var(--p-soft); color: var(--p); display: inline-flex; gap: 5px; align-items: center; }
.types .ic { width: 14px; height: 14px; }
.hours summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--p); list-style: none; }
.hours summary::-webkit-details-marker { display: none; }
.hours summary::after { content: " ▾"; }
.hours[open] summary::after { content: " ▴"; }
.hours ul { list-style: none; padding: 10px 0 0; margin: 0; font-size: 14px; }
.hours li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.hours li.today { color: var(--ink); font-weight: 700; }
.branch-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; border: 1px solid var(--line); background: var(--card); transition: .2s; }
.btn-sm:hover { border-color: var(--p); }
.btn-sm.primary { background: var(--p); color: var(--a); border-color: var(--p); }

/* التقييمات */
.rating-sum { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rating-sum .big { font-family: var(--num); font-size: 40px; font-weight: 700; color: var(--ink); }
.rating-sum .stars { font-size: 20px; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(360px, 82%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; }
.review { margin: 0; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.8; flex: 1; }
.review blockquote::before { content: "“"; font-family: var(--num); font-size: 44px; line-height: 0; vertical-align: -18px; color: var(--p); opacity: .35; margin-inline-end: 4px; }
.review figcaption { display: flex; gap: 10px; align-items: center; }
.review figcaption small { display: block; color: var(--muted); font-size: 12.5px; }
.av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p); color: var(--a); font-weight: 700; }

/* التطبيق */
.app { background: transparent !important; }
.app-in { background: var(--p); color: var(--a); border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.app-in::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; inset-inline-start: -140px; top: -200px; border: 70px solid color-mix(in srgb, var(--a) 6%, transparent); }
.app-in > * { position: relative; z-index: 1; }
.app .eyebrow { background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.app-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; opacity: .9; }
.app-list li { display: flex; gap: 10px; align-items: center; }
.app-icon { width: 170px; height: 170px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transform: rotate(6deg); }

/* الفوتر */
.foot { background: color-mix(in srgb, var(--p) 88%, #000); color: var(--a); padding: 64px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.foot-brand strong { font-size: 22px; }
.foot-brand p { opacity: .7; margin-top: 14px; max-width: 320px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--a) 9%, transparent); font-size: 14px; transition: .2s; }
.socials a:hover { background: color-mix(in srgb, var(--a) 18%, transparent); }
.foot-col h4 { font-size: 15px; margin-bottom: 14px; opacity: .6; font-weight: 600; }
.foot-col a { display: block; padding: 4px 0; opacity: .88; }
.foot-col a:hover { opacity: 1; text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--a) 12%, transparent); font-size: 13px; opacity: .65; }
.foot-bottom .powered b { font-family: var(--num); direction: ltr; unicode-bidi: isolate; }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------- الجوال ---------------- */
@media (max-width: 960px) {
  .hero-in, .about-in, .loyalty-in { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 72px; }
  .hero-visual { order: 2; }
  .phone { transform: none; width: 260px; height: 530px; }
  .items { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .app-in { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .app-icon { width: 110px; height: 110px; border-radius: 28px; position: absolute !important; top: 24px; inset-inline-end: 24px; opacity: .9; }
  .tier-card:nth-child(n) { margin-inline-start: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px; background: var(--p); border-bottom: 1px solid color-mix(in srgb, var(--a) 12%, transparent); display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .sec { padding: 68px 0; }
  .hero-facts { gap: 24px; }
  .perks { grid-template-columns: 1fr; }
  .item-img { width: 88px; height: 88px; }
  .tabs { top: 76px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .tab { white-space: nowrap; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* أرقام وإيميلات داخل نص عربي */
.foot-col a.ltr { text-align: right; }
