/* ===== Teams Page Styles ===== */

/* Sub Navigation */
.team-subnav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,18,24,.08);
  position: sticky;
  top: 70px;
  z-index: 90;
}
.team-subnav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.team-subnav__inner::-webkit-scrollbar { display: none; }
.team-subnav__link {
  display: inline-block;
  padding: 15px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(18,18,24,.42);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.team-subnav__link:hover { color: #500808; }
.team-subnav__link--active {
  color: #500808;
  border-bottom-color: #500808;
}

/* Page Banner */
.team-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.team-banner__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #500808 0%, #380505 60%, #220303 100%),
    url("assets/Group.JPG") center / cover no-repeat;
  background-blend-mode: multiply;
  opacity: .96;
}
.team-banner__inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 72px;
}
.team-banner__breadcrumb {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.40);
  margin: 0 0 16px;
}
.team-banner__title {
  font-family: var(--serif, 'Source Serif 4', serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.team-banner__sub {
  font-size: 15px;
  color: rgba(255,255,255,.48);
  letter-spacing: .06em;
  margin: 0;
}

/* Section */
.team-section {
  padding: 100px 0;
  background: #fff;
}
.team-section--tint {
  background: #f0ece5;
}
.team-section__header {
  margin-bottom: 56px;
}
.team-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c09a5a;
  margin: 0 0 12px;
}
.team-section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #c09a5a;
}
.team-section__title {
  font-family: var(--serif, 'Source Serif 4', serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  color: #121218;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.team-section__rule {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #500808, rgba(192,154,90,.5));
  margin-bottom: 20px;
}
.team-section__desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(18,18,24,.52);
  max-width: 520px;
  margin: 0;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Card */
.team-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(18,18,24,.07);
  transition: box-shadow .35s ease, transform .35s ease;
}
.team-section--tint .team-card {
  background: #fff;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(18,18,24,.13);
}

/* Photo */
.team-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: #e8e2d9;
  position: relative;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s ease;
}
.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}
.team-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,24,.28) 0%, transparent 45%);
  z-index: 1;
  opacity: 0;
  transition: opacity .35s ease;
}
.team-card:hover .team-card__photo::after {
  opacity: 1;
}
.team-card__photo:not(:has(img))::before {
  content: "";
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  aspect-ratio: 1;
  background: rgba(18,18,24,.10);
  border-radius: 50%;
  z-index: 1;
}

/* Info */
.team-card__info {
  padding: 18px 20px 20px;
  border-top: 2px solid #500808;
  position: relative;
  padding-right: 48px;
}
.team-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #121218;
  margin: 0 0 5px;
  letter-spacing: -.01em;
}
.team-card__role {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(18,18,24,.42);
  margin: 0;
}

/* LinkedIn */
.team-card__linkedin {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #0077B5;
  line-height: 0;
  transition: transform .2s ease, opacity .2s ease;
  opacity: .7;
}
.team-card__linkedin:hover {
  opacity: 1;
  transform: scale(1.15);
}

/* =====================
   RESPONSIVE — TABLET
   ===================== */
@media (max-width: 980px) {
  .team-subnav {
    top: 70px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .team-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-section {
    padding: 80px 0;
  }
  .team-section__header {
    margin-bottom: 44px;
  }
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 720px) {
  .team-subnav {
    top: 70px;
  }
  .team-subnav__link {
    padding: 13px 18px;
    font-size: 11px;
    letter-spacing: .10em;
  }

  .team-banner {
    min-height: 220px;
  }
  .team-banner__inner {
    padding: 52px 0 44px;
  }
  .team-banner__breadcrumb {
    margin: 0 0 10px;
  }
  .team-banner__sub {
    font-size: 13px;
  }

  .team-section {
    padding: 60px 0;
  }
  .team-section__header {
    margin-bottom: 36px;
  }
  .team-section__desc {
    font-size: 14px;
  }

  .team-grid,
  .team-grid--3,
  .team-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .team-card__info {
    padding: 14px 16px 16px;
    padding-right: 44px;
  }
  .team-card__name {
    font-size: 13.5px;
  }
  .team-card__role {
    font-size: 10px;
    letter-spacing: .10em;
  }
  .team-card__linkedin {
    bottom: 12px;
    right: 12px;
  }
  .team-card__linkedin svg {
    width: 16px;
    height: 16px;
  }
}

/* =====================
   RESPONSIVE — SMALL MOBILE
   ===================== */
@media (max-width: 480px) {
  .team-subnav {
    top: 66px;
  }
  .team-subnav__link {
    padding: 12px 14px;
    font-size: 10.5px;
  }

  .team-banner {
    min-height: 190px;
  }
  .team-banner__inner {
    padding: 42px 0 36px;
  }

  .team-section {
    padding: 48px 0;
  }
  .team-section__header {
    margin-bottom: 28px;
  }

  .team-grid,
  .team-grid--3,
  .team-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Shorter photo on small screens */
  .team-card__photo {
    aspect-ratio: 4/5;
  }

  .team-card__info {
    padding: 12px 14px 14px;
    padding-right: 40px;
  }
  .team-card__name {
    font-size: 13px;
    margin: 0 0 3px;
  }
  .team-card__role {
    font-size: 9.5px;
  }
  .team-card__linkedin {
    bottom: 10px;
    right: 10px;
  }
  .team-card__linkedin svg {
    width: 15px;
    height: 15px;
  }
}

/* =====================
   RESPONSIVE — XS
   ===================== */
@media (max-width: 360px) {
  .team-grid,
  .team-grid--3,
  .team-grid--4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team-card__photo {
    aspect-ratio: 3/2;
  }
}
