/*
Theme Name: PulseTCM
Theme URI: https://peakmouse.com
Description: A modern Traditional Chinese Medicine online consultation landing page. Clean, minimalist design with Chinese aesthetics — vermillion red and warm cream tones.
Version: 1.0.0
Author: PulseTCM
Author URI: https://peakmouse.com
License: GPL-2.0-or-later
Text Domain: pulsetcm
*/

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

:root {
  --red-900: #7F1D1D;
  --red-700: #991B1B;
  --red-600: #DC2626;
  --red-500: #EF4444;
  --rose-100: #FECACA;
  --rose-50: #FEF2F2;
  --slate-500: #64748B;
  --white: #FFFFFF;
  --cream: #FFFBF0;
  --page-width: 1440px;
  --content-padding: 80px;
  --font-serif: 'Noto Serif TC', 'Noto Serif', Georgia, serif;
  --font-sans: 'Noto Sans TC', 'Noto Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--slate-500);
  background: var(--rose-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress admin bar offset */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}

/* ====== Page Wrapper ====== */
.page { max-width: var(--page-width); margin: 0 auto; overflow: hidden; }

/* ====== Section Backgrounds ====== */
.section-bg-warm  { background: var(--rose-50); }
.section-bg-white { background: var(--white); }
.section-bg-dark  { background: var(--red-900); }

/* Sections with image overlay backgrounds */
.section-img-overlay { position: relative; background: var(--white); }
.section-img-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px var(--content-padding);
}

/* ====== Header ====== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 242, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(254, 202, 202, 0.4);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--content-padding);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--red-900);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--slate-500); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red-900); }

/* ====== WordPress Navigation Fallback ====== */
.nav-links .menu { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links .menu li { margin: 0; }
.nav-links .menu a {
  font-size: 15px; font-weight: 500;
  color: var(--slate-500); text-decoration: none;
  transition: color 0.2s;
}
.nav-links .menu a:hover { color: var(--red-900); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.25s ease;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: var(--red-600); color: var(--white);
  padding: 12px 24px; border-radius: 24px;
  font-size: 14px;
}
.btn-primary:hover { background: var(--red-500); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.35); }
.btn-hero-primary {
  background: var(--red-600); color: var(--white);
  padding: 18px 36px; border-radius: 28px;
  font-size: 16px;
}
.btn-hero-primary:hover { background: var(--red-500); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,38,38,0.4); }
.btn-hero-secondary {
  background: var(--white); color: var(--red-900);
  padding: 18px 36px; border-radius: 28px;
  font-size: 16px;
  border: 1.5px solid var(--rose-100);
}
.btn-hero-secondary:hover { background: var(--rose-50); transform: translateY(-1px); }
.btn-cta {
  background: var(--red-600); color: var(--white);
  padding: 20px 48px; border-radius: 32px;
  font-size: 18px; letter-spacing: 0.3px;
}
.btn-cta:hover { background: var(--red-500); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.45); }
.btn-outline {
  background: transparent; color: var(--red-600);
  padding: 14px 32px; border-radius: 28px;
  font-size: 16px;
  border: 1.5px solid var(--red-600);
}
.btn-outline:hover { background: var(--red-600); color: var(--white); }

/* ====== Badge ====== */
.badge {
  display: inline-block;
  background: var(--rose-100); color: var(--red-600);
  font-size: 13px; font-weight: 600; line-height: 1;
  padding: 8px 18px; border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

/* ====== Section Headings ====== */
.section-label {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: 56px;
}
.section-label .badge { margin-bottom: 20px; }
.section-title {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 700;
  color: var(--red-900);
  line-height: 1.25; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px; color: var(--slate-500);
  line-height: 1.6; max-width: 540px;
}

/* ====== Hero ====== */
.hero {
  padding: 100px var(--content-padding) 80px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 80px;
}
.hero-text { flex: 1; max-width: 540px; }
.hero-badge {
  display: inline-block;
  background: var(--rose-100); color: var(--red-600);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: 56px; font-weight: 700;
  color: var(--red-900);
  line-height: 1.15; margin-bottom: 24px;
  letter-spacing: -1px;
}
.hero-subheadline {
  font-size: 18px; color: var(--slate-500);
  line-height: 1.7; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; }
.hero-visual {
  flex-shrink: 0;
  width: 460px; height: 420px;
  border-radius: 32px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(127,29,29,0.15);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ====== How It Works ====== */
.how-bg::before { background-image: url('assets/images/2_24.png'); }
.steps-grid {
  display: flex; gap: 48px;
}
.step-card {
  flex: 1; text-align: center;
  background: var(--rose-50); border-radius: 24px;
  padding: 48px 32px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(127,29,29,0.08); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red-600); color: var(--white);
  font-family: var(--font-sans); font-size: 20px; font-weight: 700;
  margin-bottom: 24px;
}
.step-card:nth-child(2) .step-number { background: var(--red-500); }
.step-title {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--red-900);
  margin-bottom: 14px;
}
.step-desc {
  font-size: 15px; color: var(--slate-500);
  line-height: 1.65;
}

