/* Team Section - Single Row with Divider */

.team-section {
  background: #FAFAF8;
  padding: 5rem 0;
}

/* Section Header */
.team-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  /* Fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.team-section__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.team-section__title {
  font-family: 'Recoleta', Georgia, serif;
  font-size: var(--font-size-h2);
  font-weight: 300;
  color: #2A2A2A;
  line-height: var(--line-height-tight);
  margin-bottom: 0.5rem;
}

.team-section__title span {
  color: #2F5A1E;
}

.team-section__subtitle {
  font-size: var(--font-size-body);
  color: #6B6B6B;
  line-height: var(--line-height-normal);
}

/* ============================================
   SINGLE ROW LAYOUT
   ============================================ */

.team-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.team-group {
  display: flex;
  gap: 2.5rem;
}

/* Subtle vertical divider */
.team-divider {
  width: 1px;
  background: #D0D0D0;
  align-self: stretch;
  margin: 0.5rem 2rem;
  min-height: 180px;
}

/* ============================================
   TEAM MEMBER (Uniform treatment)
   ============================================ */

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 170px;
  /* Fade-in animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.team-member.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.team-group--advisors .team-member:nth-child(1) { transition-delay: 0ms; }
.team-group--advisors .team-member:nth-child(2) { transition-delay: 100ms; }
.team-group--founders .team-member:nth-child(1) { transition-delay: 150ms; }
.team-group--founders .team-member:nth-child(2) { transition-delay: 250ms; }
.team-group--founders .team-member:nth-child(3) { transition-delay: 350ms; }

/* Photo - Uniform 140px circles */
.team-member__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E0E0E0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

/* Name */
.team-member__name {
  font-family: 'Recoleta', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2A2A2A;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Role - Green accent */
.team-member__role {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2F5A1E;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Bio - Muted gray */
.team-member__bio {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.4;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1024px) {
  .team-group {
    gap: 2rem;
  }

  .team-member__photo {
    width: 120px;
    height: 120px;
  }

  .team-member {
    max-width: 150px;
  }

  .team-divider {
    margin: 0.5rem 1.5rem;
    min-height: 160px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .team-section {
    padding: 3rem 0;
  }

  .team-section__header {
    margin-bottom: 2.5rem;
  }

  .team-row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .team-divider {
    display: none;
  }

  .team-group {
    justify-content: center;
    gap: 1.5rem;
  }

  .team-member__photo {
    width: 100px;
    height: 100px;
  }

  .team-member {
    max-width: 140px;
  }

  .team-member__name {
    font-size: 0.9375rem;
  }

  .team-member__role {
    font-size: 0.8125rem;
  }

  .team-member__bio {
    font-size: 0.75rem;
  }

  /* Faster stagger on mobile */
  .team-group--advisors .team-member:nth-child(1) { transition-delay: 0ms; }
  .team-group--advisors .team-member:nth-child(2) { transition-delay: 75ms; }
  .team-group--founders .team-member:nth-child(1) { transition-delay: 100ms; }
  .team-group--founders .team-member:nth-child(2) { transition-delay: 175ms; }
  .team-group--founders .team-member:nth-child(3) { transition-delay: 250ms; }
}

/* Very small screens */
@media (max-width: 480px) {
  .team-group {
    flex-wrap: wrap;
  }
}
