/* ============================================================
   QJ Electric — qjelectric.com  (International B2B site)
   Modern industrial style, responsive, no framework
   Brand: deep blue #14509b / #1c5699, accent orange #f09200
   ============================================================ */

:root {
  --blue-900: #0d2c55;
  --blue-800: #0f3a72;
  --blue-700: #14509b;
  --blue-600: #1c5699;
  --blue-100: #e8f0fa;
  --blue-50:  #f3f8fe;
  --orange:   #f09200;
  --orange-d: #d97f00;
  --ink:      #14213a;
  --body-c:   #3d4b64;
  --muted:    #6b7891;
  --line:     #e3e9f2;
  --bg-soft:  #f5f8fc;
  --wa:       #22c15e;
  --wa-d:     #128c4b;
  --radius:   14px;
  --shadow:   0 12px 32px rgba(13, 44, 85, .12);
  --shadow-s: 0 4px 14px rgba(13, 44, 85, .08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; color: var(--body-c);
  background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-s); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-800); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 16.5px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--blue-800); letter-spacing: .01em; display: block; line-height: 1.15; }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--blue-600); background: var(--blue-50); }
.main-nav a.active { color: var(--blue-700); background: var(--blue-100); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-900); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,62,.96) 0%, rgba(13,44,85,.88) 42%, rgba(13,44,85,.45) 100%);
}
.hero-inner { position: relative; padding: 108px 0 96px; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #ffd28a; margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #ffc14d; }
.hero-lead { font-size: 18px; color: #d7e2f2; max-width: 620px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: #eaf1fb; font-weight: 500;
}
.chip b { color: #ffc14d; font-weight: 700; }


/* ---------- stats bar ---------- */
.stats-bar { background: var(--blue-800); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 0; }
.stat { text-align: center; }
.stat strong { font-size: 38px; font-weight: 800; color: #ffc14d; line-height: 1.1; display: block; }
.stat strong em { font-style: normal; font-size: 24px; }
.stat span { font-size: 14px; color: #c9d6ea; letter-spacing: .02em; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange-d); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfdcec; }
.p-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-card-img img { transform: scale(1.05); }
.p-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); background: var(--blue-100);
  border-radius: 999px; padding: 4px 12px;
}
.p-card h3 { font-size: 19.5px; }
.p-card p { font-size: 14.8px; color: var(--muted); flex: 1; }
.p-more { font-weight: 700; font-size: 14.5px; color: var(--blue-600); margin-top: 4px; }
.p-more::after { content: " \2192"; transition: margin .2s; }
.p-card:hover .p-more::after { margin-left: 4px; }

/* ---------- why / feature cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-s); }
.why-ico {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--blue-700); font-size: 26px; margin-bottom: 18px;
}
.why-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.why-card p { font-size: 14.6px; color: var(--muted); }

/* ---------- process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-size: 15px; font-weight: 800; color: var(--orange);
  letter-spacing: .06em; margin-bottom: 12px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 13.8px; color: var(--muted); line-height: 1.6; }
.step::after {
  content: "\2192"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  color: #b9c6da; font-size: 18px; font-weight: 700; z-index: 1;
}
.step:last-child::after { display: none; }

/* ---------- split (about / capabilities intro) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.split-body p { margin-bottom: 14px; color: var(--body-c); }
.tick-list { margin: 18px 0 26px; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.3px; }
.tick-list li::before {
  content: "\2713"; flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px;
}

/* ---------- certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cert-card {
  background: #fff; border: 1.5px dashed #c3d2e6; border-radius: var(--radius);
  padding: 34px 28px; text-align: center; color: var(--muted);
}
.cert-card .cert-ico { font-size: 40px; margin-bottom: 14px; }
.cert-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.cert-card p { font-size: 14px; }
.cert-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  border-radius: 20px; color: #fff; padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; position: relative; }
.cta-band p { color: #cfdcf0; position: relative; max-width: 560px; }
.cta-band .cta-btns { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: #fff; }
.page-hero-inner { padding: 64px 0 56px; }
.breadcrumb { font-size: 13.5px; color: #a9bcd8; margin-bottom: 16px; }
.breadcrumb a { color: #cdd9ec; }
.breadcrumb a:hover { color: #ffc14d; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.page-hero .lead { color: #ccd9ee; max-width: 680px; font-size: 17px; }


/* ---------- product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.pd-gallery {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); box-shadow: var(--shadow-s);
}
.pd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-s); position: sticky; top: 100px;
  display: grid; gap: 14px;
}
.pd-summary h2 { font-size: 21px; }
.pd-summary .pd-sub { color: var(--muted); font-size: 14.6px; margin-top: -6px; }
.pd-summary .btn { justify-content: center; }
.pd-meta { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; font-size: 14.2px; }
.pd-meta div { display: flex; justify-content: space-between; gap: 14px; }
.pd-meta dt { color: var(--muted); }
.pd-meta dd { color: var(--ink); font-weight: 600; text-align: right; }

.pd-sections { margin-top: 64px; display: grid; gap: 56px; }
.pd-block h2 { font-size: 24px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-100); }
.pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* spec table */
.spec-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14.8px; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { background: var(--blue-50); color: var(--ink); font-weight: 700; width: 220px; }
.spec-table td { color: var(--body-c); }
.spec-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.spec-todo {
  display: inline-block; background: #fff6e3; border: 1px solid #f0c36d; color: #8a6100;
  font-size: 12.5px; border-radius: 8px; padding: 3px 10px; font-weight: 600;
}

/* applications */
.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app-list li {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-size: 14.6px; display: flex; gap: 10px; align-items: center;
}
.app-list li::before { content: "\25B8"; color: var(--orange); font-weight: 800; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink);
  font-size: 15.8px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--orange); font-weight: 700; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding: 0 22px 20px; color: var(--body-c); font-size: 14.8px; }

