/* ==========================================================================
   ETQAN FACTORY FOR INDUSTRY - MASTER DESIGN SYSTEM
   Modern Light Industrial Theme (EN / AR) - Fully Responsive Desktop & Mobile
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors - Clean Modern Light Industrial Palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-dark: #b45309;
  --accent-amber-glow: rgba(217, 119, 6, 0.15);
  
  --accent-blue: #0284c7;
  --accent-steel: #64748b;
  --accent-steel-light: #475569;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-card-hover: #cbd5e1;
  --border-focus: #d97706;

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-amber: 0 8px 24px rgba(217, 119, 6, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 80px;
  --container-max: 1260px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arabic Typography override when dir="rtl" or lang="ar" */
html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ==================== LAYOUT / CONTAINER ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-amber-dark);
  background: var(--accent-amber-glow);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, var(--accent-amber-light) 0%, var(--accent-amber) 100%);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--accent-amber);
  color: var(--accent-amber-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Language Switcher Button */
.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-amber-dark);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-lang-toggle:hover {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

/* ==================== HEADER & NAVBAR ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-sizing: border-box;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.site-header .container {
  height: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 100%;
  gap: 0.5rem;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.brand-logo img {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--accent-amber-dark);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-amber-dark);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-amber);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ==================== MOBILE DRAWER ==================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 285px;
  max-width: 85vw;
  background: #ffffff;
  border-right: 1px solid var(--border-card);
  z-index: 1001;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

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

[dir="rtl"] .mobile-nav-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-card);
  transform: translateX(105%);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

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

.drawer-close {
  color: var(--text-secondary);
  font-size: 1.5rem;
  padding: 0.25rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-links .nav-link {
  font-size: 1.15rem;
  display: block;
}

/* ==================== HERO SECTION (CLEAN CINEMATIC VIDEO BACKGROUND) ==================== */
.hero-video-bg-section {
  position: relative;
  min-height: 85vh;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: #0a0f1d;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22); /* Subtle transparent overlay so video is vivid & bright */
  z-index: 2;
}

.hero-centered-title-wrap {
  position: relative;
  z-index: 3;
  padding: 2rem 1.5rem;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-big-brand-title {
  font-size: 5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-big-brand-subtitle {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
}

html[dir="rtl"] .hero-big-brand-subtitle {
  letter-spacing: 1px;
}

/* Hero Intro Section (Visible immediately on first load) */
.hero-intro-section {
  background: #ffffff;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 5;
}

.hero-intro-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  opacity: 1 !important;
  transform: none !important;
}

.hero-intro-desc {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-intro-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-feature-item svg {
  color: var(--accent-amber-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-amber-glow);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber-dark);
}

/* ==================== STATS COUNTER BAR ==================== */
.stats-section {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 0;
  box-shadow: var(--shadow-xs);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

html[dir="ltr"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-number {
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--accent-amber-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* ==================== ABOUT & PILLARS ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.about-image-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-image-wrap:hover img {
  transform: scale(1.03);
}

.about-floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.about-floating-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-amber);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-floating-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.about-floating-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-content h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-glow);
  color: var(--accent-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
  background: var(--accent-amber);
  color: #ffffff;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== PRODUCTS GRID & CARDS ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.product-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-thumb-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

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

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--accent-amber-dark);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-xs);
  z-index: 2;
}

html[dir="ltr"] .product-badge {
  right: auto;
  left: 1rem;
}

.product-quick-view {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 2;
}

.product-card:hover .product-quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.spec-chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-footer .btn {
  flex: 1;
}

/* Category Filter Tabs */
.products-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
}

/* ==================== TRUSTED PARTNERS (WHITE BG & CLEAR LOGOS) ==================== */
.clients-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 2rem;
}

.client-logo-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 170px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: var(--transition-fast);
}

.client-logo-item:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.client-logo-item img {
  max-height: 55px;
  max-width: 130px;
  object-fit: contain;
  filter: none !important;
}

