/* ==========================================================================
   Diamond Screen (شركة الشاشة الماسية) - Master Design System
   Official Logo Color Identity: Luxury Amber-Copper-Orange & Deep Carbon
   70% Premium Technology • 20% Corporate • 10% Industrial
   ========================================================================== */

/* 1. Google Fonts Import (IBM Plex Sans Arabic for Arabic + Inter for English) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* 2. Color System & Design Tokens (Derived 100% from the Official Logo) */
:root {
  /* Carbon & Metallic Dark Shades (Logo Backgrounds) */
  --color-bg-primary: #08090d;
  --color-bg-secondary: #12141c;
  --color-bg-tertiary: #1a1e2a;

  /* Clean Light Shades */
  --color-bg-light: #F8F9FA;
  --color-bg-light-surface: #FFFFFF;
  --color-bg-light-card: #FFFFFF;
  --color-bg-light-alt: #F1F3F6;

  /* Text Colors */
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-on-dark: #FFFFFF;
  --color-text-muted: #A3ACB9;
  --color-text-dim: #64748B;

  /* Official Brand Colors (Amber Copper-Orange from Diamond Screen Logo) */
  --color-brand: #ff8c2b;
  --color-brand-light: #ffa959;
  --color-brand-dark: #ea580c;
  --color-brand-gold: #f59e0b;
  --color-brand-glow: rgba(255, 140, 43, 0.35);
  --color-brand-subtle: rgba(255, 140, 43, 0.1);

  /* Status Colors */
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-error: #DC2626;

  /* Borders */
  --color-border: #E5E7EB;
  --color-border-hover: #CBD5E1;
  --color-border-dark: #242836;
  --color-border-dark-hover: rgba(255, 140, 43, 0.45);

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-dark: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 8px 25px rgba(255, 140, 43, 0.3);

  /* Typography */
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-english: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-current: var(--font-arabic);

  /* 8px Spacing System */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;


  /* Border Radius System */
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-img: 16px;
  --radius-input: 10px;
  --radius-large: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1280px;
  --container-hero: 1440px;
  --header-height: 84px;
}

/* LTR Tokens */
html[dir="ltr"] {
  --font-current: var(--font-english);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-on-dark);
  font-family: var(--font-current);
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #242836;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

/* 4. Container & Typography Scale */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

.container-hero {
  max-width: var(--container-hero);
}

/* Section Types: Dark / Light Rhythm Strategy */
.section-dark {
  background-color: var(--color-bg-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-96) 0;
  position: relative;
}

.section-dark-secondary {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-on-dark);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  padding: var(--space-96) 0;
}

.section-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  padding: var(--space-96) 0;
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-light-alt {
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  padding: var(--space-96) 0;
}

/* Typography Hierarchy */
.display-xl {
  font-size: 3.8rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.display-l {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.heading-1 {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 700;
}

.heading-2 {
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 700;
}

.heading-3 {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 600;
}

.heading-4 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.75;
}

.body-regular {
  font-size: 1rem;
  line-height: 1.7;
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Gradients matching Logo */
.text-gradient-brand {
  background: linear-gradient(135deg, #ff8c2b 0%, #ffa959 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #ff8c2b 55%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-64) auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 6px 16px;
  background: var(--color-brand-subtle);
  border: 1px solid rgba(255, 140, 43, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-brand);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-16);
}

.section-badge i {
  font-size: 0.85rem;
}

.section-desc-light {
  color: var(--color-text-secondary);
  margin-top: var(--space-16);
}

.section-desc-dark {
  color: var(--color-text-muted);
  margin-top: var(--space-16);
}

/* 5. Buttons System (10px Radius, Discrete States) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 140, 43, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffa04d 0%, var(--color-brand) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: #FFFFFF;
}

.btn-primary:active {
  background: var(--color-brand-dark);
  transform: translateY(0);
}

.btn-secondary-dark {
  background: var(--color-bg-secondary);
  color: #FFFFFF;
  border: 1px solid var(--color-border-dark);
}

.btn-secondary-dark:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
}

.btn-secondary-light {
  background: #FFFFFF;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary-light:hover {
  background: var(--color-bg-light);
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
}

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

.btn-outline-brand:hover {
  background: var(--color-brand-subtle);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* 6. Header (Transparent at Top -> Blurs on Scroll) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition-slow), border-color var(--transition-slow), backdrop-filter var(--transition-slow);
}

.header.scrolled {
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-24);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 43, 0.3);
  box-shadow: 0 0 12px rgba(255, 140, 43, 0.2);
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 1.5px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: var(--space-8) 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(255, 140, 43, 0.8);
  transition: var(--transition-normal);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-dark);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* 7. Hero Section (Amber/Copper Glow & Dark Carbon) */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-64)) 0 var(--space-96) 0;
  background: radial-gradient(circle at 75% 25%, rgba(255, 140, 43, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 50%),
              var(--color-bg-primary);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-48);
  align-items: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-16);
  background: var(--color-brand-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 140, 43, 0.3);
}

