/*!
 * Expert Luxury Geometric — طبقة تحسين بصرية وحركية فوق واجهة خبير للتصميم الداخلي.
 * - تُحمَّل بعد أنماط الإضافات الحالية ولا تغيّر الهوية (teal #264653 + gold #fcbf12 + Almarai).
 * - النمط المهيمن: نجمة ثمانية / مشربية بشفافية منخفضة. الثانوي: مثلثات نجدية على حواف الأقسام الداكنة.
 * - كل الحركة مشروطة بـ html.lux-js وتُعطَّل مع prefers-reduced-motion.
 */

:root {
  --lux-teal: #264653;
  --lux-deep: #173e43;
  --lux-gold: #fcbf12;
  --lux-gold-deep: #996900;   /* نص accent على الفاتح (≥ 4.5:1) */
  --lux-brass: #b99b65;       /* زخرفة وخطوط فقط */
  --lux-cream: #fff8eb;
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lux-ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* نجمة ثمانية (خط نحاسي) */
  --lux-star-brass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='%23b99b65' stroke-width='1'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0L22 22M88 0L66 22M0 88L22 66M88 88L66 66'/%3E%3C/svg%3E");
  /* نجمة ثمانية (خط ذهبي للخلفيات الداكنة) */
  --lux-star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='%23fcbf12' stroke-width='1'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0L22 22M88 0L66 22M0 88L22 66M88 88L66 66'/%3E%3C/svg%3E");
  /* مثلثات نجدية متدلية من الحافة العليا */
  --lux-najdi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 0L16 16L32 0Z' fill='%23fcbf12'/%3E%3Cpath d='M8 0L16 8L24 0Z' fill='%23173e43'/%3E%3C/svg%3E");
}

/* ───────── 0) أساسيات الوصول (تحسين لا استبدال) ───────── */
.ehc-home :is(a, button, input, select, textarea, summary, [role="tab"]):focus-visible,
header :is(a, button):focus-visible,
footer :is(a, button):focus-visible {
  outline: 3px solid var(--lux-gold-deep);
  outline-offset: 4px;
  border-radius: 2px;
}
.exux-home-about-teaser :is(a, button):focus-visible, #journey :is(a, button):focus-visible,
footer :is(a, button):focus-visible,
.ehe-hero :is(a, button):focus-visible {
  outline-color: var(--lux-gold);
}
.ehc-home h2 { letter-spacing: 0 !important; } /* السالب يقطع اتصال الحروف العربية */

/* ───────── 1) زخارف الخلفية (طبقة خلف المحتوى) ───────── */
.ehc-home :is(.ehc-offer, #home-design-process, .exux-contact, .exb-mini-section, .exdc-teaser, .ehc-services) {
  position: relative;
  isolation: isolate;
}
.ehc-home :is(.ehc-offer, #home-design-process, .exux-contact, .exb-mini-section)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--lux-star-brass);
  background-size: 88px 88px;
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%);
          mask-image: linear-gradient(to left, #000 0%, transparent 55%);
}
.ehc-home #home-design-process::before {
  background-image: var(--lux-star-gold);
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.ehc-home .exux-contact::before { -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 50%); mask-image: linear-gradient(to right, #000 0%, transparent 50%); }
.ehc-home .exb-mini-section::before { opacity: 0.1; -webkit-mask-image: radial-gradient(60% 70% at 85% 30%, #000, transparent); mask-image: radial-gradient(60% 70% at 85% 30%, #000, transparent); }

/* الشريط الداكن الفارغ أعلى قسم مراحل التصميم (82px padding بلا محتوى): الأقسام الداخلية تحمل حشوها */
.ehc-home #home-design-process { padding-top: 0; }
.ehc-home .exux-home-about-teaser { position: relative; padding-top: 56px; }

/* مثلثات نجدية على الحافة العليا للأقسام الداكنة والتذييل */
.ehc-home .exux-home-about-teaser::before,
footer.bg-luxDark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 16px;
  z-index: 1;
  pointer-events: none;
  background: var(--lux-najdi) repeat-x center top / 32px 16px;
  opacity: 0.85;
}
footer.bg-luxDark { position: relative; isolation: isolate; overflow: hidden; }
footer.bg-luxDark::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--lux-star-gold); background-size: 88px 88px; opacity: 0.05;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 60%);
          mask-image: linear-gradient(to left, #000, transparent 60%);
}

/* فاصل معيني على الحدود العليا للأقسام الفاتحة */
.ehc-home .exux-faq { position: relative; }
.ehc-home .exux-faq::before {
  content: "";
  position: absolute;
  top: -7px;
  inset-inline-start: 50%;
  width: 13px; height: 13px;
  translate: 50% 0;
  rotate: 45deg;
  background: #fffdf8;
  border: 1px solid var(--lux-brass);
  z-index: 2;
}
[dir="ltr"] .ehc-home .exux-faq::before { translate: -50% 0; }

