/* موقع المذاق السري — نفس ألوان التطبيق والمنيو المطبوع */
:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-2: #F3ECE2;
  --ink: #1F1813;
  --dim: #5C4F43;
  --muted: #7A6B5B;
  --gold: #FF7A00;
  --gold-d: #E06A00;
  --gold-soft: rgba(255, 122, 0, .12);
  --line: rgba(255, 122, 0, .22);
  --hot: #D2452B;
  --grad: #FF7A00;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(60, 35, 10, .08);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
main { flex: 1; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }

/* ===== الهيدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 240, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 46px; height: auto; }
.brand small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--gold); font-weight: 600; direction: ltr; text-align: start; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--dim); white-space: nowrap; }
.nav a:hover { background: var(--gold-soft); color: var(--gold-d); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.lang-btn {
  border: 1.5px solid var(--gold); color: var(--gold-d); border-radius: 999px;
  padding: 5px 14px; font-weight: 700; font-size: .85rem;
}
.lang-btn:hover { background: var(--gold); color: #fff; }

@media (max-width: 760px) {
  .site-header .wrap { gap: 8px; padding-block: 8px; }
  .lang-btn { margin-inline-start: auto; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 12px; font-size: .9rem; }
}

/* ===== أزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(31, 24, 19, .25); }
.btn-light { background: #fff; color: var(--gold-d); }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold-d); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ===== الرئيسية ===== */
.hero { padding: 28px 0 8px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--grad); color: #fff;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
  padding: 40px;
  min-height: 380px;
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; font-weight: 700; margin-bottom: 14px; }
.hero p { font-size: 1.1rem; opacity: .92; max-width: 30em; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-photo { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 18px 40px rgba(60, 30, 5, .3); border: 4px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { padding-top: 16px; }
  .hero-card { grid-template-columns: 1fr; padding: 24px 20px; min-height: 0; text-align: center; gap: 20px; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.6rem; font-weight: 700; position: relative; padding-bottom: 6px; }
.section-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 36px; height: 4px; border-radius: 4px; background: var(--gold); }
.section-head a { color: var(--gold-d); font-weight: 600; white-space: nowrap; }

/* العروض */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.offer {
  display: grid; grid-template-columns: 42% 1fr; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.offer .ph { background: var(--surface-2); aspect-ratio: 1; }
.offer .ph img { width: 100%; height: 100%; object-fit: cover; }
.offer .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.badge { align-self: flex-start; background: rgba(210, 69, 43, .1); color: var(--hot); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.offer h3 { font-size: 1.1rem; line-height: 1.35; }
.offer p { font-size: .88rem; color: var(--dim); }
.offer .price { margin-top: auto; }

/* بطاقات الأقسام */
/* 6 أقسام: 3 بالصف على الشاشات الكبيرة، و2 على الجوال */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2);
  box-shadow: var(--shadow);
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat:hover img { transform: scale(1.05); }
.cat span {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 10px; color: #fff; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(transparent, rgba(20, 12, 5, .78));
}

/* شريط التطبيق */
.app-band {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
  background: var(--ink); color: #F3ECE2; border-radius: 28px; padding: 28px 32px; overflow: hidden;
}
.app-band .app-logo { width: 110px; background: var(--bg); border-radius: 24px; padding: 8px; }
.app-band h2 { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.app-band p { color: #CDBFAE; }
.soon { display: inline-block; margin-top: 12px; background: rgba(240, 181, 110, .15); color: #FFB060; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .9rem; }
@media (max-width: 600px) { .app-band { grid-template-columns: 1fr; text-align: center; } .app-band .app-logo { margin-inline: auto; width: 90px; } }

/* ===== المنيو ===== */
.page-title { padding-block: 28px 6px; }
.page-title h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page-title p { color: var(--muted); }
.chips-bar { position: sticky; top: 64px; z-index: 10; background: rgba(250, 246, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .chips-bar { top: 98px; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--dim); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.menu-section { padding-top: 28px; scroll-margin-top: 130px; }
.menu-section h2 { font-size: 1.45rem; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.menu-section h2 small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph img.portrait { object-fit: contain; padding: 8px 0; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.card h3 { font-size: 1.05rem; line-height: 1.35; }
.card .alt { font-size: .78rem; color: var(--muted); direction: ltr; text-align: start; }
html[dir="ltr"] .card .alt { direction: rtl; }
.card p { font-size: .88rem; color: var(--dim); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--gold-soft); color: var(--gold-d); }
.tag.hot { background: rgba(210, 69, 43, .1); color: var(--hot); }
.price { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; color: var(--gold-d); font-weight: 700; }
.price b { font-size: 1.2rem; }
.price small { font-size: .78rem; font-weight: 600; }
.price s { color: var(--muted); font-weight: 500; font-size: .9rem; }
.vat { margin-top: 30px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ===== الفروع ===== */
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 18px; }
@media (max-width: 700px) { .branches { grid-template-columns: 1fr; } }
.branch { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.branch h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.branch h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.hours { display: grid; gap: 6px; font-size: .9rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { color: var(--dim); text-align: end; }
.hours dd span { display: block; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hours dd span { direction: rtl; }
.branch .actions { display: flex; gap: 8px; margin-top: auto; }
.branch .actions .btn { flex: 1; padding: 10px 12px; font-size: .95rem; }

/* ===== تواصل ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding-top: 18px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 1.3rem; }
.panel p { color: var(--dim); }
.panel .btn { align-self: flex-start; }
.panel .row { display: flex; gap: 10px; flex-wrap: wrap; }
.panel.highlight { background: var(--grad); color: #fff; border: 0; }
.panel.highlight p { color: rgba(255, 255, 255, .9); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ===== الفوتر ===== */
.site-footer { margin-top: 56px; background: var(--ink); color: #CDBFAE; }
.site-footer .wrap { padding-block: 32px 24px; display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr 1fr; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; font-size: .92rem; }
.site-footer a:hover { color: #FFB060; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 54px; background: var(--bg); border-radius: 14px; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 1.1rem; display: block; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.notfound { padding: 80px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.notfound img { width: 120px; }
