/* =========================================================
   TEAM.CSS — Leadership Team Roster & Swiper Slider
   Figma Node: 1149:2479
   ========================================================= */

.team-section .team-slider-wrap {
    margin-bottom: var(--space-3xl);
}

/* Round Slider Arrows: Default background primary (Gold), Hover black */
.team-section .team-nav-btn {
    top: 197px;
    /* Middle of the 394px photo */
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    z-index: 10;
    transition: all var(--transition-fast);
    /* box-shadow: 0 4px 14px rgba(3, 8, 50, 0.25); */
}

.team-section .team-nav-btn:hover {
    background-color: var(--color-black);
}

.team-section .team-nav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.team-section .team-nav-prev {
    left: -22px;
}

.team-section .team-nav-next {
    right: -22px;
}

.team-section .team-swiper {
    width: 100%;
    overflow: hidden;
}

.team-section .swiper-slide {
    height: auto;
}

.team-section .team-card .member-photo-wrap {
    height: 394px;
}

.team-section .team-card .member-photo {
    object-position: center top;
    transition: transform var(--transition-slow);
}

.team-section .team-card:hover .member-photo {
    transform: scale(1.04);
}

/* Figma 50x50 dark arrow badge at bottom-right of photo (Hidden by default, reveals on card hover) */
.team-section .team-card .member-badge {
    bottom: 10px;
    right: 8px;
    width: 50px;
    height: 50px;
    background-color: var(--color-black);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.9);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.team-section .team-card .member-badge svg {
    width: 20px;
    height: 20px;
}

