/* ============================================================
   Bangding Technology — Site Stylesheet
   ============================================================ */
:root {
  --c-primary: #008037;      /* Bangding brand green */
  --c-primary-dark: #02552c;
  --c-accent: #f5a623;       /* UV amber */
  --c-ink: #1c2733;
  --c-ink-soft: #55677a;
  --c-bg: #ffffff;
  --c-bg-soft: #f3f9f5;
  --c-line: #dfeae3;
  --radius: 10px;
  --max-w: 1120px;
  --shadow: 0 8px 24px rgba(0, 128, 55, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--c-ink); }
.logo:hover { text-decoration: none; }
.logo img { height: 44px; width: auto; display: block; }

.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  color: var(--c-ink); font-weight: 600; font-size: 15px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--c-primary); border-bottom-color: var(--c-accent); text-decoration: none;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--c-ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(2,60,32,.93) 0%, rgba(0,100,47,.87) 55%, rgba(10,161,92,.80) 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  color: #fff;
  padding: 96px 0 110px;
}
.hero .eyebrow {
  display: inline-block; background: rgba(245,166,35,.15); color: var(--c-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(245,166,35,.4);
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.15; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero p.lead { margin: 20px 0 32px; font-size: 18px; max-width: 620px; color: #dbe7f4; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; transition: .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #221a00; }
.btn-primary:hover { background: #ffb733; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; margin-left: 12px; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--c-bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--c-primary); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 12px; }
.section-head p { color: var(--c-ink-soft); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,128,55,.14); }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--c-ink-soft); font-size: 14.5px; }
.card-media {
  margin: -26px -26px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), #0aa15c);
  display: flex; align-items: center; justify-content: center;
}
.card .card-icon svg { width: 24px; height: 24px; stroke: #fff; }
.card .tag {
  display: inline-block; margin: 4px 6px 0 0; font-size: 12px; font-weight: 600;
  color: var(--c-primary-dark); background: #e6f4ec; padding: 3px 10px; border-radius: 999px;
}
.card a.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; }

/* Feature list */
.feature-list { list-style: none; }
.feature-list li { padding-left: 30px; position: relative; margin-bottom: 14px; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-accent); color: #221a00; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-size: clamp(26px, 3.4vw, 40px); color: var(--c-primary); display: block; }
.stat span { color: var(--c-ink-soft); font-size: 14px; }

/* Factory gallery (About page) */
.about-banner {
  width: 100%; max-width: 760px; display: block; margin: 0 auto 34px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure {
  margin: 0; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 215px; object-fit: cover; display: block; }
.gallery figure.contain img { object-fit: contain; background: #fff; height: 215px; padding: 8px; }
.gallery figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--c-ink-soft); font-weight: 600; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; text-align: center; padding: 64px 20px; border-radius: var(--radius);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.cta-band p { color: #cfe9dc; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1826; color: #9fb2c5; margin-top: 76px; font-size: 14px; }
.site-footer .cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 52px 0 34px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fb2c5; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #22354b; padding: 18px 0; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px;
}

/* ---------- Page banner (subpages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; padding: 56px 0;
}
.page-banner h1 { font-size: clamp(26px, 3.6vw, 38px); }
.page-banner p { color: #cfdeee; margin-top: 8px; }
.breadcrumb { font-size: 13px; color: #9fc0e2; margin-bottom: 10px; }
.breadcrumb a { color: #cfe2f5; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; }
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 16px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .ico {
  flex: 0 0 38px; height: 38px; border-radius: 8px; background: #e6f4ec;
  display: flex; align-items: center; justify-content: center;
}
.contact-line .ico svg { width: 18px; height: 18px; stroke: var(--c-primary); }
.contact-line b { display: block; font-size: 14px; }
.contact-line p { color: var(--c-ink-soft); font-size: 14px; }
.notice {
  background: #fff8e6; border: 1px solid #f2d489; color: #7a5b00;
  padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 24px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 5px; }
input, textarea, select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--c-line);
  border-radius: 8px; font: inherit; color: var(--c-ink); background: #fbfdff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(0,128,55,.12);
}

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 110px 20px; }
.err-page h1 { font-size: clamp(48px, 8vw, 96px); color: var(--c-primary); }
.err-page p { color: var(--c-ink-soft); margin: 14px 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .contact-wrap { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .main-nav li { border-bottom: 1px solid var(--c-line); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 14px 0; }
}
