/* ============================================================
   NILE MARBLE & GRANITE - LUXURY WEBSITE
   Color Palette: Black · White · Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Montserrat:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --gold: #C9A84C;
  --gold-light: #E8D48A;
  --gold-bright: #FFD700;
  --gold-dark: #8B6914;
  --gold-gradient: linear-gradient(135deg, #8B6914 0%, #C9A84C 40%, #E8D48A 60%, #C9A84C 80%, #8B6914 100%);
  --gold-gradient-h: linear-gradient(90deg, #8B6914, #C9A84C, #E8D48A, #C9A84C, #8B6914);
  --black: #000000;
  --black-rich: #060606;
  --dark: #111111;
  --dark-2: #181818;
  --dark-3: #1f1f1f;
  --dark-4: #252525;
  --dark-card: #161616;
  --white: #FFFFFF;
  --white-off: #F8F5EE;
  --white-dim: rgba(255,255,255,0.08);
  --white-dim2: rgba(255,255,255,0.05);
  --gold-dim: rgba(201,168,76,0.15);
  --gold-glow: 0 0 30px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.2);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.45);
  --text-gold: #C9A84C;
  --border-gold: rgba(201,168,76,0.3);
  --border-gold-bright: rgba(201,168,76,0.7);
  --border-subtle: rgba(255,255,255,0.07);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.25);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.8);
  --font-heading: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --nav-height: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--black-rich);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
  /* ── Prevent browser save-image tooltip and drag-to-desktop ── */
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  draggable: false;
}
/* Restore click-through for images inside interactive wrappers */
a > img, button > img,
[onclick] > img, label > img { pointer-events: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Typography ── */
.en-text { font-family: var(--font-heading); }
.ar-text { font-family: var(--font-ar); direction: rtl; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  min-width: 0;
}

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.gold-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 16px auto;
}

.gold-line-left {
  margin-left: 0;
  margin-right: auto;
}

.lang-ar .gold-line-left {
  margin-left: auto;
  margin-right: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.lang-ar .section-label {
  letter-spacing: 1px;
  flex-direction: row-reverse;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--black);
}

.btn-gold:hover {
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.lang-ar .btn {
  letter-spacing: 0.5px;
  font-family: var(--font-ar);
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  transition: var(--transition);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: var(--shadow-deep);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo .logo-main {
  display: flex;
  align-items: center;
}

.nav-logo .logo-main img {
  height: 72px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-logo .logo-sub {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.lang-ar .nav-links a {
  letter-spacing: 0.5px;
  font-family: var(--font-ar);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

#langToggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  background: transparent;
  transition: var(--transition);
}

#langToggle:hover {
  background: var(--gold-dim);
}

.nav-cta {
  padding: 10px 24px;
  font-size: 10px;
  letter-spacing: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  font-family: var(--font-heading);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-bottom {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 20px;
}

.lang-ar .mobile-nav a {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* ── Hero / Banner ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.65) 50%,
    rgba(0,0,0,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: var(--nav-height);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-eyebrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-eyebrow-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.hero-title .gold-word {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-stats {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

.hero-stats .container {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border-gold);
  padding-top: 30px;
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--border-gold);
}

.hero-stat:last-child { border-right: none; }

.lang-ar .hero-stat:last-child { border-right: 1px solid var(--border-gold); border-left: none; }
.lang-ar .hero-stat:first-child { border-right: none; }

.hero-stat .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-family: var(--font-heading);
}

.hero-stat .stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.lang-ar .hero-stat .stat-label { letter-spacing: 0; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-indicator span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::before {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease infinite;
}

/* ── Dynamic Hero Section (All Inner Pages) ── */
.dynamic-hero-section {
  position: relative;
  height: 75vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black-rich);
  perspective: 1000px;
}

.dynamic-hero-bg {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.3;
  transition: transform 0.1s ease-out;
}

.dynamic-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.5) 0%, rgba(6,6,6,1) 100%),
              radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 2;
}

.floating-elements-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0.15;
  filter: grayscale(20%) contrast(1.2);
}

.floating-element.shape-1 {
  width: 300px; height: 300px;
  top: 10%; left: 15%;
}

.floating-element.shape-2 {
  width: 450px; height: 450px;
  bottom: -10%; right: 10%;
  opacity: 0.1;
}

.floating-element.shape-3 {
  width: 200px; height: 200px;
  top: 20%; right: 25%;
  opacity: 0.2;
}

.dynamic-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: var(--nav-height);
  pointer-events: none;
}

.dynamic-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dynamic-hero-eyebrow span:not(.dynamic-hero-line) {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
}

.lang-ar .dynamic-hero-eyebrow span:not(.dynamic-hero-line) {
  letter-spacing: 2px;
}

