/* ============================================================
   成龙 by BlueBee — Corporate Website
   Design System & Global Styles
   ============================================================ */

:root {
  --navy: #14213D;
  --navy-deep: #0E1A2E;
  --red: #9F1D22;
  --red-hover: #B72429;
  --gold: #C9A14A;
  --charcoal: #1F2937;
  --ivory: #F8F7F3;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --muted: #6B7280;
  --container: 1280px;

  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-cn);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
}
html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-bottom: .75rem; }
h4 { font-size: 1.125rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }
.muted { color: var(--muted); }
.gold-rule { border: 0; border-top: 1px solid var(--gold); max-width: 48px; margin: 1.25rem 0; }
.gold-rule-center { margin: 1.25rem auto; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,243,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 14px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.nav-brand .brand-mark {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 700; font-size: 12px;
  font-family: var(--font-en);
}
.nav-brand .brand-text-cn { font-size: 1.15rem; letter-spacing: .02em; }
.nav-brand .brand-text-en { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: 4px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: .92rem; color: var(--charcoal); font-weight: 500;
  padding: 8px 0; position: relative;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-size: .82rem; color: var(--muted); font-weight: 500;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px;
  background: transparent; cursor: pointer; font-family: inherit;
}
.lang-toggle:hover { color: var(--navy); border-color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 4px; font-size: .92rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: inherit; text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #B78F3A; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-sandton.jpg');
  background-size: cover; background-position: center;
  filter: grayscale(10%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,33,61,.92) 0%, rgba(20,33,61,.75) 50%, rgba(20,33,61,.88) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 100px 24px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; border: 1px solid rgba(201,161,74,.5); padding: 6px 12px;
}
.hero h1 { color: var(--white); max-width: 900px; margin-bottom: 20px; }
.hero .hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 720px; margin-bottom: 36px; font-weight: 300; }
.hero .hero-sub-en { font-size: .95rem; color: rgba(255,255,255,.6); max-width: 720px; margin-bottom: 36px; font-family: var(--font-en); font-style: italic; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meridian {
  position: absolute; top: 40px; right: 40px; width: 180px; opacity: .85;
  z-index: 2;
}
.hero-secondary { min-height: 380px; }
.hero-secondary .hero-inner { padding: 80px 24px; }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-tint { background: var(--white); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}
.section-head h2 { margin-bottom: 12px; }
.section-head .lead { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head .lead { color: rgba(255,255,255,.7); }

/* ============================================================
   Stats Row
   ============================================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; margin-top: 40px;
}
.stat { text-align: left; }
.stat .stat-num { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; color: var(--navy); line-height: 1; font-family: var(--font-en); }
.section-dark .stat .stat-num { color: var(--gold); }
.stat .stat-rule { width: 32px; height: 2px; background: var(--gold); margin: 12px 0; }
.stat .stat-label { font-size: .95rem; color: var(--charcoal); font-weight: 500; }
.section-dark .stat .stat-label { color: rgba(255,255,255,.82); }
.stat .stat-en { font-size: .78rem; color: var(--muted); font-family: var(--font-en); margin-top: 4px; }
.section-dark .stat .stat-en { color: rgba(255,255,255,.5); }

/* ============================================================
   Pillars Grid
   ============================================================ */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.pillar {
  background: var(--white); padding: 32px 28px; border: 1px solid var(--border); border-top: 2px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,33,61,.08); }
.pillar-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
  font-family: var(--font-en);
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ============================================================
   Service / Industry Cards
   ============================================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white); padding: 28px 24px; border: 1px solid var(--border);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { border-color: var(--navy); }
.card:hover::before { transform: scaleX(1); }
.card-num { font-size: .82rem; color: var(--gold); font-weight: 700; font-family: var(--font-en); letter-spacing: .1em; }
.card h3 { font-size: 1.05rem; margin: 8px 0; }
.card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ============================================================
   Process Timeline
   ============================================================ */