/* ───────── 2) العناوين الصغيرة (kickers): معين بدل الاعتماد على الخط وحده ───────── */
.ehc-home :is(.ehc-kicker, .exux-kicker, .exdc-kicker, .exb-kicker, .hr-kicker) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lux-gold-deep);
}
.ehc-home :is(.exux-home-about-teaser, #journey) :is(.exux-kicker, .ehc-kicker) { color: var(--lux-gold); }
.ehc-home :is(.ehc-kicker, .exdc-kicker, .exb-kicker, .hr-kicker)::before {
  content: "";
  width: 7px; height: 7px;
  rotate: 45deg;
  background: currentColor;
  flex: none;
}

/* ───────── 3) الصور: إطار داخلي مزدوج + تكبير بطيء + قناع كشف ───────── */
.ehc-home :is(.ehc-service-photo, .exdc-photo) { position: relative; overflow: hidden; }
.ehc-home :is(.ehc-service-photo, .exdc-photo)::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(255 248 235 / 0.7);
  pointer-events: none;
  opacity: 0;
  scale: 1.04;
  transition: opacity 0.5s var(--lux-ease), scale 0.7s var(--lux-ease);
}
.ehc-home :is(.ehc-service-photo, .exdc-photo) img { transition: transform 1.1s var(--lux-ease); }
@media (hover: hover) and (pointer: fine) {
  .ehc-home :is(.ehc-service-photo, .exdc-photo):hover::after { opacity: 1; scale: 1; }
  .ehc-home :is(.ehc-service-photo, .exdc-photo):hover img { transform: scale(1.05); }
}
.ehc-home :is(.ehc-service-photo, .exdc-photo):focus-visible::after { opacity: 1; scale: 1; }

/* ───────── 4) بطاقة الخصم: رقم كبير بإطار معيني ───────── */
.ehc-home .ehc-discount { position: relative; display: inline-block; isolation: isolate; padding-inline: 10px; }
.ehc-home .ehc-discount::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 4px -8px;
  border: 1px solid var(--lux-brass);
  rotate: 0deg;
  opacity: 0.55;
}

/* ───────── 5) الرأس والشريط العلوي ───────── */
header.sticky { transition: box-shadow 0.4s var(--lux-ease), background-color 0.4s var(--lux-ease); }
header.sticky.lux-scrolled { box-shadow: 0 10px 30px -18px rgb(23 62 67 / 0.55); }
header.sticky::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--lux-brass), transparent);
  opacity: 0.55; pointer-events: none;
}
header.sticky nav a, header.sticky .menu a { position: relative; }

/* شريط تقدم القراءة */
.lux-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2147482000; pointer-events: none;
  background: transparent;
}
.lux-progress i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(to left, var(--lux-gold), var(--lux-brass));
  transform: scaleX(0); transform-origin: right center;
  will-change: transform;
}
[dir="ltr"] .lux-progress i { transform-origin: left center; }

/* أزرار الاتصال العائمة: تنبيه 3 مرات فقط بدل نبض لا نهائي (WCAG 2.2.2) */
.fixed .animate-ping { animation-iteration-count: 3 !important; }

/* ───────── 6) الأزرار والروابط: خط ذهبي يمتد ───────── */
.ehc-home :is(.exux-button, .exb-button, .ehe-button, .ehc-call-button, .ehc-whatsapp-button) {
  position: relative;
  transition: background-color 0.3s var(--lux-ease), color 0.3s var(--lux-ease), transform 0.3s var(--lux-ease), box-shadow 0.3s var(--lux-ease);
}
@media (hover: hover) and (pointer: fine) {
  .ehc-home :is(.exux-button, .exb-button, .ehe-button):not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -16px rgb(23 62 67 / 0.7);
  }
}
.ehc-home :is(.exux-button, .exb-button, .ehe-button):not(:disabled):active { transform: translateY(0) scale(0.985); }
.ehc-home :is(.ehc-link, .exux-text-link, .exdc-card-actions a) {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  transition: background-size 0.5s var(--lux-ease);
}
@media (hover: hover) and (pointer: fine) {
  .ehc-home :is(.ehc-link, .exux-text-link, .exdc-card-actions a):hover { background-size: 100% 1px; }
}

/* بطاقات: رفع خفيف وحدّ ذهبي */
@media (hover: hover) and (pointer: fine) {
  .ehc-home .exdc-card, .ehc-home .ehc-service { transition: transform 0.6s var(--lux-ease); }
  .ehc-home .exdc-card:hover, .ehc-home .ehc-service:hover { transform: translateY(-6px); }
  .ehc-home .exdc-swatches span { transition: transform 0.35s var(--lux-ease); }
  .ehc-home .exdc-card:hover .exdc-swatches span:nth-child(1) { transform: translateY(-3px); }
  .ehc-home .exdc-card:hover .exdc-swatches span:nth-child(2) { transform: translateY(-3px); transition-delay: 40ms; }
  .ehc-home .exdc-card:hover .exdc-swatches span:nth-child(3) { transform: translateY(-3px); transition-delay: 80ms; }
  .ehc-home .exdc-card:hover .exdc-swatches span:nth-child(4) { transform: translateY(-3px); transition-delay: 120ms; }
}

