/* ==========================================================================
   DB Plastic Industries - Modern Bilingual Corporate Stylesheet
   Designed for Kingdom of Saudi Arabia Sustainable Recycling
   ========================================================================== */

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-soft: #ecfdf5;
  --secondary: #0284c7;
  --secondary-dark: #0369a1;
  --secondary-soft: #e0f2fe;
  --accent: #d97706;
  --accent-light: #fbbf24;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Readex Pro', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-en);
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  width: 100%;
}

/* RTL Typography & Direction */
[dir="rtl"] body {
  font-family: var(--font-ar);
  line-height: 1.7;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

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

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Utilities */
.section {
  padding: 5.5rem 0;
}

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

.section-dark {
  background-color: var(--dark);
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-accent {
  background: #fef3c7;
  color: #92400e;
}

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

.section-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--gray-900);
  margin: 0.8rem 0 1rem;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
}

.section-dark .section-header p {
  color: var(--gray-300);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-outline {
  border-color: var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* ================= Top Bar ================= */
.topbar {
  background-color: var(--dark);
  color: var(--gray-300);
  font-size: 0.84rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-item a {
  color: var(--gray-200);
}

.topbar-item a:hover {
  color: var(--primary-light);
}

.copy-email-btn {
  background: transparent;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  transition: background var(--transition-fast);
}

.copy-email-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ================= Header & Nav ================= */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer-logo-card {
  background: var(--white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  line-height: 1.1;
}

.brand-name span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[dir="rtl"] .brand-tagline {
  letter-spacing: 0;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.flag-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  object-fit: cover;
}

.mobile-menu-toggle {
  display: none;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--gray-900);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.hamburger-inner {
  top: 6px;
  display: block;
}

.hamburger-inner::before {
  content: '';
  top: -6px;
}

.hamburger-inner::after {
  content: '';
  top: 6px;
}

.mobile-menu-toggle.active .hamburger-inner {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}

/* ================= Mobile Drawer Navigation ================= */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(85vw, 320px);
  max-width: 100%;
  background: var(--white);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[dir="rtl"] .mobile-drawer {
  right: auto;
  left: 0;
  box-shadow: 8px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(-105%);
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-drawer-close:hover {
  color: var(--gray-900);
}

.mobile-drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  flex-grow: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.mobile-drawer-actions {
  margin-top: 0.5rem;
}

.mobile-drawer-contact-card {
  margin-top: auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-contact-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--gray-500);
}

.mobile-drawer-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-drawer-email-row a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  word-break: break-all;
}

.mobile-drawer-phone-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ================= Hero Section ================= */
.hero {
  position: relative;
  background-color: var(--dark);
  color: var(--white);
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.5) 100%),
    url('../images/hero-plant.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

[dir="rtl"] .hero-bg-overlay {
  background-image: 
    linear-gradient(to left, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 55%, rgba(15, 23, 42, 0.5) 100%),
    url('../images/hero-plant.jpg');
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-badges-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

[dir="rtl"] .hero-title {
  font-size: 3.1rem;
  line-height: 1.3;
}

.hero-title .highlight-text {
  color: transparent;
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 2.2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-300);
}

.trust-item svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Hero Quick Card */
.hero-glass-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
}

.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #34d399;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-number span {
  color: var(--primary-light);
  font-size: 1.4rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--gray-400);
}

.hero-card-contact {
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.card-contact-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.card-contact-email {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= Partners / Trust Banner ================= */
.trust-strip {
  background-color: var(--dark-surface);
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-strip-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-200);
}

.trust-badge-pill svg {
  color: var(--primary-light);
}

/* ================= About Section ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

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

.about-floating-badge {
  position: absolute;
  bottom: -15px;
  right: 15px;
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 290px;
  border: 1px solid var(--gray-200);
}

[dir="rtl"] .about-floating-badge {
  right: auto;
  left: 15px;
}

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

.about-badge-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.about-badge-text p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--gray-900);
  margin: 1rem 0 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.about-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.highlight-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ================= Products / Polymers ================= */
.products-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.product-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--gray-100);
}

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

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-type-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

[dir="rtl"] .product-type-tag {
  left: auto;
  right: 1rem;
}

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

.product-card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

