/* ==========================================================================
   موقع تشطيبات وديكور تفاعلي نخبوي — م. أحمد الشريف
   نظام العمارة والتصميم الداخلي الفاخر (Awwwards Luxury Editorial Architecture)
   ========================================================================== */

:root {
  /* نمط المساء المعماري النخبوي (Evening Mode 2700K - الافتراضي) */
  --bg: #0A0B0E;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.09) 0%, transparent 60%);
  --surface: #111318;
  --surface-card: #151820;
  --surface-card-hover: #1C202B;
  --surface-glass: rgba(16, 18, 24, 0.8);
  --surface-elevated: #1A1D26;

  --ink: #F5F2EB;            /* حجر جيري عاجي دافئ */
  --ink-2: #A5A094;          /* رمادي حجري متوازن */
  --ink-3: #6C675D;          /* رمادي داكن هادئ */

  --accent: #C5A059;         /* برونز وذهب شامبانيا مطفي */
  --accent-light: #DFBF7E;   /* ذهب لامع ساطع */
  --accent-dark: #8E713E;    /* برونز كلاسيكي عميق */
  --accent-soft: rgba(197, 160, 89, 0.12);
  --accent-glow: rgba(197, 160, 89, 0.32);

  --wood: #8E6845;           /* دفء خشب الجوز المعماري */
  --overlay: rgba(6, 7, 10, 0.96); /* خلفية اللايت بوكس السينمائي */

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(197, 160, 89, 0.28);

  --error: #E05244;
  --error-bg: rgba(224, 82, 68, 0.12);
  --success: #55B37B;

  --font-heading: 'Alexandria', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Cinzel', 'Playfair Display', serif;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* نمط الإضاءة النهارية الطبيعية النخبوية (Warm Travertine Minimalist Light Mode) */
[data-lighting="day"],
body[data-lighting="day"] {
  --bg: #F7F6F1;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.12) 0%, transparent 65%);
  --surface: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-card-hover: #F2EFE8;
  --surface-glass: rgba(247, 246, 241, 0.92);
  --surface-elevated: #EDEAE1;

  --ink: #14171D;            /* أسود كربوني غني وواضح */
  --ink-2: #545A5F;          /* رمادي حجري متوازن */
  --ink-3: #878C89;          /* رمادي دافئ */

  --accent: #9E7938;         /* ذهب وبرونز معماري عالي الوضوح على الخلفيات الفاتحة */
  --accent-light: #B88E3E;
  --accent-dark: #705423;
  --accent-soft: rgba(158, 121, 56, 0.12);
  --accent-glow: rgba(158, 121, 56, 0.28);

  --wood: #755234;
  --overlay: rgba(14, 16, 20, 0.94);

  --border: rgba(20, 23, 28, 0.09);
  --border-strong: rgba(20, 23, 28, 0.18);
  --border-gold: rgba(158, 121, 56, 0.35);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  lang: ar;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  border-radius: 0;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}

/* طبقة النسيج المعماري (Film Grain) */
.ambient-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* المؤشر المغناطيسي الفاخر (Magnetic Custom Luxury Cursor) */
.luxury-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-out), transform 0.08s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

.luxury-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
}

.luxury-cursor-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #0A0B0E;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

body.cursor-hover .luxury-cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent-light);
  background-color: rgba(197, 160, 89, 0.08);
}

body.cursor-explore .luxury-cursor-ring {
  width: 76px;
  height: 76px;
  background-color: var(--accent);
  border-color: var(--accent-light);
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.45);
}

body.cursor-explore .luxury-cursor-text {
  opacity: 1;
}

body.cursor-explore .luxury-cursor-dot {
  opacity: 0;
}

body.cursor-drag .luxury-cursor-ring {
  width: 70px;
  height: 70px;
  background-color: rgba(197, 160, 89, 0.9);
  border-color: var(--accent-light);
}

body.cursor-drag .luxury-cursor-text {
  opacity: 1;
}

body.cursor-drag .luxury-cursor-dot {
  opacity: 0;
}

@media (pointer: coarse) {
  .luxury-cursor-dot,
  .luxury-cursor-ring {
    display: none !important;
  }
}

/* Typography Constraints */
h1, h2, h3, h4, h5, h6, p, span, a, label, button, input, textarea, select {
  letter-spacing: 0 !important;
}

/* Headings font hierarchy: Amiri for grand h1 & h2 architectural titles, Alexandria for h3-h6 */
h1, h2, .section-header-title {
  font-family: 'Amiri', 'Alexandria', serif !important;
  font-weight: 700;
}

h1 {
  line-height: 1.28;
  max-width: 22ch; /* مراعاة طول السطر المعماري لضمان فخامة المظهر والاتزان التايبوغرافي */
  color: var(--ink);
}

h2, .section-header-title {
  line-height: 1.32;
  color: var(--ink);
}

h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.latin-num, [dir="ltr"] {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1;
  unicode-bidi: isolate;
  letter-spacing: normal !important;
}

