/* ===============================
   EQUIPE EDITORIAL
   Cards com foto grande e uma caixa de informações sobre a parte de baixo da foto.
   =============================== */

.team-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* ---------- cabeçalho ---------- */

.team-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--color-text);
}

.team-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.team-title {
  margin: 12px 0 14px;
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-title);
}

.team-intro,
.team-intro p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* ---------- seções ---------- */

.team-section + .team-section {
  margin-top: 56px;
}

.team-section-title {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-title);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- card ---------- */

.team-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  background-color: var(--color-border-login);
  text-decoration: none;
}

.team-card__photo,
.team-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.team-card__photo img {
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

.team-card__info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 8px;
  background-color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.team-card__name {
  overflow: hidden;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card__role {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--color-text);
}

.team-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-border-login);
  border-radius: 50%;
  color: var(--color-title);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.team-card__icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-card:hover .team-card__icon {
  color: var(--color-bg);
  background-color: var(--color-ui-dark);
  border-color: var(--color-ui-dark);
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- celular ---------- */

@media (max-width: 768px) {
  .team-container {
    padding: 28px 20px 56px;
  }

  .team-header {
    margin-bottom: 32px;
  }

  .team-title {
    font-size: 3rem;
  }

  .team-intro,
  .team-intro p {
    font-size: 1.4rem;
  }

  .team-section + .team-section {
    margin-top: 40px;
  }

  .team-grid {
    gap: 12px;
  }

  .team-card {
    aspect-ratio: 3 / 4;
  }

  .team-card__info {
    left: 6px;
    right: 6px;
    bottom: 6px;
    padding: 8px 8px 8px 10px;
  }

  .team-card__name {
    font-size: 1.3rem;
    white-space: normal;
  }

  .team-card__role {
    font-size: 1.1rem;
  }

  .team-card__icon {
    display: none;
  }
}