.product-card-body p {
  font-size: 0.925rem;
  color: var(--gray-600);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.product-specs-table {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  border-bottom: 1px dashed var(--gray-300);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-name {
  color: var(--gray-500);
  font-weight: 500;
}

.spec-val {
  color: var(--gray-900);
  font-weight: 700;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

/* ================= Recycling Workflow ================= */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.process-card {
  background: var(--dark-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.process-step-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

[dir="rtl"] .process-step-num {
  right: auto;
  left: 1.25rem;
}

.process-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(5, 150, 105, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.process-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ================= Sustainability & Calculator ================= */
.calc-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.calc-inputs-side {
  padding: 3rem;
  background-color: var(--gray-50);
}

.calc-inputs-side h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.calc-inputs-side p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.calc-field {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.calc-label {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.calc-slider-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-300);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  border: 3px solid var(--white);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-side {
  padding: 3rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-header h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.results-header p {
  color: var(--gray-400);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

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

.metric-result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.metric-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(5, 150, 105, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-data h5 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.metric-data span {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}

.metric-data p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.2rem;
}

/* ================= Vision 2030 Feature ================= */
.vision-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.vision-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.vision-banner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 1rem 0;
}

.vision-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.vision-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pillar-card p {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ================= Contact Section ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
}

.contact-info-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.contact-info-header p {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(5, 150, 105, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-details h4 {
  font-size: 0.825rem;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.channel-details a, .channel-details span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.channel-details a:hover {
  color: var(--primary-light);
}

.official-email-highlight {
  background: rgba(5, 150, 105, 0.25);
  border: 1px solid var(--primary-light);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.official-email-highlight a {
  color: #34d399 !important;
  font-weight: 700;
}

/* Contact Form */
.contact-form-box {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.contact-form-box h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.contact-form-box p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

.form-feedback-toast {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback-toast.success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ================= Footer ================= */
.footer {
  background-color: #0a0f1d;
  color: var(--gray-300);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 1.2rem 0 1.5rem;
  max-width: 340px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.4rem;
  position: relative;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--primary-light);
  padding-inline-start: 4px;
}

.footer-newsletter-box p {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.footer-newsletter-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input-wrap input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.875rem;
}

.footer-newsletter-input-wrap input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--gray-300);
}

/* ================= Modal ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  line-height: 1;
}

.modal-body {
  padding: 2rem;
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-glass-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-floating-badge {
    bottom: -10px;
    right: 10px;
  }

  [dir="rtl"] .about-floating-badge {
    right: auto;
    left: 10px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }
  
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .vision-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal layout shifts and scrolling */
  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Compact Top Bar on Mobile */
  .topbar {
    font-size: 0.78rem;
    padding: 0.4rem 0;
  }

  .topbar-content {
    justify-content: center;
    gap: 0.5rem;
  }

  .topbar-left {
    display: none;
  }

  .topbar-right {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  /* Navigation Bar Mobile - Perfect Logo Fit on All Screen Sizes */
  .desktop-nav {
    display: none;
  }

  .nav-desktop-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav-container {
    height: 64px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0.5rem;
    width: 100%;
  }

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

  /* Hide duplicate text on mobile: the logo already contains the full brand name */
  .brand-logo .brand-text {
    display: none !important;
  }

  .brand-logo-img {
    height: 42px;
    max-height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }

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

  .lang-switcher-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    white-space: nowrap;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: auto;
    padding: 3rem 0 2.5rem;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  [dir="rtl"] .hero-title {
    font-size: clamp(1.75rem, 6.2vw, 2.4rem);
    line-height: 1.35;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.98rem;
  }

  .hero-trust-indicators {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }

  .hero-glass-card {
    padding: 1.5rem 1.15rem;
    width: 100%;
  }

  .hero-stats-grid {
    gap: 0.75rem;
  }

  .stat-box {
    padding: 0.9rem 0.7rem;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  .card-contact-email {
    font-size: 0.92rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  /* Trust Strip */
  .trust-strip {
    padding: 1.25rem 0;
  }

  .trust-strip-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
  }

  .trust-badge-pill {
    font-size: 0.8rem;
  }

  /* Section Spacing & Headers */
  .section {
    padding: 3.5rem 0;
  }

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

  .section-header h2 {
    font-size: clamp(1.55rem, 5.2vw, 2rem);
  }

  .section-header p {
    font-size: 0.92rem;
  }

  /* About Us Mobile */
  .about-img-frame img {
    height: 280px;
  }

  .about-floating-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
  }

  [dir="rtl"] .about-floating-badge {
    position: static;
  }

  .about-content h2 {
    font-size: clamp(1.55rem, 5.2vw, 2rem);
  }

  /* 4-Stage Process Mobile */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .process-card {
    padding: 1.6rem 1.3rem;
  }

  /* Products Filter: Smooth Touch Swiping */
  .products-filter {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    margin-bottom: 1.75rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }

  .products-filter::-webkit-scrollbar {
    display: none;
  }

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

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

  .product-card-body {
    padding: 1.3rem;
  }

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

  .product-card-actions .btn {
    width: 100%;
  }

  /* Calculator Mobile */
  .calc-inputs-side, .calc-results-side {
    padding: 1.75rem 1.15rem;
  }

  .calc-inputs-side h3 {
    font-size: 1.3rem;
  }

  .range-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .metric-result-card {
    padding: 0.95rem;
    gap: 0.85rem;
  }

  .metric-data h5 {
    font-size: 1.4rem;
  }

  /* Vision 2030 Banner Mobile */
  .vision-banner {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .vision-banner h2 {
    font-size: clamp(1.45rem, 4.8vw, 1.85rem);
  }

  .vision-banner p {
    font-size: 0.92rem;
  }

  /* Contact Section Mobile */
  .contact-info-card {
    padding: 1.75rem 1.15rem;
  }

  .contact-form-box {
    padding: 1.75rem 1.15rem;
  }

  .contact-info-header h3,
  .contact-form-box h3 {
    font-size: 1.45rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Critical iOS fix: inputs font-size >= 16px to prevent auto-zoom */
  .form-control {
    font-size: 16px !important;
    padding: 0.8rem 0.95rem;
  }

  .official-email-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .official-email-highlight .copy-email-btn {
    align-self: flex-start;
  }

  /* Footer Mobile */
  .footer {
    padding: 3rem 0 1.75rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  /* Modal on Mobile */
  .modal-window {
    width: 95vw;
    margin: 1rem;
  }

  .modal-header {
    padding: 1.15rem;
  }

  .modal-body {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  .nav-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .brand-logo-img {
    height: 36px;
    max-height: 36px;
    max-width: 110px;
  }

  .lang-switcher-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
  }

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

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    grid-template-columns: 1fr;
  }
}
