/* ============================================
   عقاراتنا العالمية - Design System
   ============================================ */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--color-bg-alt);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-alt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Colors - using oklch for harmonious math */
  --color-bg: oklch(99% 0 0);
  --color-bg-alt: oklch(97% 0.005 240);
  --color-surface: oklch(100% 0 0);
  
  --color-text: oklch(20% 0.03 240);
  --color-text-secondary: oklch(45% 0.02 240);
  --color-text-muted: oklch(60% 0.015 240);
  
  --color-primary: oklch(35% 0.15 250);
  --color-primary-hover: oklch(30% 0.16 250);
  --color-primary-light: oklch(95% 0.03 245);
  
  --color-accent: oklch(55% 0.18 245);
  --color-accent-hover: oklch(50% 0.19 245);
  
  --color-border: oklch(92% 0.005 240);
  --color-border-strong: oklch(85% 0.01 240);
  
  --color-verified: oklch(60% 0.15 175);
  --color-success: oklch(60% 0.15 145);
  --color-warning: oklch(75% 0.15 75);
  
  /* Typography */
  --font-display-ar: 'Tajawal', system-ui, sans-serif;
  --font-display-en: 'Fraunces', 'Playfair Display', serif;
  --font-body-ar: 'Tajawal', system-ui, sans-serif;
  --font-body-en: 'Inter', system-ui, sans-serif;
  
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
  
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(20% 0.03 240 / 0.05);
  --shadow-md: 0 4px 12px oklch(20% 0.03 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(20% 0.03 240 / 0.12);
  --shadow-xl: 0 20px 50px oklch(20% 0.03 240 / 0.18);
  
  /* Container - Mobile First */
  --container-max: 480px;
  --container-padding: 1.25rem;
  
  /* Z-index scale */
  --z-nav: 100;
  --z-drawer: 200;
  --z-overlay: 300;
  --z-modal: 400;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* English language adjustments */
body.lang-en {
  --font-display: var(--font-display-en);
  --font-body: var(--font-body-en);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.h1, h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2, h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.h3, h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-9);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-3);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover, .btn-secondary:active {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: oklch(100% 0 0 / 0.2);
}

.btn-on-dark {
  background: white;
  color: var(--color-primary);
}

.btn-on-dark-outline {
  background: oklch(100% 0 0 / 0.1);
  color: white;
  border: 1px solid oklch(100% 0 0 / 0.3);
  backdrop-filter: blur(10px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.0625rem 2rem;
  font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-4);
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: oklch(100% 0 0 / 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
  transition: color var(--transition);
}

.nav.scrolled .nav-logo {
  color: var(--color-primary);
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.nav-logo-sub {
  font-size: 0.6875rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-lang {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  color: white;
  background: oklch(100% 0 0 / 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 0.25);
  transition: all var(--transition);
  min-width: 56px;
  text-align: center;
}

.nav.scrolled .nav-lang {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: transparent;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: var(--radius-pill);
  background: oklch(100% 0 0 / 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 0.25);
  transition: all var(--transition);
}

.nav.scrolled .nav-toggle {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: transparent;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-icon span:nth-child(3) { bottom: 0; }

/* ============================================
   SIDE DRAWER
   ============================================ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: oklch(20% 0.03 240 / 0.5);
  backdrop-filter: blur(8px);
  z-index: var(--z-drawer);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(85vw, 360px);
  background: white;
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

body.lang-en .drawer {
  transform: translateX(100%);
}

body.lang-ar .drawer {
  transform: translateX(-100%);
}

.drawer.active {
  transform: translateX(0) !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-primary);
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: all var(--transition);
}

.drawer-close:hover {
  background: var(--color-border);
}

.drawer-nav {
  flex: 1;
  padding: var(--space-5);
  overflow-y: auto;
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0.875rem var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.drawer-nav a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.drawer-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.drawer-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.drawer-footer {
  padding: var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.drawer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.drawer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(15% 0.05 245 / 0.4) 0%,
    oklch(15% 0.05 245 / 0.55) 50%,
    oklch(15% 0.05 245 / 0.75) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-7) var(--container-padding);
  max-width: var(--container-max);
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.4375rem 1rem;
  background: oklch(100% 0 0 / 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-tagline {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 400;
  margin-bottom: var(--space-7);
  opacity: 0;
  color: oklch(100% 0 0 / 0.9);
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-9);
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-6);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: oklch(100% 0 0 / 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: oklch(100% 0 0 / 0.4);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: white;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   ABOUT / FOUNDER SECTION
   ============================================ */

.about-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.about-photo-wrap {
  width: 140px;
  height: 140px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  position: relative;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-alt);
}

.about-photo-decoration {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--color-primary);
  opacity: 0.2;
  animation: rotate 30s linear infinite;
}

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

.about-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.about-role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  letter-spacing: 0.02em;
}

.about-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: var(--space-5);
}

