/* نظام حجز مواعيد: الستايل المشترك (الرئيسية وصفحة الحجز) */
:root {
  --bg: #f8f5f1;
  --surface: #efe9e2;
  --card: #fffdfa;
  --ink: #1f2b28;
  --muted: #646b67;
  --line: #e4ddd4;
  --accent: #3f6b5f;
  --accent-ink: #fff;
  --accent-soft: #e3ebe7;
  --nude: #d9c2b0;
  --nude-soft: #efe3d9;
  --wa: #1f7a4d;
  --display: 'El Messiri', serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --r: 16px;
  --arch: 999px 999px 18px 18px;
  --wrap: 1120px;
  --head-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg.lucide { width: 20px; height: 20px; stroke-width: 1.5; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
bdi { unicode-bidi: isolate; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 16px; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { box-shadow: 0 8px 22px rgba(63, 107, 95, .22); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.wa { background: var(--wa); }
.btn.block { width: 100%; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.link { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { background: var(--surface); }

/* الهيدر */
.header { position: sticky; top: 0; z-index: 30; background: rgba(248, 245, 241, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in { height: var(--head-h); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; min-width: 0; }
.brand-mark { width: 38px; height: 44px; border-radius: var(--arch); background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 20px; font-weight: 700; padding-top: 4px; flex: none; }
.brand-text { line-height: 1.15; min-width: 0; }
.brand-text b { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: 0; }
.brand-text small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { height: 40px; width: auto; }
.nav { display: none; gap: 26px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

/* عناوين الأقسام */
.section { padding: 72px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--accent); letter-spacing: .01em; }
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.sec-title { font-size: clamp(30px, 6vw, 42px); margin: 10px 0 10px; }
.sec-lead { color: var(--muted); max-width: 560px; }
.sec-head { margin-bottom: 30px; }

/* الهيرو */
.hero { padding: 18px 0 40px; overflow: hidden; }
.hero-in { display: grid; gap: 28px; }
.hero-text { padding-top: 6px; }
.hero h1 { font-size: clamp(38px, 10vw, 64px); line-height: 1.22; margin: 14px 0 14px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 460px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--accent); }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art .arch { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--nude-soft); }
.hero-art .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::before { content: ''; position: absolute; inset: 22px -14px -14px 22px; border-radius: var(--arch); border: 1px solid var(--nude); z-index: -1; }
.hero-badge { position: absolute; bottom: 22px; inset-inline-start: -8px; background: var(--card); border-radius: 14px; padding: 12px 16px; box-shadow: 0 14px 34px rgba(31, 43, 40, .12); display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.hero-badge b { display: block; font-size: 14.5px; }
.hero-badge .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
@media (min-width: 900px) {
  .hero { padding: 40px 0 80px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; }
  .hero-text { padding-top: 0; }
}

/* الخدمات */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 22px; padding: 2px 20px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s; }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.svc-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; padding-inline-end: 16px; background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: inset 0 0 0 1px var(--nude), 0 10px 26px rgba(31, 43, 40, .06); }
.svc-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--nude-soft); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc h3 { font-size: 19px; line-height: 1.4; }
.svc p { color: var(--muted); font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 13.5px; }
.svc-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.svc-meta svg { width: 15px; height: 15px; }
.svc-meta .price { color: var(--ink); font-weight: 500; }
.svc-meta .go { margin-inline-start: auto; color: var(--accent); font-weight: 500; }

/* ليش نقاء */
.why { background: var(--card); }
.why-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item .ic { width: 52px; height: 60px; border-radius: var(--arch); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; padding-top: 4px; }
.why-item .ic svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 20px; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* خطوات الحجز */
.steps-list { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step-card::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--nude); line-height: 1; display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 19px; margin-bottom: 4px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* الأخصائيات */
.team { display: grid; gap: 14px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 64px; height: 74px; border-radius: var(--arch); background: var(--nude-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 700; overflow: hidden; margin-bottom: 12px; padding-top: 6px; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.has-img { padding: 0; }
.member h3 { font-size: 20px; }
.member .role { color: var(--accent); font-size: 14px; font-weight: 500; }
.member p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.member .link { margin-top: auto; padding-top: 14px; font-size: 15px; }

/* المكان */
.place { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.place .ph { border-radius: var(--r); overflow: hidden; background: var(--nude-soft); }
.place .ph img { width: 100%; height: 100%; object-fit: cover; }
.place .ph.tall { grid-row: span 2; border-radius: var(--arch); aspect-ratio: 4 / 5.6; }
.place .ph.wide { aspect-ratio: 4 / 3; }
.place .note { align-self: end; padding: 18px; border-radius: var(--r); background: var(--accent); color: #fff; font-size: 14.5px; line-height: 1.7; }
.place .note b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
@media (min-width: 900px) {
  .place-sec .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
  .place-sec .sec-head { margin: 0; }
}

/* الموقع والدوام */
.visit { display: grid; gap: 16px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }
.visit-card { padding: 24px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.visit-card h3 { font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.visit-card h3 svg { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: left; direction: ltr; unicode-bidi: plaintext; }
.hours tr.today td { font-weight: 600; color: var(--accent); }
.hours tr.closed td:last-child { color: var(--muted); }
.addr { color: var(--muted); margin-bottom: 14px; }
.map { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* شريط الحجز الأخير */
.cta { padding: 64px 0; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; background: var(--accent); color: #fff; padding: 44px 26px; text-align: center; }
.cta-box::before, .cta-box::after { content: ''; position: absolute; width: 180px; height: 220px; border-radius: var(--arch); border: 1px solid rgba(255, 255, 255, .18); }
.cta-box::before { top: -60px; inset-inline-start: -50px; }
.cta-box::after { bottom: -90px; inset-inline-end: -30px; }
.cta-box h2 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 8px; position: relative; }
.cta-box p { opacity: .85; margin-bottom: 24px; position: relative; }
.cta-box .btn { background: #fff; color: var(--accent); position: relative; }

/* الفوتر */
.footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.footer-in { display: grid; gap: 22px; }
.footer .brand-text b { color: #fff; }
.footer .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .8); }
.footer-bottom a:hover { color: #fff; }

/* زر الواتساب العائم */
.wa-float { position: fixed; z-index: 25; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(31, 122, 77, .32); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

/* رسائل */
.toast { position: fixed; z-index: 90; left: 50%; top: 14px; transform: translate(-50%, -160%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; max-width: calc(100% - 28px); width: max-content; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); transition: transform .3s; display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #8f3b2c; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.skel { background: linear-gradient(90deg, var(--surface), #f5f0ea, var(--surface)); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: var(--r); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty-note { color: var(--muted); text-align: center; padding: 30px 10px; }
