/* ============================================
   faq.css — Help Center / FAQ Page
   Matches the Zhongshen light theme + dark nav.
   Reuses global .faq-item/.faq-q/.faq-a accordion.
   ============================================ */

:root {
  --text-primary: #0f172a;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --bg-white:     #ffffff;
  --bg-soft:      #f8fafc;
  --bg-tint:      #eff6ff;
  --bg-deep:      #0f172a;
  --brand:        #2563eb;
  --brand-hover:  #1d4ed8;
  --brand-light:  #3b82f6;
  --brand-pale:   #dbeafe;
  --orange:       #f97316;
  --orange-h:     #ea6c0a;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm:    0 1px 2px rgba(15,23,42,0.06);
  --shadow:       0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg:    0 16px 40px rgba(15,23,42,0.10);
}

/* ── HERO ── */
.faq-hero {
  background: #0d2f4e;
  background-image:
    radial-gradient(ellipse 60% 70% at 78% 30%, rgba(37,99,235,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(249,115,22,0.12) 0%, transparent 60%),
    linear-gradient(135deg, rgba(13,47,78,0.96) 0%, rgba(22,61,97,0.85) 100%);
  padding: 72px 5% 56px;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.faq-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92); font-family: 'Sora', sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 4px; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.faq-eyebrow::before { content: '?'; color: #f99a57; font-weight: 800; }
.faq-hero h1 {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: rgba(255,255,255,0.96); line-height: 1.14; margin-bottom: 16px;
}
.faq-hero h1 em { font-style: normal; color: #f99a57; }
.faq-hero p {
  color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.7;
  max-width: 560px; margin: 0 auto 30px;
}

/* ── SEARCH ── */
.faq-search {
  position: relative; max-width: 520px; margin: 0 auto;
}
.faq-search .material-symbols-outlined {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 1.3rem; pointer-events: none;
}
.faq-search input {
  width: 100%; box-sizing: border-box;
  padding: 16px 18px 16px 50px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  color: var(--text-primary); background: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22); outline: none;
  transition: box-shadow 0.2s;
}
.faq-search input::placeholder { color: var(--text-light); }
.faq-search input:focus { box-shadow: 0 0 0 4px rgba(37,99,235,0.3), 0 8px 28px rgba(0,0,0,0.22); }
.faq-search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: var(--bg-soft); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.faq-search-clear.show { display: flex; }
.faq-search-clear .material-symbols-outlined { position: static; transform: none; font-size: 1.1rem; color: inherit; }

/* ── MAIN ── */
.faq-main { background: var(--bg-soft); padding: 56px 5% 24px; }
.faq-shell { max-width: 880px; margin: 0 auto; }

/* ── CATEGORY QUICK-JUMP CARDS ── */
.faq-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 8px;
}
.faq-cat-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 18px; cursor: pointer;
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.faq-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-pale); }
.faq-cat-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.faq-cat-ico .material-symbols-outlined { font-size: 1.4rem; }
.faq-cat-card h3 {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); line-height: 1.3; margin: 0 0 2px;
}
.faq-cat-card span.count {
  font-size: 0.78rem; color: var(--text-muted); font-family: 'Sora', sans-serif;
}

/* ── CATEGORY SECTIONS / ACCORDION ── */
.faq-group { margin-top: 48px; scroll-margin-top: 90px; }
.faq-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.faq-group-head .material-symbols-outlined {
  color: var(--brand); font-size: 1.5rem;
  background: var(--brand-pale); border-radius: 8px; padding: 6px;
}
.faq-group-head h2 {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: var(--text-primary); margin: 0;
}
.faq-list {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px 26px; box-shadow: var(--shadow-sm);
}

/* Override global .faq-item for the help center context */
.faq-list .faq-item { border-bottom: 1px solid var(--border-light); padding: 20px 0; }
.faq-list .faq-item:last-child { border-bottom: none; }
.faq-list .faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 1rem; color: var(--text-primary); line-height: 1.45;
  user-select: none; gap: 16px;
}
.faq-list .faq-q .icon {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1rem; line-height: 1;
  transition: transform 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-list .faq-item.open .faq-q .icon {
  transform: rotate(45deg); background: var(--brand); color: #fff; border-color: var(--brand);
}
.faq-list .faq-a {
  max-height: 0; overflow: hidden;
  font-size: 0.94rem; color: var(--text-body); line-height: 1.75;
  transition: max-height 0.4s ease, padding 0.25s;
}
.faq-list .faq-item.open .faq-a { max-height: 600px; padding-top: 14px; }
.faq-list .faq-a strong { color: var(--text-primary); font-weight: 600; }
.faq-list .faq-a a { color: var(--brand); text-decoration: none; font-weight: 600; }
.faq-list .faq-a a:hover { text-decoration: underline; }

/* ── EMPTY (no search results) ── */
.faq-empty {
  display: none; text-align: center; padding: 50px 20px; color: var(--text-muted);
}
.faq-empty.show { display: block; }
.faq-empty .material-symbols-outlined { font-size: 2.6rem; color: var(--text-light); margin-bottom: 8px; }
.faq-empty p { font-family: 'Sora', sans-serif; font-weight: 600; margin: 0 0 6px; }
.faq-empty span { font-size: 0.9rem; }
.faq-group.hide, .faq-item.hide { display: none; }

/* highlight on search hit */
mark.faq-hl { background: #fef08a; color: inherit; border-radius: 2px; padding: 0 1px; }

/* ── CONTACT CTA BAND ── */
.faq-cta {
  background: var(--bg-deep); padding: 64px 5%; position: relative; overflow: hidden;
  margin-top: 24px;
}
.faq-cta::after {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18), transparent 70%); pointer-events: none;
}
.faq-cta-inner { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.faq-cta h2 {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.05rem);
  color: #fff; margin-bottom: 12px;
}
.faq-cta p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.faq-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.faq-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 14px 28px; border-radius: 8px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.faq-btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,0.3); }
.faq-btn-primary:hover { background: var(--orange-h); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.4); }
.faq-btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.faq-btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.faq-btn .material-symbols-outlined { font-size: 1.15rem; }

/* ── ANIMATE ── */
.aos { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
.site-footer-meta {
  background: var(--bg-deep); color: rgba(255,255,255,0.35);
  text-align: center; padding: 20px 5%; font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer-meta a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer-meta a:hover { color: var(--brand-pale); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) { .faq-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .faq-cats { grid-template-columns: 1fr; }
  .faq-list { padding: 6px 20px; }
  .faq-main { padding: 40px 5% 16px; }
}