/* Strict Borders & Radius */
img, section, article, .img-frame {
  border-radius: 0 !important;
}

button, input, textarea, select, .chip, .badge, .btn-primary, .btn-hairline, .indicator {
  border-radius: 2px;
}

/* Focus Visible Accessible Ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reading Progress Bar (Top 2px, Right to Left) */
#reading-progress-bar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2.5px;
  width: 0%;
  background-color: var(--accent);
  z-index: 1000;
  transform-origin: right center;
  transition: width 80ms linear;
  pointer-events: none;
}

/* Splash Intro Screen (Fade out under 1.2s) */
#splash-screen {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.splash-emblem-wrap {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  animation: emblemFadeIn 0.8s ease-out;
}

.splash-emblem {
  width: 64px;
  height: 64px;
}

@keyframes emblemFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  letter-spacing: 0;
}

.splash-sub {
  font-size: 14px;
  color: var(--ink-2);
}

.splash-line {
  width: 48px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 12px;
  animation: splashPulse 1s infinite alternate ease-in-out;
}

@keyframes splashPulse {
  0% { transform: scaleX(0.5); opacity: 0.5; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* ==========================================================================
   Desktop Above-Header (Bar with Address, Phone, Working Hours & CAD Licensing)
   ========================================================================== */
.site-above-header {
  background-color: var(--surface);
  border-block-end: 1px solid var(--border);
  font-size: 12.5px;
  position: relative;
  z-index: 1001;
  transition: background-color 0.4s var(--ease-out);
}

.above-header-inner {
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 64px);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.above-header-start,
.above-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.above-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1;
}

.above-icon {
  font-size: 13px;
  line-height: 1;
}

.above-divider {
  color: var(--border-gold);
  opacity: 0.6;
  font-size: 14px;
  user-select: none;
}

.above-link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.above-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.above-highlight {
  color: var(--accent);
  font-weight: 600;
}

.above-highlight:hover {
  color: var(--accent-light);
}

@media (max-width: 960px) {
  .site-above-header {
    display: none !important;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-block-end: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), background-color 0.4s var(--ease-out);
}

.header-inner {
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 64px);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-emblem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.brand-anchor:hover .brand-emblem-wrap {
  transform: scale(1.08);
}

.architectural-emblem {
  display: block;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.header-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 42px);
}

.nav-link {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 6px;
  position: relative;
  transition: color 200ms ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 220ms ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* مفتاح محاكاة مسار الضوء المعماري النخبوي (أيقونة دائرية فقط ☀️ / 🌙) */
.lighting-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--accent-light);
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.lighting-mode-toggle:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  box-shadow: 0 4px 22px var(--accent-soft);
  transform: translateY(-2px) scale(1.06);
}

.lighting-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}

.lighting-mode-toggle:hover .lighting-icon {
  transform: rotate(25deg) scale(1.18);
}

/* في الوضع الليلي (Dark Luxury): إخفاء الهلال وإظهار الشمس للدعوة للتحويل إلى النهاري */
body[data-lighting="evening"] .moon-icon,
[data-lighting="evening"] .moon-icon {
  display: none !important;
}
body[data-lighting="evening"] .sun-icon,
[data-lighting="evening"] .sun-icon {
  display: inline-block !important;
}

/* في الوضع النهاري (Warm Travertine): إخفاء الشمس وإظهار الهلال للدعوة للتحويل إلى الليلي */
body[data-lighting="day"] .sun-icon,
[data-lighting="day"] .sun-icon {
  display: none !important;
}
body[data-lighting="day"] .moon-icon,
[data-lighting="day"] .moon-icon {
  display: inline-block !important;
}

/* Mobile Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.hamburger-dash {
  width: 24px;
  height: 1.5px;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-nav-toggle.active .dash-top {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-nav-toggle.active .dash-mid {
  opacity: 0;
}

.mobile-nav-toggle.active .dash-bot {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Drawer (Slides from Right in RTL) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 23, 18, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: min(340px, 85vw);
  background-color: var(--surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.3);
  border-inline-start: 1px solid var(--border);
  overflow-y: auto;
}

.mobile-drawer-overlay.open .mobile-drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-block-end: 1px solid var(--border);
  gap: 12px;
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: var(--accent);
  color: #0A0B0E;
  border-color: var(--accent-light);
  transform: scale(1.08);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  gap: 6px;
}

.drawer-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-block-end: 1px solid var(--border);
}

.drawer-link.highlight {
  color: var(--accent);
  font-weight: 600;
  border-block-end: none;
  padding-top: 18px;
}

.drawer-footer {
  margin-top: auto;
  padding: 24px;
  border-block-start: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 960px) {
  .header-desktop-nav,
  .phone-quick-link,
  #header-cta-btn,
  .header-cta-btn {
    display: none !important;
  }
  .site-header .brand-text-wrap {
    display: flex !important;
  }
  .site-header .brand-anchor {
    gap: 10px;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .header-action-group {
    gap: 10px;
  }
  .lighting-mode-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .lighting-icon {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .site-header .brand-title {
    font-size: 15.5px;
  }
  .site-header .brand-tagline {
    font-size: 11px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .site-header .brand-tagline {
    display: none;
  }
}

/* ==========================================================================
   Hero Slider (٣.١)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  max-height: 1080px;
  background-color: var(--ink);
  color: var(--surface);
  overflow: hidden;
  touch-action: pan-y;
}

/* RTL Progress Bar at the top of Hero (fills from right to left) */
.hero-progress-line {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: 20;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  transform-origin: right center; /* RTL */
  transition: width 0.1s linear;
}

