/* ============================================================
   IndusConsum - Main Stylesheet
   Palette: deep blue #1a3a5c, orange #e87722, dark gray
   No purple/indigo. Mobile-first.
   ============================================================ */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --secondary: #2d3748;
  --accent: #e87722;
  --accent-hover: #d4661a;
  --bg: #f7f8fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --text: #2d3748;
  --text-light: #718096;
  --success: #2f855a;
  --shadow: 0 2px 8px rgba(15, 37, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 37, 64, 0.12);
  --radius: 8px;
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e0;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--accent); }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; }

/* Language switcher */
.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #cbd5e0;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  font-family: inherit;
}
.lang-switch button:hover { background: rgba(255,255,255,0.1); }
.lang-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo span.accent { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
  transition: .2s;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
}
.dropdown a:hover { background: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(232,119,34,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05), transparent 40%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero .subtitle {
  font-size: 19px;
  color: #cbd5e0;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all .2s;
  border-top: 4px solid var(--accent);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-icon {
  width: 56px; height: 56px;
  background: #fdebd9;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.cat-icon svg { width: 32px; height: 32px; }
.cat-card h3 { color: var(--primary); font-size: 20px; margin-bottom: 8px; }
.cat-card p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.cat-meta { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.cat-link { font-weight: 600; font-size: 14px; }

/* ---------- Why choose us ---------- */
.why-section { background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 28px 18px;
}
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.why-icon svg { width: 30px; height: 30px; }
.why-card h4 { color: var(--primary); margin-bottom: 8px; font-size: 17px; }
.why-card p { color: var(--text-light); font-size: 14px; }

/* ---------- Industries wall ---------- */
.industries {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0;
}
.industries .section-title h2 { color: #fff; }
.industries .section-title p { color: #a0aec0; }
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.industry-tags span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  background: linear-gradient(135deg, #edf2f7, #e2e8f0);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  position: relative;
}
.product-img svg { width: 64px; height: 64px; opacity: 0.7; }
.product-img .img-label {
  position: absolute;
  bottom: 8px; left: 8px;
  font-size: 10px;
  color: var(--text-light);
  background: rgba(255,255,255,0.8);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.product-body h3 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
  flex: 1;
}
.product-sku { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.product-body .btn { align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.testi-quote { font-size: 15px; color: var(--secondary); font-style: italic; margin-bottom: 18px; }
.testi-author { font-weight: 700; color: var(--primary); }
.testi-company { font-size: 13px; color: var(--text-light); }
.testi-flag { font-size: 12px; color: var(--accent); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 10px; font-weight: 700; }
.cta-banner p { opacity: 0.95; margin-bottom: 24px; }
.cta-banner .btn { background: #fff; color: var(--accent); }
.cta-banner .btn:hover { background: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #a0aec0;
  padding: 60px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #a0aec0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.footer-contact p { margin-bottom: 8px; }
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 50px 0;
}
.page-hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: #cbd5e0; max-width: 700px; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--secondary);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.result-count { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }

/* ---------- Product detail ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin: 20px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.detail-img {
  background: linear-gradient(135deg, #edf2f7, #e2e8f0);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  gap: 12px;
}
.detail-img svg { width: 120px; height: 120px; opacity: 0.7; }
.detail-img .img-label {
  font-size: 12px;
  color: var(--text-light);
  background: rgba(255,255,255,0.9);
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-info h1 {
  font-size: 28px;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.detail-badges { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-sku { background: #edf2f7; color: var(--secondary); }
.badge-cat { background: #fdebd9; color: var(--accent); }
.detail-short { color: var(--text-light); margin-bottom: 22px; font-size: 15px; }

.detail-quick {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.detail-quick-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.detail-quick-row:last-child { border-bottom: none; }
.detail-quick-row .k { color: var(--text-light); }
.detail-quick-row .v { font-weight: 600; color: var(--secondary); }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Spec tables */
.spec-section { margin-bottom: 40px; }
.spec-section h2 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.spec-table {
  width: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  padding: 12px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  width: 40%;
}
.spec-table tr:last-child td { border-bottom: none; }

.desc-paragraph { margin-bottom: 16px; color: var(--secondary); font-size: 15px; }

.app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-list li {
  list-style: none;
  background: #edf2f7;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
}

/* Inquiry form */
.inquiry-form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- About / Contact ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-factory-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.factory-img {
  background: linear-gradient(135deg, #cbd5e0, #a0aec0);
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.contact-info-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.contact-info-card h3 { color: var(--primary); margin-bottom: 14px; }
.contact-line { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.contact-line svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.area-list { list-style: none; }
.area-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.area-list li:last-child { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: all .25s;
  color: var(--text-light);
  font-size: 15px;
}
.faq-item.open .faq-a { padding: 0 22px 18px; max-height: 500px; }

/* ---------- Catalog ---------- */
.catalog-box {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.catalog-box .catalog-icon {
  width: 80px; height: 80px;
  background: #fdebd9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}
.catalog-box .catalog-icon svg { width: 40px; height: 40px; }

/* ---------- RTL ---------- */
html[dir="rtl"] body { font-family: 'Tahoma', 'Arial', sans-serif; }
html[dir="rtl"] .topbar .container,
html[dir="rtl"] .nav-wrap,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .topbar-left,
html[dir="rtl"] .topbar-right,
html[dir="rtl"] .detail-quick-row,
html[dir="rtl"] .contact-line {
  flex-direction: row-reverse;
}
html[dir="rtl"] .spec-table th { text-align: right; }
html[dir="rtl"] .testi-card { border-left: none; border-right: 4px solid var(--accent); }
html[dir="rtl"] .dropdown { left: auto; right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
    align-items: stretch;
  }
  html[dir="rtl"] .main-nav { left: auto; right: 0; }
  .main-nav.open { display: flex; }
  .hamburger { display: block; }
  .dropdown { position: static; box-shadow: none; display: block; padding-left: 12px; }
  .has-dropdown .dropdown { display: block; }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 16px; }
  section { padding: 45px 0; }
  .section-title h2 { font-size: 26px; }

  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .testi-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .topbar-left span:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .container { padding: 0 14px; }
}