/* ==================== PROCESS ROADMAP ==================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==================== CLIENTS & PARTNERS SHOWCASE ==================== */
.clients-section {
  padding: 5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.client-logo-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95px;
  height: 95px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.client-logo-item:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(10%) contrast(105%);
  transition: var(--transition-fast);
}

.client-logo-item:hover img {
  filter: grayscale(0%) contrast(110%);
  transform: scale(1.04);
}

@media (max-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* ==================== CERTIFICATES & QUALITY COMPLIANCE ==================== */
.cert-section {
  padding: 4.5rem 0;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 2.25rem auto 0;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-amber-dark));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cert-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-img-wrap {
  width: 110px;
  height: 145px;
  margin-bottom: 1rem;
  padding: 0.4rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cert-card:hover .cert-img-wrap {
  transform: scale(1.04);
  border-color: var(--accent-amber);
}

.cert-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

[dir="rtl"] .cert-zoom-hint {
  right: auto;
  left: 6px;
}

.cert-card:hover .cert-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.cert-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-amber-dark);
  background: var(--accent-amber-glow);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.cert-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.cert-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==================== LIGHTBOX & SLIDESHOW MODAL ==================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 1rem;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Compact Modal for ISO Certificates / Single Items */
.lightbox-modal.modal-cert .lightbox-content {
  max-width: 520px;
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: var(--transition-fast);
}

[dir="rtl"] .lightbox-close {
  right: auto;
  left: 0.85rem;
}

.lightbox-close:hover {
  background: var(--accent-amber);
  color: #ffffff;
  transform: rotate(90deg);
}

.slideshow-stage {
  position: relative;
  width: 100%;
  height: 380px;
  background: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.lightbox-modal.modal-cert .slideshow-stage {
  height: 360px;
  background: #0f172a;
  padding: 1rem;
}

.slideshow-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slideshow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition-fast);
}

.slideshow-nav-btn:hover {
  background: var(--accent-amber);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

/* LTR Navigation Positions */
.slideshow-nav-btn.prev {
  left: 1rem;
  right: auto;
}

.slideshow-nav-btn.next {
  right: 1rem;
  left: auto;
}

/* RTL Navigation Positions (Inverted for Arabic reading flow) */
[dir="rtl"] .slideshow-nav-btn.prev {
  right: 1rem;
  left: auto;
}

[dir="rtl"] .slideshow-nav-btn.next {
  left: 1rem;
  right: auto;
}

.slideshow-counter {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 15;
}

[dir="rtl"] .slideshow-counter {
  left: auto;
  right: 0.85rem;
}

.lightbox-info {
  padding: 1.5rem 1.75rem 1.75rem;
  background: #ffffff;
}

.lightbox-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.lightbox-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.lightbox-modal.modal-cert .lightbox-desc {
  margin-bottom: 0;
}

.slideshow-thumbs-container {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: thin;
}

.slideshow-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  background: #f1f5f9;
  transition: var(--transition-fast);
  padding: 0;
}