/* Slide Container */
.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), visibility 700ms;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image with Ken Burns Zoom */
.hero-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero-slide.active .hero-slide-media {
  animation: kenBurns 7s cubic-bezier(0.1, 0, 0.2, 1) forwards;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* Right-Edge Darkening Layer for Text Legibility (inset-inline-start in RTL) */
.hero-scrim-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(20, 23, 18, 0.88) 0%,
    rgba(20, 23, 18, 0.65) 45%,
    rgba(20, 23, 18, 0.2) 80%,
    rgba(20, 23, 18, 0.05) 100%
  );
  z-index: 3;
}

/* Content over image with luxury smooth entrance */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  height: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
}

.hero-text-block {
  max-width: 680px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out) 150ms, transform 600ms var(--ease-out) 150ms;
}

.hero-slide.active .hero-text-block {
  opacity: 1;
  transform: translateY(0);
}

.hero-editorial-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-slide-index {
  font-family: var(--font-editorial);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
  padding: 4px 12px;
  background: rgba(16, 18, 24, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  backdrop-filter: blur(12px);
}

.hero-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(16, 18, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
}

.hero-heading {
  font-family: 'Amiri', serif !important;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  line-height: 1.28;
  max-width: 22ch; /* مراعاة طول السطر المعماري لضمان الفخامة التايبوغرافية ومنع الكلمات المنفردة */
  color: #FFFFFF !important;
  margin-bottom: 20px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.hero-description {
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.85;
  color: rgba(245, 242, 235, 0.94);
  margin-bottom: 30px;
  max-width: 580px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
  font-size: 14px;
  color: rgba(245, 242, 235, 0.9);
  background: rgba(16, 18, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 10px 20px;
  width: fit-content;
}

.hero-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-buttons-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero Specimen Card (Architectural Consultation & Specs Editorial Card)
   ========================================================================== */
.hero-specimen-card {
  display: flex;
  flex-direction: column;
  width: min(430px, 35vw);
  max-width: 430px;
  flex-shrink: 0;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 10;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out) 250ms, transform 600ms var(--ease-out) 250ms, background-color 0.4s var(--ease-out);
}

.hero-slide.active .hero-specimen-card {
  opacity: 1;
  transform: translateY(0);
}

body[data-lighting="day"] .hero-specimen-card,
[data-lighting="day"] .hero-specimen-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border-gold);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.specimen-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.specimen-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 16px;
}

body[data-lighting="day"] .specimen-badge {
  color: var(--accent-dark);
  background: rgba(158, 121, 56, 0.12);
}

.specimen-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: specimenDotPulse 2s infinite ease-in-out;
}

@keyframes specimenDotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.specimen-tag {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.8px;
}

.specimen-card-title {
  font-family: 'Amiri', serif !important;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.specimen-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.hero-quick-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: start;
}

.quick-input-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.quick-input {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 13.5px;
  border-radius: 3px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-lighting="day"] .quick-input {
  background: #FAFAFA;
  border-color: rgba(20, 23, 28, 0.2);
}

.quick-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.quick-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 4px;
}

.specimen-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.specimen-spec-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.spec-label {
  color: var(--ink-2);
  font-weight: 500;
  flex-shrink: 0;
}

.spec-value {
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.specimen-card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.specimen-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.benefit-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 1160px) {
  .hero-specimen-card {
    display: none !important;
  }
}

