/* =========================================================
   جسور بلس للمقاولات — نظام التصميم
   Mobile-first · RTL · بدون مكتبات خارجية
   ========================================================= */
:root {
  --charcoal: #20242B;
  --sand: #C6A77D;
  --ivory: #F7F5F0;
  --text: #292929;
  --soft: #E8E1D7;
  --sand-deep: #8A6A3F;      /* نص ذهبي بتباين كافٍ على الخلفيات الفاتحة */
  --sand-light: #E3D2B6;
  --charcoal-2: #2B3038;
  --muted: #5E5A55;
  --line: #DDD5C8;
  --white: #FFFFFF;
  --wa: #1F8F55;
  --danger: #A23B2A;
  --ok: #2F6B45;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(32, 36, 43, .05), 0 8px 24px rgba(32, 36, 43, .07);
  --shadow-lg: 0 20px 50px rgba(32, 36, 43, .16);
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, Tahoma, sans-serif;
  --header-h: 68px;
  --bar-h: 64px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.8; color: var(--text);
  background: var(--ivory); overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-head); color: var(--charcoal); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.center { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.center-text { text-align: center; }
.mt { margin-top: 36px; }
.pt0 { padding-top: 0 !important; }
.light { color: var(--sand-light) !important; }

.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-lg { width: 40px; height: 40px; color: var(--sand-deep); }

/* ---------- الأزرار ---------- */
.btn {
  --b-bg: var(--soft); --b-fg: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; line-height: 1.2;
  cursor: pointer; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --b-bg: var(--sand); --b-fg: var(--charcoal); box-shadow: 0 6px 18px rgba(198, 167, 125, .35); }
.btn-primary:hover { --b-bg: #D3B68D; }
.btn-dark { --b-bg: var(--charcoal); --b-fg: var(--ivory); }
.btn-dark:hover { --b-bg: var(--charcoal-2); }
.btn-soft { --b-bg: var(--soft); --b-fg: var(--charcoal); }
.btn-soft:hover { --b-bg: #DDD3C5; }
.btn-ghost { --b-bg: transparent; border-color: var(--line); }
.btn-wa { --b-bg: var(--wa); --b-fg: #fff; }
.btn-wa:hover { --b-bg: #197A48; }
.btn-glass { --b-bg: rgba(247, 245, 240, .12); --b-fg: var(--ivory); border-color: rgba(247, 245, 240, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { --b-bg: rgba(247, 245, 240, .22); }
.btn-outline-light { --b-bg: transparent; --b-fg: var(--ivory); border-color: rgba(247, 245, 240, .4); }
.btn-outline-light:hover { --b-bg: rgba(247, 245, 240, .1); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: .8em 1.7em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; --b-bg: transparent; border-color: var(--line); }
.btn-icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--sand-deep); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(-4px); }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .98); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(32, 36, 43, .06); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--charcoal); margin-inline-end: auto; }
.logo img { height: 46px; width: auto; }
.logo-mark { width: 54px; height: auto; color: var(--charcoal); }
.logo-text { display: flex; flex-direction: column; gap: 5px; line-height: 1.25; }
.logo-text strong { font-family: var(--f-head); font-size: 1.22rem; font-weight: 700; }
.logo-text small { font-size: .72rem; display: block; color: var(--sand-deep); letter-spacing: .02em; font-weight: 500; }
.logo-light { color: var(--ivory); }
.logo-light .logo-text small { color: var(--sand-light); }

.main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); padding: 16px 20px 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a { display: block; padding: 14px 4px; font-size: 1.12rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--sand-deep); }
.nav-label { margin: 22px 0 6px; font-size: .85rem; color: var(--muted); }
.nav-services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nav-services a { display: block; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; }
.nav-actions { display: grid; gap: 10px; margin-top: 22px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 12px; cursor: pointer; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
.menu-toggle[aria-expanded="true"] .ic:not(.ic-close) { display: none; }
body.nav-open { overflow: hidden; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .site-header { background: rgba(247, 245, 240, .9); backdrop-filter: saturate(1.2) blur(12px); }
  .main-nav { position: static; inset: auto; background: none; padding: 0; overflow: visible; transform: none; opacity: 1; visibility: visible; }
  .main-nav > ul { display: flex; gap: 4px; }
  .main-nav > ul > li > a { border: 0; padding: 8px 14px; font-size: 1rem; font-weight: 500; border-radius: 999px; position: relative; }
  .main-nav > ul > li > a:hover { background: var(--soft); }
  .main-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; background: var(--sand); border-radius: 2px; }
  .nav-mobile-extra, .menu-toggle { display: none; }
  .logo { margin-inline-end: 24px; }
  .header-actions { margin-inline-start: auto; }
  .logo-mark { width: 62px; }
}