.team-section .team-card:hover .member-badge {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.team-section .team-card .member-badge img {
    width: 100%;
    height: 100%;
    display: block;
}

.team-section .team-card .member-info {
    gap: var(--space-sm);
}

.team-section .team-card .member-name-row .h3 {
    white-space: normal;
}

.team-section .team-card .linkedin-link {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--color-black);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.team-section .team-card .linkedin-link:hover {
    color: var(--color-primary);
    transform: scale(1.15);
}

.team-section .team-card .linkedin-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.team-section .team-card p {
    font-size: var(--font-size-p4);
    line-height: var(--line-height-p4);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.team-section .team-grid .swiper-wrapper {
    gap: 20px 30px;
}

/* Responsive */
@media (max-width: 1460px) {
    .team-section .team-nav-prev {
        left: -15px;
    }

    .team-section .team-nav-next {
        right: -15px;
    }
}

@media (max-width:1199px) {
    .team-section .team-grid .swiper-wrapper {
        gap: 18px 26px;
    }
}

@media (max-width: 991px) {
    .team-section .team-nav-prev {
        left: -10px;
    }

    .team-section .team-nav-next {
        right: -10px;
    }

    .team-section .team-grid .swiper-wrapper {
        gap: 16px 24px;
    }
}

@media (max-width: 767px) {
    .team-section .team-nav-btn {
        display: none;
    }

    .team-section .team-grid .swiper-wrapper {
        gap: 16px 20px;
    }
}

/* =========================================================
   LAYOUT & THEME CLASSES (WordPress-ready)
   Shared markup: [layout container] > .swiper-wrapper > .swiper-slide > .team-card
   Layout: .swiper.team-swiper (slider, js/team.js) | .team-grid (static grid)
   Theme:  default (white) | .dark-bg (navy)
   ========================================================= */

/* Grid layout: static cards, incomplete last row centred (Figma 596:640) */


.team-section .team-grid .swiper-slide {
    width: calc((100% - 90px) / 4);
}

.team-section .team-grid .member-name-row .h3 {
    white-space: normal;
}

/* Dark theme */
.dark-bg .title-split .h2,
.dark-bg .title-split p,
.dark-bg .team-card .member-name-row .h3,
.dark-bg .team-card .linkedin-link {
    color: var(--color-white);
}

@media (max-width:1440px) {
    .team-section .team-card .member-photo-wrap {
        height: 27vw;
    }

    .team-section .team-nav-btn {
        top: 13vw;
    }
}

@media (max-width: 1199px) {
    .team-section .team-grid .swiper-slide {
        width: calc((100% - 60px) / 3);
    }

    .team-section .team-card .member-photo-wrap {
        height: 33vw;
    }

    .team-section .team-nav-btn {
        top: 15vw;
    }
}

@media (max-width: 991px) {
    .team-section .team-grid .swiper-slide {
        width: calc((100% - 30px) / 2);
    }

    .team-section .team-card .member-photo-wrap {
        height: 50vw;
    }

    .team-section .team-nav-btn {
        top: 20vw;
    }

}

@media (max-width: 767px) {
    .team-section .team-grid .swiper-slide {
        width: 100%;
    }

    .team-section .team-card .member-photo-wrap {
        height: 102vw;
    }
}

/* =========================================================
   OFF-WHITE THEME + DETAILED DIRECTORY CARDS
   Figma 1531:3320 (Our Team): photo 327×394 on #F4F5EF, H5 name 24/32,
   gold role 16 bold, summary 16/24, background + focus 14/24,
   "View Profile" primary button pinned to the card bottom.
   ========================================================= */
.team-section.bg-offwhite {
    background-color: var(--color-offwhite);
}

.team-section .team-card .member-photo-wrap {
    background-color: #F4F5EF;
}

.team-section .team-card .member-name-row .h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: var(--font-weight-medium);
	white-space: normal;
}

.team-section .team-card .member-name-row .linkedin-link {
    margin-top: 6px;
}

.team-section--detailed .team-grid .swiper-slide {
    display: flex;
}

/* The expertise filter hides cards/sections with .d-none; keep that above the flex rule. */
.team-section--detailed .team-grid .swiper-slide.d-none,
.team-section.d-none {
    display: none;
}

.team-section--detailed .team-card {
    height: 100%;
}

.team-section--detailed .team-card .member-info {
    flex: 1 1 auto;
    gap: 10px;
}

.team-section--detailed .team-card .member-role {
    margin-bottom: 0;
}

.team-section .team-card .member-summary,
.team-section .team-card .member-meta p {
    color: var(--color-black);
    font-weight: var(--font-weight-regular);
}

.team-section .team-card .member-summary {
    font-size: 16px;
    line-height: 24px;
}

.team-section .team-card .member-meta {
    margin-top: auto;
    padding-top: 10px;
}

.team-section .team-card .member-meta p {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 0;
}

.team-section .team-card .member-meta strong {
    font-weight: var(--font-weight-bold);
}

.team-section .team-card .member-actions {
    padding-top: 10px;
}

.team-section--detailed .team-grid .swiper-wrapper {
    row-gap: 40px;
}

.dark-bg .team-card .member-summary,
.dark-bg .team-card .member-meta p {
    color: var(--color-white);
}

/* WCAG AA: gold role text on light backgrounds uses the darker gold; navy sections keep the brand gold. */
.team-section:not(.dark-bg) .team-card p.member-role {
    color: var(--color-primary-strong);
}
/* Space between the cards and the "Explore our team" button in grid mode too (QA BG_10). */
.team-section .team-grid + .team-actions {
    margin-top: var(--space-3xl);
}

/* Figma 1486:361: role is Inter Bold 16/25 in a 287px box, so long roles wrap the same way (QA BG_39, BG_41, BG_43). */
.team-section .team-card p.member-role {
    line-height: 25px;
    max-width: 287px;
}

/* Photo corners (QA BG_44, BG_53): every photo fills its rounded box edge to edge, with no strip of
   the box background showing on some cards, and the corners clip the same way on all of them. */
.team-section .team-card .member-photo-wrap {
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}
.team-section .team-card .member-photo {
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px) !important;
    height: calc(100% + 2px) !important;
    max-width: none;
}

/* Figma 1486:442: on the navy section the hover badge is white with a navy arrow (QA BG_36). */
.dark-bg .team-card .member-badge {
    background-color: var(--color-white);
}
.dark-bg .team-card .member-badge svg path {
    fill: var(--color-black);
}
