/* -------------------------------------------------------------------------
   Team page — banner (static hero)
   ------------------------------------------------------------------------- */

.team-hero {
  width: 100%;
}

.team-hero__inner {
  width: 100%;
}

.team-hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 745;
  border-radius: 20px;
  overflow: hidden;
}

.team-hero__media picture,
.team-hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.team-hero__image {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.team-hero__content {
  position: absolute;
  z-index: 1;
  top: 28px;
  right: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  max-width: 639px;
}

.team-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #07293e;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-hero__eyebrow-dot {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #73d630;
}

.team-hero__title {
  margin: 10px 0 0;
  color: #07293e;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-hero__text {
  margin: 16px 0 0;
  max-width: 430px;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .team-hero__inner {
    padding-inline: 10px;
  }

  .team-hero__media {
    aspect-ratio: 1420 / 689;
  }

  .team-hero__content {
    top: 30px;
    right: auto;
    left: 18px;
  }
}

@media (min-width: 992px) {
  .team-hero__content {
    top: 90px;
    left: 40px;
  }

  .team-hero__eyebrow {
    font-size: 16px;
  }

  .team-hero__title {
    margin-top: 13px;
    font-size: 54px;
  }

  .team-hero__text {
    margin-top: 20px;
  }
}

@media (min-width: 1200px) {
  .team-hero__content {
    top: 120px;
    left: 50px;
  }

  .team-hero__eyebrow {
    font-size: 17px;
  }

  .team-hero__title {
    margin-top: 14px;
    font-size: 58px;
  }

  .team-hero__text {
    margin-top: 22px;
  }
}

@media (min-width: 1440px) {
  .team-hero__content {
    top: 148px;
    left: 60px;
  }

  .team-hero__eyebrow {
    font-size: 18px;
  }

  .team-hero__title {
    margin-top: 16px;
    font-size: 64px;
  }

  .team-hero__text {
    margin-top: 24px;
  }
}

/* -------------------------------------------------------------------------
   Team page — Core Competencies
   ------------------------------------------------------------------------- */

.team-competencies {
  margin-top: 35px;
}

