/* ============================================================
   China Trade Law Firm — static site stylesheet
   Brand: deep navy #1a3a5c + gold #c9a227
   ============================================================ */

:root {
  --navy: #1a3a5c;
  --navy-dark: #122a44;
  --navy-light: #2a5078;
  --gold: #c9a227;
  --gold-light: #e3c25c;
  --ink: #24303c;
  --muted: #5c6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --line: #e2e8ef;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto; gap: 20px; flex-wrap: wrap;
}
.brand a {
  display: flex; flex-direction: column; line-height: 1.25;
}
.brand-name {
  font-family: var(--serif);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.3;
}
.brand-name .gold { color: var(--gold); }
.brand-tagline { color: #b0c0d4; font-size: 12px; letter-spacing: 0.4px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #d6e2ef; font-size: 14px; padding: 7px 10px; border-radius: 4px;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }
.main-nav a.cta {
  background: var(--gold); color: var(--navy-dark); font-weight: 600;
}
.main-nav a.cta:hover { background: var(--gold-light); color: var(--navy-dark); }
.main-nav .active { color: var(--gold-light); }
.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--navy);
  border: 1px solid rgba(255,255,255,.15); border-radius: 0 0 6px 6px;
  padding: 6px 0; display: none; box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.dropdown a:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }
.dropdown .active { color: var(--gold-light); }
.dropdown .d-price { color: var(--gold-light); font-weight: 700; margin-left: 6px; }

