/**
 * Canvas Team Card: layout variants.
 *
 * The hover-reveal, roster, stats, stacked and leader cards, and the team
 * sections they sit in: department tabs, the sticky spotlight, the pull-quote,
 * the uniform thumbnail row and the parallax hero.
 *
 * @package Canvas_Core
 * @since   1.0.0
 */

/* ----------------------------------------------------------------
	Team: Hover-Reveal Bio
-----------------------------------------------------------------*/
.team-hover-reveal {
  position: relative;
  overflow: hidden;
}
.team-hover-reveal .team-image {
  position: relative;
  overflow: hidden;
}
.team-hover-reveal .team-image img {
  transition: transform 0.5s ease;
  width: 100%;
}
.team-hover-reveal .team-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.team-hover-reveal .team-desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
  color: var(--cnvs-white);
  text-align: left;
  z-index: 2;
  transform: translateY(20%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.team-hover-reveal .team-title {
  padding-top: 0;
  margin-bottom: 0.5rem;
}
.team-hover-reveal .team-title h4, .team-hover-reveal .team-title .h4 {
  color: var(--cnvs-white);
}
.team-hover-reveal .team-title span {
  color: rgba(255, 255, 255, 0.75);
}
.team-hover-reveal .team-content {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.85);
}
.team-hover-reveal .team-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.team-hover-reveal .team-social {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.4rem;
}
.team-hover-reveal:hover .team-image img {
  transform: scale(1.06);
}
.team-hover-reveal:hover .team-image::after {
  opacity: 1;
}
.team-hover-reveal:hover .team-desc {
  transform: translateY(0);
  opacity: 1;
}