.process {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0; position: relative;
}
.process::before {
  content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.process-step { padding: 0 16px; position: relative; z-index: 2; text-align: center; }
.process-marker {
  width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  border: 2px solid var(--navy); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: var(--navy);
  font-family: var(--font-en);
}
.section-dark .process-marker { background: var(--navy); border-color: var(--gold); color: var(--gold); }
.process-step h4 { margin-bottom: 10px; }
.process-step p { font-size: .9rem; color: var(--muted); }
.section-dark .process-step p { color: rgba(255,255,255,.65); }

/* ============================================================
   Africa Map Block
   ============================================================ */
.africa-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.africa-map-wrap {
  position: relative; aspect-ratio: 1/1.1; max-width: 480px; margin: 0 auto;
}
.africa-map-wrap svg { width: 100%; height: 100%; }
.country-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--white);
  box-shadow: 0 0 0 0 rgba(201,161,74,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,161,74,.5); }
  70% { box-shadow: 0 0 0 10px rgba(201,161,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,74,0); }
}

.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.market-card {
  background: var(--white); padding: 24px; border-left: 3px solid var(--gold);
}
.market-card h4 { font-size: 1rem; }
.market-card .market-en { font-size: .82rem; color: var(--muted); font-family: var(--font-en); margin-bottom: 8px; }
.market-card p { font-size: .85rem; color: var(--charcoal); margin: 0; }

/* ============================================================
   CTA Band
   ============================================================ */
.cta-band {
  background: var(--navy); color: var(--white); padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band .cta-sub { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--navy-deep); color: rgba(255,255,255,.7);
  padding: 60px 0 24px; font-size: .88rem;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .f-tagline { color: rgba(255,255,255,.5); margin-top: 12px; font-size: .85rem; }
footer h5 { color: var(--gold); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--gold); }
.footer-qr { width: 120px; background: var(--white); padding: 8px; border-radius: 4px; }
.footer-qr-caption { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 8px; text-align: center; max-width: 120px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); margin-left: 16px; }

/* ============================================================
   Forms
   ============================================================ */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; color: var(--navy);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 3px;
  font-family: inherit; font-size: .95rem; background: var(--white); color: var(--charcoal);
  transition: border-color .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--navy);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ============================================================
   Services Detail
   ============================================================ */
