/* ================================================================
   TRADECONNEX TEAM COMPONENT  —  [tc_team] shortcode
   ----------------------------------------------------------------
   Reusable "Your TradeConnex team" contact section. Loaded globally
   (inc/enqueue.php) so it renders correctly on every template that
   uses the shortcode (Register for Work, Find Talent, etc.).
   Markup: inc/shortcodes/team.php
   ================================================================ */
.tc-team {
  background: #f3f7fd;
  padding: 64px 5%;
}

/* Self-contained container — does not rely on any page-level .tc-container */
.tc-team__container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.tc-team__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
}

.tc-team__header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.tc-team__eyebrow {
  font-size: 12px;
  font-weight: 400;
  color: #0065e4;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  line-height: 1.5;
}

.tc-team__heading {
  font-family: 'Oakes Grotesk', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  color: #132965;
  margin: 0;
}

.tc-team__sub {
  font-size: 18px;
  color: #696969;
  line-height: 1.5;
  max-width: 393px;
  margin: 0;
  flex-shrink: 0;
}

.tc-team__divider {
  height: 1px;
  background: #cfe2ff;
  width: 100%;
  margin-bottom: 40px;
}

.tc-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .tc-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .tc-team-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .tc-team-grid .tc-team-card:nth-child(1) { grid-column: span 2; }
  .tc-team-grid .tc-team-card:nth-child(2) { grid-column: span 2; }
  .tc-team-grid .tc-team-card:nth-child(3) { grid-column: span 2; }
  .tc-team-grid .tc-team-card:nth-child(4) { grid-column: 2 / span 2; }
  .tc-team-grid .tc-team-card:nth-child(5) { grid-column: 4 / span 2; }
}

.tc-team-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.tc-team-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  background: #0065e4;
  flex-shrink: 0;
  overflow: hidden;
}

.tc-team-card__avatar--photo {
  background: none;
}

.tc-team-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tc-team-card__name {
  font-family: 'Oakes Grotesk', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #112967;
  line-height: 1.5;
  margin: 0 0 4px;
}

.tc-team-card__role {
  font-size: 12px;
  font-weight: 400;
  color: #0065e4;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.tc-team-card__spec {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* Contact footer — phone + email stacked as individual links */
.tc-team-card__contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tc-team-card__phone {
  font-size: 16px;
  font-weight: 400;
  color: #112967;
  line-height: 1.5;
  text-decoration: none;
}

.tc-team-card__phone:hover {
  color: #0065e4;
}

.tc-team-card__email {
  font-size: 14px;
  font-weight: 400;
  color: #0065e4;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-word;
}

.tc-team-card__email:hover {
  text-decoration: underline;
}

@media (max-width: 699px) {
  .tc-team__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tc-team__sub {
    max-width: 100%;
  }
}
