/* CertiChina — site styles */
:root {
  --red: #e02424;
  --red-dark: #b81d1d;
  --ink: #1a2332;
  --slate: #4a5568;
  --muted: #7b8794;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 1px 3px rgba(26, 35, 50, .06);
  --shadow-lg: 0 8px 30px rgba(26, 35, 50, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: -.4px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--red); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--slate); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: .5rem 1.1rem;
  border-radius: 7px; font-weight: 600;
}
.nav-cta:hover { background: var(--red-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem; text-align: center;
  background:
    linear-gradient(rgba(16,20,28,.78), rgba(16,20,28,.50)),
    url('/images/hero.jpg?v=20260830') center 35% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 2.7rem; line-height: 1.15; letter-spacing: -.8px; max-width: 760px; margin: 0 auto 1.1rem; color: #fff; }
.hero h1 .accent { color: #ff9a9a; }
.hero p.lead { font-size: 1.2rem; color: #dce4ee; max-width: 640px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.hero .btn-ghost:hover { border-color: #fff; }

/* ---------- Photos ---------- */
.photo-wrap { max-width: 900px; margin: 2.2rem auto 0; }
.photo-wrap img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); display: block; }
.photo-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .7rem; }

.btn {
  display: inline-block; padding: .85rem 2rem; border-radius: 8px;
  font-size: 1.02rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head h2 { font-size: 2rem; letter-spacing: -.5px; margin-bottom: .8rem; }
.section-head p { color: var(--slate); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card .icon { font-size: 1.9rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.card p { color: var(--slate); font-size: .96rem; flex: 1; }
.card .link { margin-top: 1.3rem; color: var(--red); font-weight: 600; text-decoration: none; font-size: .94rem; }
.card .link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.8rem; box-shadow: var(--shadow); }
.step .num {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin-bottom: 1rem;
}
.step h4 { margin-bottom: .5rem; font-size: 1.05rem; }
.step p { color: var(--slate); font-size: .93rem; }

/* ---------- Trust / proof ---------- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.proof-item { text-align: center; padding: 1.5rem 1rem; }
.proof-item .big { font-size: 1.9rem; font-weight: 800; color: var(--red); letter-spacing: -.5px; }
.proof-item .label { color: var(--slate); font-size: .9rem; margin-top: .3rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 4rem 0; text-align: center; }
.cta-band h2 { font-size: 1.9rem; margin-bottom: .8rem; letter-spacing: -.4px; }
.cta-band p { color: #cbd5e0; max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer { background: #10141c; color: #8fa0b3; padding: 2.5rem 0 3rem; font-size: .88rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer a { color: #cbd5e0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .legal { margin-top: 1.2rem; width: 100%; color: #5f7186; font-size: .82rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 4rem 0 3rem; }
.page-hero h1 { font-size: 2.3rem; letter-spacing: -.6px; margin-bottom: .8rem; }
.page-hero p { color: var(--slate); max-width: 660px; font-size: 1.08rem; }

/* ---------- Content blocks ---------- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.8rem; box-shadow: var(--shadow); }
.block h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.block ul { list-style: none; }
.block li { padding-left: 1.4rem; position: relative; margin-bottom: .65rem; color: var(--slate); font-size: .95rem; }
.block li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.callout {
  background: #fdf2f2; border: 1px solid #f5c6c6; border-radius: 10px; padding: 1.3rem 1.5rem;
  font-size: .93rem; color: #7c2d2d; margin: 1.5rem 0;
}

/* ---------- Form ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 2.2rem; box-shadow: var(--shadow); max-width: 640px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 1.1rem 0 .35rem; }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: .97rem; font-family: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hint { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.form .submit { margin-top: 1.6rem; width: 100%; }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }

/* ---------- Misc ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
small { font-size: .85rem; }