.team-competencies__title {
  margin: 0;
  color: #07293e;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-competencies__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.team-competencies__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
  background-color: #e8f1f8;
  background-image: url('../images/core-card-bg.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.team-competencies__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.team-competencies__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.team-competencies__card-title {
  margin: 20px 0 0;
  max-width: 310px;
  color: #07293e;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.team-competencies__card-text {
  margin: 12px 0 0;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .team-competencies {
    margin-top: 42px;
  }

  .team-competencies__title {
    font-size: 32px;
  }

  .team-competencies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .team-competencies__card {
    padding: 18px;
  }

  .team-competencies__icon {
    width: 56px;
    height: 56px;
  }

  .team-competencies__card-title {
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  .team-competencies {
    margin-top: 48px;
  }

  .team-competencies__title {
    font-size: 36px;
  }

  .team-competencies__grid {
    gap: 16px;
  }

  .team-competencies__card {
    padding: 20px;
  }

  .team-competencies__icon {
    width: 60px;
    height: 60px;
  }

  .team-competencies__card-title {
    font-size: 24px;
  }
}

@media (min-width: 1200px) {
  .team-competencies {
    margin-top: 54px;
  }

  .team-competencies__title {
    font-size: 40px;
  }

  .team-competencies__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .team-competencies__card {
    padding: 22px;
  }

  .team-competencies__icon {
    width: 63px;
    height: 63px;
  }

  .team-competencies__card-title {
    font-size: 25px;
  }
}

@media (min-width: 1440px) {
  .team-competencies {
    margin-top: 60px;
  }

  .team-competencies__title {
    font-size: 44px;
  }

  .team-competencies__grid {
    gap: 20px;
  }

  .team-competencies__card {
    padding: 24px;
  }

  .team-competencies__icon {
    width: 66px;
    height: 66px;
  }

  .team-competencies__card-title {
    font-size: 26px;
  }
}

/* -------------------------------------------------------------------------
   Team page — Executive Leadership
   ------------------------------------------------------------------------- */

.section.team-leadership {
  padding-right: 0;
  padding-left: 0;
}

.team-leadership__panel {
  max-width: 1420px;
  margin-inline: auto;
  padding: 60px 16px;
  border-radius: 20px;
  background-color: var(--color-muted);
  background-image: url('../images/leader-slider-bg.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.team-leadership__header {
  margin: 0;
}

.team-leadership__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-leadership__dot {
  display: block;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #73d630;
}

.team-leadership__title {
  margin: 12px 0 0;
  color: #07293e;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-leadership__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 24px 0 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 10px;
  border-radius: 6px;
  color: #07293e;
}

.team-card--leader {
  background-color: #ffffff4d;
}

.team-card--member {
  background-color: #9abfdc;
}

.team-card__media {
  display: block;
  flex-shrink: 0;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.team-card--leader .team-card__media {
  height: 343px;
}

.team-card--member .team-card__media {
  height: 343px;
}

@media (min-width: 768px) {
  .team-card--member .team-card__media {
    height: auto;
    aspect-ratio: 305 / 343;
  }
}

.team-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.team-card__media:hover .team-card__image {
  transform: scale(1.04);
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-top: 20px;
  padding: 0 10px 14px;
}

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

.team-card__name {
  margin: 0;
  color: #07293e;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-card__position {
  margin: 6px 0 0;
  color: #07293e;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-card__excerpt {
  margin: 6px 0 0;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.team-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.team-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #07293e;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-card__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.team-card__more-icon img {
  display: block;
  width: 11.15px;
  height: 12.6px;
}

.team-card__more:hover {
  color: #07293ef2;
}

.team-card__more:hover .team-card__more-icon {
  transform: translateX(3px);
}

.team-card__social.btn.btn--icon {
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 100px;
  background-color: #07293e;
  color: var(--color-white);
}

.team-card__social.btn.btn--icon:hover {
  background-color: #07293ef2;
  color: var(--color-white);
}

.team-card__social.btn.btn--icon:active {
  background-color: #07293e;
  color: var(--color-white);
}

.team-card__social img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .section.team-leadership {
    padding-right: 10px;
    padding-left: 10px;
  }

  .team-leadership__panel {
    padding: 60px 20px;
  }

  .team-leadership__title {
    font-size: 36px;
  }

  .team-leadership__grid {
    gap: 14px;
    margin-top: 26px;
  }

  .team-card__name {
    font-size: 22px;
  }

  .team-card__position {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .team-leadership__panel {
    padding: 60px 24px;
  }

  .team-leadership__title {
    font-size: 40px;
  }

  .team-leadership__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
  }

  .team-card__name {
    font-size: 24px;
  }

  .team-card__position {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .team-leadership__panel {
    padding: 60px 28px;
  }

  .team-leadership__title {
    font-size: 42px;
  }

  .team-leadership__grid {
    gap: 18px;
    margin-top: 29px;
  }

  .team-card__name {
    font-size: 25px;
  }
}

@media (min-width: 1440px) {
  .team-leadership__panel {
    padding: 60px 30px;
  }

  .team-leadership__title {
    font-size: 44px;
  }

  .team-leadership__grid {
    gap: 20px;
    margin-top: 30px;
  }

  .team-card__name {
    font-size: 26px;
  }
}

/* -------------------------------------------------------------------------
   Team page — Technical Directors & Experts
   ------------------------------------------------------------------------- */

.team-members__header {
  margin: 0;
}

.team-members__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-members__dot {
  display: block;
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #73d630;
}

.team-members__title {
  margin: 12px 0 0;
  color: #07293e;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-members__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 24px 0 0;
}

.team-members__actions {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.team-members__btn-more {
  box-sizing: border-box;
  width: 100%;
  height: 55px;
  border-radius: 100px;
}

.team-members__btn-more[hidden] {
  display: none !important;
}

.team-members__btn-more:disabled,
.team-members__btn-more[aria-busy='true'] {
  cursor: default;
}

@media (min-width: 768px) {
  .team-members__title {
    font-size: 36px;
  }

  .team-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
  }

  .team-members__actions {
    align-items: center;
    margin-top: 26px;
  }

  .team-members__btn-more {
    width: 144px;
  }
}

@media (min-width: 992px) {
  .team-members__title {
    font-size: 40px;
  }

  .team-members__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
  }

  .team-members__actions {
    margin-top: 28px;
  }
}

@media (min-width: 1200px) {
  .team-members__title {
    font-size: 42px;
  }

  .team-members__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 29px;
  }

  .team-members__actions {
    margin-top: 29px;
  }
}

@media (min-width: 1440px) {
  .team-members__title {
    font-size: 44px;
  }

  .team-members__grid {
    gap: 20px;
    margin-top: 30px;
  }

  .team-members__actions {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card__image,
  .team-card__more-icon {
    transition: none;
  }

  .team-card__media:hover .team-card__image {
    transform: none;
  }

  .team-card__more:hover .team-card__more-icon {
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Team page — CTA
   ------------------------------------------------------------------------- */

.section.team-cta {
  margin-bottom: 35px;
}

.team-cta__panel {
  padding: 5px;
  border-radius: 10px;
  background-color: #309fd6;
}

.team-cta__inner {
  display: flex;
  flex-direction: column;
}

.team-cta__content {
  box-sizing: border-box;
  padding: 20px 11px 24px;
}

.team-cta__title {
  margin: 0;
  max-width: 565px;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.team-cta__text {
  margin: 10px 0 0;
  max-width: 565px;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
}

.team-cta__btn {
  box-sizing: border-box;
  width: 100%;
  height: 55px;
  margin-top: 30px;
  padding: 9px;
  justify-content: flex-start;
  border-radius: 100px;
}

.team-cta__btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background-color: #ffffff1a;
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.team-cta__btn-icon-svg {
  display: block;
}

.team-cta__btn-label {
  flex: 1 1 auto;
  text-align: center;
}

.btn.btn--primary.team-cta__btn:hover .team-cta__btn-icon {
  background-color: #ffffff1a;
  color: #ffffff;
}

.btn.btn--primary.team-cta__btn:active .team-cta__btn-icon {
  background-color: #ffffff;
  color: var(--color-ink);
}

.btn.btn--primary.team-cta__btn:disabled .team-cta__btn-icon,
.btn.btn--primary.team-cta__btn:disabled:hover .team-cta__btn-icon,
.btn.btn--primary.team-cta__btn:disabled:active .team-cta__btn-icon,
.btn.btn--primary.team-cta__btn[aria-disabled='true'] .team-cta__btn-icon,
.btn.btn--primary.team-cta__btn[aria-disabled='true']:hover .team-cta__btn-icon,
.btn.btn--primary.team-cta__btn[aria-disabled='true']:active .team-cta__btn-icon {
  background-color: #ffffff66;
  color: #ffffff;
}

.team-cta__media {
  margin: 0;
  line-height: 0;
}

.team-cta__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Team CTA modal */

body.has-team-cta-modal-open {
  overflow: hidden;
}

.team-cta-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.team-cta-modal[hidden] {
  display: none;
}

.team-cta-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 41, 62, 0.55);
}

.team-cta-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px 16px;
  border-radius: 12px;
  background-color: var(--color-muted);
  outline: none;
}

.team-cta-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-ink);
  cursor: pointer;
}

.team-cta-modal__close img {
  display: block;
}

.team-cta-modal__title {
  margin: 0 40px 0 0;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.team-cta-modal__bookings {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 240px;
  margin-top: 20px;
  padding: 24px 16px;
  border-radius: 10px;
  background-color: var(--color-white);
}

.team-cta-modal__placeholder {
  margin: 0;
  max-width: 28em;
  color: #07293ecc;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .section.team-cta {
    margin-bottom: 42px;
  }

  .team-cta__title {
    font-size: 32px;
  }

  .team-cta__btn {
    width: 226px;
  }

  .team-cta-modal {
    padding: 22px;
  }

  .team-cta-modal__dialog {
    padding: 28px 22px;
  }

  .team-cta-modal__title {
    font-size: 28px;
  }

  .team-cta-modal__bookings {
    min-height: 280px;
  }
}

@media (min-width: 992px) {
  .section.team-cta {
    margin-bottom: 48px;
  }

  .team-cta__inner {
    flex-direction: row;
    align-items: center;
  }

  .team-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 50%;
    min-width: 0;
    padding: 0 20px 0 16px;
  }

  .team-cta__title {
    font-size: 36px;
  }

  .team-cta__media {
    flex: 1 1 50%;
    min-width: 0;
  }

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

  .team-cta-modal__dialog {
    padding: 32px 28px;
  }

  .team-cta-modal__bookings {
    min-height: 320px;
  }
}

@media (min-width: 1200px) {
  .section.team-cta {
    margin-bottom: 54px;
  }

  .team-cta__content {
    padding-left: 24px;
  }

  .team-cta__title {
    max-width: 550px;
    font-size: 40px;
  }

  .team-cta__text {
    max-width: 500px;
  }

  .team-cta-modal__dialog {
    max-width: 800px;
    padding: 36px 34px;
  }

  .team-cta-modal__title {
    font-size: 32px;
  }

  .team-cta-modal__bookings {
    min-height: 360px;
  }
}

@media (min-width: 1440px) {
  .section.team-cta {
    margin-bottom: 60px;
  }

  .team-cta__content {
    padding-left: 35px;
    padding-right: 24px;
  }

  .team-cta__title {
    max-width: 565px;
    font-size: 44px;
  }

  .team-cta-modal__dialog {
    padding: 40px;
  }

  .team-cta-modal__bookings {
    min-height: 400px;
  }
}