/* خطوات العملية: نصوص تتبدّل بنعومة */
.ehc-home [role="tabpanel"]:not([hidden]) { animation: lux-fade 0.7s var(--lux-ease) both; }
.ehc-home [role="tab"] { transition: background-color 0.35s var(--lux-ease), color 0.35s var(--lux-ease), box-shadow 0.35s var(--lux-ease); }

/* أسئلة شائعة: السهم والمحتوى */
.ehc-home .exux-faq details[open] > :not(summary) { animation: lux-fade 0.55s var(--lux-ease) both; }
.ehc-home .exux-faq details { transition: background-color 0.4s var(--lux-ease); }
.ehc-home .exux-faq details[open] { background: rgb(185 155 101 / 0.07); }

/* ───────── 7) الحركة (تعمل فقط عند وجود JS وبدون reduced-motion) ───────── */
@keyframes lux-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lux-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lux-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

html.lux-js:not(.lux-reduce) .lux-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--lux-ease), transform 0.9s var(--lux-ease);
  transition-delay: var(--lux-d, 0ms);
}
html.lux-js:not(.lux-reduce) .lux-reveal.is-in { opacity: 1; transform: none; }

/* كشف الصور بقناع هندسي (يمتد من الأسفل) */
html.lux-js:not(.lux-reduce) .lux-mask {
  clip-path: inset(14% 0 0 0);
  transition: clip-path 1.2s var(--lux-ease);
  transition-delay: var(--lux-d, 0ms);
}
html.lux-js:not(.lux-reduce) .lux-mask img { scale: 1.14; transition: scale 1.6s var(--lux-ease); transition-delay: var(--lux-d, 0ms); }
html.lux-js:not(.lux-reduce) .lux-mask.is-in { clip-path: inset(0 0 0 0); }
html.lux-js:not(.lux-reduce) .lux-mask.is-in img { scale: 1; }

/* عناوين: كل كلمة تصعد من قناع (الكلمات تبقى متصلة، لا تقسيم حروف) */
.lux-w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.18em; margin-block: -0.18em; }
.lux-wi { display: inline-block; }
html.lux-js:not(.lux-reduce) .lux-split:not(.is-in) .lux-wi { transform: translateY(115%); }
html.lux-js:not(.lux-reduce) .lux-split .lux-wi { transition: transform 1s var(--lux-ease); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }

/* خط نحاسي يرسم نفسه تحت العناوين الكبيرة */
.lux-split::after {
  content: "";
  display: block;
  width: 72px; height: 1px; margin-top: 18px;
  background: linear-gradient(to left, var(--lux-brass), transparent);
  transform-origin: right center;
}
[dir="ltr"] .lux-split::after { transform-origin: left center; background: linear-gradient(to right, var(--lux-brass), transparent); }
html.lux-js:not(.lux-reduce) .lux-split:not(.is-in)::after { transform: scaleX(0); }
html.lux-js:not(.lux-reduce) .lux-split.is-in::after { animation: lux-line 1.1s var(--lux-ease) 0.5s both; }
.ehc-home .ehc-offer h2.lux-split::after, .ehc-home .ehc-journal-heading h2.lux-split::after { display: none; }

/* دخول الـ Hero */
html.lux-js:not(.lux-reduce) .ehe-hero-copy > * { animation: lux-rise 1s var(--lux-ease) both; }
html.lux-js:not(.lux-reduce) .ehe-hero-copy > *:nth-child(2) { animation-delay: 90ms; }
html.lux-js:not(.lux-reduce) .ehe-hero-copy > *:nth-child(3) { animation-delay: 180ms; }
html.lux-js:not(.lux-reduce) .ehe-hero-copy > *:nth-child(4) { animation-delay: 270ms; }
html.lux-js:not(.lux-reduce) .ehe-hero-copy > *:nth-child(5) { animation-delay: 360ms; }