.service-block { padding: 60px 0; border-bottom: 1px solid var(--border); }
.service-block:nth-child(even) { background: var(--white); }
.service-block .service-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.service-num { font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1; font-family: var(--font-en); opacity: .6; }
.service-head h2 { margin-top: 10px; }
.service-head .service-en { color: var(--muted); font-size: 1rem; font-family: var(--font-en); margin-top: 6px; }
.service-body ul { list-style: none; margin: 16px 0; }
.service-body li {
  padding-left: 22px; position: relative; margin-bottom: 8px; font-size: .95rem;
}
.service-body li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold);
}
.service-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.service-meta h5 { color: var(--navy); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.service-meta p { font-size: .88rem; color: var(--charcoal); margin: 0; }

/* ============================================================
   Insights Empty State
   ============================================================ */
.insights-empty {
  text-align: center; padding: 100px 24px;
}
.insights-empty .big-mark {
  width: 120px; height: 120px; border-radius: 50%; background: var(--navy);
  margin: 0 auto 32px; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2rem; font-weight: 700; font-family: var(--font-en);
}
.insights-empty h1 { margin-bottom: 12px; }
.insights-empty .lead { max-width: 620px; margin: 0 auto 32px; color: var(--muted); font-size: 1.05rem; }
.signup-form {
  max-width: 480px; margin: 0 auto; display: flex; gap: 10px;
}
.signup-form input { flex: 1; padding: 14px 16px; border: 1px solid var(--border); border-radius: 3px; font-family: inherit; }
.signup-form button { padding: 14px 22px; }

.cats-preview {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 40px;
}
.cat-chip {
  padding: 8px 16px; border: 1px dashed var(--border); color: var(--muted);
  font-size: .82rem; border-radius: 20px; background: transparent;
}

/* ============================================================
   About / Leadership
   ============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-block {
  text-align: center; max-width: 820px; margin: 0 auto;
  padding: 60px 40px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.mission-block .mission-cn { font-size: 1.5rem; color: var(--navy); font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.mission-block .mission-en { font-size: 1rem; color: var(--muted); font-style: italic; font-family: var(--font-en); }

.heritage-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; text-align: center; padding: 40px 0;
}
.heritage-stats .heritage-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; color: var(--gold); font-family: var(--font-en); line-height: 1;
}
.heritage-stats .heritage-label { font-size: .95rem; color: rgba(255,255,255,.82); margin-top: 8px; }
.heritage-stats .heritage-en { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; font-family: var(--font-en); }

.leader-card {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  background: var(--white); padding: 40px; border: 1px solid var(--border); border-top: 2px solid var(--gold);
  max-width: 920px; margin: 40px auto 0;
}
.leader-portrait {
  width: 100%; aspect-ratio: 1/1.1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 3rem; font-weight: 700; font-family: var(--font-en);
}
.leader-body h3 { margin-bottom: 4px; }
.leader-body .leader-title { color: var(--gold); font-size: .9rem; font-weight: 500; margin-bottom: 16px; letter-spacing: .05em; }
.leader-body .leader-bio { font-size: .92rem; color: var(--charcoal); }
.leader-body .leader-creds { list-style: none; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.leader-body .leader-creds li { padding-left: 16px; position: relative; margin-bottom: 4px; }
.leader-body .leader-creds li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.reasons-list { list-style: none; max-width: 820px; margin: 40px auto 0; }
.reasons-list li {
  padding: 18px 0 18px 40px; border-bottom: 1px solid var(--border); position: relative;
  font-size: 1.02rem;
}
.reasons-list li::before {
  content: "✓"; position: absolute; left: 0; top: 16px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold);
  color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.contact-info { padding: 40px; background: var(--navy); color: var(--white); border-top: 3px solid var(--gold); }
.contact-info h3 { color: var(--white); }
.contact-info .info-block { margin-bottom: 24px; }
.contact-info .info-label { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-weight: 600; }
.contact-info .info-value { font-size: 1rem; color: var(--white); }
.contact-info .info-value a { color: var(--white); }
.contact-info .info-value a:hover { color: var(--gold); }
.contact-qr-block { text-align: center; padding: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); margin-top: 28px; }
.contact-qr-block img { width: 180px; margin: 0 auto 12px; background: var(--white); padding: 8px; border-radius: 4px; }
.contact-qr-block p { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }
.trust-note {
  margin-top: 24px; padding: 16px; border-left: 2px solid var(--gold);
  font-size: .88rem; color: rgba(255,255,255,.75); background: rgba(201,161,74,.05);
}

/* ============================================================
   Utilities & Responsive
   ============================================================ */
.en-only { display: none; }
html[lang="en"] .cn-only { display: none; }
html[lang="en"] .en-only { display: initial; }
html[lang="en"] .en-only-block { display: block; }
html[lang="en"] .en-only-flex { display: flex; }
html[lang="en"] .en-only-grid { display: grid; }

.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--navy); padding: 10px 16px; gap: 10px; justify-content: space-between;
  border-top: 2px solid var(--gold);
}
.mobile-cta-bar .btn { flex: 1; font-size: .85rem; padding: 10px; }

@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .two-col, .contact-grid, .africa-feature, .leader-card { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .service-block .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-meridian { width: 100px; top: 20px; right: 20px; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 70px; }
  .process::before { display: none; }
  .hero { min-height: 520px; }
  .hero-inner { padding: 80px 24px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row, .pillars, .cards-grid, .process { grid-template-columns: 1fr; }
  .nav-brand .brand-text-en { display: none; }
  section { padding: 56px 0; }
}
