/* ============================================================
   Shenzhen Sourcing — Global Stylesheet
   Modern Western B2B: white bg, navy primary, teal/orange accent
   ============================================================ */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4277;
  --teal: #0e9594;
  --teal-dark: #0b7a79;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-navy-soft: #eef3f9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.07);
  --shadow-lg: 0 4px 12px rgba(11, 37, 69, 0.08), 0 20px 48px rgba(11, 37, 69, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.5px;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal-dark); text-decoration: none; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #16436e 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 .accent { color: #2dd4bf; }
.hero-sub { margin-top: 10px; font-size: 22px; font-weight: 600; color: #9fd8d7; }
.hero-copy { margin-top: 18px; font-size: 17px; color: #c7d5e8; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #c7d5e8; }
.hero-points svg { width: 16px; height: 16px; stroke: #2dd4bf; }
.hero-art { display: flex; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 32px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--bg-navy-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); }
.card h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; align-items: flex-start;
}
.step-num {
  counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--teal-dark); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 70%, #17518a 100%);
  color: #fff; border-radius: 18px; padding: 52px 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-band h2 { font-size: 30px; letter-spacing: -0.01em; }
.cta-band p { color: #c7d5e8; max-width: 560px; }
.cta-band .btn-primary { margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #16436e 100%); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 38px; letter-spacing: -0.01em; }
.page-hero p { margin-top: 12px; color: #c7d5e8; max-width: 640px; font-size: 16.5px; }
.breadcrumb { font-size: 13.5px; color: #9fb3cf; margin-bottom: 14px; }
.breadcrumb a { color: #9fb3cf; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; color: var(--navy); margin: 40px 0 14px; }
.prose h3 { font-size: 19px; color: var(--navy); margin: 28px 0 10px; }
.prose p, .prose li { color: #334155; font-size: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 12px 0; display: grid; gap: 6px; }
.prose blockquote {
  border-left: 3px solid var(--teal); background: var(--bg-soft);
  padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--navy);
}
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--navy); }

/* ---------- Quote form ---------- */
.wizard { max-width: 780px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.wstep { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); position: relative; padding-top: 30px; }
.wstep::before {
  content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px;
}
.wstep.active { color: var(--navy); }
.wstep.active::before { background: var(--navy); color: #fff; }
.wstep.done::before { content: "✓"; background: var(--teal); color: #fff; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.form-hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid #cbd5e1;
  border-radius: 9px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 149, 148, 0.14);
}
.field .err { color: #dc2626; font-size: 12.5px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #dc2626; }
.field.invalid .err { display: block; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; cursor: pointer; font-size: 14.5px; }
.check-item input { margin-top: 3px; accent-color: var(--teal); }
.check-item.checked { border-color: var(--teal); background: #f0faf9; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.upload-box {
  border: 2px dashed #cbd5e1; border-radius: 10px; padding: 22px; text-align: center;
  color: var(--muted); font-size: 14px; cursor: pointer; background: var(--bg-soft);
}
.upload-box:hover { border-color: var(--teal); }
.upload-box img { max-height: 180px; margin: 10px auto 0; border-radius: 8px; }
.review-list { display: grid; gap: 8px; font-size: 14.5px; }
.review-list .row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.review-list .row .k { color: var(--muted); }
.review-list .row .v { color: var(--ink); word-break: break-word; }
.success-panel { text-align: center; padding: 30px 10px; }
.success-panel .tick {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 30px;
}
.success-panel h2 { color: var(--navy); }
.lead-no-chip { display: inline-block; background: var(--bg-navy-soft); color: var(--navy); font-weight: 700; padding: 8px 18px; border-radius: 999px; margin: 14px 0; font-size: 16px; letter-spacing: 0.03em; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; background: var(--bg-soft); }
.admin-topbar { background: var(--navy); color: #fff; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .brand { color: #fff; font-size: 16px; }
.admin-topbar .brand-mark { width: 30px; height: 30px; font-size: 12px; }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.admin-user button { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-family: inherit; }
.admin-body { max-width: 1160px; margin: 0 auto; padding: 28px 24px 64px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type="search"] { padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 14px; min-width: 220px; font-family: inherit; }
.toolbar select { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 14px; font-family: inherit; }
.lead-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: collapse; font-size: 14px; }
.lead-table th { background: var(--bg-soft); text-align: left; padding: 12px 14px; color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.lead-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.lead-table tr.clickable { cursor: pointer; }
.lead-table tr.clickable:hover { background: #f8fafc; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-New { background: #dbeafe; color: #1d4ed8; }
.badge-Contacted { background: #fef3c7; color: #b45309; }
.badge-RequirementsConfirmed { background: #e0e7ff; color: #4338ca; }
.badge-Sourcing { background: #cffafe; color: #0e7490; }
.badge-Quoted { background: #d1fae5; color: #047857; }
.badge-Negotiating { background: #fce7f3; color: #be185d; }
.badge-Won { background: #dcfce7; color: #15803d; }
.badge-Lost { background: #f1f5f9; color: #64748b; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); padding: 24px; }
.login-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-panel h3 { color: var(--navy); font-size: 16px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); word-break: break-word; }
.activity-item { border-left: 3px solid var(--teal); padding: 8px 14px; background: var(--bg-soft); border-radius: 0 8px 8px 0; margin-bottom: 10px; font-size: 13.5px; }
.activity-item .meta { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.lead-img { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: 14px; margin-bottom: 18px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 56px; height: 56px;
  border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45); transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b7c6dc; margin-top: 0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
.site-footer a { color: #b7c6dc; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.note-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 18px; font-size: 14px; color: #92400e; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: var(--bg-navy-soft); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.msg { padding: 12px 16px; border-radius: 9px; font-size: 14px; margin: 14px 0; display: none; }
.msg-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.msg-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 64px; }
  .hero h1 { font-size: 36px; }
  .hero-art { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 18px 24px; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .form-grid, .check-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-band { padding: 38px 24px; }
  .form-card { padding: 22px; }
  .review-list .row { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