/* ───────── 8) ستارة الانتقال بين الصفحات (معين يتسع) ───────── */
.lux-curtain {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--lux-deep) var(--lux-star-gold) center / 88px 88px;
  pointer-events: none;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: clip-path 0.6s var(--lux-ease-io);
  display: grid; place-items: center;
}
.lux-curtain.is-covered { clip-path: polygon(50% -80%, 180% 50%, 50% 180%, -80% 50%); pointer-events: auto; }
.lux-curtain.no-anim { transition: none; }
.lux-curtain::after {
  content: ""; width: 34px; height: 34px; rotate: 45deg;
  border: 2px solid var(--lux-gold);
  opacity: 0; transition: opacity 0.3s 0.25s, rotate 0.9s var(--lux-ease), scale 0.9s var(--lux-ease);
  scale: 0.6;
}
.lux-curtain.is-covered::after { opacity: 1; scale: 1; rotate: 135deg; }
/* منع وميض الصفحة عند الوصول: يُضاف الصنف من سكربت صغير في <head> */
html.lux-arriving::before {
  content: ""; position: fixed; inset: 0; z-index: 2147482999; background: var(--lux-deep);
}

/* ───────── 9) تحسينات الجوال ───────── */
@media (max-width: 700px) {
  .ehc-home :is(.ehc-offer, .exux-contact, .exb-mini-section)::before { opacity: 0.1; }
  .lux-split::after { width: 56px; margin-top: 14px; }
  .ehc-home :is(.ehc-service-photo, .exdc-photo)::after { inset: 8px; }
}