.dynamic-hero-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-gradient);
}

.dynamic-hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--white);
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.dynamic-hero-title .text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.dynamic-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.4);
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.dynamic-hero-breadcrumb a {
  transition: var(--transition-fast);
}

.dynamic-hero-breadcrumb a:hover {
  color: var(--gold);
}

.dynamic-hero-breadcrumb .sep {
  color: var(--gold);
  font-size: 9px;
  opacity: 0.6;
}

.dynamic-hero-breadcrumb .current {
  color: var(--gold);
  font-weight: 600;
}

.lang-ar .dynamic-hero-breadcrumb {
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM DYNAMIC HERO ENHANCEMENTS — Portfolio / Materials / Contact
   High-end, layered parallax, interactive, luxury black/gold/white
   ═══════════════════════════════════════════════════════════════ */

/* Base upgrades for more presence */
.dynamic-hero-section {
  height: 82vh;
  min-height: 560px;
}
.dynamic-hero-bg {
  opacity: 0.22;
  filter: contrast(1.15) saturate(0.9);
}

/* Layered parallax system */
.hero-layer {
  position: absolute;
  inset: -12% -12% -12% -12%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.hero-layer-mid { z-index: 2; opacity: 0.55; }
.hero-layer-fg  { z-index: 4; opacity: 0.35; }

/* Gold specular sweep (common) */
.hero-sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(201,168,76,0.12) 38%,
    rgba(255,255,255,0.18) 48%,
    rgba(201,168,76,0.08) 62%,
    transparent 80%
  );
  background-size: 220% 220%;
  mix-blend-mode: screen;
  animation: heroSweep 9s linear infinite;
  opacity: 0.6;
}
@keyframes heroSweep {
  0% { background-position: 0% 30%; }
  100% { background-position: 200% 70%; }
}

/* Enhanced floating elements for luxury */
.floating-element {
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), inset 0 0 60px rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dynamic-hero-section:hover .floating-element {
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), inset 0 0 70px rgba(255,255,255,0.08);
}

/* ── PORTFOLIO: Architectural floating panels ── */
.portfolio-hero-panels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.arch-panel {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow:
    0 25px 70px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset -30px 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(201,168,76,0.12);
  overflow: hidden;
  will-change: transform;
}
.arch-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 45%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.arch-panel.p1 { width: 28%; height: 42%; top: 18%; left: 8%; transform: rotate(-8deg) scale(0.98); }
.arch-panel.p2 { width: 24%; height: 52%; bottom: 12%; left: 22%; transform: rotate(6deg) scale(0.95); }
.arch-panel.p3 { width: 32%; height: 36%; top: 26%; right: 9%; transform: rotate(11deg) scale(1.02); }
.arch-panel.p4 { width: 18%; height: 28%; bottom: 22%; right: 24%; transform: rotate(-14deg); }

.arch-panel .panel-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.45);
  padding: 2px 8px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.8;
}

/* ── MATERIALS: Interactive stone viewer + swatches ── */
.materials-hero-viewer {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(420px, 52vw);
  max-width: 460px;
  pointer-events: auto;
}
.materials-hero-slab {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  margin: 0 auto 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 40px 110px rgba(0,0,0,0.75),
    0 0 0 1px rgba(201,168,76,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transform-style: preserve-3d;
  transition: box-shadow 0.2s ease;
  cursor: grab;
}
.materials-hero-slab:active { cursor: grabbing; }
.materials-hero-slab .slab-texture {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: background-image 280ms ease;
  filter: contrast(1.05) saturate(1.05);
}
.materials-hero-slab .slab-shine {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.06) 32%, transparent 52%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: transform 80ms linear;
}
.materials-hero-slab .slab-edge {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.6), inset -18px -18px 30px rgba(0,0,0,0.45);
  pointer-events: none;
  border-radius: inherit;
}

/* Swatches row */
.materials-hero-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(6,6,6,0.65);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.mat-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2,0,0,1), box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.mat-swatch:hover {
  transform: scale(1.2) translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.6), 0 0 0 3px rgba(201,168,76,0.2);
}
.mat-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.45), 0 4px 14px rgba(0,0,0,0.6);
  transform: scale(1.15);
}
.mat-swatch::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* Stone name hint under viewer */
.materials-hero-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  margin-top: -4px;
}

