/* ============================================================
   Leadership / Our Team Page Styles
   ============================================================ */

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.team-hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../images/team-hero.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end; /* Align bottom */
  padding-bottom: 6rem; /* Give it some breathing room from the bottom edge */
}

.team-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #121C27;
  opacity: 0.6;
}

.team-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align */
}

.team-hero__divider {
  width: 100%;
  max-width: 550px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
  position: relative;
}
.team-hero__divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 2px;
  background-color: #fff; /* highlight line */
}

.team-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.team-hero__desc {
  color: #DBDBDB;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 550px;
  margin-bottom: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

.breadcrumb__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: #fff;
}

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
}

.breadcrumb__current {
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   2. INTRO SECTION — "Experience That Executes"
   ============================================================ */
.team-intro {
  background-color: #FFFFFF;
  padding: 90px 0;
}

.team-intro__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  color: #0A1119;
  line-height: 1.2;
  margin-bottom: 3rem;
  text-align: center;
}

.team-intro__features {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 0.5rem; /* For scrollbar breathing room */
}

.team-intro__features::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.team-intro__feat {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green);
  color: var(--color-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.team-intro__feat-icon {
  display: none;
}

.team-intro__text {
  color: #4B535D;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ============================================================
   3. TEAM PHOTO BANNER
   ============================================================ */
.team-photo-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.team-photo-banner__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ============================================================
   TEAM MINDSET SECTION
   ============================================================ */
.team-mindset {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop'); /* Placeholder building background */
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.team-mindset__overlay {
  position: absolute;
  inset: 0;
  background-color: #121C27;
  opacity: 0.85;
}

.team-mindset__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.team-mindset__subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #fff;
}

.team-mindset__text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOUNDERS SECTION
   ============================================================ */
.founders-section {
  background-color: #F6F5F3;
  padding: 100px 0;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.founders-title-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.founders-logo {
  max-width: 250px;
  width: 100%;
}

.founders-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #0A1119;
}

.founder-card {
  background-color: #FFFFFF;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.founder-card__top {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #EAEAEA;
}

.founder-card__img-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #F8F8F8;
}

.founder-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card__bottom {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.founder-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.founder-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: #1A3636;
}

.founder-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2F4F4F;
}

.founder-card__link {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #F4F2EE;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1A3636;
  text-decoration: none;
  font-size: 1.25rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.founder-card__link i {
  transform: rotate(-45deg);
}

.founder-card__link:hover {
  background-color: var(--color-green, #E86A2E);
  color: #fff;
  transform: translateY(-4px);
}

/* ============================================================
   4. TEAM GRID SECTION
   ============================================================ */
.team-grid-section {
  background-color: #FFFFFF;
  padding: 100px 0 110px;
}

.team-grid-section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.team-grid-section__header .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4.8px;
  color: #0A1119;
  margin-bottom: 1rem;
}

.team-grid-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.8125rem);
  font-weight: 500;
  color: #0A1119;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.team-grid-section__subtitle {
  color: #4B535D;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* Team Cards */
.team-card {
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E8E9EB;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.team-card__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.team-card:hover .team-card__img {
  transform: scale(1.06);
}

.team-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0A1119;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.team-card__role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-green, #E86A2E);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   5. JOIN US CTA SECTION
   ============================================================ */
.team-join {
  position: relative;
  background-image: url('https://smartstart.biz/wp-content/uploads/2024/05/team3.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 85px 0;
  text-align: center;
}

.team-join__overlay {
  position: absolute;
  inset: 0;
  background-color: #121C27;
  opacity: 0.82;
}

.team-join__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.team-join__eyebrow {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.team-join__quote {
  font-size: 1.25rem;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.team-join__quote2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* White button variant */
.btn--white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  color: #0A1119;
  border-radius: 9999px;
  padding: 0 2.2rem;
  line-height: 50px;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--white:hover {
  background-color: var(--color-green, #E86A2E);
  color: #fff;
}

/* ============================================================
   TEAM MODAL
   ============================================================ */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
  padding: 2rem;
}

.team-modal.active {
  visibility: visible;
  opacity: 1;
}

.team-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.team-modal__content {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 2;
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0A1119;
  z-index: 10;
}

.team-modal__left {
  width: 35%;
  display: flex;
  flex-direction: column;
  background-color: #121A21; /* Dark blue/black */
  color: #fff;
}

.team-modal__img {
  width: 100%;
  height: 45%;
  object-fit: cover;
}

.team-modal__info {
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-modal__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-modal__role {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.team-modal__divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.team-modal__email {
  font-size: 0.875rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.team-modal__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s;
}

.team-modal__social:hover {
  background-color: var(--color-green, #E86A2E);
}

.team-modal__right {
  width: 65%;
  padding: 4rem;
  overflow-y: auto;
}

.team-modal__heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #0A1119;
  margin-bottom: 2rem;
  font-weight: 400;
}

.team-modal__bio {
  color: #4A5568;
  line-height: 1.8;
  font-size: 1rem;
}

.team-modal__bio p {
  margin-bottom: 1.5rem;
}

/* ============================================================
   6. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large tablets: 4 cols */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets: 3 cols */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-intro__heading {
    margin-bottom: 2.5rem;
  }

  .team-photo-banner__img {
    height: 400px;
  }

  .team-grid-section__title {
    font-size: 2.5rem;
  }

  .team-modal__content {
    flex-direction: column;
    height: 85vh;
    overflow-y: auto;
  }

  .team-modal__left {
    width: 100%;
    height: auto;
  }

  .team-modal__info {
    padding: 1.5rem;
  }

  .team-modal__right {
    width: 100%;
    padding: 2rem;
    overflow-y: visible;
  }

  .team-modal__img {
    height: 300px;
  }
}

/* Small tablets: 2 cols */
@media (max-width: 768px) {
  .team-hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .team-intro__features {
    gap: 1.5rem;
  }

  .founders-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .founders-title-col {
    order: -1;
    padding: 0;
    margin-bottom: 1rem;
  }

  .founders-logo {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-photo-banner__img {
    height: 280px;
  }

  .team-grid-section {
    padding: 70px 0 80px;
  }
}

/* Mobile: single col */
@media (max-width: 480px) {
  .team-hero__title {
    font-size: 2rem;
  }

  .team-hero__desc {
    font-size: 0.9375rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .team-card__body {
    padding: 1rem;
  }

  .team-card__name {
    font-size: 0.9375rem;
  }

  .team-join__quote,
  .team-join__quote2 {
    font-size: 1rem;
  }
}
