/* Chinabridger.com — global styles */
:root {
  --brand-red: #EF473B;
  --brand-red-dark: #D63A2F;
  --brand-blue: #2E4E8F;
  --brand-blue-dark: #1F3A70;
  --brand-blue-soft: #3D6BB5;
  --brand-gold: #C9A227;
  --brand-gold-dark: #8C6D1F;
  --ink: #1F2933;
  --ink-soft: #4A5568;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-tint: #EDF2FA;
  --line: #E3E7EC;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(31,41,51,.08), 0 8px 24px rgba(31,41,51,.06);
  --shadow-hover: 0 4px 10px rgba(31,41,51,.10), 0 14px 32px rgba(31,41,51,.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.65; background: var(--bg); }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--brand-blue); text-decoration: none; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; }
.btn-primary { background: var(--brand-gold); color: var(--brand-blue-dark); }
.btn-primary:hover { background: #B08D1D; color: #fff; text-decoration: none; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); text-decoration: none; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 55%, var(--brand-blue-soft) 100%); color: #fff; padding: 92px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px; border-radius: 50%; border: 42px solid rgba(255,255,255,.08); }
.hero::after { content: ""; position: absolute; left: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; border: 30px solid rgba(201,162,39,.10); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1.15; max-width: 720px; letter-spacing: -.02em; font-weight: 800; }
.hero .lead { font-size: 1.15rem; max-width: 640px; margin: 18px 0 30px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .note { margin-top: 22px; font-size: .85rem; color: rgba(255,255,255,.75); }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-soft { background: var(--bg-soft); }
.section h2 { font-size: 1.9rem; letter-spacing: -.01em; margin-bottom: 10px; }
.section .sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 34px; }
.section-head { text-align: center; }
.section-head .sub { margin-left: auto; margin-right: auto; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--brand-blue); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.card .icon { margin-bottom: 12px; display: block; }

/* Scenarios */
.scenario { border-top: 3px solid var(--brand-blue); }
.scenario h3 { font-size: 1.2rem; }
.scenario .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-blue); background: var(--bg-tint); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }

/* Policy alert strip */
.policy-alert { background: var(--brand-gold); color: var(--brand-blue-dark); font-size: .92rem; }
.policy-alert .container { display: flex; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.policy-alert a { color: var(--brand-blue-dark); text-decoration: underline; font-weight: 700; }
.policy-alert a:hover { color: #fff; }

/* Stats strip */
.stats { background: var(--brand-blue-dark); color: #fff; padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand-gold); letter-spacing: -.01em; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.8); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Article badges & dates */
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.badge-policy { background: #F7F1DD; color: var(--brand-gold-dark); }
.badge-survival { background: var(--bg-tint); color: var(--brand-blue); }
.badge-city { background: #F0F7F0; color: #2F855A; }
.badge-tool { background: #F7F5EC; color: #975A16; }
.updated { display: inline-block; font-size: .78rem; color: var(--ink-soft); margin-left: 8px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Tiers */
.tier { border-top: 3px solid var(--line); }
.tier h3 { font-size: 1.2rem; }
.tier .price { font-size: 1.5rem; font-weight: 700; color: var(--brand-gold-dark); }
.tier .price span { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.tier ul { list-style: none; margin-top: 12px; }
.tier ul li { padding: 5px 0 5px 24px; position: relative; color: var(--ink-soft); font-size: .93rem; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-gold-dark); font-weight: 700; }
.tier.featured { border-top-color: var(--brand-gold); }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; margin-bottom: 28px; }
.step .num { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; background: #fff; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--ink-soft); margin-top: 10px; font-size: .95rem; }

/* Content hub */
.article { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; background: #fff; }
.article .meta { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.article h3 { font-size: 1.12rem; margin: 6px 0; }
.article h3 a { color: var(--ink); }
.article h3 a:hover { color: var(--brand-blue); }

/* Page hero (inner) */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-hero h1 { font-size: 2.1rem; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin-top: 10px; }

/* Contact form */
form label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; }
form input, form select, form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
form textarea { min-height: 130px; }
form .btn { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--ink-soft); font-size: .9rem; }
.site-footer ul a:hover { color: var(--brand-blue); text-decoration: none; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Utilities */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.small { font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