/* ── CONTACT: Elegant marble surface + gold interactive cue ── */
.contact-hero-surface {
  position: absolute;
  inset: 10% 12% 18% 12%;
  z-index: 3;
  border-radius: 18px;
  background-size: cover;
  background-position: 40% 30%;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(201,168,76,0.2),
    inset 40px 30px 60px rgba(255,255,255,0.06);
  overflow: hidden;
  pointer-events: none;
}
.contact-hero-surface::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), transparent 35%, rgba(0,0,0,0.45));
  pointer-events: none;
}
.contact-gold-frame {
  position: absolute;
  inset: 14% 18% 22% 18%;
  z-index: 5;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(6,6,6,0.35), rgba(0,0,0,0.25));
}
.contact-gold-frame .contact-cue {
  font-family: var(--font-heading);
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: 3.5px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, letter-spacing 0.2s;
  text-transform: uppercase;
  pointer-events: none;
}
.contact-gold-frame:hover .contact-cue {
  letter-spacing: 5px;
  transform: translateY(-1px);
}
.contact-gold-frame .contact-cue i {
  font-size: 13px;
}
.contact-ripple {
  position: absolute;
  border: 1px solid rgba(201,168,76,0.7);
  border-radius: 999px;
  pointer-events: none;
  z-index: 6;
}

/* Subtle gold particles for contact */
.contact-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .materials-hero-viewer { width: min(300px, 68vw); top: 48%; }
  .arch-panel { opacity: 0.7; }
  .contact-hero-surface { inset: 16% 10% 26% 10%; }
}
@media (max-width: 640px) {
  .dynamic-hero-section[data-hero="materials"],
  .dynamic-hero-section[data-hero="contact"] {
    height: auto;
    min-height: 380px;
    padding: calc(var(--nav-height) + 20px) 0 40px;
  }
  .materials-hero-swatches { gap: 4px; padding: 3px 6px; }
  .mat-swatch { width: 22px; height: 22px; }
}

/* About + Portfolio — mobile banners: dynamic texture, readable text */
@keyframes mobileHeroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -1%); }
}

@keyframes mobileOrbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

