/* ==========================================================================
   مجموعة راشد محمد العبداللطيف للتجارة — أنماط القالب
   مبني بخصائص CSS المنطقية (inline-start/end) ليعمل RTL و LTR من ملف واحد.

   نظام الألوان: حبر دافئ للأسطح الداكنة، جوز لقطاع الأثاث، ذهب مأخوذ من حرف
   الشعار للخطوط الشعرية والأرقام، وكتّان للأشرطة الفاتحة.
   ========================================================================== */

:root {
	--overlay: 12, 10, 9;
	--ink: #1c1a19;
	--ink-2: #2a2624;
	--walnut: #4a3222;
	--walnut-2: #6a4a33;
	--gold: #9a7a2e;
	--gold-2: #b8955a;
	--champagne: #d9c39a;
	--linen: #f3efe8;
	--linen-2: #eae3d8;
	--line: #e3dccf;
	--paper: #ffffff;
	--text: #2b2521;
	--muted: #6d635b;

	/* أسماء قديمة تعتمد عليها كتل المحتوى المخزّنة في الصفحات */
	--brown-900: var(--ink);
	--brown-800: var(--walnut);
	--brown-700: var(--walnut-2);
	--brown-500: var(--gold);
	--brown-300: var(--champagne);
	--sand: var(--linen);

	--font: "Readex Pro", "Geeza Pro", Tahoma, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 44px);
	--section: clamp(72px, 10vw, 136px);
	--radius: 4px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--header-base: 78px; /* ارتفاع الترويسة الأدنى (لا يُقاس، وإلا دارت حلقة نموّ) */
	--header-h: 78px;   /* الارتفاع الفعلي المقيس بالسكربت؛ للإزاحات فقط */
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	overflow-x: clip;
}
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.04rem;
	font-weight: 300;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}
html[lang^="en"] body { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--walnut-2); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200;
	background: var(--ink); color: #fff; padding: 12px 18px;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.text-center { text-align: center; }
.empty { color: var(--muted); }

/* ---------- أزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius);
	font-size: .95rem; font-weight: 500; line-height: 1; min-height: 48px;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn--solid { background: var(--walnut); color: #fff; }
.btn--solid:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--walnut); color: var(--walnut); }
.btn--ghost:hover { background: var(--walnut); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--champagne); color: var(--ink); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); color: #fff; }
.btn .icon { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- الترويسة ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid transparent;
	backdrop-filter: saturate(140%) blur(10px);
	transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(28, 26, 25, .5); }
.site-header__inner { min-height: var(--header-base); display: flex; align-items: center; gap: 28px; }
.site-branding img { max-height: 54px; width: auto; transition: max-height .3s var(--ease); }
.site-header.is-scrolled .site-branding img { max-height: 46px; }
.site-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }

.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.nav-list a { font-size: .95rem; font-weight: 400; color: var(--text); position: relative; white-space: nowrap; padding-block: 6px; }
.nav-list > li { display: flex; align-items: center; }
.nav-list a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: inline-start;
	transition: transform .35s var(--ease-out);
}
.nav-list .current-menu-item > a::after,
.nav-list .current-menu-ancestor > a::after { transform: scaleX(1); }
@media (hover: hover) { .nav-list a:hover::after { transform: scaleX(1); } }
.nav-list .menu-item-has-children { position: relative; }
.nav-list .sub-menu {
	position: absolute; inset-inline-start: 0; top: calc(100% + 14px); min-width: 230px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(28, 26, 25, .5);
	padding: 10px; z-index: 130;
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-list .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.nav-list .menu-item-has-children:focus-within > .sub-menu,
.nav-list .menu-item-has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
	.nav-list .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.nav-list .sub-menu a { display: block; padding: 9px 12px; white-space: nowrap; }
.nav-list .sub-menu a:hover { background: var(--linen); color: var(--ink); }
.nav-list .sub-menu a::after { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__actions .btn { white-space: nowrap; }
.lang-btn { padding: 8px 10px; font-size: .9rem; font-weight: 500; letter-spacing: .04em; border: 0; background: none; color: var(--muted); min-height: 0; }
.lang-btn:hover { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }

.menu-toggle {
	display: none; width: 44px; height: 44px; margin-inline-start: auto;
	background: transparent; border: 0; cursor: pointer; padding: 0;
	border-radius: var(--radius); -webkit-tap-highlight-color: transparent;
}
.menu-toggle__bars { display: grid; gap: 6px; justify-items: center; }
.menu-toggle__bars span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease); transform-origin: center; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- الواجهة ---------- */
.hero {
	position: relative; display: flex; align-items: flex-end;
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	background: var(--ink); color: #fff; overflow: hidden;
}
/* الصور تمتد فوق حواف القسم وتتحرك أبطأ من التمرير (النقش المتحرك)، فتظهر بعمق خلف النص.
   الإشارة معكوسة لأن الواجهة تغادر الشاشة من الأعلى فقط، والصور يجب أن تتأخر خلفها لا أن تسبقها. */
.hero__slides {
	position: absolute; inset: -14% 0; overflow: hidden;
	transform: translate3d(0, calc(var(--parallax-y, 0px) * -1), 0); will-change: transform;
}
.hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transform: scale(1.04);
	transition: opacity 1.8s var(--ease); will-change: opacity, transform;
}
.hero__slide.is-active { opacity: .92; animation: hero-kenburns 9s linear forwards; }
/* الشريحة الأولى تبقى أطول، فيمتد تكبيرها على مدتها كلها */
.hero__slide:first-child.is-active { animation-duration: 15s; }
@keyframes hero-kenburns { from { transform: scale(1.04); } to { transform: scale(1.2); } }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(to bottom, rgba(var(--overlay), .18) 0%, rgba(var(--overlay), .1) 40%, rgba(var(--overlay), .78) 100%);
}
/* المحتوى كله في منتصف الواجهة */
/* كتلة النص في منتصف الواجهة، وداخلها كل السطور على محاذاة البداية (اليمين في العربية) بخط واحد، والتمهيد بلا خط قبله */
.hero__inner {
	position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 9vw, 120px) clamp(64px, 8vw, 104px);
	display: flex; flex-direction: column; align-items: center;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; text-align: start; max-width: 100%; }

