/* === Panda Expert — topmate-inspired page styles === */

/* ---------- scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- section titles (clean chinese) ---------- */
.section-head h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}
.section-head p { display: none; }

/* ---------- HERO ---------- */
.expert-hero { padding: 64px 0 0; overflow: hidden; }
.expert-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.expert-hero-copy { position: relative; z-index: 2; }
.expert-hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.12;
  margin: 18px 0 0;
}
.hero-rotate-word {
  display: inline-block;
  color: var(--teal);
  position: relative;
  min-width: 180px;
}
.hero-rotate-word .word {
  display: inline-block;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity .45s, transform .45s;
  transform: translateY(12px);
  white-space: nowrap;
}
.hero-rotate-word .word.active {
  opacity: 1;
  position: relative;
  transform: translateY(0);
}
.expert-hero-copy .hero-sub {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 48ch;
}

/* search bar */
.hero-search {
  margin-top: 28px;
  display: flex;
  gap: 0;
  max-width: 480px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(23,34,44,.12);
  background: white;
  box-shadow: 0 8px 32px rgba(23,34,44,.08);
  transition: border-color .25s, box-shadow .25s;
}
.hero-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(12,124,123,.14);
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 20px;
  font: inherit;
  font-size: 14px;
  background: transparent;
}
.hero-search button {
  padding: 12px 24px;
  border: 0;
  background: linear-gradient(135deg, var(--ink), #2f516f);
  color: white;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s;
}
.hero-search button:hover { opacity: .88; }

/* search suggestions */
.search-suggestions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-suggestions button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.search-suggestions button:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(12,124,123,.06);
}