@media (max-width: 768px) {
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) {
    height: auto !important;
    min-height: 360px !important;
    padding: calc(var(--nav-height) + 20px) 0 48px !important;
    align-items: center;
    overflow: hidden;
  }

  /* Gold shimmer (About has no .hero-sweep element) */
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]):not([data-hero="portfolio"])::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
      115deg,
      transparent 18%,
      rgba(201,168,76,0.14) 42%,
      rgba(255,255,255,0.1) 50%,
      rgba(201,168,76,0.08) 58%,
      transparent 78%
    );
    background-size: 220% 220%;
    animation: heroSweep 9s linear infinite;
    opacity: 0.45;
  }

  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"])::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(140px, 36vw);
    height: 2px;
    background: var(--gold-gradient);
    z-index: 15;
    opacity: 0.9;
  }

  /* ── Visible marble background ── */
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .dynamic-hero-bg {
    top: -8% !important;
    left: -8% !important;
    right: -8% !important;
    bottom: -8% !important;
    opacity: 0.58 !important;
    animation: mobileHeroKenBurns 16s ease-in-out infinite alternate;
  }

  .dynamic-hero-section[data-hero="portfolio"] .hero-layer-bg {
    display: block !important;
    inset: -10% !important;
    opacity: 0.52 !important;
    z-index: 1;
    animation: mobileHeroKenBurns 18s ease-in-out infinite alternate;
  }

  /* Lighter overlay — texture shows through */
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .dynamic-hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,6,6,0.25) 0%, rgba(6,6,6,0.72) 100%),
      radial-gradient(ellipse 85% 65% at 50% 25%, rgba(201,168,76,0.16) 0%, transparent 68%);
    z-index: 2;
  }

  /* Gold sweep on portfolio */
  .dynamic-hero-section[data-hero="portfolio"] .hero-sweep {
    display: block !important;
    opacity: 0.42 !important;
    z-index: 5;
  }

  /* ── Corner stone orbs (not over text) ── */
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .floating-elements-container {
    display: block !important;
    z-index: 3;
  }

  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .floating-element {
    border: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    animation: mobileOrbFloat 7s ease-in-out infinite;
  }

  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .floating-element.shape-1 {
    width: 130px !important;
    height: 130px !important;
    top: 6% !important;
    left: -22% !important;
    opacity: 0.28 !important;
    animation-delay: 0s;
  }

  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .floating-element.shape-2 {
    display: none !important;
  }

  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) .floating-element.shape-3 {
    width: 95px !important;
    height: 95px !important;
    top: auto !important;
    bottom: 8% !important;
    right: -18% !important;
    left: auto !important;
    opacity: 0.22 !important;
    animation-delay: -3.5s;
  }

  /* ── Portfolio: two accent slabs in corners ── */
  .dynamic-hero-section[data-hero="portfolio"] .portfolio-hero-panels {
    display: block !important;
    z-index: 3;
  }

  .dynamic-hero-section[data-hero="portfolio"] .arch-panel.p2,
  .dynamic-hero-section[data-hero="portfolio"] .arch-panel.p4 {
    display: none !important;
  }

  .dynamic-hero-section[data-hero="portfolio"] .arch-panel.p1 {
    display: block !important;
    width: 44% !important;
    height: 34% !important;
    top: 4% !important;
    left: -10% !important;
    bottom: auto !important;
    right: auto !important;
    transform: rotate(-7deg) !important;
    opacity: 0.32 !important;
  }

  .dynamic-hero-section[data-hero="portfolio"] .arch-panel.p3 {
    display: block !important;
    width: 46% !important;
    height: 36% !important;
    top: auto !important;
    bottom: 2% !important;
    right: -12% !important;
    left: auto !important;
    transform: rotate(9deg) !important;
    opacity: 0.3 !important;
  }

  .dynamic-hero-section[data-hero="portfolio"] .arch-panel .panel-label {
    display: none;
  }

  /* ── Text card — readable over texture (About + Portfolio only) ── */
  .dynamic-hero-section[data-hero="portfolio"] .dynamic-hero-content,
  .about-hero-copy {
    padding: 22px 18px !important;
    padding-top: 22px !important;
    margin: 0 14px;
    width: calc(100% - 28px);
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 12;
    background: rgba(6, 6, 6, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  }

  .dynamic-hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    margin-bottom: 14px;
    line-height: 1.12;
    text-shadow: 0 2px 20px rgba(0,0,0,0.85);
  }

  .dynamic-hero-section[data-hero="portfolio"] .dynamic-hero-title {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem) !important;
    line-height: 1.2;
    max-width: 16em;
  }

  .dynamic-hero-eyebrow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    max-width: 100%;
  }

  .dynamic-hero-eyebrow span:not(.dynamic-hero-line) {
    letter-spacing: 3px;
    font-size: 9px;
    text-align: center;
  }

  .dynamic-hero-section[data-hero="portfolio"] .dynamic-hero-eyebrow span:not(.dynamic-hero-line) {
    font-size: 8px;
    letter-spacing: 2px;
    max-width: 20em;
    line-height: 1.5;
  }

  .lang-ar .dynamic-hero-eyebrow span:not(.dynamic-hero-line) {
    letter-spacing: 1px;
    font-size: 10px;
  }

  .dynamic-hero-line {
    width: 28px;
    flex-shrink: 0;
  }

  .dynamic-hero-breadcrumb {
    padding: 9px 16px;
    font-size: 8px;
    letter-spacing: 1.5px;
    gap: 8px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
  }

  .lang-ar .dynamic-hero-breadcrumb {
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .dynamic-hero-section:not([data-hero="materials"]):not([data-hero="contact"]):not([data-hero="about"]) {
    min-height: 320px !important;
    padding: calc(var(--nav-height) + 16px) 0 40px !important;
  }

  .dynamic-hero-section[data-hero="portfolio"] .dynamic-hero-content,
  .about-hero-copy {
    padding: 18px 14px !important;
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .dynamic-hero-section[data-hero="portfolio"] .dynamic-hero-title {
    font-size: clamp(1.4rem, 6.8vw, 1.85rem) !important;
  }

  .dynamic-hero-title {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem) !important;
  }

  .dynamic-hero-breadcrumb {
    padding: 8px 14px;
    font-size: 7px;
  }
}

/* Make sure content stays above everything */
.dynamic-hero-content { pointer-events: none; }
.dynamic-hero-content * { pointer-events: auto; }

/* ── Page Banner (inner pages) ── */
.page-banner {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: var(--dark);
  text-align: center;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.page-banner-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.page-banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-banner-breadcrumb .sep { color: var(--gold); }
.page-banner-breadcrumb .current { color: var(--gold); }

/* ── Sections ── */
section { position: relative; }

.section-light { background: var(--dark-2); }
.section-dark { background: var(--dark); }
.section-black { background: var(--black-rich); }
.section-gradient {
  background: linear-gradient(180deg, var(--dark) 0%, var(--black-rich) 100%);
}

/* ── Welcome Section ── */
.welcome-section {
  padding: 120px 0;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.welcome-visual {
  position: relative;
}

.welcome-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.welcome-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.welcome-img-placeholder i {
  font-size: 80px;
  color: var(--gold);
  opacity: 0.3;
}

.welcome-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.lang-ar .welcome-badge {
  right: auto;
  left: -30px;
}

.welcome-badge .badge-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--black);
  font-family: var(--font-heading);
  line-height: 1;
}

.welcome-badge .badge-text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
  padding: 0 12px;
}