/* Indicators and Arrows */
.hero-controls-bar {
  position: absolute;
  bottom: 36px;
  inset-inline-start: clamp(24px, 4.5vw, 64px);
  inset-inline-end: clamp(24px, 4.5vw, 64px);
  max-width: 1520px;
  margin-inline: auto;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dash-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-dash {
  width: 22px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  padding: 0;
}

.hero-dash.active {
  width: 52px;
  background-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.hero-nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.hero-arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background-color: rgba(16, 18, 24, 0.75);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s var(--ease-out);
}

.hero-arrow-btn:hover {
  background-color: var(--accent);
  color: #0A0B0E;
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

@media (max-width: 768px) {
  .hero-slider-section {
    min-height: 560px;
    height: 100dvh;
    max-height: none;
  }

  .hero-content-wrapper {
    padding-inline: clamp(16px, 5vw, 24px);
    padding-block-start: 36px;
    padding-block-end: 92px;
  }

  .hero-tag-chip {
    font-size: 11.5px;
    padding: 3px 10px;
    margin-bottom: 12px;
  }

  .hero-heading {
    font-size: clamp(28px, 7.6vw, 38px);
    line-height: 1.32;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-meta-bar {
    gap: 8px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    flex-wrap: wrap;
    padding-block-start: 12px;
  }

  .hero-buttons-row {
    gap: 10px;
    width: 100%;
  }

  .hero-buttons-row .btn-primary,
  .hero-buttons-row .btn-hairline {
    flex: 1 1 135px;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
  }

  .hero-controls-bar {
    bottom: 20px;
    inset-inline: clamp(16px, 5vw, 24px);
    justify-content: space-between;
    gap: 12px;
  }

  .hero-dash {
    width: 12px;
    height: 3px;
  }

  .hero-dash.active {
    width: 24px;
  }

  .hero-arrow-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Architectural Infinite Ticker Marquee
   ========================================================================== */
.architectural-marquee {
  position: relative;
  background-color: var(--surface);
  border-block-start: 1px solid var(--border);
  border-block-end: 1px solid var(--border-gold);
  padding-block: 15px;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  transition: background-color 0.4s var(--ease-out);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeRoll 48s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
  padding-inline-end: 36px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.marquee-item:hover {
  color: var(--accent);
}

.marquee-bullet {
  color: var(--accent);
  font-size: 12px;
  opacity: 0.9;
}

@keyframes marqueeRoll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .architectural-marquee {
    padding-block: 12px;
  }
  .marquee-item {
    font-size: 13px;
    gap: 8px;
  }
  .marquee-group {
    gap: 22px;
    padding-inline-end: 22px;
  }
}

/* ==========================================================================
   Quiet Stats Ribbon
   ========================================================================== */
.stats-ribbon {
  background-color: var(--surface);
  border-block-end: 1px solid var(--border);
  padding-block: 28px;
}

.stats-grid {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-inline-start: 2px solid var(--border);
  padding-inline-start: 16px;
}

.stat-value {
  font-family: var(--font-num);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.stat-label {
  font-size: 13.5px;
  color: var(--ink-2);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
}

/* ==========================================================================
   Common Section Layout
   ========================================================================== */
.section-wrapper {
  padding-block: clamp(60px, 8vh, 104px);
  border-block-end: 1px solid var(--border);
}

.container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header-title {
  font-family: 'Amiri', serif !important;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 64ch;
}

/* ==========================================================================
   Projects Section, Filters & Masonry Grid (٣.٢ & ٣.٣)
   ========================================================================== */
.projects-header-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.title-counter-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.live-counter-badge {
  font-size: 14px;
  color: var(--accent);
  background-color: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 600;
}

.filter-controls-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-block: 16px;
  border-block: 1px solid var(--border);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  min-width: 70px;
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}

.filter-chip-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.filter-chip-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-light);
  color: #0A0B0E !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
}

/* Masonry Grid (CSS Grid with varied heights) */
.projects-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  min-height: 400px;
}

@media (max-width: 1080px) {
  .projects-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .projects-masonry-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Project Card & Entrance Animation */
.project-card {
  position: relative;
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: opacity 200ms ease, transform 350ms var(--ease-out), border-color 300ms ease, box-shadow 350ms var(--ease-out);
  will-change: transform, opacity;
  border-radius: 2px;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-soft);
}

/* Excluded animation */
.project-card.filter-excluded {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  display: none !important;
}

/* Project card visual state */
.project-card.observe-reveal {
  opacity: 1;
}

.project-card.observe-reveal.is-revealed {
  opacity: 1;
}

/* Image container */
.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg);
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: filter 400ms ease;
  display: block;
}

.project-card:hover .project-thumb-img {
  filter: saturate(1);
}

/* "اعرض المشروع" badge slides from right edge on hover (High Contrast Gold Gradient & Deep Carbon Black Text) */
.project-card-action-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px; /* Right edge in RTL */
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0A0B0E !important;
  border: 1px solid var(--accent-light);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 14px;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-soft);
  transform: translateX(12px);
  opacity: 0;
  transition: transform 250ms var(--ease-out), opacity 250ms ease;
  pointer-events: none;
  z-index: 5;
}

.project-card:hover .project-card-action-badge {
  transform: translateX(0);
  opacity: 1;
}

@media (hover: none) {
  .project-thumb-img {
    filter: saturate(1);
  }
  .project-card-action-badge {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-2);
}

.project-type-tag {
  color: var(--wood);
  font-weight: 600;
}

.project-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.project-card-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.project-card-specs {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-2);
}

/* Empty State */
.projects-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--surface);
  border: 1px dashed var(--border-strong);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.projects-empty-state.visible {
  display: flex;
}

