/* ============================================================
   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;
  padding-bottom: 6rem;
}

.team-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 128, 121, 0.75) 0%, rgba(1, 128, 121, 0.9) 100%);
}

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

.team-hero__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.team-hero__desc {
  color: #DBDBDB;
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.hero-scroll-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 10;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

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

.team-intro__heading {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0A1119;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  text-align: center;
}

.team-intro__features {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.team-intro__feat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #CFDD26;
  color: #0A1119;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(207, 221, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-intro__feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(207, 221, 38, 0.35);
}

.team-intro__feat-icon {
  display: inline-block;
  font-size: 0.875rem;
  color: #0A1119;
}

/* ============================================================
   3. TEAM PHOTO BANNER — Full-width edge-to-edge
   ============================================================ */
.team-photo-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background-color: #0A1119;
}

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

/* ============================================================
   4. TEAM MINDSET SECTION
   ============================================================ */
.team-mindset {
  position: relative;
  background-color: #2C3E50;
  padding: 90px 0;
  text-align: center;
  color: #FFFFFF;
}

.team-mindset__overlay {
  display: none;
}

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

.team-mindset__subtitle {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.team-mindset__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn--white {
  background-color: #FFFFFF;
  color: #0A1119;
  font-weight: 700;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn--white:hover {
  background-color: #CFDD26;
  color: #0A1119;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ============================================================
   5. FOUNDERS SECTION
   ============================================================ */
.founders-section {
  background-color: #FFFFFF;
  padding: 90px 0 50px;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

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

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

.founders-text {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 3.25rem;
  font-weight: 800;
  color: #0A1119;
  letter-spacing: -0.02em;
  margin: 0;
}

.founder-card {
  background-color: #FFFFFF;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid #EBECEE;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.09);
}

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

.founder-card__img-wrap {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #F8F9FA;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

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

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

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

.founder-card__name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0A1119;
  margin: 0;
}

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

.founder-card__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #F4F5F7;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0A1119;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

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

.founder-card__link:hover {
  background-color: #CFDD26;
  color: #0A1119;
  transform: scale(1.08);
}

/* ============================================================
   6. TEAM GRID SECTION (5x2 Grid)
   ============================================================ */
.team-grid-section {
  background-color: #FFFFFF;
  padding: 30px 0 100px;
}

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

.team-grid-section__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0A1119;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

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

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

/* Team Cards */
.team-card {
  background-color: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #EBECEE;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.team-card__img-wrap {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  background: linear-gradient(135deg, #F0F6FA 0%, #E8F1F8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

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

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

.team-card__body {
  padding: 1.25rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-card__name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0A1119;
  margin: 0;
}

.team-card__role {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94C11F;
  margin: 0;
}

/* ============================================================
   7. JOIN US CTA SECTION
   ============================================================ */
.team-join {
  position: relative;
  background-color: #2C3E50;
  padding: 95px 0;
  text-align: center;
  color: #FFFFFF;
}

.team-join__overlay {
  display: none;
}

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

.team-join__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #CFDD26;
  margin-bottom: 1.75rem;
}

.team-join__quote {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.team-join__quote2 {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(1, 128, 121, 0.75);
  backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #F4F5F7;
  border: none;
  color: #0A1119;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s, transform 0.2s;
}

.modal__close:hover {
  background-color: #0A1119;
  color: #FFFFFF;
}

.modal__content {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.modal__img-wrap {
  background-color: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.modal__body {
  padding: 3rem 2.5rem;
}

.modal__name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 0.25rem;
}

.modal__role {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #018079;
  margin-bottom: 1.5rem;
}

.modal__bio {
  color: #4B535D;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .founders-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .founders-title-col {
    order: -1;
    align-items: center;
    padding: 0 0 1rem;
  }
  .modal__content {
    grid-template-columns: 1fr;
  }
  .modal__img-wrap {
    padding: 2rem 2rem 0;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .team-intro__features {
    flex-direction: column;
    align-items: stretch;
  }
  .team-intro__feat {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
