/* ===== ApexPeptide — Dark Tech Theme ===== */
:root {
  --bg: #060912;
  --bg-2: #0a0f1e;
  --surface: rgba(18, 26, 44, 0.6);
  --surface-2: rgba(22, 31, 53, 0.85);
  --border: rgba(120, 160, 255, 0.14);
  --border-strong: rgba(120, 180, 255, 0.35);
  --text: #e8eefc;
  --text-dim: #97a6c4;
  --text-faint: #6c7a99;
  --cyan: #28e0d4;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, #28e0d4 0%, #3b82f6 45%, #8b5cf6 100%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --radius: 16px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text { font-family: "Space Grotesk", sans-serif; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Background FX ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(80, 120, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 120, 220, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(500px 400px at 10% 30%, rgba(139, 92, 246, 0.16), transparent 70%),
    radial-gradient(700px 500px at 50% 100%, rgba(40, 224, 212, 0.12), transparent 70%);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 9, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--grad); color: #04121c; font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.5);
}
.brand-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* global logo image (auto-assigned from images/global-all) */
.brand-logo { height: 32px; width: auto; display: inline-block; vertical-align: middle; filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45)); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.25s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--grad); border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn-primary { background: var(--grad); color: #04121c; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(59, 130, 246, 0.8); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.full { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
/* auto-assigned hero banner + decorative icons (never mirrored in RTL) */
.hero-banner {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.22; z-index: 0;
  pointer-events: none; mix-blend-mode: screen;
}
/* Hero background carousel: 3-image auto fade (1->2->3), bottom layer, no controls.
   Source assets are 1920x600; slides fill the hero via cover. */
.hero-carousel {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-repeat: no-repeat; background-position: center center; background-size: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 0.65; }
.deco-icon { position: absolute; z-index: 1; pointer-events: none; }
.deco-1 { inset-inline-start: 5%; top: 14%; width: 124px; opacity: 0.32; mix-blend-mode: screen; }
.deco-2 { inset-inline-end: 7%; bottom: 12%; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); padding: 5px; opacity: 0.92; object-fit: contain; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); font-weight: 600; margin-bottom: 16px; }
.hero-title { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72), 0 0 60px rgba(0, 0, 0, 0.35); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-dim); font-size: 1.08rem; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: "Space Grotesk"; font-size: 2rem; font-weight: 700; }
.stat-suffix { display: none; }
.stat-label { color: var(--text-faint); font-size: 0.85rem; margin-top: 2px; }

/* Hero molecule visual */
.hero-visual { display: grid; place-items: center; }
.molecule { position: relative; width: 320px; height: 320px; }
.ring { position: absolute; inset: 0; border: 1px solid var(--border-strong); border-radius: 50%; }
.ring-1 { animation: spin 14s linear infinite; border-color: rgba(40, 224, 212, 0.35); }
.ring-2 { inset: 40px; animation: spin 10s linear infinite reverse; border-color: rgba(59, 130, 246, 0.4); }
.ring-3 { inset: 80px; animation: spin 18s linear infinite; border-color: rgba(139, 92, 246, 0.4); }
.core { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--grad); box-shadow: 0 0 40px rgba(59, 130, 246, 0.7); }
.atom { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); top: 50%; left: 50%; }
.a1 { transform: translate(-50%, -180px); animation: orbit 14s linear infinite; }
.a2 { transform: translate(-50%, -50%); margin-left: 180px; animation: orbit 14s linear infinite reverse; }
.a3 { transform: translate(-50%, 180px); animation: orbit 14s linear infinite; }
.a4 { transform: translate(-50%, -50%); margin-left: -180px; animation: orbit 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg) translateX(180px) rotate(-360deg); } }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, rgba(13, 19, 35, 0.5), rgba(6, 9, 18, 0)); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; }
.section-lead { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

/* ===== Product filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim); cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: 0.25s;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { background: var(--grad); color: #04121c; border-color: transparent; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.pc-purity { font-size: 0.78rem; color: var(--text-faint); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; }
.pc-name { font-size: 1.3rem; font-weight: 600; }
.pc-desc { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.pc-specs { list-style: none; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; }
.pc-specs li { display: flex; justify-content: space-between; font-size: 0.85rem; }
.pc-specs span { color: var(--text-faint); }
.pc-specs b { color: var(--text); font-weight: 500; }
.pc-link { color: var(--cyan); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-top: 4px; transition: gap 0.2s; }
.pc-link:hover { color: var(--blue); }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
/* auto-assigned about background banner */
#about { position: relative; overflow: hidden; }
.about-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.14; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
.about-text { color: var(--text-dim); margin-top: 16px; }
.about-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point-ico { color: var(--cyan); font-size: 1.1rem; margin-top: 2px; }
.point b { display: block; }
.point p { color: var(--text-dim); font-size: 0.92rem; }

.about-visual { display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h4 { font-size: 1.05rem; margin-bottom: 18px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-dim); }
.bar-row span { width: 120px; flex-shrink: 0; }
.bar { flex: 1; height: 8px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.1s ease; }
.bar i.loaded { width: var(--w); }

.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.mini b { display: block; font-family: "Space Grotesk"; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini span { color: var(--text-faint); font-size: 0.8rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.cl-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--cyan); }
.contact-list b { display: block; font-size: 0.85rem; color: var(--text-faint); font-weight: 500; }
.contact-list a, .contact-list p { color: var(--text); text-decoration: none; font-size: 0.98rem; }
.contact-list a:hover { color: var(--cyan); }
.wa-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.wa-links a { display: inline-block; }

/* ===== Product card image ===== */
.product-card .pc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: block;
}