.slideshow-thumb.active, .slideshow-thumb:hover {
  border-color: var(--accent-amber);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-footer-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

[dir="rtl"] .lightbox-footer-action {
  justify-content: flex-start;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 860px) {
  .cert-grid {
    grid-template-columns: 1fr !important;
    max-width: 340px !important;
    margin: 1.5rem auto 0 !important;
    gap: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cert-card {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 1.5rem 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cert-img-wrap {
    width: 110px !important;
    height: 145px !important;
    margin: 0 auto 0.85rem !important;
    flex-shrink: 0 !important;
  }
  .cert-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  [dir="rtl"] .cert-info {
    align-items: center !important;
    text-align: center !important;
  }
  .cert-title {
    font-size: 1rem !important;
  }
  .cert-desc {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 650px) {
  .cert-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 1.5rem auto 0;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .cert-card {
    display: flex;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
  .cert-img-wrap {
    width: 105px;
    height: 140px;
    margin: 0 auto 0.85rem !important;
    flex-shrink: 0;
  }
  .cert-info {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    width: 100%;
  }
  [dir="rtl"] .cert-info {
    align-items: center !important;
    text-align: center !important;
  }
  .slideshow-stage {
    height: 250px;
  }
  .lightbox-modal.modal-cert .slideshow-stage {
    height: 270px;
  }
  .slideshow-nav-btn {
    width: 36px;
    height: 36px;
  }
  .lightbox-info {
    padding: 1.15rem 1.15rem 1.35rem;
  }
  .lightbox-title {
    font-size: 1.12rem;
  }
  .lightbox-desc {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }
  .slideshow-thumb {
    width: 48px;
    height: 48px;
  }
  .lightbox-footer-action .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-glow);
  color: var(--accent-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.feature-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CTA BANNER ==================== */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==================== CONTACT & RFQ FORM ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-glow);
  color: var(--accent-amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.contact-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card-desc a {
  color: var(--accent-amber-dark);
  font-weight: 700;
  transition: var(--transition-fast);
}

.contact-card-desc a:hover {
  color: var(--accent-amber);
  text-decoration: underline;
}

.rfq-form-wrap {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px; /* Prevents auto-zoom on mobile safari/chrome */
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
  outline: none;
}

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

/* ==================== FAQ ACCORDION ==================== */
.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--accent-amber);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-normal);
  color: var(--accent-amber-dark);
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== MAP SECTION ==================== */
.map-wrap {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  margin-top: 3.5rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== LIGHTBOX MODAL ==================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition-fast);
}

html[dir="ltr"] .lightbox-close {
  right: auto;
  left: 1rem;
}

.lightbox-close:hover {
  background: var(--accent-amber);
  color: #ffffff;
}

.lightbox-img-wrap {
  width: 100%;
  height: 380px;
  background: #f8fafc;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  padding: 2rem;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 4.5rem 0 2rem;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  color: #cbd5e1;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-amber-light);
  transform: translateX(-4px);
}

html[dir="ltr"] .footer-links a:hover {
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  color: var(--accent-amber-light);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item a {
  color: #cbd5e1;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--accent-amber-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--accent-amber-light);
}

/* ==================== FLOATING WIDGETS ==================== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: var(--transition-fast);
}

html[dir="ltr"] .floating-whatsapp {
  right: auto;
  left: 1.5rem;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
}

.floating-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

html[dir="ltr"] .floating-top {
  left: auto;
  right: 1.5rem;
}

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

.floating-top:hover {
  background: var(--accent-amber);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==================== ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* On all mobile and tablet screens (< 860px), disable delayed reveal so content is 100% visible instantly with zero blank space */
@media (max-width: 860px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==================== ADVANCED MOBILE & TABLET RESPONSIVE RULES ==================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 68px;
  }
  
  .nav-links, .nav-actions .btn-outline, .nav-actions .btn-primary {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
  
  .brand-logo img {
    height: 38px;
  }
  
  .brand-title {
    font-size: 0.98rem;
  }
  
  .brand-subtitle {
    font-size: 0.55rem;
  }

  .about-grid, .why-us-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .rfq-form-wrap {
    padding: 1.75rem;
  }
  
  .map-wrap {
    height: 320px;
    margin-top: 2.5rem;
  }
}

/* Mobile Smart Phones (<= 640px, down to 320px) */
@media (max-width: 640px) {
  :root {
    --nav-height: 62px;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .section {
    padding: 2.75rem 0;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    box-sizing: border-box;
  }

  /* Header on Mobile Phones */
  .site-header {
    max-width: 100vw;
  }

  .site-header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nav-inner {
    width: 100%;
    max-width: 100%;
    gap: 0.35rem;
  }

  .brand-logo {
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand-logo img {
    height: 34px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 0.82rem;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    font-size: 0.46rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    gap: 0.35rem;
    flex-shrink: 0;
    margin-inline-start: auto;
  }

  .btn-lang-toggle {
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .btn-lang-toggle svg {
    width: 13px;
    height: 13px;
  }

  .mobile-menu-toggle {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0.3rem;
    flex-shrink: 0;
  }

  .mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  /* Cinematic Scaled Hero on Mobile Phones */
  .hero-video-bg-section {
    min-height: 75vh;
    height: 78vh;
    padding-top: var(--nav-height);
  }

  .hero-centered-title-wrap {
    padding: 1.5rem 1rem;
    width: 100%;
  }

  .hero-big-brand-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    word-break: break-word;
  }

  .hero-big-brand-subtitle {
    font-size: clamp(0.8rem, 3.8vw, 1rem);
    letter-spacing: 2px;
    line-height: 1.35;
  }

  html[dir="rtl"] .hero-big-brand-subtitle {
    letter-spacing: 0.5px;
  }

  /* Hero Intro Section on Mobile */
  .hero-intro-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-intro-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-intro-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-intro-actions .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
  }

  .hero-intro-features {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    align-items: flex-start;
    width: 100%;
  }

  .hero-feature-item {
    font-size: 0.85rem;
  }

  /* Typography */
  .section-title {
    font-size: 1.6rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* Stats Grid */
  .stats-section {
    padding: 1.75rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
  }

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

  .stat-label {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .stat-item::after {
    display: none !important;
  }

  /* About Section */
  .about-image-wrap img {
    height: 250px;
  }

  .about-floating-card {
    position: static;
    margin-top: 0.75rem;
    padding: 0.85rem;
  }

  .about-content h3 {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .pillar-card {
    padding: 1.25rem 1rem;
  }

  .pillar-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
  }

  .pillar-title {
    font-size: 1.1rem;
  }

  .pillar-desc {
    font-size: 0.88rem;
  }

  /* Product Cards & Horizontal Swipeable Filters */
  .products-filter-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.65rem;
    margin-bottom: 1.75rem;
    gap: 0.4rem;
  }

  .products-filter-nav::-webkit-scrollbar {
    height: 3px;
  }

  .products-filter-nav::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: var(--radius-pill);
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-thumb-wrap {
    height: 200px;
  }

  .product-body {
    padding: 1.15rem;
  }

  .product-title {
    font-size: 1.08rem;
  }

  .product-desc {
    font-size: 0.85rem;
  }

  .btn, .btn-lg, .btn-primary, .btn-outline {
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-footer .btn {
    width: 100%;
    white-space: normal !important;
  }

  .products-section .btn-lg,
  #products .btn-lg {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    padding: 0.85rem 1.25rem;
    box-sizing: border-box;
  }

  /* Trusted Partners Grid on Mobile */
  .clients-section {
    padding: 2.5rem 0;
  }

  .clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .client-logo-item {
    width: 100%;
    height: 85px;
    min-height: 85px;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
  }

  .client-logo-item img {
    max-height: 52px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* CTA Banner on Mobile */
  .cta-banner {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .cta-title {
    font-size: 1.55rem;
  }

  .cta-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Contact & Form */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .rfq-form-wrap {
    padding: 1.25rem 1rem;
  }

  .form-title {
    font-size: 1.35rem;
  }

  .form-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .contact-card {
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
  }

  .contact-card-title {
    font-size: 1rem;
  }

  .contact-card-desc {
    font-size: 0.85rem;
  }

  .map-wrap {
    height: 260px;
    margin-top: 1.75rem;
  }

  /* FAQ on Mobile */
  .faq-question {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1rem;
  }

  .faq-answer p {
    font-size: 0.88rem;
  }

  /* Lightbox on Mobile */
  .lightbox-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .lightbox-img-wrap {
    height: 220px;
  }

  .lightbox-info {
    padding: 1.15rem;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 3rem 0 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  /* Floating Buttons */
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    width: 46px;
    height: 46px;
  }

  html[dir="ltr"] .floating-whatsapp {
    right: auto;
    left: 1rem;
  }

  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .floating-top {
    bottom: 1rem;
    left: 1rem;
    width: 38px;
    height: 38px;
  }

  html[dir="ltr"] .floating-top {
    left: auto;
    right: 1rem;
  }
}