/* ==========================================================================
   Full Lightbox Modal (٣.٤ - هندسة العرض النخبوي الفاخر)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: var(--overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms var(--ease-out), visibility 350ms;
  display: flex;
  flex-direction: column;
}

body[data-lighting="day"] .lightbox-modal {
  background-color: rgba(247, 246, 241, 0.97);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Header Topbar */
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 3.5vw, 40px);
  background-color: rgba(14, 16, 22, 0.92);
  border-block-end: 1px solid var(--border);
  z-index: 20;
  gap: 16px;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s ease;
}

body[data-lighting="day"] .lightbox-topbar {
  background-color: rgba(255, 255, 255, 0.96);
  border-block-end: 1px solid var(--border-strong);
}

.lightbox-topbar-start {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lightbox-counter-text {
  font-family: var(--font-num);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-light);
  background-color: var(--accent-soft);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 4px 14px;
  letter-spacing: 1px;
}

body[data-lighting="day"] .lightbox-counter-text {
  color: #705423;
  background-color: rgba(158, 121, 56, 0.1);
  border-color: rgba(158, 121, 56, 0.28);
}

.lightbox-topbar-hint {
  font-size: 12.5px;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .lightbox-topbar-hint {
    display: none;
  }
}

/* زر خروج المعرض الرئيسي في التوب بار (Clear High-Contrast Exit Button) */
.lightbox-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-gold);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-close-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0A0B0E !important;
  border-color: var(--accent-light);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.lightbox-close-icon {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

body[data-lighting="day"] .lightbox-close-btn {
  background-color: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: #14171D !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body[data-lighting="day"] .lightbox-close-btn:hover {
  background-color: #14171D;
  color: #FFFFFF !important;
  border-color: #14171D;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Lightbox Body Grid: Right Info Panel + Center Big Image */
.lightbox-content-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100% - 65px);
  overflow: hidden;
}

@media (max-width: 960px) {
  .lightbox-content-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    overflow-y: auto;
  }
}

/* Info Panel on the RIGHT (start of reading in RTL) */
.lightbox-info-panel {
  background-color: #12141A;
  border-inline-end: 1px solid var(--border);
  padding: clamp(22px, 3.2vw, 36px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  order: 1;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s ease;
}

body[data-lighting="day"] .lightbox-info-panel {
  background-color: #FFFFFF;
  border-inline-end: 1px solid var(--border-strong);
  color: #14171D;
}

@media (max-width: 960px) {
  .lightbox-info-panel {
    order: 2;
    border-inline-end: none;
    border-block-start: 1px solid var(--border);
    max-height: 48vh;
  }
}

.lightbox-project-title {
  font-family: 'Amiri', serif !important;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.3;
}

body[data-lighting="day"] .lightbox-project-title {
  color: #14171D !important;
}

.lightbox-project-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

body[data-lighting="day"] .lightbox-project-desc {
  color: #4A5157;
}

.lightbox-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-block: 1px solid var(--border);
  padding-block: 16px;
  font-size: 13.5px;
}

body[data-lighting="day"] .lightbox-details-list {
  border-block-color: var(--border-strong);
}

.lightbox-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lightbox-detail-label {
  color: var(--ink-3);
  font-size: 13.5px;
}

body[data-lighting="day"] .lightbox-detail-label {
  color: #6C737A;
}

.lightbox-detail-value {
  color: var(--ink) !important;
  font-weight: 600;
  text-align: end;
}

body[data-lighting="day"] .lightbox-detail-value {
  color: #14171D !important;
}

.lightbox-lighting-card {
  background-color: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  border-inline-start: 3px solid var(--accent);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  border-radius: 2px;
}

body[data-lighting="day"] .lightbox-lighting-card {
  background-color: rgba(158, 121, 56, 0.07);
  border: 1px solid rgba(158, 121, 56, 0.25);
  border-inline-start: 3px solid #9E7938;
  color: #2D3239;
}

.lighting-card-label {
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 6px;
  font-size: 13px;
}

body[data-lighting="day"] .lighting-card-label {
  color: #705423;
}

.lightbox-panel-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
}

.lightbox-panel-exit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
}

/* Center Stage: Image + Thumbnails */
.lightbox-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  order: 2;
}

@media (max-width: 960px) {
  .lightbox-stage {
    order: 1;
    min-height: 380px;
  }
}

.lightbox-image-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1000px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.lightbox-active-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 350ms var(--ease-out), opacity 250ms ease;
  will-change: transform, opacity;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
}

/* Skeleton Loading indicator */
.lightbox-skeleton {
  position: absolute;
  inset: 20%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  display: none;
}

.lightbox-skeleton.active {
  display: block;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Navigation Arrow Overlays */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background-color: rgba(18, 21, 28, 0.85);
  border: 1px solid var(--border-gold);
  color: #FFFFFF !important;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  font-size: 18px;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn:hover {
  background-color: var(--accent);
  color: #0A0B0E !important;
  border-color: var(--accent-light);
  transform: translateY(-50%) scale(1.08);
}

body[data-lighting="day"] .lightbox-nav-btn {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-strong);
  color: #14171D !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body[data-lighting="day"] .lightbox-nav-btn:hover {
  background-color: #14171D;
  color: #FFFFFF !important;
  border-color: #14171D;
}