/* ---------- الواجهة الرئيسية ---------- */
.hero { position: relative; color: var(--ivory); min-height: min(88svh, 760px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 23, 28, .25) 0%, rgba(20, 23, 28, .55) 45%, rgba(20, 23, 28, .9) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 120px 36px; }
.hero h1 { color: var(--ivory); margin-bottom: .6em; }
.hero-brand { display: block; font-size: clamp(1.05rem, .9rem + .8vw, 1.4rem); color: var(--sand-light); font-weight: 600; margin-bottom: .35em; }
.hero-title { display: block; font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.25; max-width: 18ch; }
.hero-text { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 56ch; color: rgba(247, 245, 240, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a { display: inline-block; padding: 6px 14px; border: 1px solid rgba(247, 245, 240, .3); border-radius: 999px; font-size: .9rem; color: var(--ivory); background: rgba(20, 23, 28, .25); }
.hero-chips a:hover { background: rgba(247, 245, 240, .14); }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; font-size: .9rem; font-weight: 600; color: var(--sand-deep); margin-bottom: .8em; letter-spacing: .01em; }
.eyebrow.light { color: var(--sand-light); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow .ic { display: none; }
@media (min-width: 760px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-content { padding-block: 160px 72px; }
}

.assure { background: var(--charcoal); color: var(--ivory); }
.assure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding-block: 22px; }
.assure-grid > div { display: flex; gap: 10px; align-items: flex-start; }
.assure-grid .ic { color: var(--sand); width: 26px; height: 26px; margin-top: 2px; }
.assure-grid p { margin: 0; line-height: 1.45; }
.assure-grid strong { display: block; font-size: .95rem; }
.assure-grid span { font-size: .8rem; color: rgba(247, 245, 240, .7); }
@media (min-width: 900px) { .assure-grid { grid-template-columns: repeat(4, 1fr); padding-block: 28px; } }

/* ---------- الأقسام ---------- */
.section { padding-block: 64px; }
.section-soft { background: #EFEAE1; }
.section-dark { background: var(--charcoal); color: rgba(247, 245, 240, .85); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
@media (min-width: 900px) { .section { padding-block: 96px; } }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-lead { color: var(--muted); font-size: 1.05rem; }
.section-dark .sec-lead { color: rgba(247, 245, 240, .72); }

/* بطاقات الخدمات */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid #EEE8DE; transition: transform .25s, box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-media img { transform: scale(1.04); }
.svc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.2rem; margin-bottom: .35em; }
.svc-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.svc-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

/* المعرض */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .filters { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.chip { flex: none; min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--sand); }
.chip.is-active { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery-2 { grid-template-columns: repeat(2, 1fr); } }
.g-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #EEE8DE; }
.g-item[hidden] { display: none; }
.g-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-open:hover img { transform: scale(1.05); }
.g-zoom { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(32, 36, 43, .65); color: #fff; opacity: .9; }
.badge { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; padding: 3px 10px; font-size: .75rem; font-weight: 600; border-radius: 999px; background: rgba(247, 245, 240, .92); color: var(--charcoal); }
.g-info { padding: 16px 18px 18px; }
.g-type { margin: 0 0 .2em; font-size: .82rem; color: var(--sand-deep); font-weight: 600; }
.g-info h3 { font-size: 1.05rem; margin-bottom: .3em; }
.g-info p { color: var(--muted); font-size: .93rem; margin-bottom: .4em; }
.g-meta { font-weight: 600; color: var(--charcoal) !important; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ba figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; }
.ba figcaption { position: absolute; top: 6px; inset-inline-start: 6px; background: var(--charcoal); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 999px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 22px auto 0; max-width: 820px; padding: 12px 16px; font-size: .9rem; color: var(--muted); background: rgba(198, 167, 125, .12); border: 1px dashed rgba(138, 106, 63, .4); border-radius: var(--radius-sm); }
.note .ic { color: var(--sand-deep); margin-top: 4px; }
.section .wrap > .note:first-child { margin: 0 auto 22px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* لماذا نحن */
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.why-item { padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid #EEE8DE; position: relative; }
.why-item::before { content: ""; position: absolute; inset-inline-start: 24px; top: 0; width: 36px; height: 3px; background: var(--sand); border-radius: 0 0 3px 3px; }
.why-ic { width: 34px; height: 34px; color: var(--sand-deep); margin-bottom: 12px; }
.why-item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* خطوات العمل */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps li { position: relative; padding: 24px 22px; border: 1px solid rgba(247, 245, 240, .12); border-radius: var(--radius); background: rgba(247, 245, 240, .03); }
.step-n { position: absolute; inset-inline-end: 20px; top: 16px; font-family: var(--f-head); font-size: 2rem; font-weight: 700; color: rgba(198, 167, 125, .3); line-height: 1; }
.step-ic { width: 32px; height: 32px; color: var(--sand); margin-bottom: 12px; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: rgba(247, 245, 240, .75); font-size: .96rem; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-family: var(--f-head); font-size: 1rem; color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--soft); position: relative; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; inset: 50% 6px auto; height: 2px; margin-top: -1px; background: var(--charcoal); transition: transform .2s; }
.faq-ic::after { transform: rotate(90deg); }
.faq details[open] .faq-ic::after { transform: rotate(0); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* شريط الدعوة */
.cta-band { background: radial-gradient(1200px 400px at 85% 0%, rgba(198, 167, 125, .22), transparent 60%), var(--charcoal); color: rgba(247, 245, 240, .85); padding-block: 64px; }
.cta-band h2 { color: var(--ivory); }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn { flex: 1 1 auto; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.3fr 1fr; gap: 48px; } .cta-actions { justify-content: flex-end; } .cta-actions .btn { flex: 0 0 auto; } }

/* رؤوس الصفحات الداخلية */
.page-hero { padding-block: 40px 40px; }
.page-hero-sm { padding-bottom: 28px; }
.page-hero .lead { max-width: 64ch; }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--sand-deep); text-decoration: underline; }
@media (min-width: 900px) { .page-hero { padding-block: 64px 48px; } }

/* صفحة الخدمة */
.svc-hero { padding-block: 28px 48px; }
.svc-hero-grid { display: grid; gap: 28px; align-items: center; }
.svc-hero-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.svc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .ic { color: var(--ok); }
@media (min-width: 900px) { .svc-hero { padding-block: 48px 80px; } .svc-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.05rem; }
.prose a { color: var(--sand-deep); text-decoration: underline; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--white); border: 1px solid #EEE8DE; border-radius: var(--radius); padding: 20px; }
.feature-ic { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(198, 167, 125, .18); color: var(--sand-deep); margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; gap: 12px; }
.timeline li { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.timeline span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--charcoal); color: var(--sand-light); font-weight: 700; font-family: var(--f-head); }
.timeline p { margin: 0; font-weight: 500; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .timeline li { flex-direction: column; text-align: center; border: 0; background: none; padding: 0 10px; position: relative; }
  .timeline li::before { content: ""; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
  .timeline li:last-child::before { display: none; }
  .timeline span { width: 40px; height: 40px; }
}

/* من نحن */
.split { display: grid; gap: 32px; align-items: center; }
.about-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- النماذج ---------- */
.quote-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .quote-grid { grid-template-columns: 1.6fr 1fr; gap: 32px; } .quote-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.card { background: var(--white); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); border: 1px solid #EEE8DE; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 1.2rem; }
.card-dark { background: var(--charcoal); color: rgba(247, 245, 240, .85); border: 0; }
.card-dark h2 { color: var(--ivory); }
@media (min-width: 760px) { .card { padding: 32px; } }
.form-title { font-size: 1.35rem; }
.mini-steps { margin: 0; padding-inline-start: 1.2em; }
.mini-steps li { margin-bottom: .45em; }
.mini-steps li::marker { color: var(--sand); font-weight: 700; }
.stack { display: grid; gap: 10px; }

.qform { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .field .label { font-weight: 600; font-size: .95rem; color: var(--charcoal); padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FDFCFA;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 4px rgba(198, 167, 125, .2); }
.field input[dir=ltr] { text-align: right; }
.field input[dir=ltr]::placeholder { text-align: right; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.err { margin: 0; min-height: 0; font-size: .85rem; color: var(--danger); }
.err:empty { display: none; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } .choice-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px 10px; text-align: center; line-height: 1.3; font-size: .93rem; font-weight: 500; border: 1.5px solid var(--line); border-radius: 12px; background: #FDFCFA; transition: all .15s; }
.choice input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: var(--ivory); }
.choice input:focus-visible + span { outline: 3px solid var(--sand); outline-offset: 2px; }
.upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px; border: 1.5px dashed var(--sand); border-radius: 12px; background: rgba(198, 167, 125, .07); cursor: pointer; text-align: center; color: var(--charcoal); font-weight: 500; }
.upload .ic { width: 28px; height: 28px; color: var(--sand-deep); }
.upload small { color: var(--muted); font-weight: 400; }
.upload:hover { background: rgba(198, 167, 125, .13); }
.sr-only:focus-visible + .thumbs, input.sr-only:focus + * { outline: none; }
.thumbs { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(32, 36, 43, .8); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.thumbs button .ic { width: 14px; height: 14px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--charcoal); flex: none; }
.consent a { color: var(--sand-deep); text-decoration: underline; }
.form-status { padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.form-status.is-error { background: #F6E5E1; color: #6E2418; border: 1px solid #E7C2B8; }
.form-status.is-info { background: var(--soft); }
.form-status .btn { margin-top: 8px; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .85rem; color: var(--muted); }
.form-foot .ic { color: var(--ok); }
.qf-preview { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #EBD3A6; font-size: .9rem; }
.qf-preview[hidden] { display: none; }
.qform button[type=submit][disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(32, 36, 43, .3); border-top-color: var(--charcoal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qsuccess { text-align: center; padding: 20px 0; }
.qsuccess:focus { outline: none; }
.qs-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 107, 69, .12); color: var(--ok); }
.qs-ic .ic { width: 36px; height: 36px; }
.qsuccess .cta-actions { justify-content: center; margin-top: 18px; }

/* بطاقات التواصل */
.contact-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.ccard { background: var(--white); border: 1px solid #EEE8DE; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ccard h2 { font-size: 1.15rem; margin: 8px 0 0; }
.ccard p { color: var(--muted); flex: 1; }

/* ---------- الفوتر ---------- */
.site-footer { background: #191C21; color: rgba(247, 245, 240, .72); padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-h { font-size: 1rem; color: var(--ivory); margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sand); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ic { color: var(--sand); margin-top: 5px; }
.footer-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(247, 245, 240, .2); }
.social a:hover { border-color: var(--sand); color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(247, 245, 240, .1); margin-top: 40px; padding-block: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.footer-bottom p { margin: 0; }

/* ---------- واتساب العائم وشريط الجوال ---------- */
.wa-float { display: none; }
.mobile-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(247, 245, 240, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(32, 36, 43, .08); transition: transform .25s; }
.mobile-bar.is-hidden { transform: translateY(110%); }
.mb-item { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; font-weight: 600; font-size: .95rem; background: var(--soft); color: var(--charcoal); }
.mb-wa { background: var(--wa); color: #fff; }
.mb-quote { background: var(--sand); color: var(--charcoal); }
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .wa-float { position: fixed; z-index: 55; bottom: 24px; left: 24px; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 18px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(31, 143, 85, .35); transition: transform .2s; }
  .wa-float .ic { width: 26px; height: 26px; }
  .wa-float:hover { transform: translateY(-2px); }
  .footer-bottom { padding-bottom: 96px; }
}

/* ---------- النوافذ ---------- */
dialog { border: 0; padding: 0; }
.modal { max-width: min(440px, calc(100vw - 32px)); border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--white); color: var(--text); }
.modal::backdrop, .lightbox::backdrop { background: rgba(20, 23, 28, .7); backdrop-filter: blur(3px); }
.modal-box { padding: 32px 26px 26px; text-align: center; position: relative; }
.modal-box > .ic-lg { margin: 0 auto 10px; }
.modal-box h2 { font-size: 1.3rem; }
.modal-box p { color: var(--muted); }
.modal-actions { display: flex; justify-content: center; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; }
.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: transparent; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox figure { margin: 0; max-width: min(1200px, 94vw); text-align: center; }
.lightbox img { max-height: 80dvh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: var(--ivory); margin-top: 12px; font-size: .95rem; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(247, 245, 240, .14); color: #fff; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(247, 245, 240, .28); }

.big-num { font-family: var(--f-head); font-size: 6rem; color: var(--sand); margin: 0; line-height: 1; }

/* حركة دخول خفيفة */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media print { .site-header, .mobile-bar, .wa-float, .cta-band, .site-footer { display: none; } body { padding: 0; } }

/* تحسينات الشبكة والصور */
.svc-media picture, .g-open picture, .svc-hero-media picture, .about-media picture { display: block; width: 100%; height: 100%; }
@media (min-width: 1100px) {
  .svc-grid, .gallery:not(.gallery-2) { display: flex; flex-wrap: wrap; justify-content: center; }
  .svc-grid > *, .gallery:not(.gallery-2) > * { flex: 0 0 calc((100% - 40px) / 3); }
}

/* أزرار البطاقات: زر عرض السعر واضح على الجوال */
.svc-actions { flex-direction: row-reverse; justify-content: space-between; }
.svc-actions .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .svc-actions { flex-direction: column; align-items: stretch; } .svc-actions .btn { width: 100%; } .svc-actions .link-arrow { justify-content: center; padding: 4px 0; } }

/* شرائح الخدمات في الواجهة: تمرير أفقي على الجوال */
@media (max-width: 759px) {
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chips li { flex: none; }
}

/* الخدمات المتخصصة */
.special { margin-top: 36px; }
.special-h { text-align: center; font-size: 1.05rem; color: var(--sand-deep); margin-bottom: 14px; }
.mini-grid { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
@media (min-width: 700px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
.mini-card { display: flex; align-items: center; gap: 14px; padding: 10px; padding-inline-end: 16px; background: var(--white); border: 1px solid #EEE8DE; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mini-card picture, .mini-card img { width: 88px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; }
.mini-card span { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.mini-card strong { font-family: var(--f-head); color: var(--charcoal); }
.mini-card small { color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card > .ic { color: var(--sand-deep); }

/* من البناء إلى أدق تفاصيل التشطيب */
.journey { align-items: start; }
.journey .sec-head { margin-bottom: 22px; }
.journey-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.journey-media picture, .journey-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .journey { align-items: center; } }
.phases { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.phases a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px solid #EEE8DE; border-radius: var(--radius-sm); transition: border-color .2s, transform .2s; }
.phases a:hover { border-color: var(--sand); transform: translateX(-3px); }
.ph-n { font-family: var(--f-head); font-weight: 700; color: var(--sand); font-size: .95rem; width: 26px; flex: none; }
.ph-ic { width: 28px; height: 28px; color: var(--charcoal); flex: none; }
.ph-t { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.ph-t strong { font-family: var(--f-head); color: var(--charcoal); font-weight: 600; }
.ph-t small { color: var(--muted); font-size: .88rem; }
.ph-go { color: var(--sand-deep); flex: none; }