/* ───────── 10) تقليل الحركة ───────── */
@media (prefers-reduced-motion: reduce) {
  .lux-curtain, html.lux-arriving::before { display: none !important; }
  .lux-reveal, .lux-mask, .lux-wi { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .lux-mask img { scale: 1 !important; }
  .ehc-home * { scroll-behavior: auto !important; }
}

/*!
 * Expert Luxury Geometric — الطبقة الفاخرة (v1.1): انسيابية، عمق، زخارف حية، لمسات مادية.
 * تُحمَّل بعد lux.css. كل الحركة مشروطة بـ html.lux-js:not(.lux-reduce).
 */
:root { --lux-shadow-s: 0 1px 2px rgb(23 62 67 / .06), 0 8px 18px -10px rgb(23 62 67 / .22);
        --lux-shadow-l: 0 2px 4px rgb(23 62 67 / .06), 0 30px 50px -28px rgb(23 62 67 / .5); }
/* ───── أ) إحساس عام: تمرير ناعم، تحديد، شريط تمرير، طباعة ───── */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
::selection { background: var(--lux-gold); color: var(--lux-deep); }
html { scrollbar-color: var(--lux-brass) transparent; scrollbar-width: thin; }
.ehc-home :is(h1, h2, h3) { text-wrap: balance; }
.ehc-home p { text-wrap: pretty; }
.ehc-home :is(h1, h2) { line-height: 1.28; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* ───── ب) الـ Hero: إطار نحاسي مزدوج + حركة سينمائية بطيئة ───── */
.ehe-hero-visual { overflow: hidden; outline: 1px solid rgb(255 248 235 / .55); outline-offset: -14px; }
html.lux-js:not(.lux-reduce) .ehe-slide .ehe-hero-visual img { animation: lux-kb 4s var(--lux-ease-io) 1 alternate; transform-origin: 60% 40%; }
@keyframes lux-kb { from { transform: scale(1); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
.ehe-image-index { letter-spacing: .08em; }
/* ───── ج) البطاقات: عمق طبقي + أقواس نحاسية في الزوايا + بقعة ضوء تتبّع المؤشر ───── */
.ehc-home :is(.exdc-card, .ehc-service) { position: relative; isolation: isolate; box-shadow: var(--lux-shadow-s); transition: transform .6s var(--lux-ease), box-shadow .6s var(--lux-ease); }
.ehc-home :is(.exdc-card, .ehc-service)::before {
  content: ""; position: absolute; inset: 9px; z-index: 3; pointer-events: none;
  --b: var(--lux-brass); --s: 18px;
  background:
    linear-gradient(var(--b), var(--b)) top right / var(--s) 1px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--s) 1px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 1px var(--s) no-repeat;
  opacity: .55; transition: opacity .5s var(--lux-ease), inset .6s var(--lux-ease);
}
.ehc-home :is(.exdc-card, .ehc-service)::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(252 191 18 / .09), transparent 62%);
  transition: opacity .5s var(--lux-ease);
}
@media (hover: hover) and (pointer: fine) {
  .ehc-home :is(.exdc-card, .ehc-service):hover { box-shadow: var(--lux-shadow-l); }
  .ehc-home :is(.exdc-card, .ehc-service):hover::before { opacity: 1; inset: 6px; }
  .ehc-home :is(.exdc-card, .ehc-service):hover::after { opacity: 1; }
}
/* ───── د) الأزرار: لمعة ذهبية تعبر + توهّج ناعم ───── */
.ehc-home :is(.exux-button, .exb-button, .ehe-button) { overflow: hidden; isolation: isolate; }
.ehc-home :is(.exux-button, .exb-button, .ehe-button)::after {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 236 170 / .5), transparent);
  transform: skewX(-20deg) translateX(0); opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .ehc-home :is(.exux-button, .exb-button, .ehe-button):not(:disabled):hover::after { opacity: 1; transform: skewX(-20deg) translateX(520%); transition: transform .9s var(--lux-ease), opacity .2s; }
}
/* ───── هـ) فاصل زخرفي بين الأقسام (يُحقن من JS) ───── */
.lux-divider { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 34px 20px 8px; pointer-events: none; }
.lux-divider::before, .lux-divider::after { content: ""; height: 1px; flex: 0 1 min(180px, 28vw); background: linear-gradient(to left, var(--lux-brass), transparent); transform-origin: right center; }
.lux-divider::after { background: linear-gradient(to right, var(--lux-brass), transparent); transform-origin: left center; }
.lux-divider svg { width: 46px; height: 14px; flex: none; overflow: visible; }
.lux-divider svg * { fill: none; stroke: var(--lux-brass); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lux-divider svg .f { fill: var(--lux-brass); }
html.lux-js:not(.lux-reduce) .lux-divider::before, html.lux-js:not(.lux-reduce) .lux-divider::after { transform: scaleX(0); transition: transform 1.3s var(--lux-ease) .15s; }
html.lux-js:not(.lux-reduce) .lux-divider svg { opacity: 0; scale: .4; rotate: -90deg; transition: opacity .8s var(--lux-ease), scale 1s var(--lux-ease), rotate 1.2s var(--lux-ease); }
html.lux-js:not(.lux-reduce) .lux-divider.is-in::before, html.lux-js:not(.lux-reduce) .lux-divider.is-in::after { transform: none; }
html.lux-js:not(.lux-reduce) .lux-divider.is-in svg { opacity: 1; scale: 1; rotate: 0deg; }
/* ───── و) نجمة كبيرة ترسم نفسها ثم تدور ببطء (تُحقن من JS) ───── */
.lux-star { position: absolute; z-index: -1; width: clamp(240px, 32vw, 460px); aspect-ratio: 1; inset-block-start: 50%; inset-inline-end: -4%; margin-top: calc(clamp(240px, 32vw, 460px) / -2); pointer-events: none; color: var(--lux-brass); opacity: .42; translate: 0 var(--lux-py, 0px); }
.lux-star.on-dark { color: var(--lux-gold); opacity: .3; }
.lux-star svg { width: 100%; height: 100%; overflow: visible; }
.lux-star :is(rect, circle, path) { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ehc-home :is(.ehc-offer, #home-design-process, .exux-contact, .exb-mini-section) { overflow: clip; }
html.lux-js:not(.lux-reduce) .lux-star :is(rect, circle, path) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--lux-ease-io); }
html.lux-js:not(.lux-reduce) .lux-star.is-in :is(rect, circle, path) { stroke-dashoffset: 0; }
html.lux-js:not(.lux-reduce) .lux-star.is-in svg { animation: none; }
html.lux-js:not(.lux-reduce) .lux-star:not(.is-vis) svg { animation-play-state: paused; }
@keyframes lux-spin { to { rotate: 360deg; } }
@media (max-width: 700px) { .lux-star { opacity: .32; inset-inline-end: -28%; } .lux-star.on-dark { opacity: .2; } }
/* ───── ز) مؤشر ذهبي رقيق (أجهزة بمؤشر دقيق فقط) ───── */
.lux-cursor { position: fixed; inset: 0 auto auto 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--lux-brass); rotate: 45deg; z-index: 2147482500; pointer-events: none; opacity: 0; transition: opacity .3s, scale .4s var(--lux-ease), background-color .4s, border-color .4s; will-change: transform; }
.lux-cursor.on { opacity: .85; }
.lux-cursor.hot { scale: 1.7; background: rgb(252 191 18 / .14); border-color: var(--lux-gold-deep); }
.lux-cursor.hide { opacity: 0; }
/* ───── ح) انسيابية الدخول للصفحة والرأس ───── */
html.lux-js:not(.lux-reduce) body { animation: lux-body .9s var(--lux-ease) both; }
@keyframes lux-body { from { opacity: 0; } to { opacity: 1; } }
header.sticky.lux-scrolled { backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); }
header.sticky nav a { background: linear-gradient(var(--lux-brass), var(--lux-brass)) no-repeat 50% 100% / 0 1px; transition: background-size .45s var(--lux-ease), color .3s; }
@media (hover: hover) and (pointer: fine) { header.sticky nav a:hover, header.sticky nav a:focus-visible { background-size: 70% 1px; } }
/* ───── ط) تقليل الحركة ───── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lux-cursor { display: none !important; }
  .lux-star svg, .ehe-slide .ehe-hero-visual img { animation: none !important; }
  .lux-star :is(rect, circle, path) { stroke-dashoffset: 0 !important; }
  .lux-divider::before, .lux-divider::after { transform: none !important; }
}

/*!
 * Expert Luxury Geometric — الطبقة الملكية (v1.2)
 * أقواس المحراب النجدي للصور، خلفيات داكنة غنية، رقم ذهبي مصقول، إطارات مثمنة،
 * شريط تنقل جانبي، وبارالاكس داخل الصور. تُحمَّل بعد lux-premium.css.
 */
