/* ===========================================================
   North China Source — Motorcycle Helmets
   Shared stylesheet (subdirectory deployment: /helmets/)
   =========================================================== */

:root {
  --carbon: #0d1117;
  --carbon-2: #141b23;
  --steel: #222d38;
  --ink: #161d24;
  --slate: #4a5b67;
  --grey: #7d8a94;
  --line: #e3e8ec;
  --mist: #f4f6f8;
  --paper: #ffffff;
  --accent: #e0362b;      /* racing red */
  --accent-dark: #b8271e;
  --accent-tint: #fdeceb;
  --amber: #f2a71b;
  --ok: #2e7d5b;
  --radius: 6px;
  --radius-lg: 12px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(13, 17, 23, .06), 0 10px 28px -14px rgba(13, 17, 23, .25);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: .98rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--slate); }

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

/* ---------- top bar ---------- */
.topbar { background: #000; color: #9aa7b1; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e6ecf0; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 17, 23, .97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid #232c35;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 38px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.brand-name { color: #fff; font-weight: 750; font-size: 1.02rem; line-height: 1.2; }
.brand-name small { display: block; color: #8d9aa5; font-weight: 500; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: #cdd7de; font-size: .92rem; font-weight: 550;
  padding: 9px 13px; border-radius: 6px;
}
.nav a:hover { color: #fff; background: #1d262f; text-decoration: none; }
.nav a.active { color: #fff; background: var(--accent); }
.nav-cta { margin-left: 10px; background: var(--accent); color: #fff !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; background: none; border: 1px solid #39434d; color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--carbon-2); flex-direction: column; align-items: stretch;
    padding: 12px 20px 18px; gap: 2px; border-bottom: 1px solid #232c35;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(224, 54, 43, .28), transparent 62%),
    radial-gradient(900px 480px at 12% 110%, rgba(242, 167, 27, .10), transparent 60%),
    linear-gradient(160deg, #10161d 0%, #0d1117 55%, #0a0e13 100%);
  color: #eef2f5;
  padding: 84px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #b8c4cd; font-size: 1.08rem; max-width: 34em; }
.hero-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  border: 1px solid #2a333d;
  background: #fff;
}
.hero-img img { width: 100%; height: auto; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 7px;
  font-weight: 650; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost-dark { border-color: #4a5560; color: #e6ecf0; }
.btn-ghost-dark:hover { border-color: #fff; }
.btn-ghost { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-ghost:hover { background: var(--accent-tint); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 54px 0; }
.dark { background: var(--carbon); color: #d5dde3; }
.dark h2, .dark h3 { color: #fff; }
.mist { background: var(--mist); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head .kicker { color: var(--accent-dark); }
.sec-head .kicker::before { background: var(--accent); }
.dark .sec-head .kicker { color: var(--amber); }
.dark .sec-head .kicker::before { background: var(--amber); }
.dark p { color: #aab6c0; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--carbon-2); border: 1px solid #232c35; border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: left;
}
.stat b { display: block; font-size: 2rem; color: #fff; letter-spacing: -.02em; }
.stat b i { font-style: normal; color: var(--accent); }
.stat span { color: #93a1ac; font-size: .88rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- model cards ---------- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.model-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.model-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -16px rgba(13,17,23,.35); }
.model-card .ph { background: #fff; padding: 18px; display: grid; place-items: center; min-height: 300px; }
.model-card .ph img { max-height: 270px; width: auto; object-fit: contain; }
.model-card .bd { padding: 20px 22px 22px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.model-code { font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--accent-dark); text-transform: uppercase; }
.model-card h3 { margin: 6px 0 8px; font-size: 1.28rem; }
.model-card p { color: var(--slate); font-size: .93rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.chip {
  font-size: .74rem; font-weight: 600; color: var(--slate);
  background: var(--mist); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 20px;
}
.chip.hot { background: var(--accent-tint); color: var(--accent-dark); border-color: #f3c1bd; }
@media (max-width: 960px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .model-grid { grid-template-columns: 1fr; } }

/* ---------- feature blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.dark .feature { background: var(--carbon-2); border-color: #232c35; box-shadow: none; }
.feature .ic {
  width: 46px; height: 46px; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px;
}
.dark .feature .ic { background: rgba(224,54,43,.16); color: #ff7a70; }
.feature h3 { font-size: 1.06rem; }
.feature p { font-size: .92rem; color: var(--slate); margin: 0; }
.dark .feature p { color: #9aa7b1; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.dark .split .media { border-color: #232c35; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin: 11px 0; color: var(--slate); }
.dark .check-list li { color: #b6c2cb; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 11px 14px; font-size: .9rem; text-align: left; vertical-align: top; }
.spec-table th { background: var(--carbon); color: #fff; font-weight: 650; white-space: nowrap; }
.spec-table td b { color: var(--ink); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 2rem; font-weight: 800; color: #eef1f4;
  position: absolute; top: 14px; right: 18px; letter-spacing: -.04em;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: .9rem; color: var(--slate); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; padding: 58px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: 6px 0 0; color: #ffe1de; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: #ffe9e7; }

/* ---------- footer ---------- */
footer { background: #0a0e13; color: #8d9aa5; padding: 52px 0 30px; font-size: .9rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-size: .95rem; }
footer a { color: #b9c4cc; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 7px 0; }
.foot-note { border-top: 1px solid #1c242d; margin-top: 38px; padding-top: 20px; text-align: center; color: #66727c; font-size: .82rem; }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- page banner (inner pages) ---------- */
.page-banner {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(224,54,43,.30), transparent 60%),
    linear-gradient(160deg, #10161d, #0d1117);
  color: #fff; padding: 58px 0 46px;
}
.page-banner h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-banner p { color: #aab6c0; margin: 0; max-width: 46em; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .86rem; font-weight: 600; color: var(--slate); display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cdd6dc; border-radius: 7px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(224,54,43,.35); border-color: var(--accent); }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: .92rem; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f5ee; border: 1px solid #bfe3d0; color: #1d5c40; }
.form-status.err { background: var(--accent-tint); border: 1px solid #f3c1bd; color: var(--accent-dark); }
.honeypot { display: none !important; }

/* ---------- contact layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--carbon); color: #cdd7de; border-radius: var(--radius-lg); padding: 30px 28px; }
.info-card h3 { color: #fff; }
.info-card a { color: #ffb4ae; }
.info-card b { color: #fff; }

/* misc */
.small { font-size: .85rem; color: var(--grey); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.img-note { font-size: .78rem; color: var(--grey); margin-top: 10px; }