.lang-ar .welcome-badge .badge-text { letter-spacing: 0; }

/* ── Features / Pillars ── */
.features-section {
  padding: 40px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  border: 1px solid var(--border-gold);
}

.feature-item {
  padding: 50px 40px;
  border-right: 1px solid var(--border-gold);
  transition: var(--transition);
  background: var(--dark-card);
  position: relative;
  overflow: hidden;
}

.feature-item:last-child { border-right: none; }

.lang-ar .feature-item:last-child { border-right: 1px solid var(--border-gold); border-left: none; }
.lang-ar .feature-item:first-child { border-right: none; }

.feature-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-item:hover::before { transform: scaleX(1); }

.feature-item:hover {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  box-shadow: 0 0 40px rgba(201,168,76,0.08);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: var(--transition);
  font-size: 24px;
  color: var(--gold);
}

.feature-item:hover .feature-icon {
  background: var(--gold-dim);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Materials Cards ── */
.materials-section {
  padding: 100px 0;
}

.materials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.material-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  group: '';
}

.material-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.material-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 50%, var(--dark-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-card:hover .material-card-img { transform: scale(1.08); }

.material-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}

.material-card-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.material-card-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.material-card-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  font-weight: 300;
}

.material-card:hover .material-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.material-card-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  font-size: 13px;
}

.material-card:hover .material-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* Procurement vault — mobile: no hover-only text (always show essentials) */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .preview-section .material-card-desc {
    display: none;
  }
  .preview-section .material-card-arrow {
    opacity: 1;
    transform: none;
    width: 30px;
    height: 30px;
    margin-top: 10px;
  }
  .preview-section .material-card-overlay {
    padding: 18px;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.9) 100%);
  }
  .preview-section .material-card-name {
    font-size: 1.05rem;
    margin-bottom: 0;
  }
  .preview-section .material-card:hover .material-card-img {
    transform: none;
  }
}

/* ── Portfolio Cards ── */
.portfolio-section {
  padding: 100px 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item.large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.portfolio-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--gold);
  opacity: 0.3;
}

.portfolio-item:hover .portfolio-item-img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── Marquee Banner ── */
.marquee-section {
  padding: 40px 0;
  background: var(--gold);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--black);
  flex-shrink: 0;
}

.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  opacity: 0.5;
}

/* ── CTA Section ── */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border-gold);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-main {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand .logo-main img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-brand .logo-est {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 28px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

.lang-ar .footer-col-title {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
}

.footer-links a:hover { color: var(--gold); }
.footer-links a::before { content: '—'; color: var(--gold); opacity: 0.5; font-size: 10px; }

.lang-ar .footer-links a::before { content: '—'; }

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--gold);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copyright span { color: var(--gold); }

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-legal a:hover { color: var(--gold); }

/* ── About Page ── */
.about-story {
  padding: 120px 0;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-quote {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  padding: 30px 40px;
  border-left: 3px solid var(--gold);
}

.lang-ar .about-quote {
  border-left: none;
  border-right: 3px solid var(--gold);
  padding-left: 30px;
  padding-right: 40px;
}

.timeline {
  padding: 100px 0;
}

.timeline-items {
  position: relative;
  padding-left: 40px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.lang-ar .timeline-items {
  padding-left: 0;
  padding-right: 40px;
}

.lang-ar .timeline-items::before {
  left: auto;
  right: 0;
}

.timeline-item {
  position: relative;
  padding-bottom: 50px;
  padding-left: 40px;
}

.lang-ar .timeline-item {
  padding-left: 0;
  padding-right: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,0.6);
}

.lang-ar .timeline-item::before {
  left: auto;
  right: -5px;
}

.timeline-year {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  max-width: 500px;
}

.values-section {
  padding: 100px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.value-card {
  padding: 44px;
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.value-card:hover::before { transform: scaleX(1); }

.value-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.07);
}

.value-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.15;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 20px;
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Portfolio Page ── */
.filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── Materials Full Page ── */
.material-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.material-full-card {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.material-full-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-6px);
}

.material-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.material-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.material-full-card:hover .material-img-wrap img { transform: scale(1.06); }

.material-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--gold);
  font-size: 36px;
  opacity: 0.4;
}

.material-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--gold-gradient);
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
}

.lang-ar .material-badge {
  left: auto;
  right: 16px;
  letter-spacing: 0;
}

.material-card-body {
  padding: 30px;
}

