/* ═══ TESTIMONIALS ═══ */
.testimonials-section {
  background: #faf7f0; /* warm cream */
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-gold);
}

.testimonial-quote {
  color: var(--color-gold);
}

.testimonial-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  flex: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f8c 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-author span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.testimonial-note {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

/* ═══ TEAM BIO ═══ */
.team-section {
  background: #faf7f0;
}

.team-card-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  align-items: start;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f8c 60%, #1a2f7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-gold);
  flex-shrink: 0;
}

.team-avatar-initials {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.team-bio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.team-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.team-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.team-creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}

.team-cred-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border: 1px solid rgba(27,42,94,0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.team-bio-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

.team-contact {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.team-email-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.team-email-link:hover { color: var(--color-gold-active); }

/* ═══ WARM SECTION BACKGROUND OVERRIDE ═══ */
/* Home page sections that should get cream bg */
.why-section {
  background: #faf7f0 !important;
}

/* Dark mode overrides */
[data-theme="dark"] .testimonials-section,
[data-theme="dark"] .team-section,
[data-theme="dark"] .why-section {
  background: var(--color-surface-2) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .testimonials-section,
  :root:not([data-theme]) .team-section,
  :root:not([data-theme]) .why-section {
    background: var(--color-surface-2) !important;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-card {
    grid-template-columns: 1fr;
  }
  .team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .team-avatar-initials { font-size: 2.2rem; }
  .team-bio-header { flex-direction: column; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