.contact-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea {
  background: rgba(6, 9, 18, 0.6); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 0.95rem; font-family: inherit; transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40, 224, 212, 0.15); }
.form-note { font-size: 0.88rem; color: var(--cyan); min-height: 18px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: rgba(6, 9, 18, 0.6); position: relative; overflow: hidden; }
/* auto-assigned footer banner (top strip) */
.footer-banner { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center; opacity: 0.28; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--text-faint); font-size: 0.88rem; margin-top: 12px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.82rem; }

/* ===== Products CTA strip ===== */
.products-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.products-cta p { color: var(--text-dim); font-size: 1.02rem; }

/* ===== OEM / Custom services ===== */
.oem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.oem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; backdrop-filter: blur(8px);
}
.oem-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.oem-ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--grad); color: #04121c; font-size: 1.3rem;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.6);
}
.oem-card h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.oem-card p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.oem-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.oem-card li { font-size: 0.85rem; color: var(--text-dim); padding-left: 18px; position: relative; }
.oem-card li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); }

.oem-cta {
  margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(40, 224, 212, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 28px 32px;
}
.oem-cta h3 { font-size: 1.25rem; }
.oem-cta p { color: var(--text-dim); margin-top: 6px; max-width: 560px; }

/* ===== CTA banner (pre-footer) ===== */
.cta-banner { padding: 70px 0; }
.cta-banner-inner {
  text-align: center; border-radius: 24px; padding: 56px 32px;
  background: linear-gradient(120deg, rgba(40, 224, 212, 0.12), rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border-strong);
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-banner p { color: var(--text-dim); margin: 14px auto 26px; max-width: 560px; }

/* ===== Certificates (About) ===== */
.cert-panel { margin-top: 20px; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cert-slot {
  aspect-ratio: 3 / 4; border: 1px dashed var(--border-strong); border-radius: 10px;
  display: grid; place-items: center; color: var(--text-faint); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.02);
  position: relative; overflow: hidden;
}
/* auto-assigned certificate image fills the slot; label overlays it */
.cert-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; z-index: 0; }
.cert-slot span { position: relative; z-index: 2; opacity: 0.92; background: rgba(6, 9, 18, 0.6); padding: 4px 10px; border-radius: 6px; }
.cert-note { color: var(--text-faint); font-size: 0.82rem; margin-top: 12px; }

/* ===== Contact OEM button ===== */
.contact-oem-btn { margin-top: 26px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Global auto-assigned images ===== */
/* Images are never mirrored; decorative icons use logical insets so they flip
   correctly with RTL. An empty src (no matching image) is hidden, not broken. */
img.global-img:not([src]), img.global-img[src=""] { display: none; }

/* ===== Language switcher ===== */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px; background: var(--surface);
  border: 1px solid var(--border-strong); color: var(--text); border-radius: 999px;
  padding: 8px 14px; font-size: 0.88rem; cursor: pointer; font-family: inherit; transition: 0.25s;
}
.lang-current:hover { border-color: var(--cyan); color: var(--cyan); }
.lang-ico { font-size: 1rem; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 6px; backdrop-filter: blur(14px); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: 0.22s; z-index: 200;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; transition: 0.2s;
}
.lang-menu a:hover { background: rgba(40, 224, 212, 0.12); color: var(--text); }
.lang-menu a.current { color: var(--cyan); font-weight: 600; }
.lang-menu a.current::after { content: "✓"; }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .brand-text { font-family: "Noto Sans Arabic", "Space Grotesk", sans-serif; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu a { flex-direction: row-reverse; }
[dir="rtl"] .oem-card li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .oem-card li::before { left: auto; right: 0; }
[dir="rtl"] .hero-actions, [dir="rtl"] .products-cta, [dir="rtl"] .oem-cta { direction: rtl; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .oem-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero { padding: 60px 0 50px; }
  .oem-cta, .products-cta { flex-direction: column; align-items: flex-start; }
  .oem-cta .btn, .products-cta .btn { width: 100%; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 12, 24, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
    padding: 10px 24px 24px; transform: translateY(-130%); transition: transform 0.35s ease; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .nav-link.active::after { display: none; }
  .nav-links .nav-cta { margin-top: 14px; }
  .nav-links .lang-switch { margin-top: 14px; width: 100%; }
  .lang-current { width: 100%; justify-content: space-between; }
  .lang-menu { right: 0; left: 0; width: 100%; }
  [dir="rtl"] .lang-menu { left: 0; right: 0; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .stat-num { font-size: 1.6rem; }
  .section { padding: 64px 0; }
}

@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .oem-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 18px; }
  .hero-title { font-size: 2rem; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); }
  .cta-banner { padding: 48px 0; }
  .cta-banner-inner { padding: 40px 22px; }
  .deco-icon { display: none; }
  .footer-banner { height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Factory background band ===== */
/* background-image is set per-page via inline style (page-relative path) */
.factory-block {
  position: relative;
  min-height: 440px;
  background-color: #0a0c18;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.factory-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 22, 0.5); /* mask opacity 0.5 */
}

/* ===== FAQ accordion ===== */
.faq { background: linear-gradient(180deg, #0a0f1e 0%, #0a0c18 100%); }
.faq .section-head { margin-bottom: 34px; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 6px;
  background: none;
  border: none;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.faq-q span:first-child { line-height: 1.45; }
.faq-plus {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: rgba(40, 224, 212, 0.12);
  color: var(--text);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 800px; }
.faq-a p {
  padding: 0 6px 22px;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 0.98rem;
}
