/*
Theme Name: Jinzhao Mould
Description: Custom injection moulds by drawing — static homepage with category and model content pages.
Version: 2.0
Author: Jinzhao Mould
Text Domain: jinzhao-mould
*/
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0f2a44;
  --navy-deep: #0b1f33;
  --steel: #5b6b7a;
  --steel-light: #e8edf2;
  --bg: #f5f7f9;
  --line: #dde3e8;
  --accent: #e07b1f;
  --accent-dark: #b95f0e;
  --wa: #25d366;
  --ink: #1e2a36;
  --muted: #5b6b7a;
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); line-height: 1.65; background: #fff; }
a { color: #14568f; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- header (sticky) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(15, 42, 68, 0.06); }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: 1.5px; color: var(--navy); white-space: nowrap; }
.logo a { color: var(--navy); }
.logo a:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.site-nav a { margin: 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); padding: 6px 2px; }
.site-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.site-nav .btn { margin-left: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline { display: inline-block; border: 2px solid #fff; color: #fff !important; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); text-decoration: none; }
.btn-navy { display: inline-block; background: var(--navy); color: #fff !important; padding: 12px 24px; border-radius: 6px; font-weight: 700; font-size: 15px; }
.btn-navy:hover { background: var(--navy-deep); text-decoration: none; }
.btn-wa { display: inline-block; background: var(--wa); color: #fff !important; padding: 11px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; }
.btn-wa:hover { text-decoration: none; filter: brightness(0.95); }

/* ---------- layout ---------- */
section { padding: 72px 32px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.kicker { color: var(--accent-dark); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
h1 { font-size: 52px; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 16px; }
.hero-inner h1, .page-hero-inner h1 { color: #fff; }
h2 { font-size: 30px; line-height: 1.25; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 10px; }
h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.sub { color: var(--muted); margin-bottom: 32px; max-width: 780px; font-size: 17px; }
.lead { font-size: 18px; color: rgba(255, 255, 255, 0.92); max-width: 640px; margin-bottom: 28px; }

/* ---------- hero (image background) ---------- */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--navy-deep); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 51, 0.92) 0%, rgba(11, 31, 51, 0.72) 52%, rgba(11, 31, 51, 0.25) 100%); }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 96px 32px 88px; }
.hero-eyebrow { color: #ffb066; font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin-bottom: 14px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- trust bar ---------- */
.trust { background: var(--navy); color: #fff; }
.trust-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 22px 32px; font-size: 15px; font-weight: 600; }
.trust-inner span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 10px; }

/* ---------- cards & grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 42, 68, 0.12); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--muted); font-size: 14.5px; }
.card-body .more { margin-top: auto; font-weight: 700; color: var(--accent-dark); }
.spec-rows { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--steel-light); margin-top: 6px; padding-top: 10px; display: grid; gap: 3px; }
.spec-rows b { color: var(--ink); font-weight: 600; }

/* ---------- steps / why ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { border-top: 4px solid var(--accent); padding-top: 16px; }
.step-num { font-size: 13px; color: var(--accent-dark); font-weight: 800; letter-spacing: 1.5px; }
.step p { color: var(--muted); font-size: 15px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; font-size: 15px; }
.why b { color: var(--navy); font-size: 16px; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); font-size: 17px; }
.faq p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 820px; }

/* ---------- page hero (category pages) ---------- */
.page-hero { position: relative; padding: 0; overflow: hidden; background: var(--navy-deep); }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 51, 0.9) 0%, rgba(11, 31, 51, 0.55) 65%, rgba(11, 31, 51, 0.2) 100%); }
.page-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 32px 56px; }
.page-hero-inner h1 { font-size: 42px; }
.crumb { font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }
.crumb a { color: rgba(255, 255, 255, 0.85); }
.crumb-light { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ---------- model page ---------- */
.model-feature { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
.model-feature img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.figcap { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 36px; font-size: 15px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.spec-table th { background: var(--bg); color: var(--navy); width: 220px; font-weight: 700; }
.spec-table tr:nth-child(even) td { background: #fbfcfd; }
.mat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.mat-chips span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.proc-list { margin: 0 0 36px 20px; color: var(--muted); }
.proc-list li { margin-bottom: 6px; }
.honesty-row { font-size: 13.5px; color: var(--muted); border-left: 3px solid var(--accent); background: #fdf8f2; padding: 12px 16px; margin-bottom: 36px; }

/* ---------- inquiry / contact ---------- */
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 22px; }
.contact-card h3 { margin-bottom: 12px; }
.contact-card .c-row { margin-bottom: 10px; font-size: 15.5px; }
.contact-card .c-row b { color: var(--navy); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px; }
.include-list { margin: 14px 0 0 20px; color: var(--muted); font-size: 15px; }
.include-list li { margin-bottom: 5px; }
.inquiry-grid input, .inquiry-grid textarea, .contact-grid input, .contact-grid textarea { width: 100%; padding: 11px 12px; margin-bottom: 12px; border: 1px solid #cbd5de; border-radius: 6px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; }
.inquiry-grid input::placeholder, .inquiry-grid textarea::placeholder, .contact-grid input::placeholder, .contact-grid textarea::placeholder { font-family: inherit; color: #94a3b8; }
.inquiry-grid button, .contact-grid button { background: var(--accent); color: #fff; border: none; padding: 12px 26px; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.inquiry-grid button:hover, .contact-grid button:hover { background: var(--accent-dark); }
.note { font-size: 13px; color: #8a99a8; }

/* ---------- WeChat QR popup (pure CSS :target) ---------- */
.qr-popup { display: none; position: fixed; inset: 0; background: rgba(11, 31, 51, 0.7); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.qr-popup:target { display: flex; }
.qr-box { background: #fff; border-radius: 14px; padding: 28px 28px 22px; text-align: center; max-width: 340px; }
.qr-box img { width: 260px; height: 260px; margin: 0 auto 12px; border-radius: 8px; }
.qr-box p { color: var(--muted); font-size: 14px; }
.qr-close { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent-dark); }

/* ---------- footer (full-width balanced) ---------- */
.site-footer { background: var(--navy-deep); color: #c7d2dc; font-size: 14.5px; }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 48px; }
.foot-grid b { color: #fff; font-size: 15px; letter-spacing: 0.5px; }
.foot-grid a { color: #c7d2dc; }
.foot-grid a:hover { color: #fff; }
.foot-grid .f-col { display: grid; gap: 8px; align-content: start; }
.foot-note { max-width: 1200px; margin: 36px auto 0; font-size: 13px; color: #8fa1b0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  section { padding: 52px 18px; }
  .site-header-inner { padding: 12px 18px; }
  .hero-inner { padding: 64px 18px 56px; }
  .page-hero-inner { padding: 48px 18px 40px; }
  h1 { font-size: 34px; }
  .page-hero-inner h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  .grid-4, .grid-3, .steps, .why, .inquiry-grid, .foot-grid { grid-template-columns: 1fr; }
  .trust-inner { padding: 18px; gap: 10px 20px; }
  .spec-table th { width: 140px; }
  .model-feature img { aspect-ratio: 16 / 10; }
}
.site-logo img, .foot-logo img { height: 40px; width: auto; display: block; }
.foot-logo { display: inline-block; margin-bottom: 8px; }