:root {
  --lux-star-gold-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='%23fcbf12' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Cpath d='M0 0L22 22M88 0L66 22M0 88L22 66M88 88L66 66'/%3E%3C/svg%3E");
  --lux-octagon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fcbf12'%3E%3Cpolygon points='30,2 70,2 98,30 98,70 70,98 30,98 2,70 2,30' stroke-opacity='.5' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpolygon points='32,9 68,9 91,32 91,68 68,91 32,91 9,68 9,32' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --lux-octagon-brass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none' fill='none' stroke='%23b99b65'%3E%3Cpolygon points='9,1 91,1 99,18 99,82 91,99 9,99 1,82 1,18' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
/* ───── 1) صور الخدمات والكتالوج: تبقى مستطيلة (تم حذف قوس المحراب) ───── */
/* بارالاكس داخل الإطار: تكبير 12% يحجز مساحة الحركة */
.ehc-home .lux-px img { scale: 1.12; translate: 0 var(--lux-ip, 0px); }
html.lux-js:not(.lux-reduce) .ehc-home .lux-px.lux-mask.is-in img { scale: 1.12; }
html.lux-js:not(.lux-reduce) .ehc-home .lux-px.lux-mask:not(.is-in) img { scale: 1.26; }
/* ───── 2) خلفيات داكنة غنية بالعمق ───── */
.ehe-slide-business {
  background-image:
    radial-gradient(760px 440px at 88% -5%, rgb(252 191 18 / .14), transparent 65%),
    radial-gradient(620px 420px at 6% 105%, rgb(185 155 101 / .14), transparent 62%),
    var(--lux-star-gold-faint);
  background-size: auto, auto, 88px 88px;
}
/* أيقونات المراحل داخل إطار مثمّن */
.ehc-home .ehc-step-drawing { position: relative; isolation: isolate; }
.ehc-home .ehc-step-drawing::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 50% auto auto 50%; width: 168px; height: 168px; translate: -50% -50%;
  background: var(--lux-octagon) center / 100% 100% no-repeat;
  transition: rotate 1.2s var(--lux-ease), scale .8s var(--lux-ease);
}
@media (hover: hover) and (pointer: fine) { .ehc-home li:hover > .ehc-step-drawing::before { rotate: 22.5deg; scale: 1.06; } }
/* ───── 3) رقم الخصم: ذهب مصقول وإطار مثمّن ───── */
.ehc-home .ehc-discount {
  background: linear-gradient(115deg, #7a5300 10%, #a87400 38%, #8a5f00 60%, #7a5300 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-inline: 16px;
}
.ehc-home .ehc-discount::before { border: 0; background: var(--lux-octagon-brass) center / 100% 100% no-repeat; opacity: .9; inset: 2px -6px; }
/* نجمة قسم العرض: أصغر لتبقى كاملة داخل شريط قصير */
.ehc-home .ehc-offer .lux-star { width: 250px; margin-top: -125px; inset-inline-end: 1.5%; opacity: .34; }
.ehc-home .exux-contact .lux-star { width: clamp(220px, 26vw, 380px); margin-top: calc(clamp(220px, 26vw, 380px) / -2); opacity: .34; }
/* ───── 5) شريط التنقل الجانبي (سطح المكتب) ───── */
.lux-rail { position: fixed; inset-block-start: 50%; inset-inline-end: 18px; translate: 0 -50%; z-index: 40; display: none; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; opacity: 0; pointer-events: none; transition: opacity .5s var(--lux-ease); }
.lux-rail.on { opacity: 1; pointer-events: auto; }
@media (min-width: 1280px) { .lux-rail { display: flex; } }
.lux-rail a { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.lux-rail a::before { content: ""; width: 9px; height: 9px; rotate: 45deg; border: 1px solid var(--lux-gold-deep); background: rgb(255 253 248 / .85); transition: scale .4s var(--lux-ease), background-color .4s, border-color .4s; }
.lux-rail a[aria-current="true"]::before { background: var(--lux-gold); border-color: var(--lux-gold-deep); scale: 1.45; }
.lux-rail span { position: absolute; inset-inline-start: calc(100% + 8px); top: 50%; translate: -6px -50%; white-space: nowrap; background: var(--lux-deep); color: var(--lux-cream); font-size: 12px; line-height: 1; padding: 7px 11px; opacity: 0; pointer-events: none; transition: opacity .3s var(--lux-ease), translate .4s var(--lux-ease); }
[dir="rtl"] .lux-rail span { translate: 6px -50%; }
.lux-rail a:hover span, .lux-rail a:focus-visible span { opacity: 1; translate: 0 -50%; }
.lux-rail a:focus-visible { outline: 2px solid var(--lux-gold-deep); outline-offset: 2px; }
/* ───── 6) تقليل الحركة ───── */
@media (prefers-reduced-motion: reduce) {
  .ehc-home .lux-px img { translate: none !important; scale: 1 !important; }
  .ehc-home .ehc-step-drawing::before { transition: none; }
  .lux-rail, .lux-rail a::before, .lux-rail span { transition: none; }
}

/* Production compatibility and accessibility */
#home-design-process { position:relative; isolation:isolate; overflow:clip; }
#home-design-process::before { background-image:var(--lux-star-brass) !important; opacity:.06 !important; }
#home-design-process .lux-star { opacity:.12; color:var(--lux-brass); }
.lux-rail { visibility:hidden; }
.lux-rail.on { visibility:visible; }
.lux-rail a { width:44px; height:44px; }
.lux-cursor { display:none !important; }
.ehc-home :is(.ehc-service-photo,.exdc-photo) img { scale:1 !important; translate:none !important; transform:none !important; }
html.lux-js:not(.lux-reduce) .ehc-home :is(.ehc-service-photo,.exdc-photo) img { scale:1 !important; translate:none !important; }
.ehc-home .lux-mag { translate:none !important; }
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto !important; }
 body, .ehc-home *, .ehc-home *::before, .ehc-home *::after, header *, footer *, .lux-rail, .lux-rail *, .fixed .animate-ping { animation:none !important; transition:none !important; }
 html.lux-js body { opacity:1 !important; }
 html.lux-js .lux-reveal, html.lux-js .lux-mask, html.lux-js .lux-wi, html.lux-js .lux-divider svg { opacity:1 !important; transform:none !important; translate:none !important; scale:1 !important; rotate:0deg !important; clip-path:none !important; }
 .lux-star { translate:none !important; }
 .lux-star svg * { stroke-dashoffset:0 !important; }
 .lux-curtain { display:none !important; }
}
@media print { .lux-rail,.lux-progress,.lux-curtain,.lux-cursor,.lux-star { display:none !important; } .lux-reveal,.lux-wi,.lux-mask { opacity:1 !important; transform:none !important; clip-path:none !important; } }

