/* China Ground Services — design system v2 */

/* Self-hosted variable-font subsets (SIL Open Font License). These are the same
   woff2 files Google Fonts serves, hosted on our own origin to remove the
   third-party render-blocking stylesheet and its extra DNS/TLS hops. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f8f5ef;
  --surface: #fffdf9;
  --surface-2: #efe9dd;
  --ink: #0e1a26;
  --muted: #56626f;
  --line: #e0d9c8;
  --brand: #123f5c;
  --brand-dark: #0d2f46;
  --brand-solid: #123f5c;
  --brand-solid-hover: #0d2f46;
  --cta-from: var(--brand-solid);
  --cta-to: var(--brand-dark);
  --accent: #9c7c2e;
  --accent-strong: #7d631f;
  --accent-soft: #f3ead2;
  --brand-soft: #e7eef4;
  --ok: #1f7a5c;
  --ok-soft: #e8f4ee;
  --warn: #a15c17;
  --warn-soft: #faefe1;
  --radius: 18px;
  --maxw: 1140px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-sm: 0 1px 2px rgba(14, 26, 38, .05);
  --shadow-md: 0 26px 50px -22px rgba(14, 26, 38, .28);
  --focus-line: #7d631f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141c;
    --surface: #141d27;
    --surface-2: #1b2531;
    --ink: #e9edf2;
    --muted: #9aa5b2;
    --line: #27313d;
    --brand: #7fb0d4;
    --brand-dark: #a8cbe4;
    --brand-solid: #173f5c;
    --brand-solid-hover: #1e4f70;
    --cta-from: #173f5c;
    --cta-to: #1e5a7c;
    --accent: #d3ab54;
    --accent-strong: #e3c384;
    --accent-soft: #29220f;
    --brand-soft: #14232f;
    --ok: #5cc49c;
    --ok-soft: #12291f;
    --warn: #e0a45c;
    --warn-soft: #2a1f10;
    --focus-line: #e3c384;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 24px 50px -20px rgba(0, 0, 0, .65);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 17px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
opacity: 0; transform: translateY(22px); visibility: hidden;
transition: opacity .85s cubic-bezier(.2,.6,.2,1), transform .85s cubic-bezier(.2,.6,.2,1);
}
.js [data-reveal].revealed { opacity: 1; transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; visibility: visible; }
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 99; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--focus-line); outline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- Editorial accents ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700;
  color: var(--accent-strong); margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.14; margin: 0 0 20px; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; border-radius: 9px; background: #123f5c; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand .mark svg { display: block; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: .02em; line-height: 1.25; }
.site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 14.5px; transition: background .15s ease, color .15s ease; }
.site-nav a:hover { background: var(--surface-2); color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 14px; padding-bottom: 2px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); font-weight: 600; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding-block: 68px 0; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.022em; margin: 0 0 18px; max-width: 15ch; }
.hero .lede { font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.65; color: var(--muted); max-width: 60ch; margin: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill { font-size: 13px; font-weight: 500; color: var(--muted); background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.pill.updated { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; font-weight: 600; }

/* ---------- Sections / prose ---------- */
.section { padding-block: 64px 10px; }
.prose { padding-block: 30px 48px; }
.prose p { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -.015em; margin: 40px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; max-width: 68ch; }
.prose li { margin: 7px 0; }
.prose > section > h2:first-child, .prose h2:first-child { margin-top: 0; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 14px; padding: 18px 20px; margin: 24px 0; max-width: 76ch; }
.callout strong { color: var(--ink); }
.note { font-size: 14px; color: var(--muted); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 22px; margin-top: 10px; }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.service-card h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
.service-card h3 a { text-decoration: none; color: var(--ink); }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.service-card ul { margin: 2px 0 0; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.service-card li { margin: 4px 0; }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); }
.price-tag strong { color: var(--accent-strong); font-size: 15px; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-link::after { content: " \2192"; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(130deg, var(--cta-from), var(--cta-to)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: 46px 40px; margin: 64px 0 10px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; box-shadow: var(--shadow-md); }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; letter-spacing: -.02em; }
.cta-band p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); max-width: 52ch; }
.btn { display: inline-block; background: var(--accent); color: #1b1405; font-weight: 700; padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font-size: 15.5px; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { background: #b08f3a; color: #1b1405; transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(27, 20, 5, .45); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent-strong); }
.btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, var(--line)); }
.btn.secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 22px; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 22px 0 22px 74px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--accent-strong); }
.steps strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 64ch; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
table.data caption { text-align: left; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--ink); }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-section { padding-bottom: 24px; }
.faq-list { display: grid; gap: 12px; margin-top: 16px; }
details.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; }
details.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 0; list-style-position: inside; }
details.faq-item p { margin: 0; padding: 0 0 16px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-section { padding-block: 52px 8px; }
.inquiry-form { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 32px; max-width: 780px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus-line); border-color: var(--accent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); background: var(--warn-soft); }
.field [aria-invalid="true"]:focus { outline-color: var(--warn); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }
.pre-launch { border: 1px dashed var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; font-size: 14.5px; }

/* ---------- Trust grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 18px; }
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-item h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.trust-item p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 32px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.site-footer p, .site-footer li { color: var(--muted); font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; min-height: 0; }
  .brand { font-size: 16px; white-space: nowrap; }
  .brand .mark { width: 32px; height: 32px; }
  .brand small { display: none; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; row-gap: 2px; }
  .site-nav a { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .hero { padding-top: 44px; }
  .section { padding-block: 44px 8px; }
  .prose { padding-block: 22px 36px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .cta-band { padding: 30px 24px; }
  .inquiry-form { padding: 22px; }
  .steps li { padding-left: 58px; }
}

/* ---------- Hero media: full-bleed editorial cover ---------- */
.hero-media { margin: 34px 0 0; }
.hero .hero-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hero-media img {
  width: 100%; height: auto; display: block;
  max-height: 74vh; object-fit: cover;
}
@media (max-width: 760px) {
  .hero-media { margin-top: 24px; }
}

/* ---------- Print / PDF export ---------- */
@media print {
  .skip-link, .site-nav, .cta-band .btn { display: none; }
  .js [data-reveal], [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
  }
  .cta-band, .card, .callout, .faq-item { box-shadow: none; }
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
