/* Hua Quan — Water Treatment Chemicals (Sample Homepage) */
:root {
  --c-primary: #0B3D5C;
  --c-primary-dark: #072a40;
  --c-accent: #13A89E;
  --c-accent-dark: #0e827a;
  --c-text: #1a2530;
  --c-muted: #6b7884;
  --c-border: #e3e8ec;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fa;
  --c-whatsapp: #25D366;
  --max-w: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(11, 61, 92, .08);
  --shadow-lg: 0 10px 30px rgba(11, 61, 92, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-accent); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--c-primary-dark);
  color: #d3e0e8;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #d3e0e8; }
.topbar a:hover { color: #fff; }
.topbar .links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .links span { margin-right: 6px; opacity: .7; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--c-border);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 22px; color: var(--c-primary);
  letter-spacing: -.5px;
}
.logo-img {
  height: 44px; width: auto; display: block;
  border-radius: 4px;
  /* Optional: subtly remove the default white-ish bg if any */
}
.logo-text { line-height: 1.15; }
.logo-text small { display: block; font-size: 11px; color: var(--c-muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  color: var(--c-text); font-weight: 500; font-size: 15px;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--c-primary); border-color: var(--c-accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 500; font-size: 15px; cursor: pointer; border: none; transition: .2s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn-whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-outline { border: 1.5px solid var(--c-primary); color: var(--c-primary); background: #fff; }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-primary); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, rgba(11,61,92,.78), rgba(11,61,92,.55)), url("assets/images/slide1.jpg") center/cover no-repeat;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero .container { padding-top: 70px; padding-bottom: 70px; }
.hero h1 {
  font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 18px;
  max-width: 780px;
}
.hero h1 .accent { color: var(--c-accent); }
.hero p.lead {
  font-size: 18px; max-width: 640px; margin-bottom: 32px; opacity: .95; line-height: 1.6;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 32px;
}
.hero .stat .num { font-size: 32px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.hero .stat .lbl { font-size: 13px; opacity: .85; margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--c-bg-soft); padding: 28px 0; border-bottom: 1px solid var(--c-border);
}
.trust .container {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.trust .certs { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.trust .cert {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--c-muted);
}
.trust .cert img { width: 48px; height: 48px; object-fit: contain; }
.trust .tagline {
  font-size: 14px; color: var(--c-primary); font-weight: 500;
}
.trust .tagline strong { color: var(--c-accent); }

/* ---------- Section base ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--c-accent); font-weight: 600; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 {
  font-size: 34px; color: var(--c-primary); font-weight: 700; line-height: 1.2; margin-bottom: 14px;
}
.section-head p { color: var(--c-muted); max-width: 640px; margin: 0 auto; font-size: 16px; }

/* ---------- Products grid ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; transition: .25s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-accent); }
.product-card .ph {
  height: 180px; background: var(--c-bg-soft) center/cover no-repeat;
  position: relative;
}
.product-card .ph .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,61,92,.9); color: #fff; padding: 4px 10px;
  font-size: 11px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase;
}
.product-card .pc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { color: var(--c-primary); font-size: 19px; margin-bottom: 8px; }
.product-card .desc { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.product-card ul { list-style: none; margin-bottom: 18px; }
.product-card ul li {
  font-size: 13px; color: var(--c-text); padding: 3px 0;
  padding-left: 18px; position: relative;
}
.product-card ul li::before {
  content: "›"; position: absolute; left: 0; color: var(--c-accent); font-weight: 700;
}
.product-card .more {
  margin-top: auto; font-weight: 500; font-size: 14px; color: var(--c-accent);
}
.product-card .more::after { content: " →"; transition: .2s; }
.product-card:hover .more::after { margin-left: 4px; }

/* ---------- Applications ---------- */
.applications { background: var(--c-bg-soft); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-border); display: flex; flex-direction: column;
  transition: .25s;
}
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.app-card .ac-img { height: 200px; background: center/cover no-repeat; position: relative; }
.app-card .ac-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--c-accent); color: #fff; padding: 5px 12px;
  font-size: 12px; border-radius: 4px; font-weight: 500;
}
.app-card .ac-body { padding: 22px; }
.app-card h3 { color: var(--c-primary); font-size: 18px; margin-bottom: 10px; }
.app-card p { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.app-card .markets { display: flex; flex-wrap: wrap; gap: 6px; }
.app-card .markets span {
  background: var(--c-bg-soft); color: var(--c-primary);
  padding: 3px 10px; font-size: 12px; border-radius: 12px; border: 1px solid var(--c-border);
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item {
  background: #fff; padding: 28px 22px; border-radius: var(--radius);
  border: 1px solid var(--c-border); text-align: center;
  transition: .25s;
}
.why-item:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.why-item .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
}
.why-item h4 { color: var(--c-primary); font-size: 16px; margin-bottom: 8px; }
.why-item p { color: var(--c-muted); font-size: 13px; line-height: 1.6; }

/* ---------- Quality / Lab section ---------- */
.quality { background: var(--c-bg-soft); }
.quality .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.quality .img-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.quality .img-wrap img { width: 100%; height: 360px; object-fit: cover; }
.quality h2 { color: var(--c-primary); font-size: 32px; margin-bottom: 18px; line-height: 1.2; }
.quality p { color: var(--c-muted); margin-bottom: 24px; }
.quality ul.checks { list-style: none; }
.quality ul.checks li {
  padding: 10px 0 10px 32px; position: relative; color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.quality ul.checks li:last-child { border-bottom: none; }
.quality ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; text-align: center;
}
.cta-banner h2 { font-size: 32px; margin-bottom: 14px; }
.cta-banner p { opacity: .9; max-width: 580px; margin: 0 auto 28px; font-size: 16px; }
.cta-banner .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  background: #062236; color: #a8b8c4; padding: 56px 0 0; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px;
}
footer h5 {
  color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600;
  letter-spacing: .5px;
}
footer ul { list-style: none; }
footer ul li { padding: 5px 0; }
footer a { color: #a8b8c4; }
footer a:hover { color: var(--c-accent); }
footer .brand .logo-text { color: #fff; }
footer .brand .logo-img { height: 52px; }
footer .brand p { margin-top: 14px; line-height: 1.7; }
footer .contact-line { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
footer .contact-line strong { color: #d3e0e8; font-weight: 500; min-width: 80px; }

/* Social links — footer brand column (Facebook / LinkedIn placeholders) */
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #c8d6de;
  transition: background .25s, color .25s, transform .25s;
}
.social-links a:hover { background: var(--c-accent); color: #fff; transform: translateY(-3px); }

/* Social mini icons — topbar */
.topbar .social-mini { display: flex; gap: 6px; align-items: center; }
.topbar .social-mini a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px;
  color: #d3e0e8; transition: color .2s, background .2s;
}
.topbar .social-mini a:hover { color: #fff; background: rgba(255,255,255,.12); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  font-size: 28px; transition: .2s;
}
.float-wa:hover { transform: scale(1.08); color: #fff; }
.float-wa .pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--c-whatsapp); opacity: .4;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Language switch ---------- */
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a {
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  color: #d3e0e8; border: 1px solid transparent;
}
.lang-switch a.active { background: rgba(255,255,255,.12); color: #fff; }
.lang-switch a:hover { color: #fff; border-color: rgba(255,255,255,.2); }

/* ---------- Dosing Systems ---------- */
.dosing { background: var(--c-bg); }
.dosing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dosing-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: .25s;
  display: flex; flex-direction: column; align-items: center;
}
.dosing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-accent); }
.dosing-card .d-icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dosing-card .d-icon svg { width: 32px; height: 32px; color: #fff; }
.dosing-card h4 { color: var(--c-primary); font-size: 15px; margin-bottom: 8px; }
.dosing-card p { color: var(--c-muted); font-size: 13px; line-height: 1.5; }
.dosing-card .d-tag {
  margin-top: 12px; font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: #e8f5f3; color: var(--c-accent-dark); font-weight: 600;
}

/* ---------- Solution Packages ---------- */
.solutions { background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%); }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--c-border); transition: .25s;
  display: flex; flex-direction: column;
}
.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-accent); }
.solution-card .sc-head {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; padding: 20px 22px;
}
.solution-card .sc-head h4 { font-size: 17px; margin-bottom: 4px; }
.solution-card .sc-head .sc-sub { font-size: 12px; opacity: .8; }
.solution-card .sc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.solution-card .sc-section { margin-bottom: 16px; }
.solution-card .sc-label {
  font-size: 11px; font-weight: 700; color: var(--c-accent); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.solution-card .sc-items { display: flex; flex-wrap: wrap; gap: 6px; }
.solution-card .sc-items span {
  background: var(--c-bg-soft); color: var(--c-text); font-size: 12px;
  padding: 3px 10px; border-radius: 4px; border: 1px solid var(--c-border);
}
.solution-card .sc-target {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-border);
  font-size: 13px; color: var(--c-muted);
}
.solution-card .sc-target strong { color: var(--c-primary); }

