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

:root {
  --navy: #0f1a2e;
  --blue: #1a3a5c;
  --accent: #e8831a;
  --green: #16a34a;
  --gray: #f5f5f5;
  --text: #222;
  --text-light: #666;
  --white: #fff;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Nav */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy); padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.logo {
  color: var(--white); font-size: 1.4rem; font-weight: 800; text-decoration: none;
  letter-spacing: 1px;
}
.logo small { font-weight: 400; font-size: .65rem; opacity: .7; letter-spacing: 2px; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2); padding: 6px 10px;
  border-radius: var(--radius); cursor: pointer; font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.lang-btn:hover { background: rgba(255,255,255,.2); }
.lang-dropdown {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.15);
  overflow: hidden; min-width: 100px; z-index: 1001;
}
.lang-dropdown.show { display: block; }
.lang-option {
  display: block; width: 100%; padding: 10px 16px; border: none; background: #fff;
  text-align: left; cursor: pointer; font-size: .85rem;
  transition: background .15s;
}
.lang-option:hover { background: #f0f4f8; }

#navLinks { display: flex; list-style: none; gap: 8px; align-items: center; }
#navLinks a {
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: 8px 14px; border-radius: var(--radius); font-size: .9rem;
  transition: background .2s;
}
#navLinks a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-cta {
  background: var(--green) !important; color: #fff !important;
  font-weight: 600; padding: 8px 18px !important;
}
.nav-cta:hover { background: #15803d !important; }

.menu-toggle {
  display: none; background: none; border: none; color: #fff; font-size: 1.6rem;
  cursor: pointer; padding: 4px 8px;
}

/* Hero */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 50%, #1e4d7a 100%);
  color: var(--white); text-align: center;
}
.hero h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; opacity: .85; max-width: 650px; margin: 0 auto 40px; line-height: 1.7; }

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-bottom: 44px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: .85rem; opacity: .7; }

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #d47715; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--gray); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 48px; color: var(--navy); }

/* Tabs */
.tab-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 24px; border: 2px solid #ddd; background: #fff;
  border-radius: var(--radius); cursor: pointer; font-size: .95rem; font-weight: 600;
  transition: all .2s;
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); }
.tab-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Product Intro */
.product-intro { margin-bottom: 32px; }
.product-intro h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.product-intro p { color: var(--text-light); max-width: 800px; margin-bottom: 6px; }

/* Product Gallery */
.product-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 32px;
}
.product-gallery img {
  width: 100%; border-radius: var(--radius);
  object-fit: cover; aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Specs Grid */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 20px; }
.specs-col h4 { font-size: .95rem; color: var(--blue); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--blue); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .9rem; }
thead th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
tbody td { padding: 8px 14px; border-bottom: 1px solid #e5e5e5; }
tbody tr:hover { background: #f8fafc; }
.table-note { font-size: .85rem; color: var(--text-light); margin-top: 8px; }

/* Feature Grid (PP) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 40px; }
.feature-card {
  background: #f8fafc; border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
}
.feature-card strong { display: block; margin-bottom: 4px; color: var(--navy); }

.vs-table { margin-bottom: 20px; }
.vs-table h4 { margin-bottom: 12px; color: var(--navy); }

/* Why Grid */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.why-card {
  background: #fff; padding: 28px 24px; border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s;
}
.why-card:hover { transform: translateY(-2px); }
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 1.05rem; }
.why-card p { font-size: .9rem; color: var(--text-light); }

/* Factory */
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.factory-text p { margin-bottom: 16px; color: var(--text-light); }
.factory-text ul { padding-left: 20px; margin-bottom: 16px; }
.factory-text li { margin-bottom: 8px; }
.factory-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.factory-img-placeholder {
  background: #e5e7eb; border-radius: var(--radius); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: .85rem;
}
.factory-img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 4/3;
  object-fit: cover; display: block;
}

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.client-card {
  background: #fff; padding: 24px; border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center;
}
.client-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.client-card p { font-size: .9rem; color: var(--text-light); }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.app-item {
  background: var(--gray); padding: 20px 16px; text-align: center;
  border-radius: var(--radius); font-weight: 600; color: var(--navy);
  transition: background .2s; font-size: .9rem;
}
.app-item:hover { background: #e0e7ee; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { color: var(--text); }
.contact-info h4 { color: var(--navy); margin-bottom: 16px; font-size: 1.1rem; }
.contact-info p { margin-bottom: 10px; font-size: .95rem; }
.contact-info a { color: var(--green); font-weight: 600; }

.contact-form {
  background: #fff; padding: 28px; border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.contact-form h4 { color: var(--navy); margin-bottom: 16px; font-size: 1.1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid #ddd; border-radius: var(--radius);
  font-size: .9rem; font-family: inherit;
}
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form button { width: 100%; }

/* Footer */
.footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  text-align: center; padding: 32px 0;
  font-size: .9rem;
}
.footer p { margin-bottom: 4px; }
.footer-small { font-size: .8rem; opacity: .5; margin-top: 8px; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .stat strong { font-size: 1.6rem; }

  .menu-toggle { display: block; }
  #navLinks {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 12px 20px; gap: 4px;
  }
  #navLinks.open { display: flex; }

  .factory-grid, .contact-grid { grid-template-columns: 1fr; }
  .specs-grid, .product-gallery { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
}

/* RTL Support (Arabic) */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .nav-inner { flex-direction: row; }
html[dir="rtl"] #navLinks { flex-direction: row; }
html[dir="rtl"] .lang-dropdown { left: auto; right: 0; }
html[dir="rtl"] .lang-option { text-align: right; }
html[dir="rtl"] .hero { text-align: center; }
html[dir="rtl"] .feature-card { border-left: none; border-right: 4px solid var(--blue); border-radius: var(--radius) 0 0 var(--radius); }
html[dir="rtl"] .factory-text ul { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .contact-form textarea { text-align: right; }
html[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
html[dir="rtl"] thead th,
html[dir="rtl"] tbody td { text-align: right; }
html[dir="rtl"] .menu-toggle { margin-left: auto; }
html[dir="rtl"] .nav-left { flex-direction: row-reverse; }
