/* ============================================================
   BuddieSpace — Our Team Section
   Figma node: 32:726  ("BuddieSpace THE DATA")
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   Section shell
   ───────────────────────────────────────────────────────────── */
.bs-our-team {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  padding: clamp(60px, 6.94vw, 100px) clamp(24px, 6.67vw, 96px);
}

/* ─────────────────────────────────────────────────────────────
   Background photo (hospital hallway at 12% opacity)
   ───────────────────────────────────────────────────────────── */
.bs-our-team__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bs-our-team__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

/* ─────────────────────────────────────────────────────────────
   Inner container
   ───────────────────────────────────────────────────────────── */
.bs-our-team__inner {
  position: relative;
  z-index: 1;
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 3.89vw, 56px);
}

/* ─────────────────────────────────────────────────────────────
   Section title "Our Team"
   Figma: Inter Bold 700, 54px, navy, center, line-height 1.3
   ───────────────────────────────────────────────────────────── */
.bs-our-team__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 3.75vw, 54px);
  color: #21254a;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   Content wrapper — rows sit inside this
   Figma: flex-col, gap-40px
   ───────────────────────────────────────────────────────────── */
.bs-our-team__content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.78vw, 40px);
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   ROW 1 — separate labels row + flat 4-card grid
   Figma node 32:1257
   ───────────────────────────────────────────────────────────── */
.bs-our-team__row1-section {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.67vw, 24px);
  width: 100%;
}

/*
  Labels row: a 4-column CSS grid so each label aligns exactly
  with the card(s) below it.
    col 1   → "Founder:"          (spans 1 col)
    cols 2–3 → "Mental Wellbeing experts:"  (spans 2 cols)
    col 4   → "Advisory Board:"   (spans 1 col)
*/
.bs-our-team__row1-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.67vw, 24px);
}

.bs-our-team__lc--founder  { grid-column: 1; }
.bs-our-team__lc--wellbeing { grid-column: 2 / 4; }
.bs-our-team__lc--advisory { grid-column: 4; }

/* Cards row: same 4-column grid, same gap — perfect alignment */
.bs-our-team__row1-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.67vw, 24px);
}

/* ─────────────────────────────────────────────────────────────
   ROW 2 — Consultants | Interns
   Each group has its own label + 2-card row
   Figma node 32:1186
   ───────────────────────────────────────────────────────────── */
.bs-our-team__row2 {
  display: flex;
  gap: clamp(14px, 1.67vw, 24px);
  align-items: flex-start;
  width: 100%;
}

.bs-our-team__group2 {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.32vw, 19px);
}

.bs-our-team__cards2 {
  display: flex;
  gap: clamp(14px, 1.67vw, 24px);
}

.bs-our-team__cards2 > .bs-our-team__card {
  flex: 1 1 0;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────
   Category group labels
   Figma: Inter ExtraBold 800, 24px, black (#000), center, 1.3
   ───────────────────────────────────────────────────────────── */
.bs-our-team__group-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.67vw, 24px);
  color: #000000;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   Individual team card
   Figma: white bg, navy border 1.702px, radius 14.183px,
          height 300px, justify-center, small bottom pad
   ───────────────────────────────────────────────────────────── */
.bs-our-team__card {
  background-color: #ffffff;
  border: 1.7px solid #21254a;
  border-radius: clamp(10px, 0.99vw, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.25vw, 18px) clamp(10px, 1.04vw, 15px) clamp(6px, 0.51vw, 7.5px);
  height: clamp(220px, 20.83vw, 300px);
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────
   Circular photo
   Figma: ~185–186px circle, object-fit cover
   ───────────────────────────────────────────────────────────── */
.bs-our-team__photo-wrap {
  flex-shrink: 0;
  width: clamp(100px, 12.85vw, 185px);
  height: clamp(100px, 12.85vw, 185px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.bs-our-team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────
   Name + role text block
   ───────────────────────────────────────────────────────────── */
.bs-our-team__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5px;
  text-align: center;
  width: 100%;
  margin-top: clamp(8px, 0.75vw, 11px);
}

/* Figma: Inter Black 900, 15px, navy */
.bs-our-team__name {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(12px, 1.04vw, 15px);
  color: #21254a;
  line-height: normal;
  margin: 0;
}

/* Figma: Inter Medium 500, 12px, navy, centered */
.bs-our-team__role {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 0.83vw, 12px);
  color: #21254a;
  line-height: normal;
  margin: 0;
  text-align: center;
}

/* =============================================================
   RESPONSIVE — wide tablet  (max-width: 1023px)
   Cards stay 4-wide but shrink; row 2 stays side-by-side
   ============================================================= */
@media (max-width: 1023px) {
  .bs-our-team {
    padding: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 48px);
  }

  .bs-our-team__title {
    font-size: clamp(32px, 4.5vw, 44px);
  }

  .bs-our-team__card {
    height: clamp(200px, 22vw, 260px);
  }

  .bs-our-team__photo-wrap {
    width: clamp(85px, 11vw, 145px);
    height: clamp(85px, 11vw, 145px);
  }
}

/* =============================================================
   RESPONSIVE — tablet  (max-width: 767px)
   Row 1 collapses to 2×2; Row 2 stacks vertically
   ============================================================= */
@media (max-width: 767px) {
  /* Row 1: 2 columns */
  .bs-our-team__row1-labels {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Re-map label columns to 2-col grid */
  .bs-our-team__lc--founder   { grid-column: 1; grid-row: 1; }
  .bs-our-team__lc--wellbeing { grid-column: 1 / -1; grid-row: 2; } /* full width */
  .bs-our-team__lc--advisory  { grid-column: 2; grid-row: 1; }

  .bs-our-team__row1-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Row 2: stack groups */
  .bs-our-team__row2 {
    flex-direction: column;
    gap: 24px;
  }

  .bs-our-team__group2 {
    flex: none;
    width: 100%;
  }

  .bs-our-team__card {
    height: auto;
    min-height: 190px;
    padding: 18px 12px 10px;
  }

  .bs-our-team__photo-wrap {
    width: clamp(80px, 18vw, 130px);
    height: clamp(80px, 18vw, 130px);
  }
}

/* =============================================================
   RESPONSIVE — mobile  (max-width: 479px)
   ============================================================= */
@media (max-width: 479px) {
  .bs-our-team {
    padding: 48px 16px;
  }

  .bs-our-team__title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .bs-our-team__row1-labels {
    grid-template-columns: 1fr;
    gap: 0;
    display: none; /* hide separate label row at mobile; labels shown via group headings */
  }

  .bs-our-team__row1-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .bs-our-team__cards2 {
    gap: 12px;
  }

  .bs-our-team__card {
    min-height: 170px;
    padding: 14px 10px 8px;
  }

  .bs-our-team__photo-wrap {
    width: clamp(70px, 20vw, 110px);
    height: clamp(70px, 20vw, 110px);
  }

  .bs-our-team__name {
    font-size: 12px;
  }

  .bs-our-team__role {
    font-size: 10px;
  }

  .bs-our-team__group-label {
    font-size: 16px;
  }
}