.hero__kicker {
	display: block; margin-bottom: 22px;
	color: var(--champagne); font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 400; letter-spacing: .02em;
}
.hero__title {
	color: #fff; font-size: clamp(2rem, 5.2vw, 3.9rem); line-height: 1.22; max-width: 22ch;
	text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__text { color: rgba(255, 255, 255, .86); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.9; max-width: 58ch; margin-top: 22px; text-wrap: pretty; }
.hero__subtitle { color: var(--champagne); font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 400; line-height: 1.5; max-width: 40ch; margin: 18px 0 0; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
/* الأزرار وشريط التقدّم في منتصف الكتلة، بينما تبقى النصوص على محاذاة البداية */
.hero .btn-row { margin-top: 30px; justify-content: center; align-self: center; }
.hero__progress { align-self: center; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* رمز المجموعة: يرافق الشريحة الأولى فقط؛ على الشاشات الواسعة في الطرف المقابل للنص، وعلى الجوال فوق العنوان */
.hero__mark {
	position: absolute; z-index: 1; pointer-events: none;
	inset-inline-end: clamp(0px, 1.5vw, 32px); top: 50%; transform: translateY(-56%);
	width: clamp(150px, 16vw, 260px);
	filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5));
	opacity: 0; transition: opacity .9s var(--ease);
}
.hero.is-first-slide .hero__mark { opacity: .92; }
.hero__mark .brand-mark--hero { width: 100%; height: auto; margin: 0; }
.brand-mark--hero .mark__plate { display: none; }
.brand-mark--hero .mark__shield { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; }

/* أشرطة تقدّم الشرائح */
.hero__progress { display: flex; gap: 8px; margin-top: clamp(36px, 5vw, 64px); width: 100%; max-width: 320px; }
.hero__progress span { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__progress span::after {
	content: ""; position: absolute; inset: 0; background: var(--champagne);
	transform: scaleX(0); transform-origin: inline-start;
}
.hero__progress span.is-active::after { animation: hero-progress var(--hero-duration, 7.2s) linear forwards; }
.hero__progress span.is-done::after { transform: scaleX(1); }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* تسلسل الدخول: خط التمهيد، ثم سطور العنوان، ثم النص والأزرار */
.hero__kicker { opacity: 0; animation: hero-fade .9s var(--ease) .25s forwards; }
.hero__title .line > span { transform: translateY(110%); animation: hero-rise 1s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .45s; }
.hero__title .line:nth-child(2) > span { animation-delay: .58s; }
.hero__title .line:nth-child(3) > span { animation-delay: .71s; }
.hero__title .line:nth-child(4) > span { animation-delay: .84s; }
.hero__subtitle, .hero__text, .hero .btn-row, .hero__progress { opacity: 0; transform: translateY(16px); animation: hero-fade-up .9s var(--ease-out) forwards; }
.hero__subtitle { animation-delay: .85s; }
.hero__text { animation-delay: 1.05s; }
.hero .btn-row { animation-delay: 1.15s; }
.hero__progress { animation-delay: 1.3s; }
@keyframes hero-fade { to { opacity: 1; } }
@keyframes hero-line { to { transform: scaleX(1); } }
@keyframes hero-rise { to { transform: none; } }
@keyframes hero-fade-up { to { opacity: 1; transform: none; } }

/* ---------- الأرقام ---------- */
.facts { background: var(--linen); position: relative; overflow: hidden; }
.facts__grid {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	padding-block: clamp(56px, 7vw, 96px);
}
.fact { display: grid; gap: 8px; padding-inline: clamp(18px, 3vw, 40px); border-inline-start: 1px solid var(--champagne); }
.fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact__value {
	font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; color: var(--walnut);
	line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.fact__value--text { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3; }
.fact__value small { font-size: .5em; color: var(--gold); font-weight: 500; margin-inline-start: 4px; }
.fact__label { font-size: .95rem; color: var(--muted); line-height: 1.6; }

/* ---------- عناوين الأقسام ---------- */
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 60ch; }
.kicker { display: block; font-size: .9rem; font-weight: 400; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.3; text-wrap: balance; }
.section__cta { margin-top: 40px; display: flex; justify-content: flex-start; }

/* ---------- شبكات ---------- */
.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- بطاقات: صورة ثم تسمية، بلا إطار ولا ظل ---------- */
.card { display: flex; flex-direction: column; background: transparent; }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: inline-start; transition: transform .5s var(--ease-out);
}
.card:hover .card__media::after { transform: scaleX(1); }
.card__body { padding: 18px 0 0; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.card__title { font-size: 1.12rem; line-height: 1.45; }
.card__text { color: var(--muted); font-size: .98rem; line-height: 1.8; text-wrap: pretty; }
.card__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.thumb-placeholder { display: block; width: 100%; height: 100%; background: var(--linen) url("../img/pattern-ink.svg") repeat center / 110px; position: relative; }
.thumb-placeholder::after { content: ""; position: absolute; inset: 0; background: rgba(243, 239, 232, .8); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; padding: 8px 16px; font-size: .88rem; font-weight: 400;
	border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff;
	transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.chip:hover, .chip.is-active { border-color: var(--walnut); color: var(--walnut); }
.chip.is-active { background: var(--walnut); color: #fff; }
.chip__count { margin-inline-start: 8px; font-size: .78rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__count { color: inherit; opacity: .8; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

/* ---------- نبذة ---------- */
.about { position: relative; overflow: hidden; }
/* حرف R كبير خلف النص، باهت حتى لا يزاحم القراءة، يُرسم خطًّا عند الوصول إليه */
.about__letter {
	position: absolute; z-index: 0; pointer-events: none;
	inset-inline-start: clamp(-40px, -2vw, 0px); top: 50%; transform: translateY(-50%);
	height: 112%; aspect-ratio: 92 / 98;
}
.about__letter .letter-r { width: 100%; height: 100%; }
.about__letter .letter-r path { opacity: .28; stroke-width: .18; }
/* الحرف هنا كبير، فيُرسم على مهل: دورة أطول من نظيره في شريط الدعوة */
.about__letter .letter-r.is-in path { animation-duration: 16s; }
.about__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__copy .lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.85; color: var(--text); font-weight: 300; margin-bottom: 30px; }
.lead { font-size: 1.12rem; line-height: 1.9; color: var(--muted); margin-bottom: 26px; text-wrap: pretty; }
.about__media { position: relative; padding-bottom: 64px; padding-inline-start: 52px; }
.about__figure { margin: 0; overflow: hidden; }
.about__figure--main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__figure--sub {
	position: absolute; inset-inline-start: 0; bottom: 0; width: 46%;
	border: 8px solid #fff; box-shadow: 0 30px 60px -36px rgba(28, 26, 25, .55);
}
.about__figure--sub img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about__media::before {
	content: ""; position: absolute; inset-block: 32px 96px; inset-inline: 24px -28px; z-index: -1;
	border: 1px solid var(--champagne);
}

/* ---------- القطاعان: لوحتان بعرض الشاشة ---------- */
.sectors { padding-block: var(--section) 0; }
.sectors .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.diptych { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(520px, 78vh, 760px); }
.panel-sector {
	position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.panel-sector__bg { position: absolute; inset: 0; z-index: 0; }
.panel-sector__bg img, .panel-sector__bg .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.panel-sector:hover .panel-sector__bg img { transform: scale(1.06); }
.panel-sector__bg::after { content: ""; position: absolute; inset: 0; }
.panel-sector--furniture .panel-sector__bg::after {
	background: linear-gradient(to top, rgba(74, 50, 34, .92) 0%, rgba(74, 50, 34, .45) 45%, rgba(74, 50, 34, .1) 100%);
}
.panel-sector--titto .panel-sector__bg::after {
	background: linear-gradient(to top, rgba(var(--overlay), .94) 0%, rgba(var(--overlay), .5) 50%, rgba(var(--overlay), .15) 100%);
}
.panel-sector__inner { position: relative; z-index: 2; padding: clamp(28px, 4vw, 64px); width: 100%; max-width: 640px; }
.panel-sector__label { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--champagne); margin-bottom: 14px; }
.panel-sector__label::before { content: ""; width: 36px; height: 1px; background: var(--champagne); }
.panel-sector__title { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; }
.panel-sector__text { color: rgba(255, 255, 255, .84); margin-top: 14px; max-width: 48ch; font-size: 1rem; }
.panel-sector .chips { margin-top: 18px; }
.panel-sector .chip { background: transparent; border-color: rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .9); }
.panel-sector .btn-row { margin-top: 24px; }
.panel-sector .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.panel-sector .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.panel-sector--furniture .btn--solid { background: #fff; color: var(--walnut); }
.panel-sector--furniture .btn--solid:hover { background: var(--champagne); color: var(--ink); }
.panel-sector--titto .btn--solid { background: var(--gold); color: #fff; }
.panel-sector--titto .btn--solid:hover { background: var(--gold-2); }

/* هوية TITTO RICCI: خلفية حبر مع اسم العلامة كبيرًا وخط ذهبي رأسي */
.panel-sector--titto { background: var(--ink); }
.panel-sector__wordmark {
	position: absolute; z-index: 1; inset-inline-end: clamp(16px, 3vw, 40px); top: clamp(24px, 4vw, 56px);
	font-family: "Manrope", var(--font); font-weight: 300; letter-spacing: .34em; text-transform: uppercase;
	font-size: clamp(.8rem, 1.1vw, 1rem); color: var(--champagne); writing-mode: vertical-rl; direction: ltr;
	pointer-events: none;
}
.panel-sector__wordmark::after { content: ""; display: block; width: 1px; height: 80px; background: var(--gold-2); margin-top: 18px; margin-inline: auto; }
.panel-sector__rule { position: absolute; z-index: 1; inset-inline-start: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--gold-2) 40%, var(--gold-2) 60%, transparent); }

/* الكشف عند التمرير: تنزاح كل لوحة من جهتها */
.diptych .panel-sector { clip-path: inset(0 0 0 0); }
.reveal-ready .diptych .panel-sector--furniture { clip-path: inset(0 0 0 100%); transition: clip-path 1.2s var(--ease-out); }
.reveal-ready .diptych .panel-sector--titto { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out) .12s; }
.reveal-ready .diptych.is-visible .panel-sector { clip-path: inset(0 0 0 0); }
html:not([dir="rtl"]) .reveal-ready .diptych .panel-sector--furniture { clip-path: inset(0 100% 0 0); }
html:not([dir="rtl"]) .reveal-ready .diptych .panel-sector--titto { clip-path: inset(0 0 0 100%); }
html:not([dir="rtl"]) .reveal-ready .diptych.is-visible .panel-sector { clip-path: inset(0 0 0 0); }

/* ---------- الوكالة ---------- */
.agency { background: #fff; border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.agency__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.agency__logo { width: 170px; flex-shrink: 0; }
.agency__copy { flex: 1 1 320px; }
.agency__title { font-size: 1.2rem; margin-bottom: 6px; }
.agency__copy p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- المعرض ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-item { margin: 0; overflow: hidden; background: var(--linen); cursor: zoom-in; }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--lead { grid-row: span 2; grid-column: span 2; }
.gallery-grid--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- العملاء ---------- */
/* الخطوط الشعرية على كل شعار لا على الشبكة، حتى تبقى الخانات الفارغة في آخر صف بيضاء */
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 1px; }
.logo-item {
	display: flex; align-items: center; justify-content: center; padding: 22px;
	background: #fff; min-height: 110px; text-align: center; font-size: .9rem; color: var(--muted);
	box-shadow: 0 0 0 1px var(--line);
}
.logo-item img { max-height: 54px; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.logo-item:hover img { transform: scale(1.04); }

/* الرئيسية: العملاء والشركاء في صف واحد، عمود العملاء أعرض لأن شعاراته أكثر */
.clients__row { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.clients__col .section-head { margin-bottom: clamp(20px, 2.5vw, 32px); }
.logo-grid--clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-grid--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.logo-item img { max-width: 150px; }

/* ---------- القيم ---------- */
.values .grid--4 { gap: clamp(24px, 3vw, 48px); }
.value { border-top: 1px solid var(--champagne); padding-top: 22px; }
.value__title { font-size: 1.08rem; margin-bottom: 10px; }
.value__text { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- شريط الدعوة ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 90% at 100% 100%, rgba(154, 122, 46, .28), transparent 70%);
}
html:not([dir="rtl"]) .cta::before { background: radial-gradient(60% 90% at 0% 100%, rgba(154, 122, 46, .28), transparent 70%); }
.cta__inner {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
	flex-wrap: wrap; padding-block: clamp(56px, 7vw, 96px);
}
.cta__copy { max-width: 52ch; }
.cta__title { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta__text { color: rgba(255, 255, 255, .74); margin: 10px 0 0; }

/* حرف R خلف الزر: يملأ ارتفاع الشريط تقريبًا ويُرسم خطًّا ذهبيًا عند الوصول إليه */
.cta__letter {
	position: absolute; z-index: 0; pointer-events: none;
	inset-inline-end: clamp(8px, 4vw, 96px); top: 50%; transform: translateY(-50%);
	height: 84%; aspect-ratio: 92 / 98;
}
.cta__letter .letter-r { width: 100%; height: 100%; }
.letter-r { display: block; overflow: visible; }
/* سماكة الخط بوحدات المسار (98 وحدة = ارتفاع الحرف)، فتُضبط لكل موضع بحسب حجمه لتبقى نحو 1.5px */
.letter-r path {
	fill: none; stroke: var(--gold-2); stroke-width: .6; stroke-linejoin: round; stroke-linecap: round;
	opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* حلقة مستمرة: يُرسم الحرف، يثبت لحظة، ثم يمضي الخط من طرفه الآخر ويبدأ من جديد */
.letter-r.is-in path { animation: letter-draw 7s ease-in-out infinite; }
@keyframes letter-draw {
	0% { stroke-dashoffset: 1; }
	40% { stroke-dashoffset: 0; }
	58% { stroke-dashoffset: 0; }
	92% { stroke-dashoffset: -1; }
	100% { stroke-dashoffset: -1; }
}
.cta__inner { z-index: 1; }
.brand-mark { display: block; margin-bottom: 22px; overflow: visible; }
.brand-mark .mark__shield { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.brand-mark .mark__plate, .brand-mark .mark__r { opacity: 0; transform: translateY(10px); }
.brand-mark.is-in .mark__shield { animation: mark-draw 1.3s var(--ease) forwards; }
.brand-mark.is-in .mark__plate { animation: mark-rise .55s var(--ease) .9s forwards; }
.brand-mark.is-in .mark__r { animation: mark-rise .7s var(--ease) 1.05s forwards; }
@keyframes mark-draw { 0% { stroke-dashoffset: 1; fill-opacity: 0; } 65% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes mark-rise { to { opacity: 1; transform: none; } }

/* ---------- رؤوس الصفحات ---------- */
.page-head { position: relative; overflow: hidden; background: var(--linen); padding-block: clamp(44px, 6vw, 80px); }
.page-title { font-size: clamp(1.9rem, 4.4vw, 3rem); text-wrap: balance; line-height: 1.2; }
.page-lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.85; margin-top: 16px; max-width: 60ch; text-wrap: pretty; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); }
.page-figure { margin-top: -28px; position: relative; z-index: 2; }
.page-head--media { background: var(--ink); padding-block: clamp(84px, 12vw, 160px) clamp(56px, 7vw, 96px); min-height: min(62vh, 560px); display: flex; align-items: flex-end; }
.page-head--media .wrap { width: 100%; }
.page-head__bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; opacity: .9; transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06); animation: head-zoom 12s var(--ease) forwards; }
@keyframes head-zoom { to { transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1); } }
.page-head--media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(var(--overlay), .2) 0%, rgba(var(--overlay), .12) 40%, rgba(var(--overlay), .82) 100%); }
.page-head__inner { position: relative; z-index: 2; }
.page-head--media .page-title { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.page-head--media .page-lead { color: rgba(255, 255, 255, .88); }
.page-head--media .breadcrumb, .page-head--media .entry-meta { color: rgba(255, 255, 255, .7); }
.page-head--media .breadcrumb a { color: var(--champagne); }
.page-head--media .btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.page-head--media .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.page-head--media .btn-row { margin-top: 26px; }
.page-head .page-title, .page-head .page-lead, .page-head .breadcrumb, .page-head .btn-row { opacity: 0; transform: translateY(18px); animation: hero-fade-up .9s var(--ease-out) forwards; }
.page-head .breadcrumb { animation-delay: .1s; }
.page-head .page-title { animation-delay: .2s; }
.page-head .page-lead { animation-delay: .35s; }
.page-head .btn-row { animation-delay: .5s; }

/* ---------- المحتوى ---------- */
.entry-content > * { max-width: 70ch; }
.entry-content > .wp-block-image, .entry-content > figure, .entry-content > table,
.entry-content > .steps, .entry-content > .content-block, .entry-content > .alignwide { max-width: none; }
.entry-content h2 { font-size: 1.55rem; line-height: 1.4; margin-block: 1.6em .6em; }
.entry-content h3 { font-size: 1.22rem; line-height: 1.5; margin-block: 1.4em .5em; }
.entry-content ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry-content ol { list-style: decimal; padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry-content li { margin-bottom: .5em; }
.entry-content a { color: var(--walnut-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--champagne); }
.entry-content blockquote { margin: 1.5em 0; padding-inline-start: 20px; border-inline-start: 1px solid var(--gold); color: var(--muted); font-size: 1.05rem; }
.entry-content .btn { text-decoration: none; }
/* أزرار داخل المحتوى: قاعدة روابط المحتوى (.entry-content a) أعلى تخصيصًا من أنماط الزر، فتُعاد ألوان كل نوع وحالة تحويمه صراحةً */
.entry-content .btn--solid, .entry-content .btn--solid:hover, .entry-content .btn--gold, .entry-content .btn--gold:hover, .entry-content .btn--ghost:hover { color: #fff; }
.entry-content .btn--ghost { color: var(--walnut); }
.entry-content .btn--light, .entry-content .btn--light:hover { color: var(--ink); }

.entry-layout { display: grid; grid-template-columns: 1.6fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.entry-aside { background: var(--linen); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-title { font-size: 1.05rem; margin-bottom: 14px; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; margin: 0 0 18px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 500; }
.related-list { display: grid; gap: 14px; }
.related-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.related-list li:last-child { border-bottom: 0; }
.related-date { display: block; font-size: .82rem; color: var(--muted); }
.entry-meta { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }

/* ---------- التواصل ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { background: var(--linen); padding: 30px; }
.contact-list { display: grid; gap: 14px; margin-bottom: 20px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .97rem; min-height: 44px; }
.contact-list .icon { color: var(--gold); }
.contact-map { padding-bottom: var(--section); }
.contact-map iframe { display: block; width: 100%; height: clamp(280px, 42vh, 460px); border: 1px solid var(--line); }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], select, textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; color: var(--text); font: inherit; font-size: .97rem; transition: border-color .25s var(--ease);
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
label { font-size: .92rem; font-weight: 500; display: inline-block; margin-bottom: 6px; }
button:not(.menu-toggle):not(.lightbox__btn), input[type="submit"] {
	font: inherit; font-weight: 500; cursor: pointer; border: 0; border-radius: var(--radius);
	background: var(--walnut); color: #fff; padding: 14px 28px; transition: background .3s var(--ease);
}
button:not(.menu-toggle):not(.lightbox__btn):hover, input[type="submit"]:hover { background: var(--ink); }
.search-form { display: flex; gap: 10px; }

.wpcf7 .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.wpcf7 p { margin-bottom: 18px; }
.wpcf7 label { width: 100%; }
.wpcf7 label br { display: block; content: ""; margin-bottom: 6px; }
.wpcf7-not-valid-tip { color: #b3261e; font-size: .84rem; margin-top: 6px; }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--linen); font-size: .95rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: #f1f8f2; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #b3261e; background: #fdf3f2; }
.wpcf7-spinner { margin-inline-start: 10px; }
html[lang^="en"] .wpcf7, html[lang^="en"] .wpcf7 form, html[lang^="en"] .wpcf7 [dir="rtl"] { direction: ltr; text-align: start; }

/* ---------- ترقيم الصفحات ---------- */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 1px solid var(--line); font-size: .92rem; }
.page-numbers.current, .page-numbers:hover { background: var(--walnut); color: #fff; border-color: var(--walnut); }

/* ---------- التذييل ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 96px); }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-title { color: #fff; font-size: .98rem; font-weight: 500; margin-bottom: 18px; }
.footer-about { font-size: .94rem; margin-top: 18px; max-width: 40ch; }
.footer-col img { max-height: 60px; width: auto; background: #fff; padding: 10px 14px; }
.footer-list { display: grid; gap: 10px; font-size: .94rem; }
.footer-list li { min-height: 28px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { color: var(--gold-2); margin-top: 5px; }
.social-list { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: rgba(255, 255, 255, .8); transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.site-footer .social-link:hover, .social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.social-link .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .84rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
/* توقيع المطوّر في الطرف المقابل للحقوق (اليسار في العربية) */
.footer-credit { margin-inline-start: auto; color: rgba(255, 255, 255, .5); }
.footer-credit a { color: inherit; }
.footer-credit a:hover { color: var(--champagne); }

.whatsapp-fab {
	position: fixed; left: 22px; right: auto; inset-block-end: 22px; z-index: 90;
	width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
	transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }
.whatsapp-fab .icon { width: 26px; height: 26px; }

/* ---------- عارض الصور ---------- */
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(12, 10, 9, .95); padding: clamp(16px, 4vw, 48px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; cursor: pointer; padding: 0; font: inherit; font-size: 1.4rem; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 24px; inset-inline-end: 24px; }
.lightbox__prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); color: rgba(255, 255, 255, .7); font-size: .88rem; }
html:not([dir="rtl"]) .lightbox__count { transform: translateX(-50%); }

/* ---------- فاصل بين الأقسام ---------- */
.divider { position: relative; height: 1px; margin: 0; border: 0; background: linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent); }
.divider::after { content: ""; position: absolute; top: -1px; inset-inline-start: 50%; width: 40px; height: 3px; margin-inline-start: -20px; background: var(--gold); }

/* ---------- مكوّنات محتوى الصفحات ---------- */
.content-block { margin-block: clamp(44px, 6vw, 80px); }
.content-block > .block-head { margin-bottom: 30px; }
.block-head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.35; }
.block-head p { color: var(--muted); margin-top: 10px; max-width: 66ch; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: #fff; padding: 30px; display: grid; gap: 12px; align-content: start; transition: background .3s var(--ease); }
.feature:hover { background: var(--linen); }
.feature__icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--champagne); border-radius: 50%; color: var(--gold); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.06rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; background: var(--linen); padding: clamp(24px, 3vw, 40px); }
.panel__logo { width: 180px; flex-shrink: 0; background: #fff; padding: 14px 18px; }
.panel__logo img { width: 100%; display: block; }
.panel__body { flex: 1 1 340px; }
.panel__body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.panel__body p { color: var(--muted); margin: 0 0 14px; }

.field-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-card { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.field-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.field-card:hover img { transform: scale(1.05); }
.field-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--overlay), .86) 0%, rgba(var(--overlay), .3) 55%, rgba(var(--overlay), 0) 100%); }
.field-card__body { position: relative; z-index: 2; padding: 24px; color: #fff; }
.field-card__body h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.field-card__body p { color: rgba(255, 255, 255, .84); font-size: .94rem; margin: 0; }
/* روابط داخل البطاقة الداكنة: لون روابط المحتوى البني لا يُقرأ على الصورة */
.field-card__body a, .entry-content .field-card__body a { color: var(--champagne); text-decoration-color: rgba(217, 195, 154, .6); font-weight: 500; }
.field-card__body a:hover, .entry-content .field-card__body a:hover { color: #fff; }

.highlight { border-inline-start: 1px solid var(--gold); background: var(--linen); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.highlight__label { font-size: .88rem; color: var(--gold); }
.highlight h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.highlight p { color: var(--muted); margin: 0; }

.split-card { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.split-card__media { position: relative; min-height: 340px; }
.split-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-card__body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: center; }
.split-card__body h3 { font-size: 1.2rem; }
.info-list { display: grid; gap: 12px; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .96rem; color: var(--muted); }
.info-list .icon { color: var(--gold); margin-top: 3px; }

.store-banner { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.store-banner::before { content: ""; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 260px; height: 223px; opacity: .08; pointer-events: none; background: url("../img/brand-mark.svg") no-repeat center / contain; }
.store-banner__copy { position: relative; z-index: 2; max-width: 52ch; }
.store-banner h3 { color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: 8px; }
.store-banner p { color: rgba(255, 255, 255, .74); margin: 0; }
.store-banner .btn { position: relative; z-index: 2; }

.vm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vm-card { border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; background: #fff; }
.vm-card__label { font-size: .88rem; color: var(--gold); }
.vm-card h3 { font-size: 1.12rem; }
.vm-card p { color: var(--muted); margin: 0; }

.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-card { position: relative; overflow: hidden; background: #fff; display: grid; border: 1px solid var(--line); }
.link-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 1s var(--ease-out); }
.link-card:hover img { transform: scale(1.04); }
.link-card__body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.link-card__body h3 { font-size: 1.12rem; }
.link-card__body p { color: var(--muted); font-size: .96rem; margin: 0; }
.link-card__link { font-weight: 500; color: var(--walnut-2); font-size: .94rem; border-bottom: 1px solid var(--champagne); justify-self: start; }

.accred { background: var(--ink); color: #fff; padding: clamp(28px, 3.4vw, 48px); }
.accred__head h3 { color: #fff; font-size: 1.12rem; }
.accred__head p { color: rgba(255, 255, 255, .7); margin: 8px 0 0; font-size: .96rem; }
.accred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: 30px; }
.accred-item { display: grid; gap: 12px; justify-items: center; text-align: center; }
.accred-item img { max-height: 54px; width: auto; object-fit: contain; }
.accred-item span { font-size: .84rem; line-height: 1.6; color: rgba(255, 255, 255, .75); }

/* ---------- صفحة TITTO RICCI: سطح داكن ---------- */
.sector-titto .site-main { background: var(--ink); color: rgba(255, 255, 255, .84); }
.sector-titto .site-main h1, .sector-titto .site-main h2, .sector-titto .site-main h3 { color: #fff; }
.sector-titto .entry-content { color: rgba(255, 255, 255, .84); }
.sector-titto .entry-content .lead, .sector-titto .block-head p, .sector-titto .info-list li { color: rgba(255, 255, 255, .7); }
.sector-titto .split-card, .sector-titto .vm-card, .sector-titto .link-card { background: var(--ink-2); border-color: rgba(255, 255, 255, .12); }
.sector-titto .highlight { background: var(--ink-2); border-color: var(--gold-2); }
.sector-titto .highlight p { color: rgba(255, 255, 255, .7); }
/* نصوص البطاقات على السطح الداكن: اللون الخافت (--muted) لا يُقرأ هنا، فتُرفع إلى أبيض شبه كامل والتسميات إلى شمباني */
.sector-titto .vm-card p, .sector-titto .split-card__body p, .sector-titto .link-card__body p, .sector-titto .feature p, .sector-titto .entry-content p { color: rgba(255, 255, 255, .88); }
.sector-titto .vm-card__label, .sector-titto .highlight__label { color: var(--champagne); }
.sector-titto .vm-card, .sector-titto .split-card { background: rgba(255, 255, 255, .06); border-color: rgba(217, 195, 154, .28); }
.sector-titto .btn--ghost { border-color: var(--gold-2); color: var(--champagne); }
.sector-titto .btn--ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.sector-titto .btn--solid { background: var(--gold); }
.sector-titto .btn--solid:hover { background: var(--gold-2); }
.sector-titto .section-title { color: #fff; }
.sector-titto .gallery-item { background: var(--ink-2); }
.sector-titto .divider { background: linear-gradient(to right, transparent, rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, .14) 82%, transparent); }
.sector-titto .cta { border-top: 1px solid rgba(255, 255, 255, .1); }
.sector-titto .store-banner { background: var(--ink-2); border: 1px solid rgba(217, 195, 154, .3); }
.sector-titto .entry-content a { color: var(--champagne); }
.sector-titto .entry-content .btn--ghost { color: var(--champagne); }
.sector-titto .entry-content .btn--ghost:hover, .sector-titto .entry-content .btn--solid, .sector-titto .entry-content .btn--solid:hover { color: #fff; }
.sector-titto .entry-content .btn--light, .sector-titto .entry-content .btn--light:hover { color: var(--ink); }

/* ---------- المؤسس في الرئيسية ---------- */
.founder__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder__media { position: relative; margin: 0; max-width: 460px; }
.founder__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
/* إطار شعري مزاح خلف الصورة، كما في النبذة */
.founder__media::before { content: ""; position: absolute; inset-block: 28px -24px; inset-inline: 28px -24px; z-index: -1; border: 1px solid var(--champagne); }
.founder__media--wide { max-width: 560px; }
.founder__media--wide img { aspect-ratio: 4 / 3; object-position: center; }
.founder__role { color: var(--gold); font-size: .98rem; margin: 6px 0 22px; }
.founder__copy .section-title { margin-bottom: 0; }
.founder__copy .lead { color: var(--text); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.founder__copy .btn .icon { width: 16px; height: 16px; }

/* ---------- بطاقات: تسمية فوق العنوان ورابط أسفل ---------- */
.card__label { font-size: .86rem; color: var(--gold); }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .92rem; font-weight: 500; color: var(--walnut-2); }
.card__link .icon { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .card__link .icon--arrow { transform: translateX(-4px); }
html:not([dir="rtl"]) .card:hover .card__link .icon--arrow { transform: translateX(4px); }
html:not([dir="rtl"]) .icon--arrow { transform: none; }
html[dir="rtl"] .icon--arrow { transform: scaleX(-1); }
html[dir="rtl"] .card:hover .card__link .icon--arrow { transform: scaleX(-1) translateX(4px); }
.card--award .card__media img, .card--press .card__media img { object-position: top; }

/* ---------- الأرقام: عنوان اختياري وحتى خمسة أعمدة ---------- */
.facts .section-head { padding-top: clamp(56px, 7vw, 96px); margin-bottom: 0; }
.facts .section-head + .facts__grid { padding-top: clamp(28px, 4vw, 48px); }
.fact__value--text { font-size: clamp(1.2rem, 2vw, 1.7rem); }

/* ---------- رأس صفحة المؤسس ---------- */
.founder-head { position: relative; background: var(--linen); padding-block: clamp(44px, 6vw, 80px); overflow: hidden; }
.founder-head__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.founder-head__media { position: relative; margin: 0; max-width: 420px; }
.founder-head__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.founder-head__media::before { content: ""; position: absolute; inset-block: 24px -20px; inset-inline: 24px -20px; z-index: -1; border: 1px solid var(--champagne); }
.founder-head .founder__role { margin: 10px 0 0; }
.founder-head .page-lead { margin-top: 18px; }
.founder-head .btn-row { margin-top: 26px; }
.founder-head .page-title, .founder-head .founder__role, .founder-head .page-lead, .founder-head .breadcrumb, .founder-head .btn-row { opacity: 0; transform: translateY(18px); animation: hero-fade-up .9s var(--ease-out) forwards; }
.founder-head .breadcrumb { animation-delay: .1s; }
.founder-head .page-title { animation-delay: .2s; }
.founder-head .founder__role { animation-delay: .3s; }
.founder-head .page-lead { animation-delay: .4s; }
.founder-head .btn-row { animation-delay: .5s; }
.founder-content > .content-block:first-child { margin-top: 0; }

/* ---------- المسيرة الزمنية ---------- */
.timeline, .entry-content .timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 1px solid var(--line); margin-inline-start: 8px; max-width: none; }
.timeline__item { position: relative; padding-block: 0 32px; padding-inline-start: clamp(22px, 3vw, 40px); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; inset-inline-start: -5px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.timeline__year { display: block; font-size: .92rem; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.timeline__item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline__item p { color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- المشاريع: فلاتر مجمّعة ومشاريع مختارة ---------- */
.filters--grouped { flex-direction: column; align-items: stretch; gap: 14px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters__label { font-size: .86rem; color: var(--muted); min-width: 52px; }
.projects-selected { margin-bottom: clamp(48px, 6vw, 80px); }

/* ---------- مادة إعلامية منقولة نصًا ---------- */
.press-article > * { max-width: 72ch; }
.press-article > .highlight { max-width: 72ch; margin-block: 2em; }
.press-article .pullquote { max-width: 72ch; margin: 2.5em 0; padding: clamp(24px, 3vw, 40px); border: 0; background: var(--linen); color: var(--ink); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.6; font-weight: 500; text-wrap: balance; }
.press-article .pullquote p { margin: 0 0 14px; }
.press-article .pullquote cite { display: block; font-style: normal; font-size: .9rem; color: var(--gold); font-weight: 400; }
.press-article__source { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.press-article__source a { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px; color: var(--walnut-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--champagne); }
.press-article__source .icon { width: 14px; height: 14px; }
.press-article__back { margin-top: 28px; }

/* ---------- ملاحظة توضيحية ---------- */
.note { border-inline-start: 1px solid var(--gold); padding-inline-start: 18px; color: var(--muted); font-size: .96rem; }

/* عنصر قائمة يظهر في درج الجوال فقط: زر التواصل في الترويسة يقوم مقامه على الشاشات الواسعة */
@media (min-width: 1141px) { .nav-list > .hide-desktop { display: none; } }

/* ---------- الكشف عند التمرير ---------- */
/* لا يُخفى شيء قبل أن يؤكد السكربت أنه سيتولى الكشف، فتبقى الصفحة كاملة بلا JS */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-ready [data-reveal-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-ready [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: .1s; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: .2s; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: .3s; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(5) { transition-delay: .4s; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(6) { transition-delay: .5s; }
.reveal-ready [data-reveal-stagger].is-visible > :nth-child(n+7) { transition-delay: .6s; }
/* ستارة على الصور: تُكشف من جهة البداية */
/* القصّ على الصورة لا على الحاوية المرصودة: المتصفح يعدّ العنصر المقصوص كليًا بلا مساحة فلا يُبلّغ عن ظهوره */
.reveal-ready [data-reveal-curtain] > img { clip-path: inset(0 0 0 100%); transform: scale(1.12); transition: clip-path 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
html:not([dir="rtl"]) .reveal-ready [data-reveal-curtain] > img { clip-path: inset(0 100% 0 0); }
.reveal-ready [data-reveal-curtain].is-visible > img { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- استجابة ---------- */
@media (max-width: 1100px) {
	.grid--4, .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.logo-grid--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-grid, .gallery-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.entry-layout, .contact-layout, .about__grid, .clients__row, .founder__grid, .founder-head__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 560px; }
	.founder__media, .founder-head__media { max-width: 380px; }
	.entry-aside { position: static; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1140px) {
	.menu-toggle { display: grid; place-items: center; }
	.site-header { backdrop-filter: none; background: #fff; }
	.site-nav {
		position: fixed; inset-block: var(--header-h) 0; inset-inline-end: 0; width: min(86vw, 360px);
		background: #fff; border-inline-start: 1px solid var(--line); padding: 28px;
		overflow-y: auto; z-index: 120;
		opacity: 0; visibility: hidden; transform: translateX(-16px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
		box-shadow: -20px 0 50px -30px rgba(28, 26, 25, .5);
	}
	html:not([dir="rtl"]) .site-nav { transform: translateX(16px); }
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { display: block; }
	.nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
	.nav-list a::after { display: none; }
	.nav-list > li:last-child > a { border-bottom: 0; }
	.nav-list .sub-menu { position: static; border: 0; box-shadow: none; min-width: 0; padding: 0; margin-inline-start: 16px; opacity: 1; visibility: visible; transform: none; }
	.nav-list .sub-menu a { padding: 11px 0; font-size: .94rem; color: var(--muted); white-space: normal; }
	.nav-list .sub-menu li:last-child > a { border-bottom: 0; }
	.site-header__actions .btn--solid { display: none; }
	.site-branding { min-width: 0; flex-shrink: 1; margin-inline-end: auto; }
	.site-branding img { max-height: 42px; }
	.site-header.is-scrolled .site-branding img { max-height: 40px; }
	.site-header__inner { gap: 8px; justify-content: flex-start; }
	.site-header__actions { order: 3; }
	.menu-toggle { order: 4; margin-inline-start: 0; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts__grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
	.fact:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.agency__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
	.hero__mark { position: static; transform: none; width: clamp(110px, 32vw, 160px); margin-bottom: 10px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
	.diptych { grid-template-columns: 1fr; min-height: 0; }
	.panel-sector { min-height: clamp(420px, 70vh, 560px); }
	.panel-sector__inner { max-width: none; }
	.field-cards { grid-template-columns: 1fr; }
	.field-card { min-height: 240px; }
	.split-card, .vm-grid, .link-cards { grid-template-columns: 1fr; }
	.split-card__media { min-height: 240px; }
}

@media (max-width: 600px) {
	:root { --section: clamp(56px, 14vw, 80px); }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.gallery-grid, .gallery-grid--page, .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-item--lead { grid-row: auto; grid-column: span 2; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	/* سطر الحقوق أصغر على الجوال حتى يبقى سطرين، وتوقيع المطوّر تحته */
	.footer-bottom { font-size: .72rem; line-height: 1.6; gap: 8px; }
	.footer-credit { margin-inline-start: 0; flex-basis: 100%; }
	.cta__inner { flex-direction: column; align-items: flex-start; }
	.cta__letter { height: 70%; inset-inline-end: 4%; }
	.cta__letter .letter-r path { opacity: .35; }
	.wpcf7 .field-row { grid-template-columns: 1fr; }
	.feature-grid { grid-template-columns: 1fr; }
	/* بعض الصفحات تحمل عدد الأعمدة كنمط مضمّن، فيُتجاوز هنا على الجوال */
	.field-cards { grid-template-columns: 1fr !important; }
	.facts__grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
	.fact { padding-inline: 14px; }
	.fact:first-child, .fact:nth-child(3) { padding-inline-start: 0; }
	.fact:nth-child(5) { grid-column: 1 / -1; border-inline-start: 0; padding-inline-start: 0; }
	.fact__value { font-size: 2.2rem; }
	.founder__media, .founder-head__media { max-width: none; }
	.founder__media::before, .founder-head__media::before { display: none; }
	.timeline__item { padding-inline-start: 20px; }
	.about__media { padding-inline-start: 0; padding-bottom: 48px; }
	.about__media::before { display: none; }
	/* على الجوال يُقاس الحرف بالعرض ويُثبَّت خلف النص لا خلف الصور */
	.about__letter { height: auto; width: 92vw; inset-inline-start: -8vw; top: 0; transform: none; }
	.about__letter .letter-r path { opacity: .2; stroke-width: .4; }
	.about__figure--sub { width: 44%; border-width: 5px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
	.lightbox__count { display: none; }
	.hero__title { font-size: clamp(1.75rem, 8.4vw, 2.3rem); }
	.hero .btn-row .btn { flex: 1 1 100%; }
	.page-head--media { min-height: 0; }
}

@media (max-width: 520px) {
	.site-branding img { max-height: 34px; }
	.lang-btn { padding-inline: 6px; }
}

/* ---------- التحويم على الأجهزة اللمسية ---------- */
@media (hover: none) {
	.logo-item:hover img { transform: none; }
	.gallery-item:hover img, .field-card:hover img, .card:hover .card__media img, .panel-sector:hover .panel-sector__bg img { transform: none; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition: opacity .01ms; animation: none !important; transform: none !important; }
	.page-head__bg { animation: none; transform: none; }
	.hero__kicker, .hero__kicker::before, .hero__title .line > span, .hero__subtitle, .hero__text, .hero .btn-row, .hero__progress, .hero__mark,
	.page-head .page-title, .page-head .page-lead, .page-head .breadcrumb, .page-head .btn-row { opacity: 1; transform: none; animation: none; }
	.hero__progress span.is-active::after { animation: none; transform: scaleX(1); }
	.brand-mark .mark__shield { stroke-dashoffset: 0; fill-opacity: 1; }
	.brand-mark .mark__plate, .brand-mark .mark__r { opacity: 1; transform: none; }
	.letter-r path { stroke-dashoffset: 0; animation: none !important; }
	.reveal-ready [data-reveal], .reveal-ready [data-reveal-stagger] > *, .reveal-ready [data-reveal-curtain] > img,
	.reveal-ready .diptych .panel-sector { opacity: 1; transform: none; clip-path: none; transition: none; }
	.card__media img, .gallery-item img, .field-card img { transition: none; }
}

@media print {
	.site-header, .site-footer, .whatsapp-fab, .btn { display: none !important; }
}
