/* ═══════════════════════════════════════
   PAGE-SPECIFIC STYLES
   Hero, section grids, CTA banner, referral
   ═══════════════════════════════════════ */

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) var(--gap) clamp(2rem, 5vw, 4rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle,
    rgba(232,99,74,0.06) 0%, rgba(107,63,160,0.04) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid {
  max-width: var(--max-w); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-portrait {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--warm-gray);
  box-shadow: 0 18px 60px -28px rgba(26,26,26,0.35);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-text { text-align: left; }
.hero-kicker {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 1.5rem; position: relative;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 300;
  line-height: 1.15; color: var(--ink);
  margin: 0 0 1.5rem; max-width: 16em;
  letter-spacing: -0.02em; position: relative;
}
[data-lang="zh"] .hero-h1 {
  font-family: var(--font-zh); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: 0.06em; line-height: 1.5; max-width: 14em;
}
.hero-zh-subline {
  white-space: nowrap;
  display: inline-block;
  font-size: 0.82em;
  letter-spacing: 0.02em;
}
.hero-h1 em { font-style: italic; color: var(--coral); }
.hero-desc {
  font-size: 1rem; line-height: 1.8; color: var(--ink-soft);
  max-width: 42ch; margin: 0 0 2rem;
}
[data-lang="zh"] .hero-desc {
  font-family: var(--font-zh); font-weight: 300;
  max-width: 28em; letter-spacing: 0.02em; line-height: 2;
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  align-items: center; position: relative;
}
.hero-creds {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.hero-creds li {
  font-size: 0.78rem; color: var(--ink-mid);
  background: var(--coral-pale); border: 1px solid var(--coral-soft);
  padding: 0.32rem 0.75rem; border-radius: 999px;
  font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap;
}
[data-lang="zh"] .hero-creds li {
  font-family: var(--font-zh); font-size: 0.75rem; font-weight: 400;
}

/* Hero responsive: stack on tablets and below */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    justify-items: center;
  }
  /* Explicit width (not just max-width) — Safari's grid + aspect-ratio
     resolution can otherwise stretch the item to column width. */
  .hero-portrait { width: 280px; max-width: 100%; }
  .hero-text { text-align: center; }
  .hero-h1 { margin-left: auto; margin-right: auto; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-creds { justify-content: center; }
  [data-lang="zh"] .hero-zh-descline { white-space: nowrap; display: inline-block; }
}
@media (max-width: 560px) {
  .hero-h1            { font-size: 1.8rem; }
  .hero-zh-subline    { font-size: 0.78em; }
  .hero-portrait      { width: 220px; max-width: 100%; }
  [data-lang="zh"] .hero-zh-descline { white-space: normal; display: inline; }
  /* Make buttons full-width on phones for easier tapping */
  .hero-actions       { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { text-align: center; width: 100%; }
}

/* ── ABOUT SECTION ── */
.about {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  /* tighten the section-inner default padding a bit */
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-body {
  max-width: 70ch;
}
.about-body p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 1.1rem;
}
.about-body p:last-child { margin-bottom: 0; }
[data-lang="zh"] .about-body p {
  font-family: var(--font-zh);
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

/* ── PATHWAYS SECTION ── */
.pathways {
  padding: 0 var(--gap) clamp(3rem, 6vw, 5rem);
  max-width: var(--max-w); margin: 0 auto;
}
.pathways-label {
  text-align: center; font-size: 0.82rem;
  color: var(--ink-muted); margin-bottom: 1.5rem;
}
.pathways-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

/* ── SERVICES GRID ── */
.services { background: var(--warm-gray); }
.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 2.5rem; gap: 1rem;
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 300;
  color: var(--ink); line-height: 1.2;
}
[data-lang="zh"] .services-title {
  font-family: var(--font-zh); font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: 0.04em;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

/* ── APPROACH GRID ── */
.approach { background: var(--white); }
.approach-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.approach-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 300;
  color: var(--ink); line-height: 1.25; margin-bottom: 1.2rem;
}
[data-lang="zh"] .approach-title {
  font-family: var(--font-zh); font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.04em; line-height: 1.6;
}
.approach-body {
  font-size: 0.9rem; line-height: 1.85; color: var(--ink-soft);
}
[data-lang="zh"] .approach-body {
  font-family: var(--font-zh); font-weight: 300; line-height: 2.1;
}
.modality-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem;
}

/* ── PRICING GRID ── */
.pricing { background: var(--warm-gray); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

/* ── FAQ ── */
.faq { background: var(--white); }
.faq-list { max-width: 720px; }

/* ── REFERRAL ── */
.referral { background: var(--ink); color: var(--white); }
.referral-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.referral-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 300;
  line-height: 1.25; margin-bottom: 1rem; color: var(--white);
}
[data-lang="zh"] .referral-title {
  font-family: var(--font-zh); font-weight: 400; letter-spacing: 0.04em;
}
.referral-body {
  font-size: 0.88rem; line-height: 1.85;
  color: rgba(255,255,255,0.6); margin-bottom: 1.5rem;
}
[data-lang="zh"] .referral-body {
  font-family: var(--font-zh); font-weight: 300; line-height: 2;
}
.referral-items { display: flex; flex-direction: column; gap: 0.8rem; }
.referral-item {
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.75);
}
.referral-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); margin-top: 7px; flex-shrink: 0;
}

/* ── ARTICLES GRID ── */
.articles { background: var(--white); }
.articles-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 2rem;
}
.articles-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 300; color: var(--ink);
}
[data-lang="zh"] .articles-title {
  font-family: var(--font-zh); font-weight: 500;
}
.articles-all {
  font-size: 0.78rem; color: var(--ink-soft);
  text-decoration: none; transition: color 0.2s;
}
.articles-all:hover { color: var(--coral); }
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 var(--gap) clamp(2rem, 4vw, 3rem);
  background: var(--coral); border-radius: var(--radius-md);
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; pointer-events: none;
  z-index: 0;
}
.cta-illust {
  position: absolute;
  right: clamp(160px, 18vw, 220px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(64px, 8vw, 96px);
  height: auto;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}
.cta-banner-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300;
  color: var(--white); line-height: 1.3; position: relative;
  z-index: 1;
}
[data-lang="zh"] .cta-banner-text {
  font-family: var(--font-zh); font-weight: 400; letter-spacing: 0.04em;
}
.cta-banner-btn {
  background: var(--white); color: var(--coral);
  text-decoration: none; padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  white-space: nowrap; transition: all 0.2s;
  border: none; cursor: pointer; position: relative; z-index: 1;
}
.cta-banner-btn:hover { background: var(--coral-pale); }

/* ── RESPONSIVE overrides for page grids ── */
@media (max-width: 900px) {
  .pathways-grid      { grid-template-columns: 1fr; }
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .approach-grid      { grid-template-columns: 1fr; }
  .pricing-grid       { grid-template-columns: 1fr; max-width: 400px; }
  .referral-grid      { grid-template-columns: 1fr; }
  .articles-grid      { grid-template-columns: 1fr; }
  .cta-banner         { flex-direction: column; text-align: center; }
  .cta-illust         { display: none; }
}
@media (max-width: 560px) {
  .services-grid      { grid-template-columns: 1fr; }
  .modality-grid      { grid-template-columns: 1fr 1fr; }
}
