
/* =========================================================
   Meet Our Team — AVW V2
   Page-specific styles
   ========================================================= */

/* Page */
.team-page {
  background: #f6f8fa;
}


/* Team Directory */
.team-directory {
  padding: 100px 8% 115px;
}

.team-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 45px;
}

.team-section-heading h2 {
  margin: 18px 0 0;
}

.team-section-heading > p {
  max-width: 360px;
  margin: 0;
  color: #61707d;
  line-height: 1.8;
  font-size: 15px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Team Card */
.team-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8ee;
  border-radius: 10px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: #8ac5e5;
  box-shadow: 0 15px 35px rgba(7, 27, 45, 0.10);
}

/* Photo Placeholder */
.team-photo-placeholder {
  position: relative;
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: #eaf2f8;
  border-bottom: 1px solid #e1e8ee;
}

/* Card Information */
.team-card-info {
  padding: 22px 20px 25px;
}

.team-card-info h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #17212c;
}

.team-card-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #61707d;
}

/* Careers */
.team-careers {
  position: relative;
  overflow: hidden;
  padding: 95px 8%;
  background: linear-gradient(
    115deg,
    #071b2d,
    #0b3652
  );
  color: #fff;
}

.team-careers::after {
  content: "AVW";
  position: absolute;
  right: -3%;
  bottom: -80px;
  font-size: clamp(140px, 22vw, 300px);
  font-weight: 900;
  letter-spacing: -20px;
  opacity: 0.045;
  pointer-events: none;
}

.team-careers-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.team-careers h2 {
  margin: 25px 0;
}

.team-careers h2 span {
  color: #6dc5f3;
}

.team-careers-content > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #c8dae7;
}

.team-careers-link {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
  padding: 15px 24px;
  background: #1b93d1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.team-careers-link:hover {
  background: #0879bb;
}

/* Responsive — Tablet */
@media (max-width: 950px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-section-heading {
    display: block;
  }

  .team-section-heading > p {
    margin-top: 20px;
  }
}

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

  .team-directory {
    padding: 75px 7%;
  }

  .team-careers {
    padding: 75px 7%;
  }
}

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

  .team-section-heading h2 {
    font-size: 36px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-careers-link {
    transition: none;
  }

  .team-card:hover {
    transform: none;
  }
}

/* Meet Our Team — employee photos */
.team-photo-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   Team — Clickable Profile Cards
   ========================================================= */

.team-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

/* Card hover */
.team-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(7, 35, 55, 0.16);
}

/* Photo zoom */
.team-card-link .team-photo-placeholder img {
  transition: transform 0.35s ease;
}

.team-card-link:hover .team-photo-placeholder img {
  transform: scale(1.05);
}

/* Name colour */
.team-card-link:hover .team-card-info h3 {
  color: #0b83bf;
}

/* Profile arrow */
.team-card-link::after {
  content: "↗";
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 19px;
  color: #0b83bf;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-card-link:hover::after,
.team-card-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Keyboard accessibility */
.team-card-link:focus-visible {
  outline: 3px solid #0b83bf;
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .team-card-link,
  .team-card-link .team-photo-placeholder img,
  .team-card-link::after {
    transition: none;
  }
}