.lightbox-nav-prev {
  inset-inline-start: 24px;
}

.lightbox-nav-next {
  inset-inline-end: 24px;
}

/* Thumbnails Filmstrip */
.lightbox-filmstrip {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 8px;
  background-color: rgba(14, 16, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow-x: auto;
  max-width: 90%;
  backdrop-filter: blur(10px);
}

body[data-lighting="day"] .lightbox-filmstrip {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lightbox-thumb-btn {
  width: 68px;
  height: 50px;
  background: none;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.55;
  overflow: hidden;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lightbox-thumb-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.lightbox-thumb-btn.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.lightbox-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   Before / After Comparison Section (٣.٥)
   ========================================================================== */
.before-after-section {
  background-color: var(--bg);
}

.ba-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.ba-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 180ms ease;
}

.ba-tab-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-light);
  color: #0A0B0E !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.3);
}

.ba-stage-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background-color: #060709;
  user-select: none;
  touch-action: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
}

/* Images: Before on the RIGHT (reading start), After on the LEFT */
.ba-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-img-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Clipped from right in RTL */
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
  will-change: clip-path;
}

/* شارات المقارنة قبل وبعد فوق الصور (High-Contrast Architectural Floating Badges) */
.ba-corner-badge {
  position: absolute;
  top: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 8px 18px;
  z-index: 15;
  border-radius: 4px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.2px;
}

/* شارة "قبل" باليمين (عظم وتأسيس - خلفية داكنة معتمة بنص أبيض فاقع 100%) */
.badge-before {
  inset-inline-start: 18px; /* Right edge in RTL */
  background-color: rgba(14, 16, 22, 0.92);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-before::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #A5A094;
  display: inline-block;
}

/* شارة "بعد" باليسار (تسليم نهائي - تدرج ذهبي برونزي غني بنص أبيض ناصع) */
.badge-after {
  inset-inline-end: 18px; /* Left edge in RTL */
  background: linear-gradient(135deg, #A8813B 0%, #6E511D 100%);
  color: #FFFFFF !important;
  border: 1px solid #DFBF7E;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.badge-after::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #FFE082;
  box-shadow: 0 0 8px #FFD54F;
  display: inline-block;
}

/* The Interactive Divider Handle */
.ba-divider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
  z-index: 10;
  transform: translateX(50%);
  cursor: ew-resize;
  will-change: inset-inline-start;
  box-shadow: 0 0 12px var(--accent-glow);
}

.ba-grip-circle {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #0A0B0E;
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  cursor: grab;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.ba-divider-handle:hover .ba-grip-circle,
.ba-divider-handle:active .ba-grip-circle {
  transform: translate(50%, -50%) scale(1.15);
  box-shadow: 0 0 32px var(--accent);
  cursor: grabbing;
}

.ba-hint-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

/* ==========================================================================
   Finishing Cost Calculator (٣.٦)
   ========================================================================== */
.calculator-section {
  background-color: var(--surface);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  margin-top: 40px;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-field-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.calc-sync-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calc-number-input {
  width: 80px;
  text-align: center;
  padding: 6px;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

/* RTL Range Slider */
.calc-range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-strong);
  outline: none;
  border-radius: 2px;
  direction: rtl; /* RTL */
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.calc-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--surface);
}

/* Radio Cards */
.radio-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.radio-cards-row-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .radio-cards-row {
    grid-template-columns: 1fr;
  }
}

.calc-radio-card {
  position: relative;
  border: 1px solid var(--border-strong);
  background-color: var(--bg);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 180ms ease;
}

.calc-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-radio-card.selected {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 2px 8px rgba(79, 97, 80, 0.12);
}

.radio-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.radio-card-price {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-num);
}

.radio-card-desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 4px;
}

/* Output Card */
.calc-results-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.calc-result-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-result-title {
  font-size: 14px;
  color: var(--ink-2);
}

.calc-animated-price {
  font-family: var(--font-num);
  font-size: clamp(20px, 5.5vw, 40px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}

.calc-price-currency {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  margin-inline-start: 8px;
  color: var(--ink-2);
}

.calc-duration-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.calc-duration-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.calc-duration-text {
  font-size: 14.5px;
  color: var(--ink);
}

.calc-disclaimer-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  border-block-start: 1px dashed var(--border);
  padding-block-start: 14px;
}

.btn-whatsapp-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #2E7D32;
  color: #FFFFFF;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.btn-whatsapp-calc:hover {
  opacity: 0.92;
}

/* ==========================================================================
   Scroll Timeline: Work Stages (٣.٧)
   ========================================================================== */
.timeline-section {
  background-color: var(--bg);
}

.timeline-wrapper {
  position: relative;
  margin-top: 48px;
  padding-inline-start: 40px; /* Space for the right vertical line in RTL */
}

/* Vertical timeline line on the RIGHT */
.timeline-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 12px;
  width: 2px;
  background-color: var(--border);
}