.hero-title {
  color: #FFFFFF;
  margin-bottom: var(--space-24);
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
  font-size: 1.15rem;
  font-weight: 400;
}

.hero-pillars {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-32);
}

.hero-pillars span {
  color: var(--color-brand);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

/* Hero Visual 16:9 Showcase */
.hero-media-wrapper {
  position: relative;
}

.hero-screen-frame {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(255, 140, 43, 0.35);
  border-radius: var(--radius-large);
  padding: 8px;
  box-shadow: var(--shadow-card-dark), 0 0 35px rgba(255, 140, 43, 0.2);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-large) - 6px);
}

.hero-floating-spec {
  position: absolute;
  bottom: -15px;
  left: 20px;
  background: rgba(18, 20, 28, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 140, 43, 0.35);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: var(--space-16);
  box-shadow: var(--shadow-card-dark);
}

html[dir="ltr"] .hero-floating-spec {
  left: auto;
  right: 20px;
}

.hero-spec-icon {
  width: 40px;
  height: 40px;
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* 8. Trust & Stats Bar */
.trust-bar {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
  padding: var(--space-48) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-32);
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.1;
  margin-bottom: var(--space-8);
}

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

/* 9. Product Categories (Light Section, 16px Cards) */
.product-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-32);
}

.product-cat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
}

.product-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-card);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #08090d;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-cat-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 9, 13, 0.88);
  color: var(--color-brand);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 140, 43, 0.35);
}

html[dir="ltr"] .product-tag {
  right: auto;
  left: 14px;
}

.product-card-content {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  color: var(--color-text-primary);
  margin-bottom: var(--space-8);
}

.product-desc {
  color: var(--color-text-secondary);
  font-size: 0.925rem;
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 12px;
  margin-bottom: var(--space-24);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-key {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.spec-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* 10. Solutions System (Saudi Sensors Philosophy: "أخبرنا بما تريد تحقيقه") */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-24);
}

.solution-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-32);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-card);
}

.solution-icon-box {
  width: 52px;
  height: 52px;
  background: var(--color-brand-subtle);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  font-size: 1.4rem;
  margin-bottom: var(--space-16);
}

.solution-recommendation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: auto;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
}

/* 11. Featured Projects (Dark Section, Butterfly LED Philosophy) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-32);
}

.project-item-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: var(--shadow-card-dark);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-item-card:hover .project-img {
  transform: scale(1.05);
}

.project-info-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border-dark);
}

.project-meta-row strong {
  color: #FFFFFF;
}

/* 12. Interactive Before / After Feature */
.before-after-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-large);
  padding: var(--space-32);
  margin-top: var(--space-48);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

.comparison-pane {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
}

.comparison-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.comparison-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.label-before {
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
}

.label-after {
  background: var(--color-brand);
  color: #FFFFFF;
}

/* 13. Industries Section (Light Section) */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-16);
}

.industry-chip-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.industry-chip-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.industry-icon {
  font-size: 1.8rem;
  color: var(--color-brand);
  margin-bottom: var(--space-16);
}

.industry-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* 14. 5-Step Process Section */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-24);
  position: relative;
}

.process-step-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.process-step-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.process-step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: var(--space-8);
}

.process-step-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* 15. Smart Quote Wizard System (Section 25 in Design Doc) */
.quote-wizard-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-large);
  padding: var(--space-48);
  box-shadow: var(--shadow-card-dark);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-40);
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: var(--space-24);
}

.wizard-step-badge {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
}

.wizard-step-badge:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.wizard-step-badge.active {
  color: var(--color-brand);
  background: var(--color-brand-subtle);
}

.wizard-step-badge.completed {
  color: var(--color-success);
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.wizard-option-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-btn);
  padding: var(--space-24) var(--space-16);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.wizard-option-card div:last-child {
  font-size: 0.95rem;
  line-height: 1.45;
}

