/**
 * Shared page furniture + leadership/team components
 * -------------------------------------------------------------------------
 * Scoped to the team page only — every selector is prefixed `bcc-` and used
 * nowhere else, so nothing here can affect another page.
 *
 * Built from the existing design tokens (--color-primary #890000,
 * --color-title #141416, --color-body, Gantari / Inter) so the page reads as
 * part of the site rather than a bolt-on. Red is an accent only: eyebrows,
 * job titles, rules, icons and the rank badge.
 */

:root {
  /* The warm off-white the design calls for, derived rather than invented so
     it sits correctly against the theme's existing white and near-black. */
  --bcc-cream: #F4F1EE;
  --bcc-line: #E4E0DC;
  --bcc-ink: #111111;
}

/* ================================================================== shared */

.bcc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", serif;
  font-size: 13px;
  font-weight: var(--p-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.bcc-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.bcc-eyebrow--centred::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.bcc-heading {
  font-family: "Gantari", serif;
  font-size: 42px;
  line-height: 1.22;
  font-weight: var(--s-bold);
  color: var(--bcc-ink);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.bcc-heading--centred {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.bcc-section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 54px;
}

.bcc-section-head__disc {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.bcc-section-action {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.bcc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border: 1px solid var(--bcc-line);
  border-radius: 6px;
  background: var(--color-white);
  font-family: "Inter", serif;
  font-size: 15px;
  font-weight: var(--p-bold);
  color: var(--bcc-ink);
  transition: border-color var(--transition) ease, color var(--transition) ease,
    gap var(--transition) ease;
}

.bcc-btn-outline i {
  font-size: 13px;
  color: var(--color-primary);
}

.bcc-btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  gap: 18px;
}

/* ==================================================================== hero */

.bcc-team-hero {
  position: relative;
  background-color: var(--bcc-ink);
  background-size: cover;
  background-position: center;
  padding: 132px 0 116px;
  overflow: hidden;
}

/*
 * A single flat wash would grey the photograph out. The gradient keeps the
 * left side dark enough for white text to stay legible while the right side
 * of the image is still readable as a photograph.
 */
.bcc-team-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.92) 0%,
    rgba(17, 17, 17, 0.82) 42%,
    rgba(17, 17, 17, 0.55) 100%
  );
}

.bcc-team-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.bcc-team-hero__title {
  font-family: "Gantari", serif;
  font-size: 54px;
  line-height: 1.15;
  font-weight: var(--s-bold);
  color: var(--color-white);
  margin: 0 0 18px;
  letter-spacing: -0.015em;
}

.bcc-team-hero__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", serif;
  font-size: 13px;
  font-weight: var(--p-semi-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bcc-team-hero__crumb a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition) ease;
}

.bcc-team-hero__crumb a:hover {
  color: var(--color-white);
}

.bcc-team-hero__crumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.4);
}

.bcc-team-hero__crumb .current {
  color: var(--color-primary);
}

/* ======================================================= intro + statistics */

.bcc-team-intro {
  background: var(--bcc-cream);
  padding: 96px 0;
}

.bcc-team-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 60px;
  align-items: center;
}

.bcc-team-intro__disc {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 16px;
  max-width: 480px;
}

.bcc-team-intro__disc:last-child {
  margin-bottom: 0;
}

.bcc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bcc-stats__item {
  background: var(--color-white);
  border: 1px solid var(--bcc-line);
  border-radius: 8px;
  padding: 34px 20px 30px;
  text-align: center;
}

.bcc-stats__icon {
  display: block;
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.bcc-stats__value {
  display: block;
  font-family: "Gantari", serif;
  font-size: 40px;
  line-height: 1;
  font-weight: var(--s-bold);
  color: var(--bcc-ink);
  margin-bottom: 12px;
}

.bcc-stats__label {
  display: block;
  font-family: "Inter", serif;
  font-size: 12px;
  font-weight: var(--p-semi-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--color-body);
}

/* =========================================================== person cards */

.bcc-person-grid {
  display: grid;
  gap: 24px;
}

/*
 * Four across on desktop. The board is a slider now, so this only drives the
 * staff grid — and four gives each portrait enough width for the name and role
 * to sit on one line, which five did not.
 */
.bcc-person-grid--staff {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bcc-person {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--bcc-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition) ease, box-shadow var(--transition) ease,
    border-color var(--transition) ease;
}

.bcc-person:hover {
  transform: translateY(-5px);
  border-color: #D8D2CC;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.10);
}

.bcc-person__media {
  position: relative;
  background: #EDEAE7;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.bcc-person__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s ease;
}

.bcc-person:hover .bcc-person__media img {
  transform: scale(1.05);
}

/* Rank badge marks the executive order without adding another colour. */
.bcc-person__rank {
  position: absolute;
  left: 0;
  top: 18px;
  z-index: 2;
  padding: 6px 12px 6px 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: "Gantari", serif;
  font-size: 13px;
  font-weight: var(--s-bold);
  letter-spacing: 0.06em;
  border-radius: 0 4px 4px 0;
}

.bcc-person__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px 22px 26px;
}

