/* GroundCheckChina — one stylesheet for the whole site */
:root {
  --ink: #1b1d1f;
  --muted: #5d6166;
  --line: #e3e4e6;
  --soft: #f5f4f1;
  --accent: #b5481b;
  --accent-dark: #933913;
  --white: #ffffff;
  --max: 1080px;
  --narrow: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn.outline { background: transparent; color: var(--accent); }
.btn.outline:hover { background: var(--accent); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: 8px 16px; font-size: .9rem; color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); }

/* Header on top of hero */
.site-header.over { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255,255,255,.18); }
.site-header.over .brand, .site-header.over .nav a { color: var(--white); }
.site-header.over .brand b { color: #f3b08f; }
.site-header.over .nav-toggle { color: var(--white); border-color: rgba(255,255,255,.4); }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white);
  background-color: #23272b;
  background-image: linear-gradient(90deg, rgba(18,20,22,.86) 0%, rgba(18,20,22,.62) 55%, rgba(18,20,22,.35) 100%), url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  padding: 110px 0 70px;
}
.hero h1 { max-width: 14em; margin-bottom: .45em; }
.hero p { font-size: 1.2rem; max-width: 34em; color: rgba(255,255,255,.88); margin-bottom: 2em; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust div { padding: 28px 20px; font-weight: 600; text-align: center; border-left: 1px solid var(--line); }
.trust div:first-child { border-left: 0; }

/* Page title */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* Grid of check modules */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 24px; background: var(--white); }
.card h3 { margin-bottom: .7em; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: .4em; }
.card.flag { border-color: #e9c3b0; background: #fdf7f4; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .8em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 0; padding: 0; list-style: none; }
.verdicts li { border: 1px solid var(--line); border-radius: 3px; padding: 2px 10px; font-size: .9rem; background: var(--white); }

.price { font-size: 1.5rem; font-weight: 700; margin-bottom: .3em; }

/* About */
.intro { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; background: var(--soft); border-radius: 6px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.intro .statement { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.35; margin: 0; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin-top: 1.6em; }
.boxed { border: 2px solid var(--ink); border-radius: 6px; padding: 28px 30px; background: var(--white); }
.boxed h2 { font-size: 1.4rem; }
.boxed p:last-child { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.facts li span:first-child { width: 110px; flex: none; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline > li { position: relative; padding: 0 0 40px 64px; counter-increment: step; }
.timeline > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.timeline > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { font-size: 1.2rem; padding-top: 8px; }
.step-rows { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; }
.step-rows dt { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.step-rows dd { margin: 0; }
.step-rows dd.time { font-weight: 600; color: var(--accent); }

/* Form */
.form-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9cbce; border-radius: 4px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.aside-note p { margin-bottom: .9em; }
.notice { padding: 14px 18px; border-radius: 4px; margin-bottom: 24px; display: none; }
.notice.error { background: #fdecea; border: 1px solid #f2b8b0; color: #8a1c10; }
.notice.show { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
  .nav.open { display: flex; }
  .nav a, .site-header.over .nav a { color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn, .site-header.over .nav .btn { margin-top: 12px; text-align: center; color: var(--white); border-bottom: 2px solid var(--accent); }
  .form-layout, .intro { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 280px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
  .trust div:first-child { border-top: 0; }
  .grid-2, .row-2 { grid-template-columns: 1fr; }
  .timeline > li { padding-left: 54px; }
  .step-rows { grid-template-columns: 1fr; gap: 2px; }
  .step-rows dt { padding-top: 8px; }
  .boxed { padding: 22px 20px; }
  .hero { padding-top: 96px; }
}
