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

:root {
  --navy: #1a3a5c;
  --navy-light: #1f4d7a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --orange: #f39c12;
  --orange-dark: #d97706;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --max-width: 1200px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent;
  transition: all 0.25s ease; text-align: center;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 18px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; background: var(--navy); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--orange); border-radius: 1px;
}
.lang-switch {
  background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 20px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--gray-700);
  font-weight: 500; transition: all 0.2s ease; font-family: inherit;
  appearance: auto; -webkit-appearance: auto;
}
.lang-switch:hover { background: var(--gray-200); }
.mobile-toggle {
  display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px; background: linear-gradient(135deg, var(--navy) 0%, #0d2b45 100%);
  color: var(--white); text-align: center;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Section Styles ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-title {
  text-align: center; font-size: 32px; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; font-size: 16px; color: var(--gray-600);
  max-width: 600px; margin: 0 auto 48px;
}

/* ===== Highlights Cards ===== */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlight-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow); text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.highlight-card .icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.icon-factory { background: #dbeafe; color: var(--blue); }
.icon-pipe { background: #fef3c7; color: var(--orange-dark); }
.icon-cert { background: #d1fae5; color: #059669; }
.highlight-card h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.highlight-card p { font-size: 14px; color: var(--gray-600); }

/* ===== Product Cards ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.25s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card .product-image {
  height: 200px; background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
}
.product-card .product-image .pipe-icon {
  width: 80px; height: 80px; border-radius: 50%;
  border: 6px solid var(--orange); background: var(--white);
}
.product-card .product-info { padding: 24px; }
.product-card h4 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; }
.product-card .specs { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; }
.product-card .specs span { display: inline-block; background: var(--gray-100); padding: 3px 10px; border-radius: 12px; margin: 3px 4px 3px 0; }

/* ===== Applications ===== */
.applications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.app-item {
  text-align: center; padding: 32px 16px;
  border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--gray-200); transition: border-color 0.25s ease;
}
.app-item:hover { border-color: var(--blue-light); }
.app-item .app-icon { font-size: 40px; margin-bottom: 12px; }
.app-item h4 { font-size: 16px; color: var(--gray-900); }

/* ===== Export Map ===== */
.export-regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.export-region { padding: 24px; }
.export-region .region-name { font-size: 20px; margin-bottom: 4px; }
.export-region .region-desc { font-size: 13px; color: var(--gray-600); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 60px 0; text-align: center; color: var(--white);
}
.cta-banner h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }
.cta-banner .btn { background: var(--white); color: var(--orange-dark); border-color: var(--white); }
.cta-banner .btn:hover { background: var(--gray-50); }

/* ===== Spec Table ===== */
.spec-table-wrapper { overflow-x: auto; margin: 24px 0; }
.spec-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.spec-table thead { background: var(--navy); color: var(--white); }
.spec-table th { padding: 14px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); }
.spec-table tbody tr:hover { background: var(--gray-50); }
.spec-table .highlight-row { background: #fef3c7; }
.spec-table .highlight-row:hover { background: #fef9c3; }

/* ===== Pressure Badges ===== */
.pressure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.pressure-badge {
  background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: border-color 0.25s ease;
}
.pressure-badge:hover { border-color: var(--blue-light); }
.pressure-badge .mpa { font-size: 28px; font-weight: 800; color: var(--navy); }
.pressure-badge .label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* ===== Advantages List ===== */
.advantages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.adv-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.adv-item .adv-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.adv-item h4 { color: var(--gray-900); margin-bottom: 4px; }
.adv-item p { font-size: 14px; color: var(--gray-600); }

/* ===== Certifications ===== */
.certs { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin: 32px 0; }
.cert-item {
  text-align: center; padding: 24px 32px; background: var(--white);
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  transition: border-color 0.25s ease;
}
.cert-item:hover { border-color: var(--orange); }
.cert-item .cert-icon { font-size: 36px; margin-bottom: 8px; }
.cert-item h4 { font-size: 16px; color: var(--gray-900); }

/* ===== Contact Form ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.form-group label .required { color: #ef4444; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
  border-radius: 6px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s ease; background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info { padding: 36px; }
.contact-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 24px; }
.contact-info .info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-info .info-item .info-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-info .info-item h4 { font-size: 14px; color: var(--gray-600); }
.contact-info .info-item p { font-size: 15px; color: var(--gray-900); font-weight: 500; }

/* ===== Page Header ===== */
.page-header {
  padding: 100px 0 48px; background: linear-gradient(135deg, var(--navy) 0%, #0d2b45 100%);
  color: var(--white); text-align: center;
}
.page-header h1 { font-size: 36px; font-weight: 700; }

/* ===== About Page ===== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: var(--radius); height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.about-image span { font-size: 64px; }
.about-text h2 { font-size: 28px; color: var(--navy); margin-bottom: 16px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; font-size: 15px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 32px; font-weight: 800; color: var(--orange); }
.stat-item .stat-label { font-size: 13px; color: var(--gray-600); }

/* ===== Footer ===== */
.footer {
  background: var(--gray-900); color: var(--gray-300); padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 14px; color: var(--gray-300); line-height: 1.8; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 24px; text-align: center; font-size: 13px; }

/* ===== Toast Message ===== */
.toast {
  position: fixed; top: 80px; right: 24px; z-index: 9999;
  background: #059669; color: var(--white); padding: 14px 24px;
  border-radius: 8px; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
}
.toast.error { background: #ef4444; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== RTL Support (Arabic) ===== */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .contact-info { direction: rtl; }
[dir="rtl"] .advantages { direction: rtl; }
[dir="rtl"] .about-content { direction: rtl; }
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { text-align: right; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .applications { grid-template-columns: repeat(2, 1fr); }
  .export-regions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 20px; gap: 16px;
    box-shadow: var(--shadow);
  }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 28px; }
  .highlights { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .applications { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .export-regions { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-item .stat-num { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 24px; }
  .applications { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
