/* ============================================================
   ChinaCustomParts — global stylesheet
   Palette: deep navy #0f172a / steel blue #1e40af / white / light gray
   ============================================================ */

:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --steel-700: #1e40af;
  --steel-600: #1d4ed8;
  --steel-100: #dbeafe;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --amber-bg: #fffbeb;
  --amber-border: #fcd34d;
  --amber-text: #92400e;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--steel-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-muted { color: var(--muted); }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 14px 20px;
}

.logo {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.logo span { color: var(--steel-700); }
.logo:hover { text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1.15rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--navy-800);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem 0;
}
.main-nav a:hover { color: var(--steel-700); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--steel-700);
  font-weight: 700;
  border-bottom: 2px solid var(--steel-700);
}

.nav-cta {
  background: var(--steel-600) !important;
  color: #fff !important;
  padding: .5rem .95rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  margin-left: .4rem;
}
.nav-cta:hover { background: #1e3a8a !important; text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--steel-600);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.4rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { background: #1e3a8a; text-decoration: none; color: #fff; }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--steel-700);
  border-color: var(--steel-700);
}
.btn--outline:hover { background: var(--steel-100); }

.btn--sm {
  font-size: .85rem;
  padding: .5rem 1rem;
}

/* ---------- Hero (homepage) ---------- */

.hero {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(700px 420px at 90% -10%, rgba(30, 64, 175, .6), transparent 60%),
    radial-gradient(500px 320px at -5% 110%, rgba(30, 64, 175, .35), transparent 60%);
  color: #fff;
  padding: 92px 0 80px;
}

.hero .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, .35);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -.02em;
  margin: 0 0 .35em;
}

.hero .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: #e2e8f0;
  max-width: 26em;
  margin: 0 0 .6em;
  line-height: 1.45;
}

.hero p.sub {
  color: #cbd5e1;
  max-width: 70ch;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin-top: 2rem;
}

.hero-note {
  color: #94a3b8;
  font-size: .85rem;
  margin-top: 1.1rem;
}

/* ---------- Sections ---------- */

.section { padding: 68px 0; }
.section--alt { background: var(--white); }
.section--tight { padding: 44px 0; }

.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.section-head p { color: var(--muted); max-width: 74ch; margin: .4rem 0 0; }

.lede { font-size: 1.12rem; color: #475569; max-width: 78ch; }

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: #bfdbfe; }

.card .card-title { font-size: 1.16rem; margin: 0; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .card-link {
  margin-top: auto;
  color: var(--steel-700);
  font-weight: 600;
  font-size: .92rem;
  padding-top: .4rem;
}
.card .card-link:hover { text-decoration: underline; }

.tag {
  align-self: flex-start;
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .28rem .65rem;
  background: #e0e7ff;
  color: #3730a3;
}
.tag--amber { background: #fef3c7; color: #92400e; }
.tag--neutral { background: #f1f5f9; color: #475569; }

/* ---------- Placeholder / notice boxes ---------- */

.note-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: var(--amber-text);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  margin: 1.4rem 0;
}
.note-box strong { color: #78350f; }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */

.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  padding: 18px 20px 0;
  max-width: 1140px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--steel-700); }
.breadcrumb .sep { margin: 0 .5rem; color: #94a3b8; }
.breadcrumb [aria-current="page"] { color: var(--muted); }

/* ---------- Interior page header ---------- */

.page-head { padding: 46px 0 10px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page-head .lede { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-900);
  color: #fff;
  padding: 62px 0;
}
.cta-band .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #cbd5e1; margin: 0; max-width: 60ch; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 820px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.4rem;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-900);
  margin-bottom: .4rem;
}
.req { color: #b91c1c; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--steel-100);
  border-color: var(--steel-600);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.4rem 0; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
}
.table th {
  background: #f1f5f9;
  color: var(--navy-900);
  text-align: left;
  font-weight: 700;
  padding: .8rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: none; }
.table .status { font-size: .8rem; font-weight: 600; color: #b45309; }

/* ---------- Trust band ---------- */

.trust-item h3 { font-size: 1.08rem; }
.trust-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0b1120;
  color: #94a3b8;
  font-size: .95rem;
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.4rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.footer-logo { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; }
.footer-logo span { color: #60a5fa; }

.site-footer h4 {
  color: #e2e8f0;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .8rem;
}
.site-footer a { color: #94a3b8; display: inline-block; margin-bottom: .4rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-col p { margin-bottom: .6rem; }
.footer-col--links { display: flex; flex-direction: column; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  font-size: .84rem;
  color: #64748b;
}
.footer-bottom p { margin: 0 0 .4rem; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 90px 20px; }
.notfound .code {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--steel-100);
  line-height: 1;
}
.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1.6rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav { margin-left: 0; }
  .header-inner { padding: 12px 20px; }
  .hero { padding: 68px 0 60px; }
  .section { padding: 48px 0; }
}

@media (max-width: 820px) {
  .main-nav {
    flex: 1 1 100%;
    order: 3;
    border-top: 1px solid var(--border);
    padding-top: .6rem;
    gap: .3rem 1rem;
  }
  .main-nav a[aria-current="page"] { border-bottom: none; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .form-card { padding: 1.4rem; }
  .footer-bottom { text-align: left; }
}