/* "View Full Page" CTA injected on every material card */
.material-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.32s cubic-bezier(.4,.0,.2,1);
  position: relative;
  z-index: 2;
}
.material-card-cta i {
  font-size: 10px;
  transition: transform 0.32s cubic-bezier(.4,.0,.2,1);
}
.material-card-cta:hover {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.28);
}
.material-card-cta:hover i {
  transform: translateX(4px);
}
.material-full-card[dir="rtl"] .material-card-cta i,
[dir="rtl"] .material-card-cta i {
  transform: scaleX(-1);
}
[dir="rtl"] .material-card-cta:hover i {
  transform: scaleX(-1) translateX(4px);
}

.material-cat-tag {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.material-cat-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.lang-ar .material-cat-tag { flex-direction: row-reverse; }

.material-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.material-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 24px;
}

.material-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  padding: 4px 12px;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Contact Page ── */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Contact Form */
.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 50px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.lang-ar .form-label { letter-spacing: 0; }

.form-control {
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  outline: none;
}

.lang-ar .form-control { font-family: var(--font-ar); }

.form-control:focus {
  border-color: var(--gold);
  background: var(--dark-3);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23C9A84C' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 11px;
  letter-spacing: 3px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

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

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}

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

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Gold Divider ── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.4;
}

.gold-divider-icon {
  color: var(--gold);
  font-size: 14px;
}

/* ── Gold quote marks ── */
.big-quote {
  font-size: 120px;
  line-height: 0;
  vertical-align: -50px;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, serif;
}

/* ── Number Counter ── */
.stat-counter {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
}

/* ── Process Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
}

.step-item {
  padding: 40px 30px;
  position: relative;
  text-align: center;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 50px;
  right: 0;
  width: 1px;
  height: 40px;
  background: var(--border-gold);
  transform: translateY(-50%);
}

.step-item:last-child::after { display: none; }
.lang-ar .step-item::after { right: auto; left: 0; }
.lang-ar .step-item:last-child::after { display: none; }
.lang-ar .step-item:first-child::after { display: none; }

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  margin-bottom: 14px;
  display: block;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

/* ── Toast / Notification ── */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 28px;
  background: var(--dark-3);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--transition);
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: #4CAF50; }
.toast.error { border-color: #F44336; }

.lang-ar .toast {
  right: auto;
  left: 30px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-height: 78px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-actions { margin-left: auto; }
  .hamburger { margin-left: 10px; }
  .nav-logo .logo-main img { height: 56px; mix-blend-mode: screen; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 4rem); }
  .hero-stats .container { flex-wrap: wrap; }
  .hero-stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border-gold); }
  .hero-stat:last-child, .hero-stat:nth-last-child(-n+2):first-child ~ * { border-bottom: none; }

  .welcome-inner { grid-template-columns: 1fr; gap: 50px; }
  .welcome-badge { right: 20px; bottom: -20px; }
  .lang-ar .welcome-badge { left: 20px; right: auto; }

  .about-story-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form-row { grid-template-columns: 1fr; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.large { grid-column: span 1; }

  .material-full-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; border: none; gap: 16px; }
  .feature-item { border-right: none; border: 1px solid var(--border-gold); }
  .materials-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .material-full-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .welcome-badge { width: 110px; height: 110px; }
  .welcome-badge .badge-num { font-size: 2rem; }
  .materials-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-banner { padding: 140px 0 70px; }
  .page-banner-title { font-size: 2.2rem; }
}

/* ── Special effects ── */
.gold-shimmer {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 25%, var(--gold-bright) 50%, var(--gold-light) 75%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.loader-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  animation: logoLuxuriousPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

@keyframes logoLuxuriousPulse {
  0% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6)); }
  100% { transform: scale(0.95); opacity: 0.7; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2)); }
}

