/* China Sourcing Partner — static site styles
   Pure CSS, no frameworks. Shared by index.html, request.html, privacy.html. */

:root {
  --ink: #151a20;
  --muted: #5d6672;
  --faint: #8a93a0;
  --bg: #ffffff;
  --card: #f6f7f9;
  --line: #e5e8ec;
  --brand: #1b6ac9;
  --brand-dark: #155aa9;
  --dark: #10151b;
  --dark-2: #1a2129;
  --ok: #1a7f4b;
  --err: #c0392b;
  --radius: 16px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue",
           Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

/* ---------- Floating pill navigation ---------- */
.site-nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(1120px, calc(100% - 32px));
  display: flex; align-items: center; gap: 8px;
  background: rgba(16, 21, 27, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 10px 12px 10px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { color: #fff; font-weight: 700; font-size: 0.98rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: #d5dbe3; text-decoration: none; font-size: 0.92rem;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; border-radius: 999px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: var(--dark) url("../img/hero.jpg") center / cover no-repeat;
  padding: 190px 0 120px; margin-bottom: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,18,0.62), rgba(10,14,18,0.78));
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); max-width: 760px; margin-bottom: 18px; }
.hero .sub { font-size: 1.18rem; color: #dfe5ec; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-points { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: #eef2f7; font-weight: 600; font-size: 0.98rem; }
.hero-points svg { width: 20px; height: 20px; flex: none; }

/* ---------- Services ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; color: var(--faint); }
.card h3 { font-size: 1.28rem; margin: 0; }
.card h4 {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 6px 0 0;
}
.card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.card ul li { margin-bottom: 6px; }
.scope-note {
  margin-top: 28px; padding: 18px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--muted); font-size: 0.95rem; max-width: 860px;
}

/* ---------- Example table ---------- */
.example { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fiction-badge {
  display: inline-block; margin-top: 16px;
  background: #fff8e6; border: 1px solid #ecd27a; color: #7a5c14;
  font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 6px 16px;
}
.table-scroll { overflow-x: auto; margin-top: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.sample { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.94rem; }
table.sample th, table.sample td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.sample thead th { background: var(--dark); color: #fff; font-size: 0.9rem; }
table.sample tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; background: #fafbfc; width: 220px; }
table.sample tbody tr:last-child th, table.sample tbody tr:last-child td { border-bottom: 0; }
table.sample td { color: var(--muted); }

/* ---------- How I work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; background: #fff;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- About ---------- */
.about { background: var(--dark); color: #eef2f7; }
.about .eyebrow { color: #7fb3f0; }
.about p { color: #c6cdd6; max-width: 720px; }
.about strong { color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 800px; }
details.faq {
  border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--brand); flex: none;
  transition: transform 0.15s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 22px 20px; color: var(--muted); }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-band p { color: #dbe9fb; max-width: 600px; margin: 0 auto 28px; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn:hover { background: #eef4fc; border-color: #eef4fc; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--dark); color: #aeb7c2; padding: 64px 0 32px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { max-width: 340px; }
.footer-brand .brand-name { color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aeb7c2; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: #7d8794;
}

/* ---------- Request page ---------- */
.page-head { padding: 170px 0 40px; }
.req-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; padding-bottom: 88px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
}
#form-status { margin-bottom: 20px; }
.status {
  border-radius: 12px; padding: 16px 20px; font-size: 0.96rem; display: none;
}
.status.show { display: block; }
.status.ok { background: #e9f6ef; border: 1px solid #bfe3cf; color: #14532d; }
.status.err { background: #fdecea; border: 1px solid #f3c1bb; color: #7a2015; }
.status.info { background: #e8f1fd; border: 1px solid #bcd7f7; color: #174a86; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.req-star { color: var(--err); }
.opt-tag { font-weight: 400; color: var(--faint); font-size: 0.85rem; }
.field input[type="text"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem;
  border: 1px solid #cfd5dc; border-radius: 10px; padding: 12px 14px;
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field .hint { font-size: 0.85rem; color: var(--faint); margin-top: 6px; }
.field .ferr { display: none; font-size: 0.85rem; color: var(--err); margin-top: 6px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field.invalid .ferr { display: block; }
fieldset.group { border: 0; padding: 0; margin: 0 0 28px; }
fieldset.group legend { font-size: 1.08rem; font-weight: 800; padding: 0; margin-bottom: 18px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 0.88rem; color: var(--faint); margin: 0; }

.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.info-card ul, .info-card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.94rem; }
.info-card li { margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Privacy page ---------- */
.legal { max-width: 780px; padding-bottom: 88px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal ul { color: var(--muted); }
.legal li { margin-bottom: 8px; }
.pending {
  background: #fff8e6; border: 1px solid #ecd27a; border-radius: 12px;
  padding: 22px 26px; margin-top: 32px;
}
.pending h2 { margin-top: 0; color: #7a5c14; font-size: 1.15rem; }
.pending ul { color: #6b5416; }
.updated { color: var(--faint); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards3, .steps { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    background: var(--dark-2); border-radius: 20px; padding: 12px;
    flex-direction: column; align-items: stretch;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-links .btn-sm { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .page-head { padding-top: 150px; }
  .form-card { padding: 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 0.88rem; }
}