/* Homepage card breathing room and visual stage selectors — 2026-11-22 */
.ehc-home .ehc-service .ehc-service-copy,
.ehc-home .exdc-card .exdc-card-copy { padding:26px 28px 28px !important; }
.ehc-home .ehc-journal-item { padding:24px 26px !important; }
.ehc-home .ehc-service-copy h3,.ehc-home .exdc-card-copy h3 { margin-block:12px 14px !important; }
.ehc-home .ehc-service-copy p,.ehc-home .exdc-card-copy p { line-height:1.9; }
#home-design-process .hr-pictures { min-width:0; }
#home-design-process .hr-thumbs-intro { margin:22px 0 12px; font-size:12px; color:#536b68; line-height:1.8; }
#home-design-process .hr-tabs.hr-thumbnails { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:0; border:0; padding:0; overflow:visible; }
#home-design-process .hr-thumbnails button { display:flex; flex-direction:column; min-width:0; flex:initial; padding:6px; gap:7px; border:1px solid #c7c5b9; border-bottom:3px solid #c7c5b9; background:#f8f6f0; color:#173e43; text-align:right; font:11px/1.7 Almarai,sans-serif; cursor:pointer; }
#home-design-process .hr-thumbnails button img { display:block; width:100%; height:82px; object-fit:contain; background:#eeebe3; padding:3px; }
#home-design-process .hr-thumbnails button .hr-thumb-title { display:block; font-size:10px; margin:0; color:inherit; }
#home-design-process .hr-thumbnails button[aria-selected=true] { border-color:#173e43; border-bottom-color:#b99b65; background:#173e43; color:#fff8eb; }
#home-design-process .hr-thumbnails button:hover { border-color:#886f45; }
#home-design-process .hr-thumbnails button:focus-visible { outline:3px solid #996900; outline-offset:3px; }
@media(max-width:700px) {
 .ehc-home .ehc-service .ehc-service-copy,.ehc-home .exdc-card .exdc-card-copy { padding:22px 24px 26px !important; }
 .ehc-home .ehc-journal-item { padding:20px 24px !important; }
 #home-design-process .hr-pictures { order:-1; }
 #home-design-process .hr-thumbnails button { padding:4px; gap:5px; }
 #home-design-process .hr-thumbnails button img { height:60px; padding:2px; }
 #home-design-process .hr-thumbnails button .hr-thumb-title { font-size:9px; line-height:1.65; }
 #home-design-process .hr-tabs.hr-thumbnails { gap:5px; }
 #home-design-process .hr-plan .hr-open img { height:auto; max-height:400px; min-height:260px; }
}