.timeline-fill-line {
  position: absolute;
  top: 0;
  inset-inline-start: 12px;
  width: 2px;
  height: 0%;
  background-color: var(--accent);
  transition: height 120ms ease-out;
}

.timeline-items-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-step-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: baseline;
  gap: 24px;
  opacity: 0.45;
  transition: opacity 300ms ease, border-color 300ms ease;
}

.timeline-step-card.active-stage {
  opacity: 1;
  border-color: var(--accent);
}

/* Node indicator on the vertical line */
.timeline-node-dot {
  position: absolute;
  top: 36px;
  inset-inline-start: -34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--border-strong);
  transition: all 300ms ease;
}

.timeline-step-card.active-stage .timeline-node-dot {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.step-number-col {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: var(--wood);
}

.timeline-step-card.active-stage .step-number-col {
  color: var(--accent);
}

.step-info-col h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-info-col p {
  font-size: 14.5px;
  color: var(--ink-2);
}

.step-deliverable-col {
  font-size: 14px;
  color: var(--ink);
  background-color: var(--bg);
  padding: 12px 16px;
  border-inline-start: 3px solid var(--wood);
}

@media (max-width: 840px) {
  .timeline-step-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
}

/* ==========================================================================
   Testimonials Slider (٣.٨)
   ========================================================================== */
.testimonials-section {
  background-color: var(--surface);
}

.testimonials-viewport {
  overflow: hidden;
  margin-top: 40px;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}

.testimonials-viewport:active {
  cursor: grabbing;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 400ms var(--ease-out);
  will-change: transform;
}

.testimonial-card-slide {
  flex: 0 0 calc(50% - 12px);
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  user-select: none;
}

@media (max-width: 768px) {
  .testimonial-card-slide {
    flex: 0 0 100%;
  }
}

.testimonial-quote-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}

.testimonial-author-meta {
  border-block-start: 1px solid var(--border);
  padding-block-start: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.author-unit {
  font-size: 13px;
  color: var(--ink-2);
}

.test-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.test-dots-group {
  display: flex;
  gap: 8px;
}

.test-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 200ms ease;
}

.test-dot.active {
  background-color: var(--accent);
}

/* ==========================================================================
   Contact Form & Section (٣.٩)
   ========================================================================== */
.contact-section {
  background-color: var(--bg);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  margin-top: 40px;
}

@media (max-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
}

.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-input-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-text-input,
.form-select-input,
.form-area-input {
  width: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.form-text-input:focus,
.form-select-input:focus,
.form-area-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-card);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 18px var(--accent-soft);
}

.form-text-input.input-has-error {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.input-validation-hint {
  font-size: 12.5px;
  color: var(--error);
  display: none;
}

.input-validation-hint.visible {
  display: block;
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0A0B0E !important;
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  padding: 15px;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
  letter-spacing: 0;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197, 160, 89, 0.45);
}