/* related products */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.r-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  transition: transform .2s, box-shadow .2s; display: block; color: var(--ink);
}
.r-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-s); color: var(--ink); }
.r-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.r-card span { display: block; padding: 14px 16px; font-weight: 700; font-size: 15px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.form-card, .info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; box-shadow: var(--shadow-s);
}
.form-card h2 { font-size: 23px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14.6px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.8px; font-weight: 700; color: var(--ink); }
.form-field label .req { color: #d64545; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(28,86,153,.14);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .file-hint { font-size: 12.5px; color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions small { color: var(--muted); font-size: 12.8px; }

.info-card { display: grid; gap: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ico {
  flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.info-item h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.info-item p, .info-item a { font-size: 15.3px; color: var(--ink); font-weight: 600; word-break: break-word; }
.info-item a:hover { color: var(--orange-d); }
.info-item small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- generic content page ---------- */
.content-page { max-width: 860px; }
.content-page h2 { font-size: 22px; margin: 34px 0 14px; }
.content-page p { margin-bottom: 14px; }
.content-page ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.content-page li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-900); color: #b7c6de; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding: 64px 0 48px; }
.footer-brand img { width: 52px; height: 52px; margin-bottom: 16px; }
.footer-brand .f-name { color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.footer-brand .f-sub { color: #8fa4c4; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-brand p { font-size: 14.2px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #b7c6de; font-size: 14.4px; }
.footer-col a:hover { color: #ffc14d; }
.footer-contact li { display: flex; gap: 10px; font-size: 14.2px; }
.footer-contact li span:first-child { color: #8fa4c4; flex: 0 0 auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #8fa4c4; }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; border-radius: 999px;
  padding: 12px 20px; font-weight: 700; font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(34,193,94,.42);
}
.wa-float:hover { background: var(--wa-d); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .pd-layout, .contact-layout, .pd-cols { grid-template-columns: 1fr; }
  .pd-summary { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 10px; font-size: 16px; }
  .header-cta .btn-quote { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand { margin-right: 0; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-inner { padding: 72px 0 64px; }
  .hero-lead { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding: 60px 0; }
  .product-grid, .why-grid, .process-grid, .cert-grid { grid-template-columns: 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .stats-grid { gap: 26px 12px; }
  .stat strong { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 36px; }
  .wa-float { right: 16px; bottom: 16px; padding: 12px 16px; }
  .wa-float .wa-txt { display: none; }
}