.wizard-option-card:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.wizard-option-card.selected {
  border-color: var(--color-brand);
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  box-shadow: 0 0 15px rgba(255, 140, 43, 0.2);
  transform: translateY(-2px);
}

.wizard-option-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-8);
}

.wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.wizard-input {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-input);
  padding: 14px 18px;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.wizard-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 12px rgba(255, 140, 43, 0.25);
}

input[type="tel"].wizard-input {
  direction: ltr;
  text-align: right;
  font-family: var(--font-english);
}

html[dir="rtl"] input[type="tel"].wizard-input:focus,
html[dir="rtl"] input[type="tel"].wizard-input:not(:placeholder-shown) {
  text-align: left;
  direction: ltr;
}

.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border-dark);
}

/* 16. Footer Design (Section 40 in Doc) */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-dark);
  padding: var(--space-80) 0 var(--space-32) 0;
  font-size: 0.925rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
  gap: var(--space-48);
  margin-bottom: var(--space-48);
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-24);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.footer-links a:hover {
  color: var(--color-brand);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--color-brand);
  flex-shrink: 0;
}

.footer-contact-link {
  color: #A3ACB9;
  text-decoration: none;
  transition: color 0.2s;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-english);
  font-weight: 500;
  white-space: nowrap;
}

.footer-contact-link:hover {
  color: #25D366;
}

.footer-email-link {
  color: #A3ACB9;
  text-decoration: none;
  transition: color 0.2s;
  font-family: var(--font-english);
}

.footer-email-link:hover {
  color: var(--color-brand);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.85rem;
}

/* Modal Backdrop & Box */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-large);
  padding: var(--space-40);
  max-width: 600px;
  width: calc(100% - 48px);
  position: relative;
  box-shadow: var(--shadow-card-dark);
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-dark);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

html[dir="ltr"] .modal-close-btn {
  left: auto;
  right: 16px;
}

.modal-close-btn:hover {
  color: white;
  background: var(--color-brand);
  border-color: var(--color-brand);
}

/* Toast Notification */
.toast-box {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-success);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 48px);
  text-align: center;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 17. Floating WhatsApp & Back to Top (Section 27 in Doc) */

.floating-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[dir="ltr"] .floating-widget-container {
  right: auto;
  left: 24px;
}

.float-whatsapp-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.float-whatsapp-btn:hover {
  transform: scale(1.08);
}

.float-top-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.float-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.float-top-btn:hover {
  background: var(--color-brand);
  color: #FFFFFF;
}

/* ==========================================
   18. RESPONSIVE BREAKPOINTS — MOBILE FIRST
   Full audit & fix for all screen sizes
   ========================================== */

/* ---- Tablet Large: 1024px ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-40);
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-floating-spec {
    display: none; /* تُخفى على التابلت لتجنب التداخل */
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-40);
  }
}

/* ---- Tablet Small: 768px ---- */
@media (max-width: 768px) {
  /* Variables */
  :root {
    --header-height: 70px;
    --space-96: 60px;
    --space-80: 48px;
    --space-64: 40px;
  }

  /* Mobile Menu */
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 9, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-24) var(--space-32);
    gap: var(--space-8);
    border-bottom: 1px solid var(--color-border-dark);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border-dark);
    width: 100%;
  }

  /* Header - Hide CTA button on small screens */
  .header-actions .btn-primary {
    display: none;
  }

  /* Typography Scale */
  .display-xl {
    font-size: 2rem;
    line-height: 1.2;
  }

  .display-l {
    font-size: 1.8rem;
  }

  .heading-1 {
    font-size: 1.6rem;
  }

  .heading-2 {
    font-size: 1.4rem;
  }

  .heading-3 {
    font-size: 1.2rem;
  }

  /* Section spacing */
  .section-dark,
  .section-dark-secondary,
  .section-light,
  .section-light-alt {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: var(--space-40);
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + 40px) 0 60px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
    text-align: center;
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-12);
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-floating-spec {
    display: none;
  }

  /* Stats Bar */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Products */
  .product-cat-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  /* Solutions */
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  /* Before/After */
  .before-after-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  /* Process Timeline */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  /* Industries */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }

  /* Quote Wizard */
  .quote-wizard-card {
    padding: var(--space-24);
  }

  .wizard-steps-indicator {
    gap: var(--space-8);
    flex-wrap: wrap;
    justify-content: center;
  }

  .wizard-step-badge span {
    display: none; /* نخفي النص ونبقي الرقم فقط */
  }

  .wizard-form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .wizard-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }

  .wizard-controls {
    flex-direction: row;
    gap: var(--space-12);
  }

  /* Contact WhatsApp Cards */
  .contact-direct-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-12);
  }

  .footer-bottom div:last-child {
    flex-direction: column;
    gap: var(--space-8);
  }

  /* Modal */
  .modal-box {
    margin: var(--space-16);
    padding: var(--space-24);
    max-height: 90vh;
    overflow-y: auto;
  }

  .wizard-form-grid.modal-grid {
    grid-template-columns: 1fr;
  }

  /* Floating Widgets */
  .floating-widget-container {
    bottom: 16px;
    left: 16px;
  }

  html[dir="ltr"] .floating-widget-container {
    left: auto;
    right: 16px;
  }
}

