/* ============================================================
   Kangpu Antimicrobial Cotton — B2B site skeleton styles
   ============================================================ */
:root {
  --brand: #0C447C;
  --brand-2: #185FA5;
  --accent: #0F6E56;
  --accent-soft: #E1F5EE;
  --blue-soft: #E6F1FB;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 10px;
  --container: 1120px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.logo .logo-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all .15s;
}
.main-nav a:hover { color: var(--brand-2); background: var(--blue-soft); }
.main-nav a.active { color: var(--brand); background: var(--blue-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: all .15s;
}
.lang-toggle:hover { border-color: var(--brand-2); background: var(--blue-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand-2); background: var(--blue-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ---------- Page hero (title + one-line positioning) ---------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand);
  margin-bottom: 14px;
}
.page-hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Home hero ---------- */
.home-hero {
  background: linear-gradient(rgba(10,30,50,0.82), rgba(12,68,124,0.72)), url('../images/hero-cotton.png') center/cover no-repeat;
  color: #fff;
  padding: 110px 0 84px;
}
.home-hero .eyebrow { color: rgba(255,255,255,0.85); }
.home-hero h1 { color: #fff; font-size: 52px; font-weight: 700; line-height: 1.15; margin: 12px 0 16px; max-width: 760px; }
.home-hero .lede { color: rgba(255,255,255,0.92); font-size: 18px; max-width: 640px; }
.home-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.home-hero .btn-primary { background: #fff; color: var(--brand); }
.home-hero .btn-primary:hover { background: #eef3fa; }
.home-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.home-hero .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Stats band ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 0; }
.stat { text-align: center; }
.stat .stat-value { font-size: 24px; font-weight: 700; color: var(--brand); line-height: 1.3; white-space: nowrap; }
.stat .stat-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.25; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(12,68,124,0.1); }
.card .card-tag { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 18px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- App cards (image + text) ---------- */
.app-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(12,68,124,0.12); }
.app-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.app-card .app-card-body { padding: 18px 20px; }
.app-card h3 { font-size: 17px; font-weight: 600; color: var(--brand); margin-bottom: 6px; }
.app-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-soft); }
.cta-band .inner { text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 28px; font-weight: 700; color: var(--brand); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Contact form ---------- */
.contact-section { padding: 64px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 20px; font-weight: 600; color: var(--brand); margin-bottom: 12px; }
.contact-info p { color: var(--muted); margin-bottom: 8px; }
.contact-form .form-field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand-2); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #E24B4A; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Home responsive ---------- */
@media (max-width: 920px) {
  .home-hero h1 { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0B1F33;
  color: #CBD5E1;
  padding: 56px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo .logo-sub { color: #94A3B8; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #94A3B8; max-width: 280px; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #94A3B8;
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94A3B8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page-hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}