.loader-bar {
  width: 160px;
  height: 1px;
  background: var(--dark-3);
  border-radius: 1px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
  animation: loadProgress 1.5s ease forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM PAGE LOADERS — Desktop & Mobile Variants
   Black / Gold / White luxury aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* Base loader already defined above; we enhance here */

/* Hide old simple bar when using new variants (kept for graceful fallback) */
.page-loader .loader-bar,
.page-loader .loader-progress { display: none; }

/* Container for variants */
.page-loader .loader-desktop,
.page-loader .loader-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Activate the chosen variant */
.page-loader.desktop .loader-desktop { display: flex; }
.page-loader.mobile .loader-mobile { display: flex; }

/* ── DESKTOP LOADER ─────────────────────────────────────────── */
.page-loader.desktop {
  gap: 0;
}

.loader-desktop {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Elegant thin gold frame */
.loader-desktop .loader-frame {
  position: absolute;
  inset: 12vh 10vw;
  border: 1px solid rgba(201,168,76,0.18);
  pointer-events: none;
  z-index: 1;
}
.loader-desktop .loader-frame::before,
.loader-desktop .loader-frame::after {
  content: '';
  position: absolute;
  background: var(--gold);
  opacity: 0.35;
}
.loader-desktop .loader-frame::before { top: -1px; left: 0; right: 0; height: 1px; }
.loader-desktop .loader-frame::after  { left: -1px; top: 0; bottom: 0; width: 1px; }

/* Corner gold accents (subtle L brackets) */
.loader-desktop .loader-frame::before { box-shadow: 0 0 0 1px rgba(201,168,76,0.12); }

.loader-desktop-corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid rgba(201,168,76,0.55);
  z-index: 2;
  pointer-events: none;
}
.loader-desktop-corner-tl { top: 12vh; left: 10vw; border-right: none; border-bottom: none; }
.loader-desktop-corner-tr { top: 12vh; right: 10vw; border-left: none; border-bottom: none; }
.loader-desktop-corner-bl { bottom: 12vh; left: 10vw; border-right: none; border-top: none; }
.loader-desktop-corner-br { bottom: 12vh; right: 10vw; border-left: none; border-top: none; }

/* Subtle floating marble slab accents (decorative) */
.loader-accent-slab {
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0.065;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.7) contrast(1.05);
  transition: transform 0.6s ease;
}
.loader-slab-1 {
  width: 240px; height: 160px;
  top: 22%; left: 18%;
  background-image: url('../assets/images/sinai-pearl-texture.png');
  transform: rotate(-14deg);
}
.loader-slab-2 {
  width: 180px; height: 220px;
  bottom: 24%; right: 16%;
  background-image: url('../assets/images/double-black-texture.png');
  transform: rotate(11deg);
  opacity: 0.05;
}

/* Large prominent logo */
.loader-desktop .loader-logo {
  position: relative;
  z-index: 3;
  margin-bottom: 28px;
}
.loader-desktop .loader-logo img {
  height: 240px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 36px rgba(201,168,76,0.55));
  will-change: transform, filter;
  animation: loaderLogoFancy 4.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes loaderLogoFancy {
  0%   { transform: scale(0.985) rotate(-0.8deg); filter: drop-shadow(0 0 18px rgba(201,168,76,0.32)); }
  50%  { transform: scale(1.032) rotate(0.8deg);  filter: drop-shadow(0 0 42px rgba(201,168,76,0.72)); }
  100% { transform: scale(0.985) rotate(-0.8deg); filter: drop-shadow(0 0 18px rgba(201,168,76,0.32)); }
}

/* Refined gold circular progress */
.loader-progress-circle {
  position: relative;
  z-index: 3;
  width: 64px;
  height: 64px;
  margin: 12px 0 18px;
}
.loader-progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loader-progress-circle .progress-bg {
  fill: none;
  stroke: rgba(201,168,76,0.12);
  stroke-width: 2;
}
.loader-progress-circle .progress-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 176; /* ~2 * PI * r (r=28) */
  stroke-dashoffset: 176;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.6));
  transition: stroke-dashoffset 0.08s linear;
  /* Start empty */
}

/* Subtle tagline */
.loader-tagline {
  font-size: 10px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  font-weight: 600;
  z-index: 3;
  margin-top: 4px;
}

/* Continuous premium motion hooks (controlled via JS/GSAP) */
.loader-desktop .loader-logo img.loader-breathing { animation: none; } /* GSAP takes over */

/* ── MOBILE LOADER ───────────────────────────────────────────── */
.page-loader.mobile {
  gap: 0;
}

.loader-mobile {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Smaller centered logo */
.loader-mobile .loader-logo {
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.loader-mobile .loader-logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(201,168,76,0.4));
  will-change: transform;
  mix-blend-mode: screen;
}

/* Very thin elegant gold progress line */
.loader-mobile .loader-progress-line {
  width: 120px;
  height: 1px;
  background: rgba(201,168,76,0.14);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.loader-mobile .loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
  transition: width 0.06s linear;
}

/* Optional minimal gold ring as alternative (lighter visual weight) */
.loader-mobile .loader-progress-ring {
  display: none; /* we use line for minimalism; ring can be toggled if desired */
}

/* Faster, lighter motion on mobile */
.loader-mobile .loader-logo img { animation: none; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .loader-desktop .loader-frame { inset: 10vh 8vw; }
  .loader-desktop-corner-tl { top: 10vh; left: 8vw; }
  .loader-desktop-corner-tr { top: 10vh; right: 8vw; }
  .loader-desktop-corner-bl { bottom: 10vh; left: 8vw; }
  .loader-desktop-corner-br { bottom: 10vh; right: 8vw; }
  .loader-slab-1, .loader-slab-2 { display: none; } /* hide decorative slabs on smaller desktop/tablet */
}