/* ---- Mobile Small: 480px ---- */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }

  .display-xl {
    font-size: 1.7rem;
  }

  .heading-1 {
    font-size: 1.45rem;
  }

  /* Stats — all 4 in 2x2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Industries — 2 columns */
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Wizard options — 1 column on very small */
  .wizard-options-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Product card specs — 1 col */
  .specs-grid {
    grid-template-columns: 1fr;
  }

  /* Header logo text — smaller */
  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .brand-logo-img {
    height: 38px;
  }

  /* Floating WhatsApp panel numbers — shorter */
  .float-wa-number-btn span {
    font-size: 0.82rem;
  }

  /* Section badge smaller */
  .section-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  /* Quote wizard padding */
  .quote-wizard-card {
    padding: var(--space-16);
  }

  /* Process steps */
  .process-step-card {
    padding: var(--space-16);
  }

  /* Solution cards */
  .solution-card {
    padding: var(--space-24);
  }
}

/* ---- Extra Small: 360px (Samsung Galaxy S etc.) ---- */
@media (max-width: 375px) {
  .display-xl {
    font-size: 1.5rem;
  }

  .heading-1 {
    font-size: 1.3rem;
  }

  .btn-lg {
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .hero-cta-group .btn {
    padding: 12px 20px;
  }

  .contact-wa-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .contact-wa-num {
    font-size: 0.95rem;
  }
}


/* ======================== CONTACT DIRECT WHATSAPP CARDS ======================== */
.contact-direct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-wa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  text-decoration: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-wa-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(37, 211, 102, 0.08);
  opacity: 0;
  transition: opacity 0.25s;
}

.contact-wa-card:hover {
  border-color: rgba(37, 211, 102, 0.6);
  background: rgba(37, 211, 102, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.2);
}

.contact-wa-card:hover::before {
  opacity: 1;
}

.contact-wa-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.contact-wa-info {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.contact-wa-label {
  font-size: 0.8rem;
  color: rgba(37, 211, 102, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-wa-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-english);
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}

html[dir="rtl"] .contact-wa-num {
  text-align: right;
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir="ltr"] .contact-wa-num {
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
}

.contact-wa-arrow {
  color: rgba(37, 211, 102, 0.5);
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-wa-card:hover .contact-wa-arrow {
  transform: translateX(-4px);
  color: #25D366;
}

html[dir="ltr"] .contact-wa-arrow {
  transform: rotate(180deg);
}

html[dir="ltr"] .contact-wa-card:hover .contact-wa-arrow {
  transform: rotate(180deg) translateX(-4px);
}

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

.floating-widget-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
}

html[dir="ltr"] .floating-widget-container {
  left: auto;
  right: 28px;
  align-items: flex-end;
}

.float-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  font-size: 1.55rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.float-whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.float-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* Dual WhatsApp Numbers Panel */
.whatsapp-dual-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-dual-group.open {
  max-height: 200px;
  opacity: 1;
  pointer-events: all;
}

.float-wa-number-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 140, 126, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-english);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  direction: ltr !important;
  unicode-bidi: isolate;
}

.float-wa-number-btn span {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
}

.float-wa-number-btn:hover {
  background: #25D366;
  transform: translateX(-4px);
}

html[dir="ltr"] .float-wa-number-btn:hover {
  transform: translateX(4px);
}

.float-wa-number-btn i {
  font-size: 1.1rem;
}

.float-top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-dark-hover);
  color: var(--color-brand);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  position: relative;
}

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

.float-top-btn:hover {
  background: var(--color-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