/* ----------------------------------------------------------------
	Team: Tabbed by Department
-----------------------------------------------------------------*/
.team-tabs .nav-tabs {
  border-bottom: 1px solid var(--cnvs-contrast-200);
  margin-bottom: 2rem;
}
.team-tabs .nav-tabs li {
  margin-bottom: -1px;
}
.team-tabs .nav-tabs li a {
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  color: var(--cnvs-contrast-600);
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.team-tabs .nav-tabs li a:hover {
  color: var(--cnvs-heading-color);
  border-color: var(--cnvs-contrast-200);
}
.team-tabs .nav-tabs li.ui-tabs-active a {
  color: var(--cnvs-themecolor);
  border-color: var(--cnvs-themecolor);
  background: transparent;
}
.team-tabs .tab-content {
  position: relative;
}
.team-tabs .row {
  display: flex;
  flex-wrap: wrap;
}
.team-tabs .row > [class*=col-] {
  display: flex;
}
.team-tabs .row > [class*=col-] .team {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.team-tabs .row > [class*=col-] .team .team-image {
  flex: 0 0 auto;
}
.team-tabs .row > [class*=col-] .team .team-image img {
  width: 100%;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.team-tabs .row > [class*=col-] .team .team-desc {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ----------------------------------------------------------------
	Team: Sticky Spotlight + Scrolling Roster
-----------------------------------------------------------------*/
.team-spotlight {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.team-spotlight .team-featured {
  flex: 0 0 38%;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}
.team-spotlight .team-featured .team {
  text-align: left;
}
.team-spotlight .team-featured .team-image {
  max-height: 480px;
  overflow: hidden;
}
.team-spotlight .team-featured .team-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}
.team-spotlight .team-featured .team-title {
  padding-top: 1rem;
  text-align: left;
}
.team-spotlight .team-featured .team-title::after {
  left: 0;
  margin-left: 0;
}
.team-spotlight .team-featured .team-desc {
  text-align: left;
}
.team-spotlight .team-featured .team-content {
  margin-top: 1rem;
}
.team-spotlight .team-featured .team-content p {
  font-size: 1rem;
  line-height: 1.65;
}
.team-spotlight .team-featured .team-meta {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cnvs-contrast-200);
  font-size: 0.9rem;
}
.team-spotlight .team-featured .team-meta li {
  list-style: none;
}
.team-spotlight .team-featured .team-meta li strong {
  display: block;
  color: var(--cnvs-heading-color);
  font-weight: 600;
  font-size: 1.15rem;
}
.team-spotlight .team-featured .team-meta li span {
  color: var(--cnvs-contrast-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.team-spotlight .team-roster {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.team-spotlight .team-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--cnvs-contrast-100);
  transition: background 0.2s ease, transform 0.2s ease;
}
.team-spotlight .team-row:hover {
  background: var(--cnvs-contrast-200);
  transform: translateX(4px);
}
.team-spotlight .team-row .team-avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.team-spotlight .team-row .team-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.team-spotlight .team-row .team-info {
  flex: 1;
  min-width: 0;
}
.team-spotlight .team-row .team-info h5, .team-spotlight .team-row .team-info .h5 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cnvs-heading-color);
}
.team-spotlight .team-row .team-info h5 a, .team-spotlight .team-row .team-info .h5 a {
  color: inherit;
}
.team-spotlight .team-row .team-info span {
  font-size: 0.85rem;
  color: var(--cnvs-contrast-600);
}
.team-spotlight .team-row .team-mini-social {
  display: flex;
  gap: 0.35rem;
}
.team-spotlight .team-row .team-mini-social a {
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 0.75rem;
  text-align: center;
  border-radius: 50%;
  background: var(--cnvs-contrast-0);
  color: var(--cnvs-contrast-600);
  display: inline-block;
  transition: color 0.2s ease, background 0.2s ease;
}
.team-spotlight .team-row .team-mini-social a:hover {
  color: var(--cnvs-white);
  background: var(--cnvs-themecolor);
}
@media (max-width: 991.98px) {
  .team-spotlight {
    flex-direction: column;
  }
  .team-spotlight .team-featured {
    position: static;
    flex: 1 1 100%;
  }
  .team-spotlight .team-image {
    max-height: none;
  }
}
@media (max-width: 575.98px) {
  .team-spotlight .team-row {
    flex-wrap: wrap;
  }
  .team-spotlight .team-mini-social {
    flex-basis: 100%;
    padding-top: 0.5rem;
  }
}

/* ----------------------------------------------------------------
	Team: Pull-Quote Leader Block
-----------------------------------------------------------------*/
.team-pullquote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2.5rem;
  background: var(--cnvs-contrast-100);
  border-radius: 1rem;
  margin-bottom: 3rem;
}
.team-pullquote blockquote {
  flex: 1 1 55%;
  min-width: 280px;
  margin: 0;
  padding: 0 0 0 2.5rem;
  border: none;
  border-left: 4px solid var(--cnvs-themecolor);
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.4;
  color: var(--cnvs-heading-color);
  position: relative;
}
.team-pullquote blockquote footer {
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--cnvs-body-font);
  font-size: 0.85rem;
  color: var(--cnvs-contrast-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.team-pullquote .team-leader {
  flex: 0 0 240px;
  text-align: center;
}
.team-pullquote .team-leader img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 5px solid var(--cnvs-contrast-0);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08);
}
.team-pullquote .team-leader h4, .team-pullquote .team-leader .h4 {
  margin: 1rem 0 0.15rem;
  font-size: 1.15rem;
}
.team-pullquote .team-leader span {
  font-size: 0.9rem;
  color: var(--cnvs-contrast-600);
}
@media (max-width: 767.98px) {
  .team-pullquote {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .team-pullquote blockquote {
    font-size: 1.25rem;
    padding: 1.5rem 0 0;
    border-left: none;
    border-top: 4px solid var(--cnvs-themecolor);
    flex: 1 1 100%;
  }
  .team-pullquote .team-leader {
    flex: 1 1 100%;
  }
}

/* ----------------------------------------------------------------
	Team: Uniform Thumbnail Row
-----------------------------------------------------------------*/
.team-thumbs-uniform .team-image img {
  width: 100%;
  height: 320px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
}
@media (max-width: 991.98px) {
  .team-thumbs-uniform .team-image img {
    height: 260px;
  }
}

/* ----------------------------------------------------------------
	Team: Stats Row
-----------------------------------------------------------------*/
.team-stats {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  text-align: left;
}
.team-stats .team-image {
  flex: 0 0 165px;
  align-self: stretch;
}
.team-stats .team-image img {
  width: 165px;
  height: 100%;
  min-height: 165px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  border-radius: 0.5rem;
}
.team-stats .team-info {
  flex: 1;
  min-width: 0;
}
.team-stats .team-title {
  padding-top: 0;
  text-align: left;
}
.team-stats .team-title h4, .team-stats .team-title .h4 {
  font-size: 1.15rem;
}
.team-stats .team-content {
  margin-top: 0.4rem;
}
.team-stats .team-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cnvs-contrast-200);
}
.team-stats .team-numbers li {
  list-style: none;
  flex: 1 1 auto;
  min-width: 70px;
}
.team-stats .team-numbers li strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cnvs-themecolor);
  line-height: 1;
}
.team-stats .team-numbers li span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cnvs-contrast-600);
  margin-top: 0.25rem;
}
@media (max-width: 575.98px) {
  .team-stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------------------------------------------
	Team: Parallax / Stacked Cards
-----------------------------------------------------------------*/
.team-parallax {
  position: relative;
}
.team-parallax .team-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}
.team-parallax .team-hero img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 20%;
     object-position: center 20%;
  filter: brightness(0.55);
}
.team-parallax .team-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
  z-index: 1;
}
.team-parallax .team-hero .team-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 2rem 3rem;
  color: var(--cnvs-white);
  text-align: center;
}
.team-parallax .team-hero .team-hero-overlay h2, .team-parallax .team-hero .team-hero-overlay .h2 {
  color: var(--cnvs-white);
  margin-bottom: 0.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.team-parallax .team-hero .team-hero-overlay span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  display: block;
}
.team-parallax .team-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
  background: var(--cnvs-contrast-0);
}
.team-parallax .team-card {
  position: relative;
  padding: 2rem;
  background: var(--cnvs-contrast-100);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.team-parallax .team-card img {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.team-parallax .team-card .team-body {
  flex: 1;
}
.team-parallax .team-card .team-body h4, .team-parallax .team-card .team-body .h4 {
  margin: 0 0 0.15rem;
}
.team-parallax .team-card .team-body > span {
  font-size: 0.85rem;
  color: var(--cnvs-themecolor);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}
.team-parallax .team-card .team-body p {
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: var(--cnvs-contrast-700);
}
@media (max-width: 575.98px) {
  .team-parallax .team-card {
    flex-direction: column;
    text-align: center;
  }
  .team-parallax .team-card img {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
  }
}