.bcc-person__name {
  font-family: "Gantari", serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: var(--s-bold);
  color: var(--bcc-ink);
  margin: 0 0 6px;
}

.bcc-person__role {
  display: block;
  font-family: "Inter", serif;
  font-size: 13px;
  font-weight: var(--p-semi-bold);
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.bcc-person__disc {
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 18px;
}

/* Anchored to the bottom so footers line up across a row of uneven copy. */
.bcc-person__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Inter", serif;
  font-size: 13px;
  font-weight: var(--p-bold);
  color: var(--bcc-ink);
  transition: color var(--transition) ease, gap var(--transition) ease;
}

.bcc-person__link i {
  font-size: 12px;
  color: var(--color-primary);
  transition: transform var(--transition) ease;
}

.bcc-person__link:hover {
  color: var(--color-primary);
  gap: 14px;
}

.bcc-person:hover .bcc-person__link i {
  transform: translateX(3px);
}

/* The executive card sits on the cream band, so it carries a red top rule to
   read as the more senior of the two treatments. */
.bcc-person--executive {
  position: relative;
}

.bcc-person--executive::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.bcc-person--executive:hover::before {
  transform: scaleX(1);
}

.bcc-person--executive .bcc-person__name {
  font-size: 19px;
}

/* =========================================================== person card go */

/*
 * The profile arrow sits in the card footer beside the name and role. The
 * theme's original .share-btn floated it over the bottom-right of the
 * photograph, where it collided with the decorative social shape.
 */
.team-card__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.team-card__text {
  min-width: 0;
}

.team-card__go {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  transition: transform var(--transition) ease, opacity var(--transition) ease;
}

.team-card__go:hover {
  color: var(--color-white);
  opacity: 0.9;
  transform: translateX(3px);
}

/* ============================================================ board slider */

.bcc-board-slider {
  position: relative;
}

/* Swiper measures its slides, so the overflow has to be visible enough for the
   card's hover lift not to be clipped, while still hiding the next slide. */
.bcc-board-slider .swiper {
  padding: 6px 6px 10px;
  margin: -6px -6px -10px;
}

.bcc-board-slider .swiper-slide {
  height: auto;
}

.bcc-board-slider__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.bcc-board-slider__btn {
  appearance: none;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bcc-line);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--bcc-ink);
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition) ease, color var(--transition) ease,
    border-color var(--transition) ease;
}

.bcc-board-slider__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Swiper adds this when a direction has nowhere left to go. */
.bcc-board-slider__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.bcc-board-slider__btn.swiper-button-disabled:hover {
  background: var(--color-white);
  border-color: var(--bcc-line);
  color: var(--bcc-ink);
}

/* ============================================================ board section */

.bcc-board {
  background: var(--color-white);
  padding: 100px 0;
}

/* =========================================================== staff section */

.bcc-staff {
  background: var(--bcc-cream);
  padding: 100px 0;
}

.bcc-staff .bcc-person {
  border-color: #E8E4E0;
}

.bcc-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 44px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--bcc-line);
}

.bcc-filter__tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  /* Stated explicitly: a stray full-width rule on `button` from the theme or
     Bootstrap would otherwise stack the tabs down the page. */
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 13px 22px;
  font-family: "Inter", serif;
  font-size: 14px;
  font-weight: var(--p-semi-bold);
  color: var(--color-body);
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color var(--transition) ease, background var(--transition) ease;
}

.bcc-filter__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition) ease;
}

.bcc-filter__tab:hover {
  color: var(--bcc-ink);
}

.bcc-filter__tab.is-active {
  color: var(--color-white);
  background: var(--color-primary);
}

.bcc-filter__tab.is-active::after {
  transform: scaleX(1);
}

.bcc-filter__empty {
  text-align: center;
  color: var(--color-body);
  margin: 40px 0 0;
}

/* ========================================================= profile page */

.bcc-profile {
  background: var(--color-white);
  padding: 100px 0;
}

.bcc-profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.bcc-profile__photo {
  border: 1px solid var(--bcc-line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #EDEAE7;
}

.bcc-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bcc-profile__facts {
  margin-top: 24px;
  border: 1px solid var(--bcc-line);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 26px 28px;
  background: var(--bcc-cream);
}

.bcc-profile__fact + .bcc-profile__fact {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bcc-line);
}

.bcc-profile__fact-label {
  display: block;
  font-family: "Inter", serif;
  font-size: 11px;
  font-weight: var(--p-semi-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.bcc-profile__fact-value {
  margin: 0;
  font-family: "Gantari", serif;
  font-size: 16px;
  font-weight: var(--s-semi-bold);
  color: var(--bcc-ink);
  word-break: break-word;
}

.bcc-profile__fact-value a {
  color: var(--bcc-ink);
  transition: color var(--transition) ease;
}

.bcc-profile__fact-value a:hover {
  color: var(--color-primary);
}

.bcc-profile__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--bcc-line);
}

