/* ChinaManufacturers.com — shared site stylesheet
   Extends the design already established on the homepage (index.html):
   Inter typeface, dark header/footer (#111827), blue CTA (#1d4ed8),
   light card grid (#f3f4f6 / white cards with soft shadow).
   New in this file: nav bar, breadcrumbs, article/prose styles,
   related-guides cards, callout boxes, and a secondary button style —
   all built from the same tokens so new pages look native to the site. */

:root {
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --bg: #f9fafb;
  --bg-muted: #f3f4f6;
  --dark: #111827;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --border: #e5e7eb;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
}

a { color: var(--blue); }

/* ---------- Header ---------- */
header.site-header {
  background-color: var(--dark);
  color: white;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}
header.site-header h1 { font-size: 2rem; margin: 0; }
header.site-header h1 a { color: white; text-decoration: none; }
header.site-header p.tagline { color: #d1d5db; margin: 0.5rem 0 0; }

/* ---------- Primary nav ---------- */
nav.site-nav {
  background-color: #1f2937;
  border-top: 1px solid #374151;
}
nav.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
}
nav.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: white; text-decoration: underline; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Hero (pillar / hub pages) ---------- */
.hero {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #ffffff;
}
.hero h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.hero p { font-size: 1rem; color: var(--ink-soft); max-width: 700px; margin: 0 auto; }
.cta { margin-top: 2rem; }
.cta a,
.btn {
  display: inline-block;
  background-color: var(--blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.cta a:hover, .btn:hover { background-color: var(--blue-dark); }
.btn-secondary {
  background-color: white;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover { background-color: #eff6ff; }

/* ---------- Feature / card grid (reused for hub + related-guides) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: var(--bg-muted);
}
.feature {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}
.feature h3 { margin-top: 0; color: var(--dark); font-size: 1.1rem; }
.feature p { color: var(--ink-soft); flex-grow: 1; }
.feature a.feature-link {
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.feature a.feature-link:hover { text-decoration: underline; }

/* ---------- Article / long-form content ---------- */
main.article {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem 2rem 3rem;
}
main.article h1 { font-size: 2rem; margin-bottom: 0.25rem; }
main.article .dek { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0; margin-bottom: 2rem; }
main.article h2 { font-size: 1.4rem; margin-top: 2.25rem; color: var(--dark); }
main.article h3 { font-size: 1.15rem; margin-top: 1.75rem; color: var(--dark); }
main.article p { margin: 1rem 0; }
main.article ul, main.article ol { margin: 1rem 0; padding-left: 1.4rem; }
main.article li { margin: 0.4rem 0; }
main.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
main.article th, main.article td { text-align: left; padding: 0.6rem 0.75rem; border: 1px solid var(--border); }
main.article th { background: var(--bg-muted); }

/* Callout boxes for warnings / tips inside articles */
.callout {
  border-left: 4px solid var(--blue);
  background: #eff6ff;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}
.callout.warning { border-left-color: #b45309; background: #fffbeb; }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5rem; }
.callout strong { display: block; margin-bottom: 0.25rem; color: var(--dark); }

/* ---------- Related guides section ---------- */
.related {
  padding: 2rem;
  background-color: var(--bg-muted);
}
.related h2 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--dark);
  margin-top: 0;
}

/* ---------- Footer ---------- */
footer.site-footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--dark);
  color: white;
  font-size: 0.875rem;
}
footer.site-footer nav {
  margin-bottom: 0.75rem;
}
footer.site-footer nav a {
  color: #d1d5db;
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 0.85rem;
}
footer.site-footer nav a:hover { color: white; text-decoration: underline; }
footer.site-footer nav.legal { margin-bottom: 0.5rem; }
footer.site-footer nav.legal a { font-size: 0.78rem; color: #9ca3af; margin: 0 0.5rem; }
footer.site-footer nav.legal a:hover { color: white; }

/* ---------- Tools (calculators, forms) ---------- */
.tool-box {
  max-width: 780px;
  margin: 2rem auto;
  background: var(--bg-muted);
  border-radius: 0.5rem;
  padding: 1.75rem;
}
.tool-box h2 { margin-top: 0; font-size: 1.2rem; color: var(--dark); }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.tool-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.tool-field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.tool-result {
  margin-top: 1.25rem;
  background: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}
.tool-result .total { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.tool-result table { width: 100%; margin-top: 0.75rem; font-size: 0.9rem; }
.tool-result td { padding: 0.3rem 0; }
.tool-result td:last-child { text-align: right; font-weight: 600; }

/* ---------- Simple contact form ---------- */
.contact-form { max-width: 560px; margin: 1.5rem auto 0; }
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.35rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.contact-form button {
  margin-top: 1.5rem;
  background-color: var(--blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.contact-form button:hover { background-color: var(--blue-dark); }

/* ---------- Glossary ---------- */
.glossary-list dt {
  font-weight: 800;
  color: var(--dark);
  margin-top: 1.75rem;
  font-size: 1.05rem;
}
.glossary-list dd { margin: 0.35rem 0 0; color: var(--ink); }

/* ---------- Legal pages ---------- */
main.article.legal h2 { margin-top: 2rem; }
main.article.legal p, main.article.legal li { color: var(--ink-soft); }
.updated-date { font-size: 0.85rem; color: var(--ink-soft); margin-top: -1.5rem; margin-bottom: 2rem; }
