/* بيلد بلس — الموقع العام. أبيض دافئ + ذهبي، الكحلي للنصوص واللمسات، خط رواق للعناوين وTajawal للنص والأرقام */
@font-face { font-family: "Ruaq"; src: url("fonts/itfRuaqArabic-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Ruaq"; src: url("fonts/itfRuaqArabic-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Ruaq"; src: url("fonts/itfRuaqArabic-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  /* الأبيض هو الخلفية الرئيسية، الكحلي اللون الأساسي، والأحمر الغامق والتركوازي والذهبي لمسات ثانوية.
     متغيرات --gold* صارت تحمل اللون الأساسي (الكحلي) لأنها مستخدمة في الأزرار والروابط */
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --sand: #F3F6FA;
  --line: #E2E8F0;
  --gold: #11375A;
  --gold-d: #0B2742;
  --gold-l: #E7EEF6;
  --navy: #11375A;
  --ink: #0F2236;
  --muted: #64707D;
  --red: #9E1B32;
  --red-l: #F8E8EB;
  --teal: #12857F;
  --teal-l: #E2F3F1;
  --amber: #BB7917;
  --amber-l: #F6EBD8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(17, 55, 90, .18);
  --head: "Ruaq", "Tajawal", sans-serif;
  --body: "Tajawal", system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.35; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.num { font-family: "Tajawal", sans-serif; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* أزرار */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.5em; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; transition: .2s; font-family: var(--body); line-height: 1.4; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-d); transform: translateY(-1px); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-ghost { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178C46; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link-arrow { color: var(--gold-d); font-weight: 700; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow:hover { gap: .7em; }

/* الهيدر */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: .25s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 52px; width: auto; }
.brand b { font-family: var(--head); font-size: 19px; color: var(--navy); line-height: 1.2; display: block; }
.brand small { color: var(--muted); font-size: 12.5px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .nav .dd > button { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink); background: none; border: 0; font: inherit; font-size: 16px; cursor: pointer; }
.nav > a:hover, .nav .dd > button:hover, .nav a.on { color: var(--gold-d); }
.nav a.on { background: var(--gold-l); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 15.5px; }
.dd-menu a:hover { background: var(--sand); color: var(--gold-d); }
.top-cta { flex: none; }
.burger { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }

/* الواجهة */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease-out; }
.hero-bg.on { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; z-index: 3; bottom: 112px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; overflow: hidden; }
.hero-dots button i { display: block; height: 100%; width: 0; background: #F3C77A; }
.hero-dots button.on i { width: 100%; transition: width 6s linear; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 22, 30, .82) 0%, rgba(14, 22, 30, .55) 45%, rgba(14, 22, 30, .1) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: 90px 150px; }
.hero-text { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: #F3C77A; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.3; margin-bottom: 18px; }
.hero h1 span { display: block; }
.hero h1 span + span { color: #F3C77A; }
.hero p { font-size: clamp(17px, 1.6vw, 19.5px); color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tag { color: #fff; position: absolute; inset-inline-end: 24px; bottom: 120px; z-index: 2; font-size: 13px; background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

/* شريط الأرقام */
.stats { position: relative; z-index: 3; margin-top: -78px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-family: "Tajawal"; font-weight: 800; font-size: clamp(32px, 4vw, 44px); color: var(--gold-d); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* أقسام عامة */
.sec { padding-block: clamp(64px, 9vw, 110px); }
.sec-sand { background: var(--sand); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 0; max-width: 680px; }
.sec-head p { color: var(--muted); max-width: 560px; margin: 12px 0 0; }
.center { text-align: center; }
.center .sec-head { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

/* بطاقات الخدمات */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 18px; }
.svc { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; display: flex; flex-direction: column; transition: .25s; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: .35s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { width: 100%; }
.svc-n { font-family: "Tajawal"; font-weight: 800; font-size: 15px; color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.svc-n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.svc h3 { font-size: 22px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; flex: 1; }
.svc .link-arrow { margin-top: 6px; font-size: 15px; }

/* المزايا */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.why-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/4.4; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-badge { position: absolute; inset-inline-start: 18px; bottom: 18px; background: var(--paper); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.why-badge b { font-family: "Tajawal"; font-size: 30px; font-weight: 800; color: var(--gold-d); line-height: 1; }
.why-badge span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 28px; }
.feat i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-l); color: var(--gold-d); font-style: normal; font-family: "Tajawal"; font-weight: 800; margin-bottom: 12px; }
.feat h3 { font-size: 20px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* بطاقات المشاريع */
.prj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prj-grid.home > .prj:first-child { grid-column: span 2; grid-row: span 2; }
.prj { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #ddd; aspect-ratio: 4/3.3; isolation: isolate; }
.prj-grid.home > .prj:first-child { aspect-ratio: auto; }
.prj img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.prj:hover img { transform: scale(1.06); }
.prj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,20,.82) 0%, rgba(10,15,20,0) 58%); z-index: 1; }
.prj-info { position: absolute; inset-inline: 16px; bottom: 14px; z-index: 2; color: #fff; }
.prj-info h3 { color: #fff; font-size: 19px; margin: 0 0 4px; }
.prj-grid.home > .prj:first-child .prj-info h3 { font-size: 26px; }
.prj-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.prj-meta span { background: rgba(255,255,255,.16); backdrop-filter: blur(4px); padding: 2px 10px; border-radius: 999px; }
.prj-meta .gold { background: var(--gold); }
.prj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* الطرز */
.styles-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 500; font-size: 15px; cursor: pointer; font-family: var(--body); color: var(--ink); transition: .18s; }
.chip small { font-family: "Tajawal"; color: var(--muted); font-size: 13px; }
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on small { color: #F3C77A; }
.style-pane { display: none; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.style-pane.on { display: grid; animation: fadeUp .45s ease; }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: st; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); opacity: .5; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step i { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); color: var(--gold-d); font-style: normal; font-family: "Tajawal"; font-weight: 800; font-size: 20px; transition: .25s; }
.step:hover i { background: var(--gold); color: #fff; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* نص + صورة */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { border-radius: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.cert { padding: 18px; max-width: 420px; justify-self: center; transform: rotate(-2deg); box-shadow: var(--shadow); }
.split-media.cert img { object-fit: contain; }
.split h2 { font-size: clamp(26px, 3vw, 38px); }
.split p { color: #4A525B; }
.founder-card { aspect-ratio: 4/4.2; display: grid; place-items: center; background: linear-gradient(160deg, var(--sand), var(--gold-l)); position: relative; }
.founder-card img { width: 46%; height: auto; object-fit: contain; opacity: .95; }
.founder-card figcaption { position: absolute; bottom: 18px; inset-inline: 18px; text-align: center; font-family: var(--head); color: var(--navy); font-size: 20px; }

/* دعوة لإجراء */
.cta { position: relative; overflow: hidden; border-radius: 26px; background: var(--gold); color: #fff; padding: clamp(40px, 6vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.9); margin: 0; font-size: 18px; }
.cta .btn-gold { background: #fff; color: var(--gold-d); }
.cta .btn-gold:hover { background: var(--ink); color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* المدونة */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-img { aspect-ratio: 16/9; background: var(--sand); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 13px; color: var(--gold-d); font-weight: 700; }
.post h3 { font-size: 20px; margin: 6px 0 8px; }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.empty { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; font-family: var(--head); font-size: 24px; color: var(--ink); margin-bottom: 6px; }

/* رأس الصفحات الداخلية */
.page-head { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 70px); background: var(--sand); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(270deg, transparent 30%, #000 100%); opacity: .7; }
.page-head.has-img { color: #fff; background: #111; }
.page-head.has-img::before { background: linear-gradient(270deg, rgba(14,22,30,.86), rgba(14,22,30,.4)); mask-image: none; opacity: 1; z-index: 1; }
.page-head .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 10px; }
.page-head.has-img h1 { color: #fff; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 660px; margin: 0; }
.page-head.has-img p { color: rgba(255,255,255,.86); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-d); }
.crumbs span::before { content: "/"; margin-inline-end: 8px; opacity: .5; }
.page-head.has-img .crumbs { color: rgba(255,255,255,.75); }

/* صفحة الخدمة */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.lead { font-size: 19.5px; color: #3F4851; }
.deliv { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.deliv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.deliv-card h3 { font-size: 18.5px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.deliv-card h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); flex: none; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 24px; font-size: 15.5px; color: #48515A; margin-bottom: 4px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 10px; height: 6px; border-inline-start: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.vsteps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: vs; }
.vsteps li { position: relative; padding: 0 64px 22px 0; counter-increment: vs; }
.vsteps li::before { content: counter(vs); position: absolute; inset-inline-start: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; font-weight: 800; font-family: "Tajawal"; }
.vsteps li::after { content: ""; position: absolute; inset-inline-start: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.vsteps li:last-child::after { display: none; }
.vsteps b { font-family: var(--head); font-size: 19px; display: block; }
.vsteps p { color: var(--muted); margin: 2px 0 0; font-size: 15.5px; }
.note { background: var(--gold-l); border-inline-start: 4px solid var(--gold); border-radius: 10px; padding: 14px 18px; color: #5B4114; font-size: 15.5px; margin-top: 26px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-d); font-size: 22px; line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: #4A525B; }
.block-title { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 6px; }
.side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.side-card.dark { background: var(--ink); color: #fff; border: 0; }
.side-card.dark h3 { color: #fff; }
.side-card.dark p { color: rgba(255,255,255,.75); font-size: 15px; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.side-links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.side-links a:last-child { border: 0; }
.side-links a:hover { color: var(--gold-d); }

/* صفحة المشروع */
.gallery-main { position: relative; border-radius: 18px; overflow: hidden; background: #111; aspect-ratio: 16/9.5; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 110px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #ddd; opacity: .7; transition: .2s; }
.thumbs button.on, .thumbs button:hover { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts li:last-child { border: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 700; text-align: end; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,12,.94); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.lb-btn:hover { background: var(--gold); }
.lb-prev { inset-inline-start: 20px; } .lb-next { inset-inline-end: 20px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; cursor: pointer; }
.lb-count { position: absolute; bottom: 20px; color: rgba(255,255,255,.7); font-family: "Tajawal"; }

/* فلاتر المشاريع */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 30px; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filters select { font: inherit; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.count-note { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-family: "Tajawal"; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover { border-color: var(--gold); }
.pager .off { opacity: .4; }

/* المقال */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: 28px; margin-top: 1.6em; }
.article h3 { font-size: 22px; margin-top: 1.3em; }
.article p, .article li { color: #38414A; font-size: 18px; }
.article blockquote { margin: 1.4em 0; padding: 16px 22px; border-inline-start: 4px solid var(--gold); background: var(--paper); border-radius: 10px; font-family: var(--head); font-size: 21px; }
.article figure { margin: 1.6em 0; }
.article figure img { border-radius: 14px; }
.article figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }

/* التواصل */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: .18s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px var(--gold-l); }
.field .err { color: var(--red); font-size: 14px; margin-top: 4px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.alert-ok { background: #E8F6EE; border: 1px solid #B9E2C8; color: #155C33; border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.info-list { display: grid; gap: 12px; }
.info { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.info i { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; }
.info i svg { width: 20px; height: 20px; }
.info b { display: block; font-size: 15px; color: var(--muted); font-weight: 500; }
.info span, .info a { font-weight: 700; font-size: 16.5px; }
.info a:hover { color: var(--gold-d); }

/* التذييل */
.foot { background: var(--navy); color: rgba(255,255,255,.78); padding-top: 70px; margin-top: 0; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.foot a:hover { color: #F3C77A; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-brand img { height: 74px; width: auto; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 16px; }
.socials { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--gold); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.6); }

/* زر واتساب العائم */
.wa-float { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31,168,85,.7); transition: .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FA855; animation: ping 2.4s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-bg { animation: none; transform: none; } .wa-float::after { animation: none; } }

/* شاشات أصغر */
@media (max-width: 1080px) {
  .prj-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .svc-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav, .top-cta { display: none; }
  .burger { display: block; }
  .top.open .nav { display: flex; position: fixed; inset: 78px 0 auto; flex-direction: column; align-items: stretch; background: var(--bg); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 2px; max-height: calc(100vh - 78px); overflow: auto; }
  .top.open .nav > a, .top.open .dd > button { text-align: start; padding: 12px 10px; border-radius: 10px; }
  .top.open .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px; min-width: 0; background: none; }
  .top.open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .top.open .burger span:nth-child(2) { opacity: 0; }
  .top.open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .why, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .style-pane { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand img { height: 44px; }
  .brand small { display: none; }
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(14,22,30,.9) 10%, rgba(14,22,30,.45) 100%); }
  .hero .wrap { padding-block: 70px 130px; }
  .hero-tag { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prj-grid, .style-pane { grid-template-columns: 1fr; }
  .prj-grid.home > .prj:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4/3.3; }
  .feats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta { border-radius: 18px; }
  .wa-float { width: 52px; height: 52px; inset-inline-start: 16px; bottom: 16px; }
}