@media (max-width: 480px) {
  .loader-desktop .loader-logo img { height: 72px; }
  .loader-progress-circle { width: 52px; height: 52px; }
}

/* Ensure header/nav is never affected */
.page-loader ~ nav,
.page-loader + nav { position: relative; z-index: 100; }

/* ── Bilingual layout helper ── */
.bilingual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bilingual .en { font-family: var(--font-heading); }
.bilingual .ar { font-family: var(--font-ar); font-size: 0.9em; color: var(--text-secondary); }

/* ── Partners / certifications ── */
.partners-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.partners-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-item {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
}

.partner-item:hover { color: var(--gold); }

/* Counters section */
.counters-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.counter-item {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--border-gold);
}

.counter-item:last-child { border-right: none; }
.lang-ar .counter-item:last-child { border-right: 1px solid var(--border-gold); border-left: none; }
.lang-ar .counter-item:first-child { border-right: none; }

.counter-num {
  font-size: 3rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-ar .counter-label { letter-spacing: 0; }

@media (max-width: 640px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item { border-right: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); }
  .counter-item:nth-child(2), .counter-item:nth-child(4) { border-right: none; }
  .counter-item:nth-child(3), .counter-item:nth-child(4) { border-bottom: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO DECO RING — slow spin
   ══════════════════════════════════════════════════════════ */
@keyframes heroRingSpin {
  to { transform: rotate(360deg); }
}

.hero-deco-ring::before {
  animation: heroRingSpin 14s linear infinite;
  transform-origin: center;
}

/* ── Gold shimmer sweep on deco card ── */
@keyframes heroCardSheen {
  0%   { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(300%) rotate(30deg); }
}

.hero-deco-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 40%; height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,168,76,0.08),
    transparent
  );
  transform: translateX(-100%) rotate(30deg);
  animation: heroCardSheen 6s ease-in-out 3.5s infinite;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Additional global fixes
   ══════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll on all viewports */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

section,
footer,
header,
.hero,
.dynamic-hero-section,
.marquee-section,
.cta-section,
.stone-gallery-section,
.intro-section,
.counters-section,
.page-loader {
  max-width: 100%;
  overflow-x: clip;
}

.intro-img-wrap,
.story-media-wrap {
  overflow: hidden;
}

/* Grids/flex rows: allow children to shrink instead of forcing page width */
[class*="-grid"],
.grid {
  min-width: 0;
  max-width: 100%;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  /* Nav */
  .nav-logo img { height: 40px; }
  .nav-links { display: none; }

  /* Section padding */
  section { padding: 60px 16px; }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* Contact form */
  .contact-form-grid { grid-template-columns: 1fr !important; }

  /* Portfolio grid */
  .portfolio-bento { grid-template-columns: 1fr !important; }

  /* Stone 3D gallery */
  .stone-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Intro section flex */
  .intro-content { flex-direction: column !important; }
  .intro-text, .intro-features { width: 100% !important; }

  /* Dashboard sidebar responsive fix */
  .main-content { margin-left: 0 !important; }

  /* Button tap size */
  .btn, .hbtn, .login-btn {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  /* Typography scale-down */
  .hero-title { font-size: clamp(1.6rem, 7vw, 3rem) !important; }
  .section-title { font-size: clamp(1.3rem, 5.5vw, 2rem) !important; }

  /* Stone gallery — compact 2-column grid on mobile */
  .stone-gallery-section {
    padding: 56px 0 72px !important;
  }
  .stone-gallery-head {
    margin-bottom: 28px !important;
  }
  .stone-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 10px !important;
    display: grid !important;
    overflow-x: clip !important;
    scroll-snap-type: none !important;
  }
  .stone-3d-card {
    gap: 8px !important;
    min-width: 0 !important;
  }
  .stone-3d-card .s3c-scene {
    aspect-ratio: 4 / 5 !important;
    transform: perspective(480px) rotateY(-5deg) rotateX(2deg) !important;
    box-shadow:
      inset -5px 0 10px rgba(0,0,0,0.32),
      4px 10px 22px rgba(0,0,0,0.6) !important;
  }
  .stone-3d-card:hover .s3c-scene {
    transform: perspective(480px) rotateY(-3deg) rotateX(1deg) translateY(-4px) !important;
  }
  .s3c-type {
    font-size: 6px !important;
    letter-spacing: 1px !important;
  }
  .s3c-name {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
  }
  .s3c-cta {
    width: 20px !important;
    height: 20px !important;
    font-size: 7px !important;
  }
  .s3c-info {
    gap: 4px !important;
    padding: 0 2px !important;
  }
  /* Hide decorative heavy elements */
  .hero-deco-ring { display: none; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
