/* =========================================================
   PERFORMANCE MEDICINE — DEDICATED TEAM PAGE
   This stylesheet is loaded only by team.php.
========================================================= */

.team-page {
    background: #f7f9fb;
    color: #17202a;
}

.team-page * {
    box-sizing: border-box;
}

.team-page a {
    text-decoration: none;
}

.team-hero {
    position: relative;
    overflow: hidden;
    min-height: 455px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #090d12 0%, #102b46 58%, #155b91 100%);
    color: #fff;
}

.team-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 20%, rgba(215, 25, 32, .30), transparent 32%), linear-gradient(90deg, rgba(0,0,0,.18), transparent 70%);
    pointer-events: none;
}

.team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
    padding: 82px 0 76px;
}

.team-eyebrow,
.team-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.team-eyebrow {
    color: #fff;
    margin-bottom: 18px;
}

.team-eyebrow i {
    color: #f0444a;
}

.team-hero h1 {
    margin: 0;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.045em;
}

.team-hero h1 span {
    color: #f0444a;
}

.team-hero p {
    max-width: 690px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.8;
}

.team-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}

.team-breadcrumb a {
    color: #fff;
    font-weight: 700;
}

.team-breadcrumb i {
    font-size: 10px;
    color: #f0444a;
}

.team-hero-shape {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.08);
    transform: rotate(28deg);
    pointer-events: none;
}

.team-hero-shape-one {
    width: 380px;
    height: 380px;
    right: -130px;
    top: -115px;
    border-radius: 55px;
}

.team-hero-shape-two {
    width: 210px;
    height: 210px;
    right: 13%;
    bottom: -125px;
    border-radius: 45px;
}

.team-intro {
    padding: 84px 0 34px;
    background: #fff;
}

.team-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
}

.team-section-tag {
    color: #d71920;
    margin-bottom: 15px;
}

.team-intro h2,
.team-care-text h2,
.team-empty-state h2 {
    margin: 0;
    font-family: Montserrat, Inter, sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
    color: #101820;
}

.team-intro h2 {
    font-size: clamp(30px, 4vw, 48px);
    max-width: 600px;
}

.team-intro h2 span,
.team-care-text h2 span {
    color: #155b91;
}

.team-intro-copy {
    padding-bottom: 4px;
}

.team-intro-copy p {
    margin: 0;
    color: #687582;
    font-size: 16px;
    line-height: 1.85;
}

.team-directory {
    padding: 48px 0 86px;
}

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

.team-profile-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(16, 43, 70, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.team-profile-card:hover {
    transform: translateY(-7px);
    border-color: rgba(215,25,32,.25);
    box-shadow: 0 22px 48px rgba(16,43,70,.13);
}

.team-profile-image-wrap {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #eaf1f6;
}

.team-profile-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform .45s ease;
}

.team-profile-card:hover .team-profile-image {
    transform: scale(1.035);
}

.team-profile-image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(to top, rgba(9,13,18,.36), transparent);
    pointer-events: none;
}

.team-profile-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #155b91;
    font-size: 74px;
    background: linear-gradient(145deg, #edf5fa, #dceaf2);
}

.team-profile-accent {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 0;
    width: 54px;
    height: 5px;
    background: #d71920;
    border-radius: 5px 5px 0 0;
}

.team-profile-body {
    padding: 25px 25px 22px;
}

.team-profile-position {
    min-height: 19px;
    margin-bottom: 7px;
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.5;
    text-transform: uppercase;
}

.team-profile-body h3 {
    margin: 0;
    color: #101820;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.team-profile-body p {
    min-height: 51px;
    margin: 13px 0 19px;
    color: #74808b;
    font-size: 14px;
    line-height: 1.7;
}

.team-profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid #edf0f2;
}

.team-socials {
    display: flex;
    align-items: center;
    gap: 7px;
}

.team-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e9ed;
    border-radius: 50%;
    color: #52616e;
    font-size: 12px;
    transition: .2s ease;
}

.team-socials a:hover {
    color: #fff;
    border-color: #d71920;
    background: #d71920;
}

.team-view-link {
    color: #155b91;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.team-view-link i {
    margin-left: 5px;
    transition: transform .2s ease;
}

.team-view-link:hover {
    color: #d71920;
}

.team-view-link:hover i {
    transform: translateX(3px);
}

.team-empty-state {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e5ebef;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(16,43,70,.06);
}

.team-empty-icon,
.team-care-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff1f2;
    color: #d71920;
    font-size: 25px;
}

.team-empty-icon {
    margin: 0 auto 22px;
}

.team-empty-state h2 {
    font-size: 32px;
}

.team-empty-state p {
    max-width: 510px;
    margin: 14px auto 25px;
    color: #71808c;
    line-height: 1.8;
}

.team-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 8px;
    background: #d71920;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(215,25,32,.20);
    transition: .2s ease;
}

.team-primary-btn:hover {
    background: #ad1117;
    transform: translateY(-2px);
}

.team-care-section {
    padding: 0 0 90px;
}

.team-care-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
    border-radius: 20px;
    background: #102b46;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.team-care-box::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -150px;
    border-radius: 50%;
    border: 45px solid rgba(255,255,255,.045);
}

.team-care-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.team-care-text {
    position: relative;
    z-index: 1;
}

.team-care-text .team-section-tag {
    margin-bottom: 8px;
}

.team-care-text h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
}

.team-care-text h2 span {
    color: #f0444a;
}

.team-care-text p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.70);
    font-size: 14px;
    line-height: 1.7;
}

.team-care-box .team-primary-btn {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-care-box {
        grid-template-columns: auto 1fr;
    }

    .team-care-box .team-primary-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .team-hero {
        min-height: 410px;
    }

    .team-hero-content {
        padding: 65px 0 58px;
    }

    .team-hero h1 {
        font-size: 42px;
    }

    .team-hero p {
        font-size: 15px;
    }

    .team-intro {
        padding-top: 60px;
    }

    .team-directory {
        padding-bottom: 65px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .team-profile-image-wrap {
        height: 360px;
    }

    .team-care-section {
        padding-bottom: 65px;
    }

    .team-care-box {
        grid-template-columns: 1fr;
        padding: 30px 25px;
    }

    .team-care-box .team-primary-btn {
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .team-hero h1 {
        font-size: 36px;
    }

    .team-profile-image-wrap {
        height: 330px;
    }

    .team-profile-body {
        padding: 22px 20px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-profile-card,
    .team-profile-image,
    .team-socials a,
    .team-view-link i,
    .team-primary-btn {
        transition: none;
    }
}
