/* ── SALES TEAM DIRECTORY (sales-team.html) ──
   Card grid adapted from team.html's leadership grid — same visual language,
   each card links out to that rep's own sales-rep page. Nav/footer come from
   the shared assets/css/site.css. */

.team-section {
  padding: 120px 64px;
  background: var(--white);
}
.team-inner {
  max-width: 1300px; margin: 0 auto;
}
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.team-card-link { display: block; text-decoration: none; color: inherit; }
.team-card {
  position: relative;
  padding: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  transition: background 0.25s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.team-card:hover { background: var(--off); }
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0); }

.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(35,148,174,0.06) 0%, rgba(15,44,83,0.04) 100%),
    var(--light);
  border-bottom: 1px solid var(--rule);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: grayscale(0.25);
}
.team-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,44,83,0.4) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.team-card:hover .team-photo::after { opacity: 0.7; }
.team-photo::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  width: 22px; height: 22px;
  border-top: 1px solid var(--teal);
  border-left: 1px solid var(--teal);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(-4px, -4px);
  z-index: 2;
}
.team-card:hover .team-photo::before {
  opacity: 1;
  transform: translate(0, 0);
}

.team-body {
  padding: 32px 36px 36px;
  display: flex; flex-direction: column;
  flex: 1;
}
.team-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  display: block;
}
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.team-role {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .team-section { padding: 96px 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-section { padding: 72px 20px; }
  .team-grid { grid-template-columns: 1fr; border-left: none; }
  .team-card { border-right: none; }
  .team-card:last-child { border-bottom: none; }
  .team-body { padding: 28px 24px; }
}