.about-signature {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--color-primary);
  font-weight: 600;
  font-style: italic;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.stat-card {
  background: white;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}

.stat-value::after {
  content: '+';
  font-size: 1.5rem;
  margin-inline-start: 2px;
  opacity: 0.7;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   WHY US SECTION
   ============================================ */

.why-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-card {
  background: white;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  transition: all var(--transition);
}

.why-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-content h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.why-content p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   FEATURED PROPERTIES
   ============================================ */

.featured-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  margin-inline: calc(var(--container-padding) * -1);
  padding-inline: var(--container-padding);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.property-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.property-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, oklch(95% 0.02 240), oklch(90% 0.03 240));
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.property-badge {
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: 0.3125rem 0.625rem;
  background: var(--color-verified);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.property-type-badge {
  position: absolute;
  top: var(--space-3);
  inset-inline-end: var(--space-3);
  padding: 0.3125rem 0.625rem;
  background: oklch(100% 0 0 / 0.95);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.property-info {
  padding: var(--space-4);
}

.property-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0 0 var(--space-2) 0;
  /* قصّ بـ ... لو طويل (سطرين كحد أقصى) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  font-variant-numeric: tabular-nums;
}

.property-currency {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-inline-start: 4px;
}

.property-location {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.property-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.property-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.featured-empty,
.featured-loading {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  color: var(--color-text-secondary);
  background: white;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border-strong);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card {
  position: relative;
  background: white;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.service-number {
  position: absolute;
  top: var(--space-4);
  inset-inline-end: var(--space-5);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: var(--space-2);
  font-size: 1.125rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-primary);
  color: oklch(100% 0 0 / 0.9);
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: white;
}

.footer-brand-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: oklch(100% 0 0 / 0.75);
  max-width: 320px;
  margin-inline: auto;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-column a {
  font-size: 0.875rem;
  color: oklch(100% 0 0 / 0.7);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: oklch(100% 0 0 / 0.75);
  margin-bottom: var(--space-2);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-5);
  border-top: 1px solid oklch(100% 0 0 / 0.15);
  font-size: 0.8125rem;
  color: oklch(100% 0 0 / 0.6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-4);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.1);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: oklch(100% 0 0 / 0.2);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   UTILITIES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/* RTL/LTR icon flipping */
body.lang-ar .icon-rtl-flip {
  transform: scaleX(-1);
}

/* ============================================
   PAGE LOADER (shown while page loads)
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: oklch(100% 0 0 / 0.98);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.page-loader-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: pulseLogoLoader 1.6s ease-in-out infinite;
}

.page-loader-brand {
  font-family: var(--font-display, var(--font-base));
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b3e56;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
  animation: fadeInBrandLoader 0.6s ease-out;
}

.lang-en .page-loader-brand {
  letter-spacing: 0.08em;
}

.page-loader-text {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  margin-top: var(--space-2);
  opacity: 0.7;
  animation: pulseTextLoader 1.6s ease-in-out infinite;
}

.lang-ar .page-loader-text {
  text-transform: none;
  letter-spacing: 0.05em;
}

@keyframes pulseLogoLoader {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes fadeInBrandLoader {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseTextLoader {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
