/* ==========================================================================
   About Page Styles — Team grid, FAQ accordion
   ========================================================================== */

/* -- Team Grid ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-top: 3px solid transparent;
}

.team-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-top-color: var(--brand-primary);
}

.team-card--placeholder {
  border-style: dashed;
  border-color: #d1d5db;
  border-top-color: #d1d5db;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid #f3f4f6;
  transition: border-color 0.3s ease;
}

.team-card:hover .team-card__photo {
  border-color: var(--brand-primary);
}

.team-card__photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 70%, #1a1a2e));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-card__photo-placeholder {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb, 37, 99, 235), 0.3);
}

.team-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.team-card__email {
  font-size: 0.85rem;
}

/* -- FAQ Accordion -------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item.is-open {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb, 37, 99, 235), 0.1);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  text-align: left;
  line-height: 1.4;
  font-family: inherit;
  transition: color 0.2s;
  gap: 1rem;
}

.faq-item__question:hover {
  color: var(--brand-primary);
}

.faq-item.is-open .faq-item__question {
  color: var(--brand-primary);
}

.faq-item__icon {
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--brand-primary);
  color: #ffffff;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding: 0 1.25rem 1.25rem;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* -- Responsive ----------------------------------------------------------- */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .faq-item__question {
    padding: 1rem 1rem;
    font-size: 0.9rem;
  }

  .faq-item__answer p {
    padding: 0 1rem 1rem;
  }
}
