/* Our Team page */

/* ---------- Staff rows ---------- */

.cp-team-sec {
  padding: 72px 40px;
}

.cp-team-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.cp-team-row__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.cp-team-row__title {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  text-wrap: balance;
}

.cp-team-staff {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.cp-team-card {
  flex: 0 0 calc((100% - 60px) / 4);
  display: flex;
  flex-direction: column;
  background: var(--cp-card);
  border: 1px solid var(--cp-stone);
}

.cp-team-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cp-stone);
}

.cp-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-team-card__body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--cp-stone);
}

.cp-team-card__body h3 {
  font-size: 24px;
  line-height: 1.15;
}

.cp-team-card__role {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--cp-navy);
}

.cp-team-card__qual {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--cp-muted);
}

/* ---------- Reviews ---------- */

.cp-team-reviews {
  padding: 88px 40px;
}

.cp-team-reviews__head {
  margin-bottom: 32px;
  text-align: center;
}

.cp-team-reviews__title {
  text-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cp-team-row {
    gap: 28px !important;
  }

  .cp-team-card {
    flex-basis: calc((100% - 40px) / 3) !important;
  }
}

@media (max-width: 760px) {
  .cp-team-staff {
    gap: 14px !important;
  }

  .cp-team-card {
    flex-basis: calc((100% - 14px) / 2) !important;
  }
}
