/* واجهة الزبائن: تصميم مستقل عن لوحة الموظفين، للموبايل أولًا. الألوان من اللوكو. */
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); font-weight: 400; unicode-range: U+0000-00FF; font-display: swap; }

:root {
  --plum: #4b144d; --plum-700: #36093a; --plum-900: #22052a;
  --rose: #8a1c3c; --gold: #c9a45c; --gold-200: #ecdcb6;
  --ink: #23182b; --muted: #6e6178; --line: #ece2ec;
  --bg: #fbf8fb; --card: #ffffff; --soft: #f6eef6;
  --wa: #1f9e57;
  --r: 18px;
  --shadow: 0 1px 2px rgba(34, 5, 42, .05), 0 10px 30px rgba(34, 5, 42, .08);
  --font: 'Plex Arabic', 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; font-size: 16px; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); text-align: center; }

/* الشريط العلوي */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 42px; width: auto; }
.brand b { font-size: 1.05rem; color: var(--plum); white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.nav a:hover { background: var(--soft); color: var(--plum); }
.staff-link { text-decoration: none; font-size: .85rem; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.staff-link:hover { color: var(--plum); border-color: var(--plum); }
@media (max-width: 760px) { .nav { display: none; } .staff-link { margin-inline-start: auto; } }

/* الواجهة الرئيسية */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #7a2a6e 0%, transparent 60%), linear-gradient(160deg, var(--plum) 0%, var(--plum-900) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; background-image: radial-gradient(var(--gold-200) 1px, transparent 1px); background-size: 22px 22px; }
.hero .wrap { position: relative; z-index: 1; padding: 56px 16px 64px; display: grid; gap: 28px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.25; font-weight: 700; }
.hero h1 span { color: var(--gold-200); }
.hero p { margin: 12px 0 0; font-size: 1.1rem; color: #eadcec; max-width: 34em; }
.hero-logo { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); max-width: 300px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--plum-900); box-shadow: 0 6px 18px rgba(201, 164, 92, .35); }
.btn.white { background: #fff; color: var(--plum); }
.btn.ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.plum { background: var(--plum); color: #fff; }
.btn.line { border-color: var(--line); color: var(--plum); background: #fff; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 32px 16px 40px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-logo { grid-row: 1; justify-self: center; max-width: 120px; padding: 10px; border-radius: 20px; }
  .cta { justify-content: center; }
  .cta .btn { flex: 1 1 100%; }
}

/* شريط الأقسام */
.depts { background: #fff; border-bottom: 1px solid var(--line); }
.depts .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.depts .wrap::-webkit-scrollbar { display: none; }
.dept { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--plum); font-weight: 600; font-size: .92rem; white-space: nowrap; }

/* الأقسام */
section.block { padding: 48px 0 8px; }
.head { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.head h2 { margin: 0; font-size: clamp(1.35rem, 3.5vw, 1.75rem); color: var(--plum-900); }
.head p { margin: 0; color: var(--muted); }
.head .bar { width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--rose)); margin-bottom: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card .media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--plum), var(--rose)); display: grid; place-items: center; color: #fff; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--rose); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .meta { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; margin-top: auto; }
.card.video .media { aspect-ratio: 9 / 12; }
.play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--plum); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.empty { text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 28px 16px; }

/* التوصيل */
.delivery { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 26px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--plum)); box-shadow: var(--shadow); }
.delivery .ico { width: 72px; height: 72px; border-radius: 20px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 2rem; }
.delivery h3 { margin: 0 0 4px; font-size: 1.35rem; }
.delivery p { margin: 0 0 12px; color: #f3e3ec; }
.delivery .nums { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .delivery { grid-template-columns: 1fr; text-align: center; } .delivery .ico { margin: 0 auto; } .delivery .nums { justify-content: center; } }

/* الأرقام */
.phones { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.phone { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: inherit; }
.phone:hover { border-color: var(--plum); }
.phone .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--plum); display: grid; place-items: center; }
.phone b { display: block; font-size: .95rem; }
.phone span { color: var(--muted); direction: ltr; unicode-bidi: isolate; font-size: .95rem; }

/* تابعونا */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--plum); }
.social a:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

/* الموقع */
.visit { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.visit .card { padding: 20px; gap: 10px; }
.visit .row { display: flex; gap: 10px; align-items: flex-start; }
.visit .row .ic { color: var(--rose); margin-top: 4px; }
@media (max-width: 700px) { .visit { grid-template-columns: 1fr; } }

/* قريبًا */
.soon { margin-top: 8px; text-align: center; padding: 30px 16px; border-radius: 24px; background: var(--soft); border: 1px dashed #d9c2d9; }
.soon h3 { margin: 0 0 4px; color: var(--plum); }
.soon p { margin: 0; color: var(--muted); }

/* التذييل */
footer.foot { margin-top: 56px; background: var(--plum-900); color: #d9c9dc; }
footer.foot .wrap { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer.foot b { color: #fff; }
footer.foot a { color: #d9c9dc; text-decoration: none; }
footer.foot a:hover { color: #fff; }

/* أزرار عائمة على الموبايل */
.fab { position: fixed; inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: none; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.fab .wa { background: var(--wa); } .fab .call { background: var(--plum); }
@media (max-width: 760px) { .fab { display: flex; } footer.foot .wrap { padding-bottom: 96px; } }
.preview { background: #fff4d6; color: #6b4d00; text-align: center; padding: 8px 16px; font-size: .9rem; }
.follow { margin-top: 20px; }
.follow h3 { margin: 0 0 10px; color: var(--plum); }
.card.map { padding: 20px; justify-content: center; align-items: center; gap: 10px; text-align: center; }
.big-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); color: var(--plum); display: grid; place-items: center; font-size: 1.6rem; }
.social.dark a { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.social.dark a:hover { background: rgba(255, 255, 255, .12); }

/* المعاينة: ما لا يراه الزبائن بعد */
.drafts .card { opacity: .85; border-style: dashed; }
.badge.why { background: #6b5a64; color: #fff; }
