/* Team-Widget — Mirror-only static replacement for disabled Elfsight Showcase */

.team-widget {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  font-family: inherit;
}

.team-widget__group-title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #1a1a1a;
  margin: 0 0 1.25em 0;
}

.team-widget__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
}

.team-widget__card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 2px;
  cursor: default;
}

.team-widget__card.is-linked {
  cursor: pointer;
}

.team-widget__card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
  color: inherit;
}

.team-widget__cta {
  position: absolute;
  left: 50%;
  bottom: 1.25em;
  transform: translate(-50%, 1em);
  width: 2.6em;
  height: 2.6em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease;
  pointer-events: none;
}

.team-widget__cta svg {
  width: 1.1em;
  height: 1.1em;
  display: block;
}

.team-widget__card.is-linked:hover .team-widget__cta {
  opacity: 1;
  transform: translate(-50%, 0);
  background: rgba(255, 255, 255, 0.25);
}

.team-widget__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.95);
}

.team-widget__card:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.team-widget__card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.25em 1em 1.5em;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 25%,
    rgba(0, 0, 0, 0) 55%
  );
  color: #fff;
  pointer-events: none;
  transition: padding-bottom 0.35s ease;
}

.team-widget__card.is-linked:hover .team-widget__card-overlay {
  padding-bottom: 4.25em;
}

.team-widget__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35em 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.team-widget__role {
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  opacity: 0.92;
  max-width: 22em;
}

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

@media (max-width: 600px) {
  .team-widget__grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .team-widget__card {
    aspect-ratio: 4 / 4.5;
  }
}