/* ====== Features Bento Grid ====== */
.features-grid {
  display: flex; flex-direction: column; gap: 24px;
}
.features-row { display: flex; gap: 24px; }
.feature-card {
  background: var(--white); border-radius: 24px;
  padding: 40px 36px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(127,29,29,0.06); }
.feature-card.wide { flex: 2; }
.feature-card.narrow { flex: 1; }
.feature-icon {
  width: 56px; height: 56px; margin-bottom: 24px;
}
.feature-icon img {
  width: 100%; height: 100%; display: block;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--red-900);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px; color: var(--slate-500);
  line-height: 1.65;
}

/* ====== Social Proof ====== */
.social-bg::before { background-image: url('assets/images/2_80.png'); }
.stats-row {
  display: flex; justify-content: center; gap: 80px;
  margin-bottom: 56px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 700;
  color: var(--red-900);
  line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: 15px; color: var(--slate-500);
  font-weight: 500;
}
.testimonial-card {
  max-width: 700px; margin: 0 auto;
  background: var(--rose-50); border-radius: 24px;
  padding: 48px 48px 40px;
  text-align: center;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 400; font-style: italic;
  color: var(--red-900);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 64px; color: var(--rose-100);
  position: absolute; top: -20px; left: -12px;
  line-height: 1;
}
.testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red-600); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  font-family: var(--font-sans);
}
.author-name {
  font-size: 15px; font-weight: 600;
  color: var(--red-900);
}
.author-role {
  font-size: 13px; color: var(--slate-500);
}

/* ====== CTA ====== */
.cta-section { text-align: center; }
.cta-headline {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 700;
  color: var(--red-900);
  line-height: 1.25; margin-bottom: 20px;
}
.cta-subtitle {
  font-size: 18px; color: var(--slate-500);
  line-height: 1.6; margin-bottom: 36px;
}
.cta-btn-wrap { margin-bottom: 20px; }
.cta-trust {
  font-size: 13px; color: var(--slate-500);
}

/* ====== Articles ====== */
.articles-grid {
  display: flex; gap: 32px;
}
.article-card {
  flex: 1; border-radius: 16px; overflow: hidden;
  background: var(--rose-50);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(127,29,29,0.1); }
.article-img {
  position: relative; height: 200px; overflow: hidden;
  background: linear-gradient(135deg, var(--red-600), var(--red-700), var(--red-900));
}
.article-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--red-600); color: var(--white);
  font-size: 11px; font-weight: 600;
  padding: 6px 14px; border-radius: 14px;
  letter-spacing: 0.5px;
}
.article-body {
  padding: 24px 20px 28px;
}
.article-date {
  font-size: 12px; color: var(--slate-500);
  margin-bottom: 8px;
}
.article-body h4 {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 700;
  color: var(--red-900);
  line-height: 1.45; margin-bottom: 10px;
}
.article-excerpt {
  font-size: 14px; color: var(--slate-500);
  line-height: 1.6;
}
.articles-footer {
  text-align: center; margin-top: 48px;
}

/* ====== Footer ====== */
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 80px var(--content-padding) 40px;
}
.footer-top {
  display: flex; gap: 80px; margin-bottom: 48px;
}
.footer-brand { flex: 0 0 320px; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  display: inline-block;
}
.footer-tagline {
  font-size: 14px; color: var(--rose-100);
  line-height: 1.6;
}
.footer-links {
  flex: 1; display: flex; gap: 60px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  font-size: 14px; color: var(--rose-100);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--white); }
.footer-divider {
  border: none; border-top: 1px solid var(--red-700);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copyright {
  font-size: 14px; color: var(--rose-100);
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  color: var(--rose-100); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }

/* ====== Scroll Animations ====== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 1280px) {
  :root { --content-padding: 40px; }
  .hero { flex-direction: column; gap: 48px; }
  .hero-visual { width: 100%; height: 320px; }
  .hero-text { max-width: 100%; }
  .steps-grid { flex-direction: column; gap: 32px; }
  .features-row { flex-direction: column; }
  .articles-grid { flex-direction: column; }
  .stats-row { gap: 40px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { flex: none; }
  .footer-links { flex-wrap: wrap; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --content-padding: 24px; }
  .nav-links { display: none; }
  .hero-headline { font-size: 36px; }
  .section-title { font-size: 30px; }
  .steps-grid { gap: 24px; }
  .stats-row { flex-direction: column; gap: 24px; }
  .testimonial-card { padding: 32px 24px; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