/* Language switcher */
.lang-switch > a { font-size: 13.5px; }
.lang-switch .dropdown { min-width: 190px; }
.lang-switch .dropdown a { font-size: 13.5px; }
.lang-switch .dropdown .lbl { color: #b7c9dc; margin-left: 6px; font-size: 12px; }

/* Mobile hamburger (pure CSS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; color: #fff; font-size: 22px; cursor: pointer; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 5px; user-select: none;
}
@media (max-width: 900px) {
  .nav-toggle-label { display: inline-block; }
  .main-nav ul { display: none; flex-direction: column; gap: 2px; padding: 10px 0 4px; }
  .nav-toggle:checked ~ ul { display: flex; }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 10px 12px; }
  .nav-item .dropdown {
    position: static; display: none; min-width: 0; box-shadow: none;
    border: none; border-left: 2px solid var(--gold); margin-left: 14px; padding: 0 0 4px 6px;
  }
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
  .dropdown a { white-space: normal; padding: 8px 10px; font-size: 13.5px; }
  .lang-switch .dropdown { margin-left: 14px; }
}

/* Mobile table scroll & small screens */
@media (max-width: 700px) {
  .prose table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { white-space: nowrap; }
  .hero-side .portrait-img { max-width: 180px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.25;
  margin-bottom: 18px; font-weight: 700;
}
.hero h1 .gold { color: var(--gold-light); }
.hero p.lead { font-size: 17.5px; color: #e8eff7; margin-bottom: 28px; max-width: 600px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 5px; font-weight: 600;
  font-size: 15.5px; transition: all .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

.hero-side {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 26px 24px;
}
.hero-side h3 { color: var(--gold-light); font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.hero-side ul { list-style: none; }
.hero-side li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 15px; color: #e8eff7; display: flex; gap: 10px; align-items: flex-start;
}
.hero-side li:last-child { border-bottom: none; }
.hero-side .mark { color: var(--gold); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .kicker {
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 28px 24px; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(26,58,92,.12); transform: translateY(-2px); }
.card .icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-family: var(--serif); color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .price { margin-top: 16px; font-size: 15px; color: var(--navy); font-weight: 600; }
.card .price .amt { color: var(--gold); font-size: 22px; font-family: var(--serif); font-weight: 700; }
.card .more { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--gold); }
.card .more:hover { color: var(--navy); }

/* ---------- Pain list (homepage) ---------- */
.pain-list { list-style: none; }
.pain-list li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 16.5px;
}
.pain-list li:last-child { border-bottom: none; }
.pain-list .num {
  flex: 0 0 30px; height: 30px; background: var(--navy); color: var(--gold-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-top: 2px;
}
.pain-list strong { color: var(--navy); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 52px 0 44px;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.page-hero p { color: #e8eff7; font-size: 17px; max-width: 720px; }
.page-hero .crumb { font-size: 13px; color: #b7c9dc; margin-bottom: 10px; letter-spacing: .5px; }
.page-hero .crumb a { color: var(--gold-light); }
.page-hero .crumb a:hover { text-decoration: underline; }

/* ---------- Content / prose ---------- */
.prose { max-width: 780px; }
.prose h2 {
  font-family: var(--serif); color: var(--navy); font-size: 25px;
  margin: 44px 0 14px; padding-top: 8px;
}
.prose h3 { color: var(--navy); font-size: 19.5px; margin: 30px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 4px solid var(--gold); background: var(--bg-soft);
  padding: 14px 20px; margin: 20px 0; border-radius: 0 6px 6px 0;
  color: var(--muted); font-style: italic;
}
.prose strong { color: var(--navy); }
.prose .stat {
  background: var(--navy); color: #fff; border-radius: 8px; padding: 22px 24px; margin: 24px 0;
}
.prose .stat strong { color: var(--gold-light); }
.prose .stat p { margin: 0; }
.prose .law-ref {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 16px 0; font-size: 15px;
}
.prose .law-ref strong { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.prose th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-soft); }

/* ---------- Service page specifics ---------- */
.service-price {
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 28px; margin: 28px 0; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.service-price .amount { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--navy); }
.service-price .amount small { font-size: 16px; color: var(--muted); font-weight: 400; }
.service-price .note { color: var(--muted); font-size: 14.5px; }
.service-price .note strong { color: var(--navy); }
.steps { counter-reset: step; list-style: none; margin: 0 0 24px 0; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 22px 52px; margin-bottom: 6px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.steps li::after {
  content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1.5px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps strong { color: var(--navy); display: block; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 52px 0; text-align: center;
}
.cta-band h2 { color: #ffffff; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.cta-band p { color: #e8eff7; max-width: 620px; margin: 0 auto 24px; }
.cta-band .small { font-size: 13.5px; color: #ccd9e8; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b0c0d4; padding: 40px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: #b0c0d4; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px;
  font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
.post-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 24px 26px;
  transition: box-shadow .15s, transform .15s; background: #fff;
}
.post-item:hover { box-shadow: 0 6px 20px rgba(26,58,92,.1); transform: translateY(-2px); }
.post-item .post-meta { font-size: 13px; color: var(--muted); letter-spacing: .4px; margin-bottom: 8px; }
.post-item h2 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.post-item h2 a { color: var(--navy); }
.post-item h2 a:hover { color: var(--gold); }
.post-item p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.post-item .read-more { font-weight: 600; font-size: 14.5px; color: var(--gold); }
.post-item .read-more:hover { color: var(--navy); }

/* Article header */
.article-header { margin-bottom: 8px; }
.article-header .post-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.article-header h1 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 22px; margin: 26px 0;
}
.toc strong { color: var(--navy); display: block; margin-bottom: 8px; }
.toc ol { margin-left: 20px; font-size: 15px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--navy); }
.toc a:hover { color: var(--gold); }

.author-box {
  display: flex; gap: 16px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 20px; margin: 36px 0 10px;
}
.author-box .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif);
  font-size: 20px; font-weight: 700; flex: 0 0 56px;
}
.author-box h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.contact-list li:last-child { border-bottom: none; }
.contact-list .k { flex: 0 0 150px; color: var(--navy); font-weight: 600; font-size: 15px; }
.contact-list .v { color: var(--muted); font-size: 15px; }
.note-box {
  background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0;
  padding: 18px 22px; margin: 24px 0; font-size: 14.5px; color: var(--muted);
}
.note-box strong { color: var(--navy); }

/* ---------- Profile / photo / QR / firm band ---------- */
.profile-grid { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; margin-bottom: 12px; }
.portrait-img {
  width: 100%; border-radius: 10px; border: 3px solid var(--gold);
  box-shadow: 0 8px 24px rgba(26,58,92,.18);
}
.portrait-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
  margin: 28px 0;
}
.stat-cell {
  background: var(--navy); color: #fff; border-radius: 8px; padding: 20px 16px; text-align: center;
}
.stat-cell .num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold-light); line-height: 1.2; }
.stat-cell .lbl { font-size: 13px; color: #dce7f2; margin-top: 4px; }

.firm-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 12px; color: #dce7f2; padding: 32px 34px; margin: 36px 0;
}
.firm-band h2, .firm-band h3 { color: #fff; margin-top: 0; }
.firm-band .gold { color: var(--gold-light); }
.firm-band ul { margin-left: 20px; }
.firm-band li { margin-bottom: 6px; }
.firm-band .firm-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 16px 0 6px; }
.firm-band .fs { text-align: center; }
.firm-band .fs .n { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-light); }
.firm-band .fs .l { font-size: 12.5px; color: #b7c9dc; }

.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0; }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  text-align: center; box-shadow: 0 4px 14px rgba(26,58,92,.08);
}
.qr-card img { width: 100%; max-width: 240px; margin: 0 auto 12px; border-radius: 6px; }
.qr-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.qr-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.case-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-mini {
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 24px; background: #fff; transition: box-shadow .15s, transform .15s;
}
.case-mini:hover { box-shadow: 0 8px 22px rgba(26,58,92,.12); transform: translateY(-2px); }
.case-mini .tag-line { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.case-mini h3 { font-family: var(--serif); color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.case-mini p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.case-mini a.more { color: var(--gold); font-weight: 600; font-size: 14.5px; }
.case-mini a.more:hover { color: var(--navy); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-2 { margin-bottom: 24px; }
.gold-text { color: var(--gold); }
.navy-text { color: var(--navy); }
.muted { color: var(--muted); }
.center { text-align: center; }
.tag {
  display: inline-block; background: rgba(201,162,39,.12); color: #8a6d1a;
  font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-right: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 2px; }
  .service-price { grid-template-columns: 1fr; gap: 8px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid .portrait-col { max-width: 240px; }
  .qr-grid, .case-card-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 48px 0 44px; }
  .btn { display: block; text-align: center; }
  .prose table { font-size: 13.5px; }
}