/* ---------- Regional markets ---------- */
.regions { background: var(--c-bg); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.region-card {
  border-radius: 12px; overflow: hidden; position: relative;
  min-height: 280px; display: flex; align-items: flex-end;
  transition: .25s;
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.region-card .rc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,61,92,.1) 0%, rgba(7,42,64,.92) 70%);
}
.region-card .rc-body {
  position: relative; z-index: 1; padding: 24px; color: #fff; width: 100%;
}
.region-card .rc-body h4 { font-size: 20px; margin-bottom: 8px; }
.region-card .rc-body p { font-size: 13px; opacity: .85; margin-bottom: 12px; line-height: 1.5; }
.region-card .rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.region-card .rc-tags span {
  background: rgba(19,168,158,.25); color: #5eead4; font-size: 11px;
  padding: 3px 10px; border-radius: 4px; border: 1px solid rgba(19,168,158,.3);
}
.region-card.rc-me { background: linear-gradient(135deg, #1a5276, #0B3D5C); }
.region-card.rc-sea { background: linear-gradient(135deg, #0e6655, #117a65); }
.region-card.rc-africa { background: linear-gradient(135deg, #6e2c00, #873600); }

/* ---------- Technical documents ---------- */
.docs-section { background: var(--c-bg-soft); }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: .25s;
  display: flex; flex-direction: column; align-items: center;
}
.doc-card:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.doc-card .doc-icon {
  width: 52px; height: 52px; border-radius: 8px; background: #fee2e2;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.doc-card .doc-icon svg { width: 26px; height: 26px; color: #dc2626; }
.doc-card h5 { color: var(--c-primary); font-size: 15px; margin-bottom: 6px; }
.doc-card p { color: var(--c-muted); font-size: 12px; margin-bottom: 14px; }
.doc-card .doc-link {
  font-size: 13px; color: var(--c-accent); font-weight: 600;
  padding: 6px 16px; border: 1px solid var(--c-accent); border-radius: 4px;
  transition: .2s;
}
.doc-card .doc-link:hover { background: var(--c-accent); color: #fff; }

/* ---------- Inquiry form ---------- */
.inquiry { background: var(--c-primary); color: #fff; }
.inquiry .container { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.inquiry h2 { font-size: 30px; margin-bottom: 16px; }
.inquiry p { opacity: .9; margin-bottom: 24px; font-size: 15px; }
.inquiry .inquiry-points { list-style: none; }
.inquiry .inquiry-points li {
  padding: 8px 0 8px 28px; position: relative; font-size: 14px; opacity: .9;
}
.inquiry .inquiry-points li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.inquiry-form {
  background: #fff; border-radius: 12px; padding: 32px; color: var(--c-text);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.inquiry-form h3 { color: var(--c-primary); font-size: 20px; margin-bottom: 6px; }
.inquiry-form .form-sub { color: var(--c-muted); font-size: 13px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 5px; }
.form-group label .req { color: #dc2626; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--c-text); background: #fff;
  transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(19,168,158,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  margin-top: 20px; width: 100%; padding: 14px;
  background: var(--c-accent); color: #fff; border: none; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: .2s;
}
.form-submit:hover { background: var(--c-accent-dark); }
.form-note { font-size: 12px; color: var(--c-muted); margin-top: 10px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 32px; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .products-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .quality .container { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-head h2 { font-size: 28px; }
  section { padding: 56px 0; }
  .dosing-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .region-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .inquiry .container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 26px; }
  .hero p.lead { font-size: 15px; }
  .products-grid, .app-grid, .why-grid { grid-template-columns: 1fr; }
  .dosing-grid, .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header .cta-header { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Sub pages ---------- */
.page-header {
  background: linear-gradient(135deg, #0B3D5C 0%, #105078 100%);
  color: #fff;
  padding: 64px 0 48px;
  margin-top: 0;
}
.page-header h1 { font-size: 38px; margin: 0 0 14px; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 800px; font-size: 15px; line-height: 1.7; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.breadcrumb a { color: #fff; }
.breadcrumb span { color: #13A89E; }

.cats-nav { padding: 48px 0; background: #f7f9fb; border-bottom: 1px solid var(--c-border); }
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-link {
  display: flex; gap: 16px; align-items: center; padding: 20px 24px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: all .2s;
}
.cat-link:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-num {
  font-size: 28px; font-weight: 800; color: var(--c-accent); line-height: 1;
  min-width: 48px;
}
.cat-info h4 { margin: 0 0 4px; font-size: 16px; color: var(--c-primary); }
.cat-info p { margin: 0; font-size: 13px; color: var(--c-muted); }

.product-detail { padding: 72px 0; }
.product-detail.alt-bg { background: #f7f9fb; }
.pd-header { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.pd-header .eyebrow { color: var(--c-accent); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.pd-header h2 { font-size: 32px; color: var(--c-primary); margin: 0 0 16px; line-height: 1.2; }
.pd-header p { color: var(--c-text); font-size: 15px; line-height: 1.7; }
.pd-img {
  height: 280px; background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.spec-table-wrap { margin-bottom: 48px; overflow-x: auto; }
.spec-table-wrap h3 { font-size: 20px; color: var(--c-primary); margin: 0 0 16px; }
.spec-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 14px;
}
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-border); }
.spec-table thead { background: var(--c-primary); color: #fff; }
.spec-table th { font-weight: 600; }
.spec-table tbody tr:hover { background: #f7f9fb; }
.spec-table tbody td:first-child { font-weight: 600; color: var(--c-primary); }

.appl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.appl-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 20px 24px; transition: border-color .2s;
}
.appl-item:hover { border-color: var(--c-accent); }
.appl-item h4 { font-size: 15px; color: var(--c-primary); margin: 0 0 8px; }
.appl-item p { font-size: 13px; color: var(--c-muted); margin: 0; line-height: 1.6; }

.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

@media (max-width: 960px) {
  .page-header h1 { font-size: 28px; }
  .pd-header { grid-template-columns: 1fr; gap: 24px; }
  .pd-img { height: 220px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .appl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-header { padding: 48px 0 36px; }
  .page-header h1 { font-size: 24px; }
  .pd-header h2 { font-size: 24px; }
  .cats-grid { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 13px; }
}

/* ---------- Page-specific extras ---------- */
.content-block { padding: 72px 0; }
.content-block.alt-bg { background: #f7f9fb; }
.content-block h2 { font-size: 32px; color: var(--c-primary); margin: 0 0 16px; }
.content-block p { color: var(--c-text); font-size: 15px; line-height: 1.7; }
.cb-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; margin-top: 32px; }
.cb-grid .img { height: 320px; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }

.feature-list { list-style: none; padding: 0; margin: 24px 0; }
.feature-list li { padding: 12px 0 12px 32px; position: relative; font-size: 15px; color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  width: 22px; height: 22px; background: var(--c-accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.icon-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: all .2s;
}
.icon-card:hover { border-color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.icon-card .ic-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--c-accent); }
.icon-card h4 { font-size: 15px; color: var(--c-primary); margin: 0 0 8px; }
.icon-card p { font-size: 13px; color: var(--c-muted); margin: 0; line-height: 1.5; }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px 0; }
.fact-card { background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.fact-card .num { font-size: 40px; font-weight: 800; color: var(--c-accent); line-height: 1; }
.fact-card .lbl { font-size: 13px; color: var(--c-muted); margin-top: 8px; }

.timeline { position: relative; max-width: 800px; margin: 32px auto; padding-left: 32px; border-left: 2px solid var(--c-accent); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before {
  content: ""; position: absolute; left: -38px; top: 6px;
  width: 14px; height: 14px; background: var(--c-accent); border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-accent);
}
.timeline-item .year { font-size: 14px; font-weight: 700; color: var(--c-accent); }
.timeline-item h4 { font-size: 16px; color: var(--c-primary); margin: 4px 0 6px; }
.timeline-item p { font-size: 14px; color: var(--c-muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { background: var(--c-primary); color: #fff; padding: 36px; border-radius: var(--radius); }
.contact-info h3 { font-size: 22px; margin: 0 0 16px; }
.contact-info p { color: rgba(255,255,255,0.85); font-size: 14px; line-height: 1.7; margin: 0 0 24px; }
.contact-info .ci-item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-info .ci-item:first-of-type { border-top: 0; }
.contact-info .ci-item .lbl { font-size: 12px; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.contact-info .ci-item .val { font-size: 15px; color: #fff; }
.contact-info .ci-item a { color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: all .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .nc-img { height: 200px; background-size: cover; background-position: center; background-color: var(--c-primary); }
.news-card .nc-body { padding: 20px 24px 24px; }
.news-card .nc-meta { font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.news-card .nc-meta span.cat { color: var(--c-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.news-card h3 { font-size: 17px; color: var(--c-primary); margin: 0 0 8px; line-height: 1.4; }
.news-card p { font-size: 13px; color: var(--c-muted); margin: 0 0 12px; line-height: 1.6; }
.news-card a.read-more { color: var(--c-accent); font-size: 13px; font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
  .cb-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .content-block h2 { font-size: 24px; }
  .cb-grid .img { height: 220px; }
  .fact-card .num { font-size: 32px; }
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  margin-bottom: 10px; transition: border-color .2s;
}
.faq-item:hover { border-color: var(--c-accent); }
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--c-primary);
  font-size: 15px; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--c-accent); font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 24px 18px; margin: 0; color: var(--c-text); font-size: 14px; line-height: 1.7;
}

/* ---------- News filters ---------- */
.news-filters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 8px; }
.news-filters .nf {
  padding: 8px 20px; border: 1px solid var(--c-border); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--c-muted); cursor: pointer;
  background: #fff; transition: all .2s;
}
.news-filters .nf:hover, .news-filters .nf.active { border-color: var(--c-accent); color: var(--c-accent); background: #fff; }
.news-filters .nf.active { background: var(--c-accent); color: #fff; }

.featured-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin: 32px 0; align-items: center; }
.featured-news .fn-img { height: 320px; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-news h2 { color: var(--c-primary); font-size: 26px; margin: 12px 0; line-height: 1.3; }
.featured-news .fn-meta { font-size: 13px; color: var(--c-muted); }
.featured-news .fn-meta span.cat { color: var(--c-accent); font-weight: 600; text-transform: uppercase; }
.featured-news p { color: var(--c-text); font-size: 15px; line-height: 1.7; margin: 16px 0; }
.featured-news a.read-more { color: var(--c-accent); font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .featured-news { grid-template-columns: 1fr; }
  .featured-news .fn-img { height: 200px; }
  .featured-news h2 { font-size: 20px; }
}
/* === Product advantage strip (per product section) === */
.adv-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 8px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f5fafc 0%, #e9f3f8 100%);
  border-left: 4px solid var(--c-accent);
  border-radius: 4px;
}
.adv-strip .adv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.adv-strip .adv-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.adv-strip .adv-item > div:last-child { flex: 1; }
.adv-strip .adv-item strong {
  display: block;
  color: var(--c-primary);
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 3px;
}
.adv-strip .adv-item span {
  display: block;
  color: var(--c-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .adv-strip { grid-template-columns: 1fr; padding: 18px; }
}

/* === Why Hua Quan band (products page) === */
.why-band { padding: 64px 0; background: var(--c-bg-alt, #f8fafc); }
.why-band .section-head { text-align: center; margin-bottom: 40px; }
.why-band .section-head p { max-width: 760px; margin: 12px auto 0; }