/* About-page closing CTA: explicit high-contrast button states, scoped to this section. */
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-button,
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-button:visited {
 background:#264653 !important; color:#fff8eb !important; -webkit-text-fill-color:#fff8eb !important;
 border:1px solid #264653 !important; text-decoration:none !important; opacity:1 !important;
}
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-link,
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-link:visited {
 background:transparent !important; color:#264653 !important; -webkit-text-fill-color:#264653 !important;
 border:1px solid #264653 !important; text-decoration:none !important; opacity:1 !important;
}
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-button:hover,
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-button:active,
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-link:hover,
main .ehe-about .ehe-story-cta .ehe-actions a.ehe-link:active {
 background:#fcbf12 !important; color:#173e43 !important; -webkit-text-fill-color:#173e43 !important; border-color:#996900 !important;
}
main .ehe-about .ehe-story-cta .ehe-actions a:focus-visible {
 outline:3px solid #996900 !important; outline-offset:4px !important;
}

/* Keep a clear background band between service-page content and the footer. */
main#main-content:has(> .expert-service-enhanced) { padding-bottom:72px !important; }
@media(max-width:700px) {
 main#main-content:has(> .expert-service-enhanced) { padding-bottom:48px !important; }
}

/* Contact visibility does not depend on Tailwind generation or icon fonts. */
.elg-contact-link{display:inline-flex!important;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 17px;border-radius:9px;font:inherit;font-weight:700;line-height:1.4;text-decoration:none!important;box-sizing:border-box;white-space:nowrap;box-shadow:0 3px 10px #102b3020;border:1px solid transparent}
.elg-contact-link svg{display:block!important;width:23px;height:23px;flex:0 0 23px;pointer-events:none}
.elg-contact-link.elg-call{background:#fcbf12!important;color:#173e43!important;-webkit-text-fill-color:#173e43!important;border-color:#fcbf12}
.elg-contact-link.elg-wa{background:#173e43!important;color:#fff8eb!important;-webkit-text-fill-color:#fff8eb!important;border-color:#54817c}
.elg-contact-link.elg-wa svg{color:#66ed92}
.elg-contact-link:hover{filter:brightness(1.09)}
.elg-contact-link:focus-visible{outline:3px solid #996900;outline-offset:4px}
.elg-contact-topbar{padding:10px 0!important}
.elg-contact-topbar>.container{gap:12px!important;flex-wrap:wrap}
.elg-contact-topbar>.container>div:last-child{gap:10px!important;flex-wrap:wrap;justify-content:center}
.elg-contact-number{font-size:12px;letter-spacing:.3px}
.elg-contact-band{max-width:1200px;margin:40px auto 48px;padding:30px 32px;background:#eee7db;border:1px solid #d5c6a7;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:28px;color:#173e43;box-sizing:border-box}
.elg-contact-band-copy>span{font-size:12px;font-weight:700;color:#685735}
.elg-contact-band h2{font:inherit;font-size:clamp(22px,2.4vw,30px);font-weight:800;line-height:1.5;margin:7px 0}
.elg-contact-band p{font-size:15px;line-height:1.8;margin:0}
.elg-contact-actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0}
.elg-contact-band .elg-contact-number,.elg-contact-dock .elg-contact-number{display:none}
.elg-contact-dock{position:fixed;bottom:24px;right:24px;z-index:60;display:flex;flex-direction:column;gap:10px;isolation:isolate}
/* Retire old unlabeled floating controls instead of stacking duplicates. */
body div.fixed:has(>a[href*="api.whatsapp.com"]){display:none!important}
body:has(dialog[open]) .elg-contact-dock,body:has(header button[aria-expanded="true"]) .elg-contact-dock{visibility:hidden;pointer-events:none}
@media(max-width:1023px){
 .elg-contact-topbar>.container{display:flex!important;flex-direction:column!important}
 .elg-contact-topbar .edm-hf-socials{display:none!important}
 .elg-contact-topbar>.container>div:first-child{font-size:10px;line-height:1.5}
 .elg-contact-topbar .elg-contact-link{font-size:12px;padding:8px 12px;min-height:44px}
 .elg-contact-topbar .elg-contact-number{display:none}
 .elg-contact-band{margin:28px 16px 36px;padding:24px;flex-direction:column;align-items:stretch;gap:20px}
 .elg-contact-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .elg-contact-band .elg-contact-link{padding:10px;font-size:13px;white-space:normal;text-align:center}
 .elg-contact-dock{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;background:#fff8ebf5;border:1px solid #d5c6a7;border-radius:14px;box-shadow:0 6px 26px #173e4333}
 .elg-contact-dock .elg-contact-link{font-size:13px;padding:10px 8px;min-height:48px;white-space:normal;text-align:center}
 body{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
}
@media print{.elg-contact-dock,.elg-contact-topbar,.elg-contact-band{display:none!important}body{padding-bottom:0!important}}