.form-success-banner {
  background-color: rgba(79, 97, 80, 0.12);
  border: 1px solid var(--accent);
  border-inline-start: 4px solid var(--accent);
  padding: 20px;
  margin-bottom: 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.form-success-banner.visible {
  display: flex;
}

/* Direct Contact Info Card */
.direct-contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.direct-channel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-label {
  font-size: 13px;
  color: var(--ink-2);
}

.channel-value {
  font-size: 16.5px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.channel-value:hover {
  color: var(--accent);
}

/* ==========================================================================
   Floating Action Buttons (WhatsApp + Call Stack & Scroll To Top)
   ========================================================================== */
.floating-contact-stack {
  position: fixed;
  bottom: clamp(20px, 3.5vw, 30px);
  inset-inline-start: clamp(16px, 2.5vw, 24px); /* Right side in RTL */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 995;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Shown only after scrolling past the hero, so it never sits on top of the
   hero slider's own dot-indicators / prev-next arrows in the same corner. */
.floating-contact-stack.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  cursor: pointer;
}

.floating-action-btn:hover {
  transform: scale(1.1) translateY(-2px);
}

.floating-action-btn:active {
  transform: scale(0.95);
}

.floating-whatsapp-btn {
  background: #25D366;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp-btn:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.floating-call-btn {
  background: linear-gradient(135deg, #DFBF7E 0%, #9E7938 100%);
  color: #0A0B0E !important;
  border: 1.5px solid #F5F2EB;
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.45);
}

body[data-lighting="day"] .floating-call-btn {
  background: linear-gradient(135deg, #BD9245 0%, #6E511D 100%);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(110, 81, 29, 0.45);
}

.floating-call-btn:hover {
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* Floating Scroll to Top (Opposite Side) */
.floating-scroll-top-btn {
  position: fixed;
  bottom: clamp(20px, 3.5vw, 30px);
  inset-inline-end: clamp(16px, 2.5vw, 24px); /* Left side in RTL */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--surface-card);
  border: 1.5px solid var(--border-gold);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 995;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition: all 0.3s var(--ease-out);
}

body[data-lighting="day"] .floating-scroll-top-btn {
  background-color: #FFFFFF;
  color: var(--accent-dark);
  border-color: var(--border-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.floating-scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-scroll-top-btn:hover {
  background-color: var(--accent);
  color: #0A0B0E;
  border-color: var(--accent-light);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.floating-btn-label {
  display: none;
}

@media (max-width: 600px) {
  .floating-action-btn {
    width: 44px;
    height: 44px;
  }
  .floating-scroll-top-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Site Footer (Editorial Architecture & Mobile UX Optimized)
   ========================================================================== */
.site-footer {
  background-color: #080A0E;
  border-block-start: 1px solid var(--border-gold);
  padding-block: 56px 40px;
  color: var(--ink-2);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s ease, color 0.4s ease;
  position: relative;
  z-index: 20;
}

body[data-lighting="day"] .site-footer {
  background-color: #EDEAE1;
  border-block-start: 1px solid rgba(158, 121, 56, 0.3);
  color: #545A5F;
}

.footer-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 620px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.footer-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

body[data-lighting="day"] .footer-brand-title {
  color: #14171D;
}

.footer-brand-tagline {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 500;
  margin-top: 2px;
}

body[data-lighting="day"] .footer-brand-tagline {
  color: var(--accent-dark);
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-top: 4px;
}

body[data-lighting="day"] .footer-brand-desc {
  color: #545A5F;
}

.footer-nav-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  padding-block: 4px;
}

.footer-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 4px 6px;
}

body[data-lighting="day"] .footer-nav-link {
  color: #383E44;
}

.footer-nav-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.footer-nav-link.highlight {
  color: var(--accent-light);
  font-weight: 600;
}

body[data-lighting="day"] .footer-nav-link.highlight {
  color: var(--accent-dark);
}

.footer-contact-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.25s ease;
}

body[data-lighting="day"] .footer-pill {
  background: #FFFFFF;
  border-color: rgba(20, 23, 28, 0.12);
  color: #14171D;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.footer-pill-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-soft);
}

.footer-pill-whatsapp {
  border-color: rgba(37, 211, 102, 0.4);
}

.footer-pill-whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.footer-pill-icon {
  font-size: 14px;
}

.footer-bottom-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
  margin-block: 4px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.2px;
}

body[data-lighting="day"] .footer-copyright {
  color: #727880;
}

@media (max-width: 768px) {
  .site-footer {
    padding-block: 44px 96px; /* Space for floating buttons */
  }

  .footer-container {
    gap: 22px;
  }

  .footer-brand-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-title-group {
    align-items: center;
    text-align: center;
  }

  .footer-brand-desc {
    font-size: 13px;
    line-height: 1.7;
    padding-inline: 8px;
  }

  .footer-nav-grid {
    gap: 10px 18px;
  }

  .footer-nav-link {
    font-size: 13.5px;
  }

  .footer-contact-pills {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 8px;
  }

  .footer-pill {
    width: 100%;
    justify-content: center;
    padding: 9px 16px;
    font-size: 12.5px;
  }

  .footer-copyright {
    font-size: 11.5px;
    line-height: 1.6;
  }
}

/* ==========================================================================
   Buttons Global (Luxury Architectural Haute Couture)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #0A0B0E !important;
  padding: 12px 26px;
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
  letter-spacing: 0;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197, 160, 89, 0.45);
}

/* في الوضع النهاري (Light Mode): جميع الأزرار الذهبية الرئيسية تكون بنصوص بيضاء ناصعة */
body[data-lighting="day"] .btn-primary,
body[data-lighting="day"] .form-submit-btn,
body[data-lighting="day"] .mobile-sticky-call,
body[data-lighting="day"] .filter-chip-btn.active,
body[data-lighting="day"] .ba-tab-btn.active,
body[data-lighting="day"] .project-card-action-badge {
  background: linear-gradient(135deg, #A8813B 0%, #6E511D 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #DFBF7E !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 20px rgba(110, 81, 29, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body[data-lighting="day"] .btn-primary:hover,
body[data-lighting="day"] .form-submit-btn:hover,
body[data-lighting="day"] .mobile-sticky-call:hover {
  background: linear-gradient(135deg, #BD9245 0%, #876427 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 26px rgba(110, 81, 29, 0.5);
}

.btn-hairline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--ink) !important;
  padding: 12px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease-out);
}

.btn-hairline:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  color: var(--accent-light) !important;
  transform: translateY(-2px);
}

/* في الهيرو سيكشن ذي الخلفية الداكنة: ضمان بقاء الزر الشفاف أبيض فاقع في جميع الأوضاع */
.hero-slider-section .btn-hairline {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.hero-slider-section .btn-hairline:hover {
  background-color: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
}

/* ==========================================================================
   Prefers Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide-media {
    animation: none !important;
    transform: none !important;
  }
  .hero-text-block {
    clip-path: none !important;
    opacity: 1 !important;
  }
  .project-card.observe-reveal {
    clip-path: none !important;
  }
}
