/* ==========================================================================
   بصمة التعمير — الأنماط (التصميم المعتمد v4)
   أبيض نظيف + كحلي وذهبي الشعار، خط Readex Pro، صور خلفية في أقسام مختارة.
   خصائص منطقية (inline/block) فقط. لا blur ولا backdrop-filter ولا توهجات radial-gradient ناعمة (تبدو ضبابية).
   ========================================================================== */

/* ---------- الخط (مستضاف محلياً، ملف متغير الوزن لكل لغة) ---------- */
@font-face { font-family: "Readex Pro"; font-weight: 300 600; font-display: swap; src: url("../fonts/readex-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-weight: 300 600; font-display: swap; src: url("../fonts/readex-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Readex Fallback"; src: local("Tahoma"), local("Segoe UI"), local("Arial"); size-adjust: 104%; ascent-override: 96%; descent-override: 40%; }

:root {
	--white: #ffffff;
	--paper: #f7f5f1;
	--line: #e6e1d8;
	--navy: #14254d;
	--navy-2: #0e1b3a;
	--gold: #c39a33;
	--gold-2: #d9b452;
	--gold-d: #87661a; /* ذهبي للنص على الأبيض (تباين 5:1) */
	--gold-soft: #f4ecd6;
	--ink: #1d2433;
	--muted: #5f6676;
	--ok: #1d7a4b;
	--ok-bg: #e8f5ee;
	--err: #b42318;
	--err-bg: #fdecea;
	--font: "Readex Pro", "Readex Fallback", Tahoma, sans-serif;
	--radius: 18px;
	--radius-lg: 24px;
	--gutter: clamp(16px, 4vw, 48px);
	--header-h: 84px;
	--ease: cubic-bezier(.22, .7, .2, 1);
	--shadow: 0 24px 44px -28px rgba(20, 37, 77, .55);
}

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.85; color: var(--ink); background: var(--white); overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { color: var(--gold-d); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.35; color: var(--navy); text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }
[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; }
.skip:focus { top: 12px; color: #fff; }
.icon { width: 1.3em; height: 1.3em; flex: none; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

.wrap { width: 100%; max-width: calc(1240px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
.wrap--form { max-width: calc(980px + var(--gutter) * 2); }

.section { padding-block: clamp(64px, 8vw, 104px); }
.section--tint { background: var(--paper); }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.section-title { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.section-lead { margin: 0; color: var(--muted); }
.section-more { margin-top: 36px; text-align: center; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: rgba(255, 255, 255, .78); }

/* صورة خلفية لقسم كامل (مع تراكب كحلي) */
.has-bg { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.has-bg > .bg, .cta-box > .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; margin: 0; }
/* الصورة أطول من الإطار بـ 80px لتتحرك مع التمرير (main.js)؛ الإطار نفسه ثابت فيبقى وسم «صورة توضيحية» ظاهراً فوق التراكب. */
.has-bg > .bg img, .cta-box > .bg img { position: absolute; inset-inline: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; }
.has-bg > .bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 27, 58, .88); }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 12px; font: inherit; font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 20px; height: 20px; }
.btn--lg { min-height: 58px; padding-inline: 30px; font-size: 17px; }
/* نص كحلي على الذهبي: الأبيض على هذا الذهبي تباينه 2.6:1 فقط */
.btn--gold { background: var(--gold); color: var(--navy-2); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy-2); }
.btn--glass { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); color: #fff; }
.btn--glass:hover { background: #fff; color: var(--navy); }
.btn--line, .btn--outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn--line:hover, .btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--gold-d); text-decoration: none; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(-5px); }

/* وسم «صورة توضيحية»: أعلى الصورة من الجهة المقابلة للأيقونات */
.media { position: relative; margin: 0; overflow: hidden; background: var(--paper); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty { min-height: 160px; background: linear-gradient(135deg, var(--paper), #ece6da); }
.illus { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 3; padding: 1px 9px; border-radius: 6px; background: rgba(14, 27, 58, .58); color: #fff; font-size: 12px; line-height: 1.7; font-weight: 400; pointer-events: none; }

/* ---------- شاشة التحميل (أول زيارة في الجلسة فقط) ---------- */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--navy-2); color: #fff; transition: opacity .5s var(--ease), visibility 0s .5s; animation: pl-failsafe .4s 3s forwards; }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; } } /* إن لم يعمل main.js لا تبقى الشاشة فوق الموقع */
.js .preloader.is-done { opacity: 0; visibility: hidden; }
.js.preload-seen .preloader { display: none; }
.preloader__box { display: grid; justify-items: center; gap: 18px; }
.preloader svg { width: 150px; height: 150px; overflow: visible; }
.pl-ground { stroke: rgba(255, 255, 255, .35); stroke-width: 2; }
.pl-floor { fill: none; stroke: var(--gold-2); stroke-width: 2.4; stroke-linejoin: round; opacity: 0; animation: pl-floor 2.4s var(--ease) infinite; }
.pl-floor--2 { animation-delay: .25s; }
.pl-floor--3 { animation-delay: .5s; }
.pl-floor--4 { animation-delay: .75s; }
.pl-win { fill: var(--gold-2); opacity: 0; animation: pl-win 2.4s ease infinite; }
.pl-win--b { animation-delay: .35s; }
.pl-win--c { animation-delay: .7s; }
.pl-crane { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pl-arm { transform-origin: 112px 20px; animation: pl-arm 2.4s ease-in-out infinite; }
.pl-load { fill: var(--gold); }
.pl-cable { stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; }
@keyframes pl-floor { 0% { opacity: 0; transform: translateY(6px); } 25%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes pl-win { 0%, 35% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pl-arm { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.preloader__name { font-weight: 600; font-size: 18px; }
.preloader__bar { width: 180px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.preloader__bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--gold-2); animation: pl-bar 1.2s ease-in-out infinite; }
@keyframes pl-bar { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }

/* ---------- الرأس: شفاف فوق الواجهة، أبيض بعد التمرير، يختفي نزولاً ويظهر صعوداً ---------- */
/* بدون JS لا يُضاف is-solid: رأس كحلي ثابت في أعلى الصفحة بكل العروض. */
html:not(.js) .site-header { position: static; background: var(--navy-2); }
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 60; transition: background-color .35s, box-shadow .35s, transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid, .site-header.is-open { background: rgba(255, 255, 255, .98); box-shadow: 0 8px 24px -18px rgba(14, 27, 58, .5); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; padding: 6px 10px; border-radius: 12px; background: #fff; transition: padding .3s; }
.site-header.is-solid .brand, .site-header.is-open .brand { padding-inline: 0; }
.brand__img { width: auto; height: 42px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a { position: relative; display: block; padding: 10px 12px; color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; }
.site-nav .menu > li > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; background: var(--gold-2); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav .menu > li > a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.site-header.is-solid .site-nav .menu > li > a { color: var(--ink); }
.site-nav .menu > .menu-item-has-children > a { padding-inline-end: 30px; }
/* سهم لأسفل: حدود فيزيائية (يمين + أسفل) لأن المنطقية تنقلب في RTL فيصير السهم جانبياً. */
.site-nav .menu > .menu-item-has-children > a::before { content: ""; position: absolute; inset-inline-end: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .75; transition: transform .25s var(--ease); }
.site-nav .menu > .menu-item-has-children:hover > a::before, .site-nav .menu > .menu-item-has-children:focus-within > a::before { transform: translateY(2px) rotate(225deg); }
.site-nav .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
.site-nav .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; text-decoration: none; }
.site-nav .sub-menu a:hover { background: var(--paper); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.site-header .btn { min-height: 46px; padding-inline: 20px; font-size: 15px; }
.nav-toggle { display: none; width: 46px; height: 46px; place-items: center; padding: 0; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.site-header.is-solid .nav-toggle, .site-header.is-open .nav-toggle { border-color: var(--line); color: var(--navy); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1060px) {
	.nav-toggle { display: grid; }
	.js .site-nav { position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100svh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 22px; background: #fff; box-shadow: 0 24px 30px -24px rgba(14, 27, 58, .5); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
	.js .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li > a, .site-header.is-solid .site-nav .menu > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; }
	.site-nav .menu > li > a::after, .site-nav .menu > .menu-item-has-children > a::before { display: none; }
	/* visibility: inherit لا visible: الابن الظاهر صراحةً يبقى ظاهراً حتى لو كانت القائمة الأم مخفية */
	.site-nav .sub-menu { position: static; min-width: 0; padding: 4px 0 10px; padding-inline-start: 14px; border: 0; border-inline-start: 2px solid var(--gold-soft); border-radius: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; }
	.site-nav .sub-menu a { padding: 8px 0; color: var(--muted); }
	html:not(.js) .nav-toggle { display: none; }
	html:not(.js) .site-header__bar { flex-wrap: wrap; height: auto; padding-block: 12px; }
	html:not(.js) .site-nav { flex-basis: 100%; }
	html:not(.js) .site-nav .menu > li > a { color: #fff; }
	html:not(.js) .site-nav .sub-menu a { color: rgba(255, 255, 255, .75); }
	body.nav-open { overflow: hidden; }
}
/* زر الطلب داخل القائمة يظهر في الجوال الصغير فقط، حيث يُخفى زر الرأس لضيق المساحة. */
.nav-cta { display: none; }
@media (max-width: 480px) { .header-cta .btn { display: none; } .brand__img { height: 36px; } .site-nav .nav-cta { display: flex; margin-top: 18px; } }

/* ---------- أزرار عائمة: واتساب + العودة للأعلى ---------- */
.float-wa { position: fixed; z-index: 55; inset-inline-end: 20px; bottom: 20px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.float-wa:hover { transform: scale(1.07); color: #fff; }
.float-wa .icon { width: 30px; height: 30px; }
.float-wa::before { content: ""; position: absolute; inset: 0; border: 2px solid #25d366; border-radius: 50%; animation: wa-ring 2.6s ease-out infinite; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.to-top { position: fixed; z-index: 55; inset-inline-end: 26px; bottom: 92px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 10px 24px -10px rgba(14, 27, 58, .5); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top .ring { position: absolute; inset: 0; width: 46px; height: 46px; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 2.5; }
.to-top .ring .track { stroke: var(--line); }
.to-top .ring .fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--p, 0)); }
.to-top .icon { width: 20px; height: 20px; }

/* ---------- السلايدر ---------- */
.slider { position: relative; height: 100svh; min-height: 620px; max-height: 960px; overflow: hidden; background: var(--navy-2); color: #fff; }
.slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 1s var(--ease), visibility 0s 1s; }
.slide.is-on { z-index: 1; visibility: visible; opacity: 1; transition: opacity 1s var(--ease), visibility 0s; }
.slide__media { position: absolute; inset: 0; margin: 0; }
/* صور الشرائح غير الحالية والتالية لا تُرسم، فلا تُحمَّل عند فتح الصفحة (loading=lazy لا يكفي: الشريحة المخفية داخل الشاشة). */
.js .slide:not(.is-on):not(.is-next) .slide__media { display: none; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.js .slide__media img { transform: scale(1.12); }
.js .slide.is-on .slide__media img { transform: scale(1); transition: transform 7.5s linear; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 27, 58, .86) 0%, rgba(14, 27, 58, .55) 38%, rgba(14, 27, 58, .08) 70%), linear-gradient(0deg, rgba(14, 27, 58, .7), rgba(14, 27, 58, 0) 35%); }
.slide__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; padding-top: 40px; padding-bottom: 120px; }
.slide__tag { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 6px 14px; border: 1px solid rgba(217, 180, 82, .45); border-radius: 99px; background: rgba(195, 154, 51, .18); color: var(--gold-2); font-size: 14px; font-weight: 500; }
.slide__tag .icon { width: 18px; height: 18px; }
.slide__title { max-width: 16ch; margin: 18px 0 16px; color: #fff; font-weight: 600; font-size: clamp(34px, 5vw, 66px); line-height: 1.25; }
.slide__kicker { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .82); font-weight: 400; font-size: .42em; line-height: 1.5; }
.slide__text { max-width: 48ch; margin: 0 0 30px; color: rgba(255, 255, 255, .88); font-weight: 300; font-size: clamp(16px, 1.3vw, 19px); }
/* النص يدخل متحركاً عند تبديل الشرائح فقط؛ الشريحة الأولى تظهر فوراً (نصها عنصر LCP في الرئيسية). */
.js .slider.is-moved .slide [data-in] { opacity: 0; transform: translateY(26px); }
.js .slider.is-moved .slide.is-on [data-in] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .slider.is-moved .slide.is-on [data-in="2"] { transition-delay: .15s; }
.js .slider.is-moved .slide.is-on [data-in="3"] { transition-delay: .3s; }
.js .slider.is-moved .slide.is-on [data-in="4"] { transition-delay: .45s; }
.slide__media .illus { z-index: 3; inset-block-start: calc(var(--header-h) + 16px); inset-inline-end: var(--gutter); }
.slider__ctrl { position: absolute; z-index: 5; inset-inline-start: var(--gutter); bottom: 118px; display: flex; align-items: center; gap: 12px; }
.slider__ctrl button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(14, 27, 58, .25); color: #fff; cursor: pointer; transition: background-color .25s, border-color .25s; }
.slider__ctrl button:hover { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.slider__toggle .icon { width: 20px; height: 20px; }
.slider__toggle .icon + .icon, .slider.is-stopped .slider__toggle .icon:first-child { display: none; }
.slider.is-stopped .slider__toggle .icon + .icon { display: block; }
.slider__count { min-width: 64px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 15px; font-variant-numeric: tabular-nums; }
.slider__count b { color: #fff; font-size: 22px; font-weight: 600; }
.slider__tabs { position: absolute; z-index: 5; inset-inline: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .18); background: linear-gradient(0deg, rgba(14, 27, 58, .65), rgba(14, 27, 58, 0)); }
.slider__tabs .wrap { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.slider__tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 0 26px; padding-inline-end: 16px; border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 15px; text-align: start; cursor: pointer; transition: color .3s; }
.slider__tab .icon { color: var(--gold-2); opacity: .6; transition: opacity .3s; }
.slider__tab.is-on, .slider__tab:hover { color: #fff; }
.slider__tab.is-on .icon { opacity: 1; }
.slider__tab i { position: absolute; inset-inline: 0; top: -1px; height: 2px; background: var(--gold-2); transform-origin: right; transform: scaleX(0); }
[dir="ltr"] .slider__tab i { transform-origin: left; }
.slider__tab.is-on i { animation: tab-fill var(--dur, 7s) linear forwards; }
.slider.is-paused .slider__tab.is-on i { animation-play-state: paused; }
.slider.is-stopped .slider__tab.is-on i { animation: none; transform: scaleX(1); }
@keyframes tab-fill { to { transform: scaleX(1); } }
html:not(.js) .slide { position: relative; display: none; height: 100%; }
html:not(.js) .slide:first-of-type { display: block; visibility: visible; opacity: 1; }
html:not(.js) .slider__ctrl, html:not(.js) .slider__tabs { display: none; }
@media (max-width: 760px) {
	.slider__tab span { display: none; }
	.slider__tab { justify-content: center; padding: 18px 0; }
	.slider__ctrl { bottom: 92px; }
	.slide__copy { justify-content: flex-end; padding-bottom: 170px; }
	.slide::after { background: linear-gradient(0deg, rgba(14, 27, 58, .95) 0%, rgba(14, 27, 58, .82) 45%, rgba(14, 27, 58, .35) 75%, rgba(14, 27, 58, .45) 100%); }
	.slide__text { font-size: 15px; }
}

/* ---------- رأس الصفحات الداخلية: صورة خلفية + تراكب ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(48px, 6vw, 80px); background: var(--navy-2); color: #fff; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 27, 58, .92) 0%, rgba(14, 27, 58, .74) 50%, rgba(14, 27, 58, .55) 100%); }
.page-hero__bg .illus { inset-block-start: calc(var(--header-h) + 12px); inset-inline-end: var(--gutter); }
.page-hero__title { max-width: 22ch; margin-bottom: 14px; color: #fff; font-size: clamp(30px, 4vw, 52px); }
.page-hero__intro { max-width: 60ch; margin: 0; color: rgba(255, 255, 255, .85); font-weight: 300; font-size: clamp(16px, 1.3vw, 18px); }
.page-hero .actions { margin-top: 28px; }
.page-hero__tag a { color: inherit; }
.page-hero__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 14px; border: 1px solid rgba(217, 180, 82, .45); border-radius: 99px; background: rgba(195, 154, 51, .18); color: var(--gold-2); font-size: 14px; font-weight: 500; }
.page-hero__tag a { color: inherit; text-decoration: none; }
.page-hero__tag .icon { width: 18px; height: 18px; }

.crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.crumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: .5; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- شريط الأرقام ---------- */
.stats-band { padding-block: clamp(44px, 5vw, 64px); background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.stat { padding: 8px 12px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-d); }
.stat__icon .icon { width: 28px; height: 28px; }
.stat__value { display: block; color: var(--navy); font-weight: 600; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; }
.stats__note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } .stat + .stat { border: 0; } .stat:last-child { grid-column: 1 / -1; } }

/* ---------- كروت الخدمات ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__media { aspect-ratio: 16 / 10; }
.service-card__media img { transition: transform .8s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__body { flex: 1; display: flex; flex-direction: column; padding: 0 22px 22px; }
.service-card__icon { position: relative; z-index: 2; align-self: flex-start; margin-block: -28px 8px; margin-inline-start: -2px; pointer-events: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--gold-2); box-shadow: 0 0 0 5px #fff; transition: background-color .3s, color .3s; }
.service-card:hover .service-card__icon { background: var(--gold); color: #fff; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card__title { margin-bottom: 6px; font-size: 21px; }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.service-card__title a:focus-visible { outline: none; }
.service-card__text { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-d); font-weight: 500; font-size: 15px; }
.service-card__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(-5px); }

/* ---------- لماذا / تعريف ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why__media { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); }
.why__more { margin-top: 20px; }
.why__text .section-title { text-align: start; }
.why__lead { margin: 0 0 22px; color: var(--muted); }
.features { display: grid; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-d); transition: background-color .3s, color .3s; }
.feature:hover .feature__icon { background: var(--gold); color: #fff; }
.feature__title { margin: 0; font-size: 17px; }
.feature__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- خطوات العمل (قسم بخلفية صورة) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 36px; inset-inline: 10%; height: 2px; background: rgba(255, 255, 255, .18); }
.steps::after { content: ""; position: absolute; top: 36px; inset-inline-start: 10%; width: 80%; height: 2px; background: var(--gold-2); transform-origin: right; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
html:not(.reveal-ready) .steps::after, .steps.is-in::after { transform: scaleX(1); }
.step { position: relative; text-align: center; }
.step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 18px; border: 2px solid var(--gold-2); border-radius: 50%; background: var(--navy-2); color: var(--gold-2); }
.step__icon .icon { width: 30px; height: 30px; }
.step__icon b { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-2); font-size: 13px; font-weight: 600; }
.step__title { margin-bottom: 6px; color: #fff; font-size: 18px; }
.step__text { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.7; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.steps::before, .steps::after { display: none; }
	.step { display: grid; grid-template-columns: 74px 1fr; gap: 0 16px; text-align: start; }
	.step__icon { grid-row: span 2; margin: 0; }
}

/* ---------- القطاعات ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr; } }
.sector { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 4.7; border-radius: var(--radius); color: #fff; }
@media (max-width: 900px) { .sector { aspect-ratio: 16 / 11; } }
.sector__media { position: absolute; inset: 0; z-index: -2; }
.sector__media img { transition: transform .9s var(--ease); }
.sector:hover .sector__media img { transform: scale(1.07); }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 27, 58, .92), rgba(14, 27, 58, 0) 62%); }
.sector__body { position: absolute; inset-inline: 24px; bottom: 22px; }
.sector__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 12px; background: var(--gold); color: #fff; }
.sector__title { margin-bottom: 6px; color: #fff; font-size: 22px; }
.sector p { margin: 0; color: rgba(255, 255, 255, .84); font-size: 15px; line-height: 1.7; }

/* ---------- كروت المقالات والمشاريع ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards--2 { grid-template-columns: 1fr; } }
.post-card, .project-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover, .project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media, .project-card__media { aspect-ratio: 16 / 10; }
.post-card__media img, .project-card__media img { transition: transform .8s var(--ease); }
.post-card:hover img, .project-card:hover img { transform: scale(1.06); }
.post-card__body, .project-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.post-card__cat, .project-card__type { align-self: flex-start; margin: 0 0 10px; padding: 2px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-d); font-size: 13px; font-weight: 500; }
.post-card__title, .project-card__title { margin-bottom: 8px; font-size: 19px; line-height: 1.55; }
.post-card__title a, .project-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after, .project-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { flex: 1; margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.post-card__date, .project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--muted); font-size: 13px; }
.post-card__date span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__date .icon + time, .post-card__date span .icon { flex: none; }
/* أحدث مقال: بطاقة أفقية كبيرة */
.post-card--featured { margin-bottom: 24px; }
.post-card--featured .post-card__title { font-size: clamp(22px, 2.2vw, 28px); }
.post-card--featured .post-card__excerpt { flex: 0; font-size: 16px; }
.post-card--featured .link-arrow { margin-top: 16px; }
@media (min-width: 760px) {
	.post-card--featured { display: grid; grid-template-columns: 1.1fr 1fr; }
	.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; height: 100%; }
	.post-card--featured .post-card__body { justify-content: center; padding: 32px; }
}
.post-card__date .icon { width: 16px; height: 16px; color: var(--gold); }

/* ---------- الأسئلة الشائعة ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #d9cfbd; box-shadow: 0 16px 34px -28px rgba(20, 37, 77, .55); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--navy); font-weight: 500; list-style: none; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--paper); color: var(--gold-d); transition: transform .25s var(--ease), background-color .25s; }
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--gold-soft); }
.faq__a { padding: 0 22px 18px; color: var(--muted); }
.faq__a p { margin: 0; }

/* ---------- نموذج الطلب ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
@media (max-width: 1000px) { .quote-layout { grid-template-columns: 1fr; } }
.quote { padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -48px rgba(20, 37, 77, .6); }
.quote__title { font-size: clamp(24px, 2.6vw, 32px); }
.quote__text { color: var(--muted); }
.quote__req { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.req { color: var(--err); }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.fields { display: grid; gap: 18px 20px; margin-bottom: 26px; }
@media (min-width: 640px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-weight: 500; font-size: 15px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; padding-inline-end: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px 18px; }
[dir="ltr"] .field select { background-position: right 14px center; }
.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(--navy); box-shadow: 0 0 0 4px rgba(195, 154, 51, .25); }
.field [aria-invalid="true"] { border-color: var(--err); background: #fffafa; }
.field input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed #d6cdbd; border-radius: 12px; background: var(--paper); font: inherit; font-size: 15px; cursor: pointer; }
.field input[type="file"]::file-selector-button { margin-inline-end: 12px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.field__hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.field__error { margin: 6px 0 0; color: var(--err); font-size: 14px; font-weight: 500; }
.field--check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { flex: none; width: 20px; height: 20px; margin-top: 5px; accent-color: var(--navy); }
.field--check label { flex: 1; color: var(--ink); font-weight: 400; }
.field--check .field__error { flex-basis: 100%; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote .btn--lg { width: 100%; }
@media (min-width: 640px) { .quote .btn--lg { width: auto; } }
.notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 16px 18px; border-radius: 12px; }
.notice[hidden] { display: none; }
.notice p { margin: 0; }
.notice--ok { border: 1px solid #b7e0c8; background: var(--ok-bg); color: var(--ok); }
.notice--ok .icon { margin-top: 4px; }
.notice--error { border: 1px solid #f5c2bc; background: var(--err-bg); color: var(--err); }

.quote-aside { display: grid; gap: 16px; }
.quote-aside__title { margin: 0; font-size: 20px; }
.quote-aside__note { padding: 22px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .85); }
.quote-aside__note h3 { color: #fff; font-size: 17px; }
.quote-aside__note ul { display: grid; gap: 10px; font-size: 15px; }
.quote-aside__note li { display: flex; align-items: flex-start; gap: 10px; }
.quote-aside__note .icon { margin-top: 5px; color: var(--gold-2); }

/* ---------- بطاقات التواصل ---------- */
.contact-cards { display: grid; gap: 12px; }
.section .wrap > .contact-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .section .wrap > .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .section .wrap > .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, transform .25s var(--ease); }
.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-card__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gold); color: #fff; }
.contact-card__label { color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-card__value { color: var(--navy); font-weight: 500; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
a.contact-card__value:hover { color: var(--gold-d); }

/* ---------- صندوق «اطلب عرض سعر» بخلفية صورة ---------- */
.cta-section { padding-block: clamp(56px, 7vw, 96px); }
.cta-box { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--navy); color: #fff; }
.cta-box > .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 27, 58, .95) 0%, rgba(14, 27, 58, .82) 55%, rgba(14, 27, 58, .6) 100%); }
.cta-box__title { margin-bottom: 12px; color: #fff; font-size: clamp(28px, 3.4vw, 44px); }
.cta-box p { max-width: 46ch; margin: 0 0 28px; color: rgba(255, 255, 255, .82); }
.cta-box .contact-card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.cta-box .contact-card:hover { background: rgba(255, 255, 255, .14); border-color: var(--gold-2); }
.cta-box .contact-card__label { color: rgba(255, 255, 255, .65); }
.cta-box .contact-card__value { color: #fff; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; } }

/* ---------- صفحة الخدمة ---------- */
.service-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .service-body { grid-template-columns: 1fr; } }
.scope { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
@media (min-width: 1001px) { .scope { position: sticky; top: calc(var(--header-h) + 24px); } }
.scope__title { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.scope__title .icon { color: var(--gold); }
.scope__list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #d9d0c0; }
.scope__list li:last-child { border: 0; }
.scope__list .icon { width: 20px; height: 20px; margin-top: 6px; padding: 3px; border-radius: 50%; background: var(--gold); color: #fff; }
.why-box { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 980px; margin-inline: auto; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.why-box__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: var(--navy); color: var(--gold-2); }
.why-box__icon .icon { width: 34px; height: 34px; }
.why-box h2 { margin-bottom: 6px; font-size: clamp(22px, 2.4vw, 28px); }
.why-box p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 600px) { .why-box { grid-template-columns: 1fr; } }
.related-services { display: grid; gap: 10px; }
.related-services a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); font-weight: 500; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.related-services a:hover { border-color: var(--gold); transform: translateX(-4px); }
.related-services__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-d); }
.related-services__arrow { margin-inline-start: auto; color: var(--muted); }

/* ---------- المعرض والفيديو ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery__item:first-child { grid-row: auto; } }
.gallery__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius); }
.gallery__media { height: 100%; aspect-ratio: 16 / 10; }
.gallery__media img { transition: transform .8s var(--ease); }
.gallery__link:hover img { transform: scale(1.06); }
.gallery__zoom { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-start: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.lightbox { width: min(1200px, 100vw); max-width: 100vw; max-height: 100svh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(6, 12, 26, .92); }
.lightbox img { width: auto; max-height: 84svh; margin-inline: auto; border-radius: 12px; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; color: #fff; }
.lightbox button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); background: var(--gold); }
.lightbox__nav { display: flex; gap: 10px; }
.lightbox__next .icon { transform: scaleX(-1); }
.video { max-width: 900px; margin: 28px auto 0; }
.video__poster, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: var(--radius); background: #000; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__btn { position: absolute; inset: 0; display: grid; place-items: center; }
.video__btn .icon { width: 78px; height: 78px; padding: 22px; border-radius: 50%; background: var(--gold); color: #fff; fill: currentColor; box-shadow: 0 0 0 10px rgba(195, 154, 51, .25); transition: transform .25s var(--ease); }
.video__poster:hover .video__btn .icon { transform: scale(1.06); }

/* ---------- من نحن ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 30px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--navy); color: var(--gold-2); }
.pillar__icon .icon { width: 28px; height: 28px; }
.pillar__title { font-size: 22px; }
.pillar p { margin: 0; color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.values li { padding: 4px 14px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-d); font-weight: 500; font-size: 15px; }
.intro__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }
.intro__media { aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg); }

/* ---------- القوائم والفلاتر والبحث ---------- */
/* شريط اختيارات أفقي بأسهم وسحب (main.js)؛ بدون JS يبقى قابلاً للتمرير بشريط رفيع. */
.chips { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.chips__track { display: flex; flex: 1; gap: 8px; min-width: 0; overflow-x: auto; padding-block: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.js .chips__track { scrollbar-width: none; }
.js .chips__track::-webkit-scrollbar { display: none; }
/* RTL: البداية يميناً، فالتلاشي على الحافة التي خلفها عناصر. */
.chips.has-overflow:not(.at-start) .chips__track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.chips.has-overflow:not(.at-end) .chips__track { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.chips.has-overflow:not(.at-start):not(.at-end) .chips__track { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
[dir="ltr"] .chips.has-overflow:not(.at-start).at-end .chips__track { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
[dir="ltr"] .chips.has-overflow.at-start:not(.at-end) .chips__track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.chips.is-dragging .chips__track { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.chips__item { flex: none; scroll-snap-align: start; padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.chips__item:hover { border-color: var(--navy); color: var(--navy); }
.chips__item.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.chips__btn { display: none; flex: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, opacity .2s; }
.chips__btn .icon { width: 20px; height: 20px; }
.chips__btn:hover:not(:disabled) { border-color: var(--navy); background: var(--navy); color: #fff; }
.chips__btn:disabled { opacity: .35; cursor: default; }
.js .chips.has-overflow .chips__btn { display: grid; }
@media (max-width: 600px) { .js .chips.has-overflow .chips__btn { display: none; } }
.search { display: flex; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(195, 154, 51, .25); }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 14px; border: 0; background: transparent; color: var(--ink); font: inherit; }
.search input:focus { outline: none; }
.search button { display: grid; place-items: center; width: 52px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
.empty { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin-inline: auto; padding: 48px 24px; text-align: center; background: var(--paper); border: 1.5px dashed #d6cdbd; border-radius: var(--radius); }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--gold-soft); color: var(--gold-d); }
.empty__icon .icon { width: 36px; height: 36px; }
.empty p { margin: 0; font-size: 17px; }
.facts { display: grid; margin: 0; padding: 8px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #d9d0c0; }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--navy); font-weight: 500; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 12px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav-links .page-numbers:hover { border-color: var(--navy); }
.nav-links .page-numbers.current { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- المدونة: المحتوى + عمود جانبي ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-side { display: grid; gap: 20px; }
@media (min-width: 1101px) { .blog-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.side-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-box__title { position: relative; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 18px; line-height: 1.4; }
.side-box__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; width: 44px; height: 2px; background: var(--gold); }
.side-box .search { margin: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; transition: color .2s; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a .icon { width: 18px; height: 18px; color: var(--gold); }
.side-cats a span { flex: 1; }
.side-cats a b { display: grid; place-items: center; min-width: 28px; height: 24px; padding-inline: 8px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 500; transition: background-color .2s, color .2s; }
.side-cats a:hover, .side-cats a[aria-current] { color: var(--navy); }
.side-cats a:hover b, .side-cats a[aria-current] b { background: var(--navy); color: #fff; }
.side-posts { display: grid; gap: 14px; }
.side-posts a { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; color: var(--ink); text-decoration: none; }
.side-posts__img { grid-row: span 2; width: 76px; height: 64px; overflow: hidden; margin: 0; border-radius: 12px; background: var(--paper); }
.side-posts__img img, .post-nav__img img { width: 100%; height: 100%; object-fit: cover; }
.side-posts__img .illus, .post-nav__img .illus { display: none; } /* الصور المصغرة أصغر من أن تحمل الوسم؛ يظهر في المقال نفسه */
.side-posts__title { font-weight: 500; font-size: 15px; line-height: 1.6; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-posts__date { color: var(--muted); font-size: 13px; }
.side-posts a:hover .side-posts__title { color: var(--gold-d); }
.side-box--cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 10px; border: 0; background: var(--navy); color: rgba(255, 255, 255, .82); }
.side-box--cta .side-box__title { margin-bottom: 4px; border-color: rgba(255, 255, 255, .14); color: #fff; }
.side-box--cta p:not(.side-box__title) { margin: 0 0 6px; font-size: 15px; }
.side-box--cta .btn { justify-content: center; }

/* ---------- الشبكات: أيقونات المتابعة ---------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; color: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.social .icon { width: 20px; height: 20px; }
.social--dark { margin-top: 12px; }
.social--dark a { border-color: var(--line); color: var(--navy); }

/* ---------- المقال ---------- */
.article .page-hero { padding-bottom: clamp(100px, 11vw, 150px); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { width: 18px; height: 18px; color: var(--gold-2); }
.article__cover { position: relative; z-index: 2; margin-top: clamp(-100px, -8vw, -64px); aspect-ratio: 21 / 9; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 700px) { .article__cover { aspect-ratio: 16 / 10; } }
.article__meta { row-gap: 8px; }
/* شريط تقدّم القراءة أعلى الشاشة */
.read-progress { position: fixed; inset-inline: 0; top: 0; z-index: 70; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .read-progress i { transform-origin: left; }
html:not(.js) .read-progress { display: none; }
/* المحتوى + عمود جانبي ثابت (المحتويات والمشاركة وطلب السعر) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side"; gap: 56px; align-items: start; margin-top: 48px; }
.article-main { grid-area: main; min-width: 0; max-width: 780px; }
.article-side { grid-area: side; display: grid; gap: 18px; }
@media (min-width: 1101px) { .article-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 1100px) {
	.article-layout { grid-template-columns: 1fr; grid-template-areas: "side" "main"; gap: 0; margin-top: 32px; }
	.article-main { max-width: none; }
	.article-side__extra { display: none; }
}
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.toc summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--navy); font-weight: 600; cursor: pointer; }
.toc summary .icon { color: var(--gold); }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0 12px 14px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-size: 15px; line-height: 1.6; text-decoration: none; transition: background-color .2s, color .2s; }
.toc a::before { content: counter(toc); flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toc a:hover { background: #fff; color: var(--navy); }
.toc a[aria-current] { background: var(--navy); color: #fff; }
.toc a[aria-current]::before { border-color: var(--gold); background: var(--gold); color: var(--navy); }
@media (max-width: 1100px) { .toc { margin-bottom: 32px; } }
.article__body { margin-top: 0; }
/* المشاركة */
.share { display: grid; gap: 12px; }
.share__title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--navy); font-weight: 600; font-size: 16px; }
.share__title .icon { width: 20px; height: 20px; color: var(--gold); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.share__btn .icon { width: 20px; height: 20px; }
.share__btn:hover { transform: translateY(-2px); border-color: var(--navy); background: var(--navy); color: #fff; }
.share__btn--whatsapp:hover { border-color: #1fa855; background: #1fa855; }
.share__btn.is-done { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.share__note { min-height: 1.4em; margin: 0; color: var(--ok); font-size: 14px; }
.share__note:empty { display: none; }
html:not(.js) [data-copy] { display: none; }
.share--side { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 1101px) { .article__foot .share { display: none; } }
.article__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.article__cats .icon { width: 20px; height: 20px; color: var(--gold); }
.article__cats a { padding: 4px 14px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-d); font-size: 14px; font-weight: 500; text-decoration: none; }
.article__cats a:hover { background: var(--navy); color: #fff; }
/* عن الكاتب */
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 20px; margin-top: 32px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.author-box__mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--navy); color: var(--gold-2); }
.author-box__mark .icon { width: 34px; height: 34px; }
.author-box__name { margin: 0 0 4px; color: var(--navy); font-weight: 600; font-size: 18px; }
.author-box p { margin-bottom: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }
/* المقال السابق والتالي */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 72px; }
.post-nav__item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-nav__item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.post-nav__img { flex: none; width: 72px; height: 72px; overflow: hidden; margin: 0; border-radius: 12px; background: var(--paper); }
.post-nav__item small { display: block; color: var(--gold-d); font-size: 13px; font-weight: 500; }
.post-nav__item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.55; }
.post-nav__item--next { flex-direction: row-reverse; text-align: end; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--empty { display: none; } }
.article__faq { margin-top: 48px; }
.article__faq h2 { font-size: 26px; }
.article-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 18px; margin-block: 32px; padding: 30px; border-radius: var(--radius-lg); background: var(--navy); color: rgba(255, 255, 255, .85); }
.article-cta__title { color: #fff; font-size: 24px; }
.article-cta p { margin: 0; }
@media (min-width: 720px) { .article-cta { grid-template-columns: 1fr auto; align-items: center; } }

.prose { color: var(--ink); font-size: 17px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-block: 1.8em .6em; font-size: clamp(22px, 2.2vw, 28px); }
.prose h3 { margin-block: 1.5em .5em; font-size: 20px; }
.prose p, .prose li { color: #353c4c; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold); }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 1.5em 0; padding: 14px 22px; border-inline-start: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--paper); color: var(--navy); font-weight: 500; }
.prose table { display: block; width: 100%; margin: 1.5em 0; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose thead th { background: var(--navy); border-color: var(--navy); color: #fff; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: var(--paper); }

/* ---------- التذييل ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-2); color: rgba(255, 255, 255, .72); font-size: 15px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__top p { margin: 0; color: #fff; font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 48px 40px; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.brand--chip { margin-bottom: 16px; padding: 10px 14px; }
.brand--chip .brand__img { height: 46px; }
.site-footer__about p { margin: 0; line-height: 1.9; }
.site-footer__title { position: relative; margin-bottom: 18px; padding-bottom: 10px; color: #fff; font-size: 17px; }
.site-footer__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold-2); }
.site-footer__links, .site-footer__contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
/* الأزرار وأيقونات الشبكات لها ألوانها؛ هذه للروابط النصية فقط (وإلا صار نص زر «اطلب عرض سعر» أبيض على ذهبي). */
.site-footer a:not(.btn):not(.social a) { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:not(.btn):not(.social a):hover { color: var(--gold-2); }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; }
.site-footer__contact li { display: flex; align-items: center; gap: 12px; }
.site-footer__contact .icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--gold-2); }
.site-footer__bottom { padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__bottom p { margin: 0; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer__credit a { color: var(--gold-2); font-weight: 500; }

/* ---------- الظهور التدريجي (مع JavaScript فقط) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal-ready [data-reveal] { opacity: 1; transform: none; }
	.js .slide__media img, .js .slide.is-on .slide__media img { transform: none; transition: none; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print { .site-header, .site-footer, .float-wa, .to-top, .preloader, .cta-section, .quote, .slider__ctrl, .slider__tabs { display: none !important; } }
