/* ========================================
   ChinaFirstHelp.com — Shared Stylesheet
   Modern Clean White Theme
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #1a2e4a;   /* deep navy */
  --accent:      #c8102e;   /* Chinese red — subtle brand anchor */
  --accent-soft: #f0e6e8;
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --bg:          #ffffff;
  --bg-subtle:   #f9fafb;
  --bg-dark:     #0f1e30;
  --radius:      6px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --font-sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --transition:  .2s ease;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: var(--bg); line-height: 1.65; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex; align-items: center;
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}

.nav-logo {
  display: flex; flex-direction: column; gap: 0;
  text-decoration: none;
}
.nav-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -.01em;
}
.nav-logo .logo-sub {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  border-bottom: none !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--accent) !important; }

/* hamburger */
.nav-toggle {
  display: none; cursor: pointer; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 1rem 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .65rem 0; border-bottom: none !important; }
  .nav-cta { display: inline-block; margin-top: .5rem; }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  color: #fca5a5; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 span { color: #fca5a5; }
.hero-lead {
  font-size: 1.15rem; color: rgba(255,255,255,.8);
  max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #a50d26; border-color: #a50d26; color: #fff; }

.btn-outline {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-dark {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-dark:hover { background: #0f1e30; color: #fff; }

/* hero stats */
.hero-stats {
  display: flex; gap: 3rem; margin-top: 3.5rem; padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.stat-item .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 700; color: #fff; line-height: 1;
}
.stat-item .stat-label {
  font-size: .8rem; color: rgba(255,255,255,.6);
  letter-spacing: .04em; margin-top: .25rem;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-subtle); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ========================================
   SERVICE CARDS
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--bg-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.6; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 600; color: var(--primary);
  margin-top: 1rem;
}
.service-card .card-link:hover { color: var(--accent); }

/* ========================================
   TRUST BAR / WHY US
   ======================================== */
.trust-bar {
  background: var(--primary); color: #fff;
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.trust-item .trust-icon { font-size: 2rem; margin-bottom: .75rem; }
.trust-item h4 { color: #fff; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.trust-item p { color: rgba(255,255,255,.65); font-size: .85rem; line-height: 1.5; }

/* ========================================
   TEAM CARDS
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); }

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2d5a8e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem; color: #fff; font-weight: 700;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.team-name { font-size: 1.2rem; margin-bottom: .2rem; }
.team-title {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .3rem;
}
.team-edu { font-size: .85rem; color: var(--text-muted); margin-bottom: .1rem; }
.team-exp { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }

.team-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tag {
  font-size: .75rem; padding: .25rem .65rem;
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-muted);
}

.team-bio { font-size: .9rem; color: var(--text-muted); }
.team-bio ul { padding-left: 1.1rem; margin-top: .4rem; }
.team-bio li { margin-bottom: .35rem; font-size: .85rem; }

/* ========================================
   NEWS / NEWSLETTER
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.news-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-body { padding: 1.75rem; }
.news-meta {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem;
}
.news-category {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: .2rem .6rem; border-radius: 3px;
}
.news-date { font-size: .8rem; color: var(--text-muted); }
.news-card h3 { font-size: 1.05rem; margin-bottom: .6rem; line-height: 1.4; }
.news-card h3 a:hover { color: var(--accent); }
.news-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.news-subscribe {
  background: var(--primary); border-radius: 10px;
  padding: 3rem 2rem; text-align: center; color: #fff;
  margin-top: 4rem;
}
.news-subscribe h3 { color: #fff; margin-bottom: .75rem; }
.news-subscribe p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }
.subscribe-form {
  display: flex; gap: .75rem; max-width: 460px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: .75rem 1rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff;
  font-size: .95rem;
}
.subscribe-form input::placeholder { color: rgba(255,255,255,.5); }
.subscribe-form input:focus { outline: none; border-color: rgba(255,255,255,.7); }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start;
}
.contact-detail-icon {
  width: 44px; height: 44px; background: var(--bg-subtle);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail h4 { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .2rem; }
.contact-detail p { color: var(--text); margin: 0; font-size: .95rem; }

.contact-form { background: var(--bg-subtle); border-radius: 12px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text); margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-size: .95rem; color: var(--text);
  transition: border-color var(--transition);
  font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,46,74,.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ========================================
   CASES
   ======================================== */
.cases-placeholder {
  background: var(--bg-subtle); border: 2px dashed var(--border);
  border-radius: 12px; padding: 5rem 2rem; text-align: center;
}
.cases-placeholder .placeholder-icon { font-size: 3rem; margin-bottom: 1rem; }
.cases-placeholder h3 { color: var(--text-muted); margin-bottom: .5rem; }
.cases-placeholder p { color: var(--text-muted); font-size: .9rem; }

/* ========================================
   PAGE BANNER (inner pages)
   ======================================== */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a5c 100%);
  color: #fff; padding: 72px 0 64px;
}
.page-banner .eyebrow {
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: #fca5a5; font-weight: 600; display: block; margin-bottom: .75rem;
}
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
.page-banner p { color: rgba(255,255,255,.7); max-width: 580px; font-size: 1.05rem; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-main { font-family: var(--font-serif); font-size: 1.3rem; color: #fff; }
.footer-brand .logo-sub { font-size: .7rem; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }
.footer-brand p { font-size: .875rem; line-height: 1.65; margin-top: 1rem; }

.footer-col h4 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; }

.footer-contact p { font-size: .875rem; margin-bottom: .5rem; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-disclaimer {
  font-size: .78rem; color: rgba(255,255,255,.35); line-height: 1.5;
  max-width: 600px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent);
}

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
