/* =========================================================
   أركان: تنسيقات الموقع العام
   ========================================================= */

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ---------- الشرفات النجدية (العنصر البصري المميز) ---------- */
.najdi {
  height: 16px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath fill-rule='evenodd' d='M2 16V12H6V8H10V4H22V8H26V12H30V16ZM14 16L16 11.5L18 16Z'/%3E%3C/svg%3E") repeat-x left bottom / 32px 16px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath fill-rule='evenodd' d='M2 16V12H6V8H10V4H22V8H26V12H30V16ZM14 16L16 11.5L18 16Z'/%3E%3C/svg%3E") repeat-x left bottom / 32px 16px;
}
.najdi.paper { background: var(--paper); }
.najdi.sand { background: var(--sand); }
.najdi.coffee { background: var(--coffee); }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 249, .88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--hh); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 40px; height: 40px; }
.brand b { font-family: var(--head); font-size: 22px; font-weight: 800; color: var(--coffee); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; margin-top: -2px; }
.nav { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--coffee-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--sand); }
.nav a.active { background: var(--coffee); color: #fff; }
.head-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.loc-pill { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; max-width: 260px; }
.loc-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-pill .ic { color: var(--saffron); }
.loc-pill:hover { border-color: var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- مؤشر نطاق التغطية ---------- */
.meter { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.meter i { display: flex; gap: 3px; align-items: flex-end; }
.meter i b { width: 5px; border-radius: 2px; background: var(--sand-2); }
.meter i b:nth-child(1) { height: 6px; }
.meter i b:nth-child(2) { height: 9px; }
.meter i b:nth-child(3) { height: 12px; }
.meter i b:nth-child(4) { height: 15px; }
.meter i b.on { background: var(--saffron); }

/* ---------- الواجهة الرئيسية (Hero) ---------- */
.hero { position: relative; background: var(--coffee); color: #F3E9DC; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 380px at 12% 20%, rgba(201, 151, 63, .22), transparent 70%),
    radial-gradient(520px 420px at 85% 100%, rgba(224, 130, 42, .18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%23E8CF97' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.3; font-weight: 800; letter-spacing: -.5px; }
.hero-lead { margin-top: 20px; font-size: 18px; color: #DCCBB6; max-width: 54ch; line-height: 1.9; }
.search { margin-top: 34px; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 22px; padding: 7px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.search label { flex: 1; display: flex; align-items: center; gap: 10px; padding-inline: 14px; color: var(--muted); min-width: 0; }
.search input { border: 0; outline: 0; background: transparent; height: 50px; width: 100%; color: var(--text); font-size: 16px; }
.search input::placeholder { color: #A8978A; }
.search-loc { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; border-radius: 15px; border: 0; background: var(--sand); color: var(--coffee); cursor: pointer; font-weight: 500; font-size: 14.5px; max-width: 230px; }
.search-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-loc .ic { color: var(--saffron); }
.search .btn { height: 50px; border-radius: 15px; padding: 0 26px; }
.hero-tags { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #BFA88F; }
.hero-tags a { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(232, 207, 151, .25); color: #EBD6A6; font-size: 13.5px; }
.hero-tags a:hover { background: rgba(232, 207, 151, .1); }
.hero-art { position: relative; height: 500px; }
.arch { position: absolute; overflow: hidden; border-radius: 999px 999px 26px 26px; background: var(--coffee-2); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .65); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.a1 { width: 46%; height: 86%; inset-inline-end: 0; top: 0; }
.arch.a2 { width: 38%; height: 62%; inset-inline-end: 50%; top: 18%; }
.arch.a3 { width: 30%; height: 40%; inset-inline-start: 0; bottom: 6%; }
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(232, 207, 151, .25); }
.cov-card { position: absolute; inset-inline-start: 4%; top: 6%; background: rgba(30, 19, 12, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(232, 207, 151, .2); border-radius: 18px; padding: 14px 16px; width: min(300px, 62%); color: #EADCC8; }
.cov-card b { display: block; font-family: var(--head); font-size: 14px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.cov-path { display: flex; flex-direction: column; gap: 6px; }
.cov-path span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cov-path span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.cov-path span:nth-child(2) { padding-inline-start: 12px; }
.cov-path span:nth-child(3) { padding-inline-start: 24px; }
.cov-path span:nth-child(4) { padding-inline-start: 36px; color: #fff; font-weight: 600; }
.cov-path span:nth-child(4)::before { background: var(--saffron); box-shadow: 0 0 0 4px rgba(224, 130, 42, .25); }
.hero .najdi { position: absolute; bottom: -1px; inset-inline: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .arch { animation: archIn .9s cubic-bezier(.2, .7, .2, 1) both; }
  .arch.a2 { animation-delay: .12s; }
  .arch.a3 { animation-delay: .24s; }
  .cov-card { animation: rise .7s .5s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes archIn {
  from { opacity: 0; clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
}

/* ---------- الأقسام ---------- */
.sec { padding-block: 88px; }
.sec.tight { padding-block: 64px; }
.sec.sand { background: var(--sand); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.sec-title { font-size: clamp(26px, 2.6vw, 34px); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-deep); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link-more:hover { color: var(--saffron); }

/* ---------- بطاقات التصنيفات ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.cat-tile:hover { border-color: var(--gold); background: #FFFDF9; }
.cat-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--coffee); flex: none; }
.cat-tile:hover .cat-ico { background: var(--coffee); color: var(--gold-soft); }
.cat-tile b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.cat-tile small { color: var(--muted); font-size: 13px; }
.cat-tile .desc { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }

/* ---------- بطاقات الخدمات ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid.two { grid-template-columns: repeat(2, 1fr); }
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.svc-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.svc-media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-2); overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-media .chip { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .94); }
.svc-media .partial { position: absolute; top: 12px; inset-inline-start: auto; inset-inline-end: 12px; background: var(--coffee); color: var(--gold-soft); }
.svc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-body h3 { font-size: 17.5px; line-height: 1.55; font-weight: 700; }
.svc-body p { color: var(--muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-scope { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--coffee-2); }
.svc-scope span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.svc-scope span em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-scope .ic { color: var(--saffron); width: 16px; height: 16px; }
.svc-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.svc-foot .who { min-width: 0; }
.svc-foot .who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.svc-foot .who small { font-size: 12.5px; color: var(--muted); }

/* ---------- شرح نطاق التغطية ---------- */
.cov-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.nest { border-radius: 28px; padding: 44px 18px 18px; position: relative; border: 1.5px solid; }
.nest > .lbl { position: absolute; top: 12px; inset-inline-start: 18px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.nest.l1 { background: #fff; border-color: var(--line); }
.nest.l1 > .lbl { color: var(--muted); }
.nest.l2 { background: var(--sand); border-color: var(--sand-2); }
.nest.l2 > .lbl { color: var(--coffee-2); }
.nest.l3 { background: #F0E3CC; border-color: #E5D2B0; }
.nest.l3 > .lbl { color: var(--gold-deep); }
.nest.l4 { background: var(--coffee); border-color: var(--coffee); color: #fff; padding: 44px 18px 22px; }
.nest.l4 > .lbl { color: var(--gold-soft); }
.nest.l4 p { font-size: 14.5px; color: #DCCBB6; }
.you { display: inline-flex; align-items: center; gap: 6px; background: var(--saffron); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.rules { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.rule .yes { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); flex: none; }
.rule .no { background: var(--danger-soft); color: var(--danger); }
.rule b { font-weight: 600; display: block; font-size: 15px; }
.rule small { color: var(--muted); font-size: 13.5px; display: block; }

/* ---------- شبكة العلاقات ---------- */
.net { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.net-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px; box-shadow: var(--shadow-sm); }
.net-card svg { width: 100%; height: auto; display: block; }
.net-card svg text { font-family: var(--body); }
.net-card svg a { cursor: pointer; }
.net-card a:hover circle.n, .net-card a:hover rect.n { stroke: var(--saffron); }
.net-points { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.net-points div { display: flex; gap: 14px; }
.net-points .ic { color: var(--gold-deep); margin-top: 4px; }
.net-points b { display: block; font-weight: 600; }
.net-points p { color: var(--muted); font-size: 15px; }

/* ---------- المناطق ---------- */
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reg-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 22px;
  border-radius: 120px 120px var(--r-lg) var(--r-lg); background: var(--coffee); color: #fff; overflow: hidden; isolation: isolate; transition: transform .2s;
}
.reg-card:hover { transform: translateY(-3px); }
.reg-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(30, 19, 12, .55)), var(--rg, linear-gradient(160deg, #5C3B23, #3A2417)); }
.reg-card .najdi { position: absolute; top: 28px; inset-inline: 0; opacity: .35; }
.reg-card b { font-family: var(--head); font-size: 19px; font-weight: 700; line-height: 1.5; }
.reg-card small { color: #E5D5C0; font-size: 13.5px; }
.reg-card .cnt { position: absolute; top: 58px; inset-inline-start: 22px; font-size: 12.5px; color: var(--gold-soft); display: flex; align-items: center; gap: 6px; }
.reg-card[data-tone="0"] { --rg: linear-gradient(160deg, #6B4226, #2E1C11); }
.reg-card[data-tone="1"] { --rg: linear-gradient(160deg, #9C6F22, #4A2E18); }
.reg-card[data-tone="2"] { --rg: linear-gradient(160deg, #B9601C, #4A2412); }
.reg-card[data-tone="3"] { --rg: linear-gradient(160deg, #7A5A2E, #2E1C11); }
.reg-card[data-tone="4"] { --rg: linear-gradient(160deg, #8A3F2B, #2E1510); }
.reg-card[data-tone="5"] { --rg: linear-gradient(160deg, #5C3B23, #1E130C); }
.reg-card[data-tone="6"] { --rg: linear-gradient(160deg, #A0782F, #3A2417); }

/* ---------- شريط الدعوة ---------- */
.cta { position: relative; background: var(--saffron); border-radius: var(--r-xl); padding: 52px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; overflow: hidden; isolation: isolate; color: var(--ink); }
.cta::before { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .14); z-index: -1; }
.cta h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; color: var(--ink); }
.cta p { margin-top: 10px; font-size: 17px; max-width: 56ch; color: #3B1F08; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--ink); color: #C7B49F; position: relative; }
.site-footer .najdi { position: absolute; top: -15px; inset-inline: 0; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 72px 40px; }
.foot-grid h2 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-weight: 600; font-family: var(--head); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-brand p { margin-top: 16px; font-size: 14.5px; max-width: 36ch; line-height: 1.9; }
.foot-brand .brand b { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { color: var(--gold); margin-top: 4px; }
.socials { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(232, 207, 151, .18); display: grid; place-items: center; color: var(--gold-soft); }
.socials a:hover { background: rgba(232, 207, 151, .1); }
.socials.light a { border-color: var(--line); color: var(--coffee); }
.foot-bottom { border-top: 1px solid rgba(232, 207, 151, .12); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; flex-wrap: wrap; }

/* ---------- رأس الصفحات الداخلية ---------- */
.phero { background: var(--coffee); color: #E5D5C0; position: relative; padding-block: 44px 64px; overflow: hidden; isolation: isolate; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 90% 0%, rgba(201, 151, 63, .22), transparent 70%); }
.phero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-top: 10px; }
.phero p.lead { margin-top: 12px; font-size: 17px; max-width: 62ch; color: #D8C6B0; }
.phero .najdi { position: absolute; bottom: -1px; inset-inline: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: #BFA88F; }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a:hover { color: var(--saffron); }
.reg-intro { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.doc-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: #CDB9A2; }
.doc-meta span { display: flex; align-items: center; gap: 6px; }

/* ---------- قائمة الخدمات ---------- */
.list-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; padding-block: 40px 88px; }
.filters { position: sticky; top: calc(var(--hh) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px 20px; max-height: calc(100vh - var(--hh) - 40px); overflow: auto; }
.f-block { padding-block: 18px; border-bottom: 1px solid var(--line); }
.f-block:last-child { border-bottom: 0; }
.f-block h2 { font-size: 14.5px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--body); color: var(--ink); }
.f-block h2 .ic { color: var(--gold-deep); }
.f-close { display: none; align-items: center; justify-content: space-between; padding: 14px 0 4px; }
.f-close b { font-family: var(--head); font-size: 18px; }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.res-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 48px; flex: 1; max-width: 420px; }
.res-search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; }
.res-search .ic { color: var(--muted); }
.res-tools { display: flex; gap: 10px; align-items: center; }
.res-title { font-size: 18px; font-family: var(--body); font-weight: 600; margin-bottom: 14px; }
.res-title span { color: var(--muted); font-weight: 400; }
.cov-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--saffron-soft); color: #5B2E0A; font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.cov-note .ic { color: var(--saffron); margin-top: 3px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.active-chips a:hover { border-color: var(--danger); color: var(--danger); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort .select { height: 40px; width: auto; font-size: 14px; }
.empty { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: #fff; }
.empty > .ic { width: 44px; height: 44px; color: var(--gold); margin: 0 auto 12px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 46ch; }
.empty .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.filter-toggle { display: none; }
.sheet-bg { position: fixed; inset: 0; background: rgba(30, 19, 12, .5); z-index: 84; display: none; }
.sheet-bg.open { display: block; }
#results { transition: opacity .15s; }
#results.loading { opacity: .45; pointer-events: none; }

/* ---------- تفاصيل الخدمة ---------- */
.sd-hero { background: var(--sand); padding-block: 28px 0; position: relative; }
.sd-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-block: 26px 56px; }
.sd-top h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.45; margin-top: 16px; }
.sd-top .desc { margin-top: 16px; font-size: 17.5px; color: #5A4A3E; max-width: 60ch; line-height: 1.95; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.sd-meta span { display: flex; align-items: center; gap: 6px; }
.sd-meta .ic { width: 17px; height: 17px; color: var(--gold-deep); }
.sd-top .cov-note { margin-top: 22px; margin-bottom: 0; max-width: 60ch; }
.sd-img { border-radius: 180px 180px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.1; box-shadow: var(--shadow); background: var(--sand-2); }
.sd-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-block: 48px 80px; }

/* ---------- جدول المحتويات ---------- */
.toc { position: sticky; top: calc(var(--hh) + 24px); }
.toc h2 { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc li a { display: flex; gap: 8px; padding: 7px 14px; font-size: 14px; line-height: 1.6; color: var(--coffee-2); margin-inline-start: -2px; border-inline-start: 2px solid transparent; transition: color .15s, border-color .15s; }
.toc li a .num { color: #B5A493; font-variant-numeric: tabular-nums; min-width: 18px; }
.toc li.l3 a { padding-inline-start: 30px; font-size: 13.5px; color: var(--muted); }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--saffron); border-color: var(--saffron); font-weight: 600; }
.toc li a.active .num { color: var(--saffron); }
.toc-progress { margin-top: 16px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.toc-progress b { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s; }
.toc-mobile { display: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: 8px; }
.toc-mobile summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .ic { transition: transform .2s; }
.toc-mobile[open] summary .ic { transform: rotate(180deg); }
.toc-mobile .toc { position: static; padding: 0 8px 14px; }
.read-bar { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-bar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); }

/* ---------- الصناديق الجانبية ---------- */
.side { position: sticky; top: calc(var(--hh) + 24px); display: flex; flex-direction: column; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.box > h2 { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.prov { display: flex; gap: 14px; align-items: center; }
.prov b { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.5; font-family: var(--head); }
.prov small { color: var(--muted); font-size: 13px; }
.prov-note { margin-top: 14px; font-size: 13.5px; color: var(--coffee-2); background: var(--sand); border-radius: 12px; padding: 10px 12px; line-height: 1.75; }
.prov-note a { color: var(--gold-deep); font-weight: 600; }
.box .btns { display: grid; gap: 10px; margin-top: 18px; }
.area-list { display: flex; flex-direction: column; gap: 10px; }
.area-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; }
.area-item .ic { color: var(--saffron); margin-top: 3px; width: 17px; height: 17px; }
.area-item small { display: block; color: var(--muted); font-size: 12.5px; }
.svc-mini { display: flex; flex-direction: column; gap: 2px; }
.svc-mini a { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; font-weight: 500; }
.svc-mini a:first-child { border-top: 0; padding-top: 0; }
.svc-mini a:hover { color: var(--gold-deep); }
.svc-mini img { width: 54px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; background: var(--sand-2); }
.info-list { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; }
.info-list span { color: var(--muted); }
.info-list b { font-weight: 600; text-align: end; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- البروفايل ---------- */
.pf-cover { height: 280px; position: relative; background: var(--coffee); overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 19, 12, .15), rgba(30, 19, 12, .65)); }
.pf-crumbs { position: absolute; z-index: 1; bottom: 18px; inset-inline: 0; }
.pf-crumbs .crumbs { color: #E5D5C0; }
.pf-head { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; padding-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pf-head > .av { margin-top: -76px; }
.pf-head h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin-top: 6px; }
.pf-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--saffron-soft); color: #8A4A10; }
.pf-type.ind { background: #EDE6F5; color: #4D3570; }
.pf-sub { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.pf-sub span { display: flex; align-items: center; gap: 6px; }
.pf-sub .ic { width: 16px; height: 16px; color: var(--gold-deep); }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 36px 88px; align-items: start; }
.pf-bio { font-size: 16.5px; line-height: 2; color: #3E2F24; max-width: 70ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--sand); }
.stat b { display: block; font-family: var(--head); font-size: 24px; color: var(--coffee); line-height: 1.3; }
.stat small { color: var(--muted); font-size: 13px; }
.pf-sec { margin-top: 48px; }
.pf-sec h2 { font-size: 22px; margin-bottom: 6px; }
.pf-sec > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.member:hover { border-color: var(--gold); }
.member b { font-weight: 600; font-size: 15.5px; line-height: 1.5; }
.member small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.member .chip { height: 26px; font-size: 12px; }
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prof-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.prof-card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.prof-card .cv { height: 96px; background: var(--coffee); overflow: hidden; }
.prof-card .cv img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.prof-card .bd { padding: 0 20px 20px; margin-top: -28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prof-card .av { border: 4px solid #fff; }
.prof-card h3 { font-size: 17px; line-height: 1.5; margin-top: 4px; }
.prof-card p { color: var(--muted); font-size: 14px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prof-card .ft { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--coffee-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.prof-card .ft span { display: flex; align-items: center; gap: 5px; }
.prof-card .ft .ic { width: 15px; height: 15px; color: var(--gold-deep); }
.tabs { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs a { height: 40px; padding: 0 20px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 500; color: var(--coffee-2); font-size: 14.5px; }
.tabs a.on { background: var(--coffee); color: #fff; }

/* ---------- صفحة المنطقة ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gov { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.gov-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gov h3 { font-size: 18px; }
.gov h3 a:hover { color: var(--gold-deep); }
.gov h3 small { display: block; font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); }
.gov .centers { display: flex; flex-wrap: wrap; gap: 6px; }
.gov .centers a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--coffee-2); }
.gov .centers a:hover { background: var(--coffee); color: #fff; }
.gov .none { font-size: 13px; color: #A8978A; }
.gov .cnt { font-size: 13px; font-weight: 600; color: var(--gold-deep); background: var(--saffron-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-block: 44px 88px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--hh) + 24px); display: flex; flex-direction: column; gap: 4px; }
.faq-nav button { display: flex; justify-content: space-between; align-items: center; text-align: start; border: 0; background: transparent; padding: 12px 16px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--coffee-2); }
.faq-nav button span { font-size: 12.5px; color: var(--muted); background: var(--sand); border-radius: 999px; padding: 0 8px; line-height: 22px; }
.faq-nav button:hover { background: var(--sand); }
.faq-nav button.on { background: var(--coffee); color: #fff; }
.faq-nav button.on span { background: rgba(255, 255, 255, .14); color: var(--gold-soft); }
.faq-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; height: 54px; margin-bottom: 24px; }
.faq-search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 16px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-size: 20px; margin-bottom: 14px; }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .15s; }
.qa + .qa { margin-top: 10px; }
.qa[open] { border-color: var(--gold-soft); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.7; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; transition: transform .2s, background .2s; }
.qa[open] summary .pm { transform: rotate(45deg); background: var(--gold); color: var(--ink); }
.qa .ans { padding: 0 20px 20px; color: #4A3A2E; font-size: 15.5px; line-height: 1.95; }
.qa .ans a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.help-box { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--sand); flex-wrap: wrap; }
.help-box b { font-family: var(--head); font-size: 18px; display: block; }
.help-box p { color: var(--muted); }

/* ---------- تواصل معنا ---------- */
.ct-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; padding-block: 44px 88px; align-items: start; }
.ct-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-card { padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ct-card .ic { color: var(--saffron); width: 24px; height: 24px; margin-bottom: 6px; }
.ct-card small { color: var(--muted); font-size: 13px; }
.ct-card b { font-weight: 600; font-size: 15.5px; word-break: break-word; line-height: 1.6; }
.ct-card.wide { grid-column: 1 / -1; }
.map { margin-top: 12px; height: 230px; border-radius: var(--r-lg); overflow: hidden; position: relative; background: #E9E0D2; border: 1px solid var(--line); }
.map svg, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map .pin span { background: var(--coffee); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 10px; margin-bottom: 6px; white-space: nowrap; }
.map .pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 6px rgba(224, 130, 42, .25); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; scroll-margin-top: calc(var(--hh) + 20px); }
.form-card h2 { font-size: 24px; }
.form-card p.intro { color: var(--muted); margin-top: 6px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .field { margin-bottom: 16px; }
.form-card .field label { font-size: 14px; color: var(--coffee-2); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 40ch; }
.form-foot small a { color: var(--gold-deep); font-weight: 600; }
.honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 40px 20px; }
.success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.success .ok .ic { width: 30px; height: 30px; }

/* ---------- الصفحات الثابتة ---------- */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-block: 48px 88px; align-items: start; }

/* ---------- قائمة الجوال ---------- */
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 88vw); background: var(--paper); z-index: 90;
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.drawer nav a.active { background: var(--coffee); color: #fff; }
.drawer .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-bg { align-items: stretch; justify-content: flex-end; padding: 0; }

/* ---------- نافذة اختيار الموقع ---------- */
.lvl { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.lvl .step { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--coffee-2); font-weight: 700; font-size: 14px; }
.lvl.on .step { background: var(--coffee); color: var(--gold-soft); }
.lvl .field { margin: 0; }
.loc-preview { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--sand); font-size: 14px; color: var(--coffee-2); line-height: 1.8; min-height: 54px; }
.loc-preview b { color: var(--ink); }

/* ---------- صفحة الخطأ ---------- */
.nf { text-align: center; padding: 120px 24px; }
.nf b { font-family: var(--head); font-size: 90px; color: var(--gold); line-height: 1; display: block; }
.nf h1 { margin-top: 16px; font-size: 28px; }
.nf p { margin: 10px auto 24px; max-width: 44ch; }

/* =========================================================
   الشاشات المختلفة
   ========================================================= */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .sd-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sd-layout > .toc { display: none; }
  .toc-mobile { display: block; grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 80px; }
  .hero-art { height: 380px; }
  .svc-grid, .prof-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .reg-grid { grid-template-columns: repeat(3, 1fr); }
  .cov-wrap, .net { grid-template-columns: 1fr; gap: 36px; }
  .list-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 85; border-radius: 26px 26px 0 0; max-height: 82vh;
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .f-close { display: flex; }
  .pf-body { grid-template-columns: 1fr; }
  .faq-layout, .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .faq-nav button { white-space: nowrap; gap: 10px; }
  .doc-layout > .toc { display: none; }
  .doc-layout .toc-mobile { display: block; }
  .ct-layout { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-top { grid-template-columns: 1fr; gap: 28px; }
  .sd-img { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .sec { padding-block: 64px; }
  .loc-pill { max-width: 150px; padding: 0 12px; }
  .head-actions .btn { display: none; }
  .brand small { display: none; }
  .search { flex-wrap: wrap; border-radius: 20px; }
  .search label { flex-basis: 100%; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
  .search-loc { flex: 1; max-width: none; }
  .hero-art { height: 300px; }
  .cov-card { width: min(260px, 72%); }
  .svc-grid, .svc-grid.two, .prof-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile { flex-direction: column; align-items: flex-start; gap: 10px; }
  .reg-grid { grid-template-columns: 1fr 1fr; }
  .reg-card { min-height: 170px; padding: 18px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .cta { grid-template-columns: 1fr; padding: 36px 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .sd-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .pf-cover { height: 200px; }
  .pf-head { grid-template-columns: 1fr; align-items: start; }
  .pf-head > .av { margin-top: -74px; }
  .stat b { font-size: 20px; }
  .gov-grid, .member-grid { grid-template-columns: 1fr; }
  .ct-cards, .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .res-search { max-width: none; flex-basis: 100%; }
}