.bcc-profile__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bcc-line);
  border-radius: 5px;
  background: var(--color-white);
  color: var(--bcc-ink);
  font-size: 14px;
  transition: background var(--transition) ease, color var(--transition) ease,
    border-color var(--transition) ease;
}

.bcc-profile__social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.bcc-profile__role {
  display: block;
  font-family: "Inter", serif;
  font-size: 15px;
  font-weight: var(--p-semi-bold);
  color: var(--color-primary);
  margin: -8px 0 26px;
}

.bcc-profile__bio p {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.bcc-profile__bio + .bcc-btn-outline {
  margin-top: 14px;
}

/* ================================================================ careers */

.bcc-team-cta {
  position: relative;
  background-color: var(--bcc-ink);
  background-size: cover;
  background-position: center;
  padding: 96px 0;
  overflow: hidden;
}

.bcc-team-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.94) 0%,
    rgba(17, 17, 17, 0.86) 50%,
    rgba(17, 17, 17, 0.62) 100%
  );
}

.bcc-team-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.bcc-team-cta__title {
  font-family: "Gantari", serif;
  font-size: 36px;
  line-height: 1.25;
  font-weight: var(--s-bold);
  color: var(--color-white);
  margin: 0 0 16px;
}

.bcc-team-cta__disc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 32px;
}

.bcc-team-cta .rts-btn.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bcc-team-cta .rts-btn.btn-primary i {
  font-size: 13px;
}

/* ============================================================== responsive */

@media only screen and (max-width: 1399px) {
  /* 4 across is already the desktop value; nothing to change here. */
}

@media only screen and (max-width: 1199px) {
  .bcc-heading {
    font-size: 36px;
  }

  .bcc-team-hero__title {
    font-size: 44px;
  }

  .bcc-person-grid--staff {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bcc-team-intro__grid {
    gap: 40px;
  }
}

@media only screen and (max-width: 991px) {
  .bcc-team-hero {
    padding: 96px 0 84px;
  }

  .bcc-team-hero__title {
    font-size: 36px;
  }

  /* Stacking the intro means the overlay gradient no longer protects the text,
     so the hero switches to a flat wash at this width. */
  .bcc-team-hero__overlay,
  .bcc-team-cta__overlay {
    background: rgba(17, 17, 17, 0.86);
  }

  .bcc-team-intro,
  .bcc-board,
  .bcc-staff,
  .bcc-team-cta {
    padding: 72px 0;
  }

  .bcc-team-intro__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .bcc-profile {
    padding: 72px 0;
  }

  .bcc-profile__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* The portrait would be full-page-width stacked, so it is capped and the
     facts panel sits alongside it while there is still room. */
  .bcc-profile__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .bcc-profile__facts {
    margin-top: 0;
  }

  .bcc-team-intro__disc {
    max-width: none;
  }

  .bcc-heading {
    font-size: 32px;
  }

  .bcc-person-grid--staff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bcc-section-head {
    margin-bottom: 40px;
  }

  /* Tabs become a horizontal scroller rather than wrapping into a tall block
     that pushes the grid off screen. */
  .bcc-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .bcc-filter::-webkit-scrollbar {
    display: none;
  }

  .bcc-filter__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 767px) {
  .bcc-team-hero {
    padding: 76px 0 64px;
  }

  .bcc-team-hero__title {
    font-size: 30px;
  }

  .bcc-heading,
  .bcc-team-cta__title {
    font-size: 27px;
  }

  .bcc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .bcc-stats__item {
    padding: 24px 10px 22px;
  }

  .bcc-stats__value {
    font-size: 30px;
  }

  .bcc-stats__icon {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .bcc-stats__label {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

@media only screen and (max-width: 575px) {
  .bcc-person-grid--staff {
    grid-template-columns: 1fr;
  }

  /* One column would otherwise give a portrait the full page width. */
  .bcc-person__media {
    aspect-ratio: 16 / 11;
  }

  .bcc-person__media img {
    object-position: center 22%;
  }

  .bcc-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bcc-stats__item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 18px 20px;
  }

  .bcc-stats__icon,
  .bcc-stats__value {
    margin-bottom: 0;
  }

  .bcc-stats__label {
    line-height: 1.4;
  }

  .bcc-team-intro,
  .bcc-board,
  .bcc-staff,
  .bcc-team-cta,
  .bcc-profile {
    padding: 56px 0;
  }

  .bcc-profile__aside {
    grid-template-columns: 1fr;
  }

  .bcc-profile__photo {
    aspect-ratio: 16 / 11;
  }

  .bcc-profile__photo img {
    object-position: center 22%;
  }
}