/* hero stats strip */
.hero-stats {
  margin-top: 32px;
  display: flex;
  gap: 32px;
}
.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.hero-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- HERO SCROLL EXPERTS ---------- */
.hero-scroll-wrap {
  overflow: hidden;
  border-radius: 24px;
  position: relative;
}
.hero-scroll-wrap::before,
.hero-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 3;
  pointer-events: none;
}
.hero-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.hero-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.hero-scroll-track {
  display: flex;
  gap: 16px;
  animation: scrollExperts 30s linear infinite;
  width: max-content;
}
.hero-scroll-track:hover { animation-play-state: paused; }
.scroll-expert {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  padding: 20px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  box-shadow: 0 8px 28px rgba(17,22,27,.07);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
}
.scroll-expert:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 40px rgba(17,22,27,.12);
}
.scroll-expert img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.se-info {
  margin-top: 12px;
}
.se-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.se-info span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.se-rating {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
@keyframes scrollExperts {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- CATEGORY PILLS ---------- */
.category-section { padding: 0 0 20px; }
.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(23,34,44,.14);
}

/* ---------- EXPERT CARDS GRID ---------- */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.exp-card {
  position: relative;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  box-shadow: 0 8px 32px rgba(17,22,27,.06);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  cursor: pointer;
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(17,22,27,.12);
}
.exp-card-banner {
  height: 80px;
  position: relative;
}
.exp-card-banner.bg-blue   { background: linear-gradient(135deg, #dceaf5, #b8d4f0); }
.exp-card-banner.bg-green  { background: linear-gradient(135deg, #d1f0ef, #a3e0de); }
.exp-card-banner.bg-orange { background: linear-gradient(135deg, #fff0d6, #f5d99a); }
.exp-card-banner.bg-rose   { background: linear-gradient(135deg, #fce4ec, #f8b4c8); }
.exp-card-banner.bg-purple { background: linear-gradient(135deg, #ede7f6, #ce93d8); }
.exp-card-banner.bg-teal   { background: linear-gradient(135deg, #e0f7fa, #80cbc4); }
.exp-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  bottom: -32px;
  left: 24px;
  border: 3px solid white;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.exp-card-body { padding: 42px 24px 24px; }
.exp-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.exp-card-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.exp-card-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.exp-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.exp-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.exp-card-meta-item strong {
  color: var(--ink);
  font-weight: 700;
}
.exp-card-stars { color: var(--gold); letter-spacing: 1px; font-size: 11px; }
.exp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.exp-card-tags .tag {
  padding: 4px 10px;
  font-size: 11px;
}
.exp-card-cta {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.exp-card-cta .button { font-size: 13px; padding: 10px 16px; flex: 1; }
.exp-card-price {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ---------- STATS BANNER ---------- */
.stats-banner { padding: 48px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  box-shadow: 0 8px 24px rgba(17,22,27,.05);
}
.stat-number {
  font-size: 38px;
  font-weight: 800;
  font-family: "Fraunces", serif;
  color: var(--ink);
  line-height: 1;
}
.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- SERVICE CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  box-shadow: 0 8px 32px rgba(17,22,27,.06);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(17,22,27,.1);
}
.svc-card.featured {
  background: linear-gradient(135deg, var(--ink), #234155);
  color: white;
  border-color: transparent;
}
.svc-card.featured .svc-desc,
.svc-card.featured .svc-features li { color: rgba(255,255,255,.75); }
.svc-card.featured .svc-price { color: var(--gold); }
.svc-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.svc-card.featured .svc-badge {
  background: rgba(197,151,67,.2);
  color: var(--gold);
}
.svc-card:not(.featured) .svc-badge {
  background: rgba(12,124,123,.08);
  color: var(--teal);
}
.svc-card h3 {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 800;
}
.svc-price {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
}
.svc-price small {
  font-size: 13px;
  font-weight: 500;
  opacity: .6;
}
.svc-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.svc-features {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.svc-features li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(23,34,44,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-card.featured .svc-features li { border-color: rgba(255,255,255,.1); }
.svc-features li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.svc-card.featured .svc-features li::before {
  background: rgba(197,151,67,.2);
  color: var(--gold);
}
.svc-card:not(.featured) .svc-features li::before {
  background: rgba(12,124,123,.1);
  color: var(--teal);
}
.svc-card .button { margin-top: 20px; width: 100%; }

/* ---------- TESTIMONIAL MARQUEE ---------- */
.testimonial-section { padding: 60px 0; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 20px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.testi-card {
  flex-shrink: 0;
  width: 340px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  box-shadow: 0 6px 24px rgba(17,22,27,.05);
}
.testi-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.testi-quote {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
}
.testi-author {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--ink), #31516d);
}
.testi-author-info strong { display: block; font-size: 13px; }
.testi-author-info span { font-size: 11px; color: var(--muted); }
.testi-result {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(12,124,123,.08);
  color: var(--teal);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- HOW IT WORKS ---------- */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hiw-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: .25;
}
.hiw-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.hiw-num {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--ink), #2f516f);
  box-shadow: 0 8px 24px rgba(23,34,44,.15);
  position: relative;
  z-index: 2;
}
.hiw-step h4 {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.hiw-step p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(23,34,44,.08);
  overflow: hidden;
  transition: box-shadow .25s;
}
.faq-item:hover { box-shadow: 0 8px 24px rgba(17,22,27,.06); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(23,34,44,.06);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: transform .3s, background .3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: white;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .4s;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 22px 18px;
}
.faq-a p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* ---------- BOTTOM CTA ---------- */
.expert-cta {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #13212e, #234155 58%, #326278 100%);
  color: white;
  box-shadow: 0 26px 60px rgba(17,22,27,.14);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.expert-cta p { color: rgba(255,255,255,.75); margin: 8px 0 0; font-size: 14px; }
.expert-cta .button-primary {
  background: linear-gradient(135deg, var(--gold), #d4a84b);
  color: var(--ink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .expert-hero-inner { grid-template-columns: 1fr; }
  .hero-scroll-wrap { margin-top: 32px; }
  .experts-grid,
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hiw-grid::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .expert-cta { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 760px) {
  .experts-grid,
  .services-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-search { flex-direction: column; border-radius: 20px; }
  .hero-search button { border-radius: 0 0 18px 18px; }
  .section-head h2 { font-size: clamp(24px, 7vw, 36px); }
}
