/* ===========================
   Team Page – BEM Styles
   Pixel-perfect match to Figma frame
   =========================== */

/* ===========================
   Page Layout
   =========================== */
.team-page {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 48px 100px 80px;
  width: 100%;
  height: 100%;
}

/* ===========================
   Section Header
   =========================== */
.team-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 1280px;
}

.team-header__divider {
  width: 92.145px;
  height: 3px;
  border-radius: 4px;
  background-color: #c7a659;
}

.team-header__subtitle {
  font-weight: 400;
  font-size: 16px;
  color: black;
  text-align: center;
  margin: 0;
}

/* ===========================
   Team Card
   =========================== */
.team-cards-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  gap: 2rem;
}
.team-card {
  display: flex;
  top: 120px;
  position: sticky;
  align-items: flex-start;
  width: 100%;
  max-width: 840px;
  height: auto;
  background-color: white;
  border-radius: 12px;
  box-shadow:
    0px 4px 8px -2px rgba(0, 0, 0, 0.1),
    0px 2px 4px -2px rgba(0, 0, 0, 0.06);
  overflow: clip;
  align-items: stretch;
  transition: 0.3s;

  @media screen and (max-width: 640px) {
    position: static;
  }
}
.team-card:hover {
  transform: scale(1.03);
  transition: 0.3s;
  border: 1px solid var(--color-sundance);
  box-shadow:
    0 4px 18px -2px rgba(199, 166, 89, 0.12),
    0 2px 8px -2px rgba(199, 166, 89, 0.06);
  .team-card__background {
    transform: scale(1.2);
    transition: 0.4s;
  }
}

/* Image Column */

.team-card__image-wrapper {
  width: auto;
  height: 300px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 392/275;
}

.team-card__image {
  width: auto;
  height: 90%;
  object-fit: contain;
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translatex(-50%);
  z-index: 2;
}
.team-card__background {
  z-index: 1;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  object-position: "center center";
  transition: 0.4s;
}
/* Content Column */
.team-card__content {
  flex: 1 0 0;

  position: relative;
}

.team-card__content-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  align-items: flex-start;
  padding: 20px;
  width: 100%;
}

/* Info Block (name + bio) */
.team-card__info {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.team-card__name {
  font-weight: 500;
  font-size: 20px;
  color: var(--color-accent-darker);
  margin: 0;
  width: 100%;
}

.team-card__bio {
  font-weight: 400;
  font-size: 16px;

  margin: 0;
  width: 100%;
}

/* Footer Block (phone, actions, languages) */
.team-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding-top: 24px;
  width: 100%;
  position: relative;
}

.team-card__footer-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #f2f2f2;
  pointer-events: none;
}

/* Contact Row */
.team-card__contact {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

/* Phone group */
.team-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.team-card__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: #f2f2f2;
  border-radius: 6px;
  flex-shrink: 0;
}

.team-card__phone-icon-svg {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.team-card__phone-icon-svg svg {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
}

.team-card__phone-number {
  font-weight: 400;
  font-size: 16px;
  color: black;
  white-space: nowrap;
}
.team-card__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background-color: #133d34;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
}

.team-card__social-btn-border {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid #133d34;
  border-radius: 7px;
  pointer-events: none;
}

.team-card__social-btn:hover {
  background-color: #0d2b25;
}

.team-card__social-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  overflow: clip;
}

.team-card__social-icon svg {
  display: block;
}

/* Languages Row */
.team-card__languages {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.team-card__languages-label {
  font-weight: 500;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.64px;
  white-space: nowrap;
}

.team-card__languages-value {
  font-weight: 400;
  font-size: 16px;
  color: black;
  background-color: #f2f2f2;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: now;
}
/* ===========================
   View All Button
   =========================== */
.team-page__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  background-color: #133d34;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

.team-page__view-all-border {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid #133d34;
  border-radius: 7px;
  pointer-events: none;
}

.team-page__view-all:hover {
  background-color: #0d2b25;
}

/* ===========================
   Responsive
   =========================== */
@media screen and (max-width: 768px) {
  .team-page {
    padding: 36px 24px 60px;
  }
  .team-header__title {
    font-size: 36px;
  }
}
@media screen and (max-width: 640px) {
  .team-card {
    flex-direction: column;
    width: 100%;
  }
  .team-card__image-wrapper {
    width: 100%;
    aspect-ratio: none;
  }
  .team-card__languages-label {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .team-page {
    padding: 24px 16px 48px;
    gap: 24px;
  }

  .team-card__contact {
    flex-wrap: wrap;
  }

  .team-card__languages {
    flex-wrap: wrap;
  }
}
