/* =========================================
   TEAM SECTION
========================================= */

.team-section {
    padding: 70px 0;
    text-align: center;
    background: #f8fafc;
}

.team-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.team-section .subtitle {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #64748b;
    line-height: 1.6;
}

/* GRID */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 18px;

    justify-items: center;
}

/* MEMBER */

.member {
    text-align: center;
    max-width: 170px;
    width: 100%;
}

/* AVATAR */

.avatar {
    width: 140px;
    height: 140px;

    margin: 0 auto 10px;

    border-radius: 50%;

    background-size: cover;
    background-position: center;

    border: 2px solid rgba(20, 184, 166, 0.55);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.member:hover .avatar {
    transform: scale(1.05);
    border-color: #14b8a6;
}

/* TEXT */

.member h4 {
    margin: 6px 0 2px;

    font-size: 15px;
    font-weight: 700;
}

.member span {
    font-size: 13px;
    color: #64748b;
}

/* IMAGES */

.member:nth-child(1) .avatar {
    background-image: url('/assets/img/phil.jpg');
}

.member:nth-child(2) .avatar {
    background-image: url('/assets/img/karina.jpg');
}

.member:nth-child(3) .avatar {
    background-image: url('/assets/img/cleaner3.jpg');
}

.member:nth-child(4) .avatar {
    background-image: url('/assets/img/cleaner4.jpg');
}

.member:nth-child(5) .avatar {
    background-image: url('/assets/img/support.jpg');
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .team-section {
        padding: 60px 0;
    }

    .team-section h2 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 28px 18px;
    }

    .member {
        max-width: 100%;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .team-section {
        padding: 50px 0;
    }

    .team-section h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .team-section .subtitle {
        font-size: 0.95rem;

        padding: 0 10px;

        margin-bottom: 30px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 24px 14px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .member h4 {
        font-size: 14px;
    }

    .member span {
        font-size: 12px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .team-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 22px 10px;
    }

    .avatar {
        width: 105px;
        height: 105px;
    }

    .member h4 {
        font-size: 13px;
    }

    .member span {
        font-size: 11px;
    }

}