/**
 * Brothers Home Inspection - Team Cards
 * Clean modern design with brand colors
 */

/* Team Section Container */
.team-section {
    padding: 80px 0;
    background-color: #fff;
}

.team-section__title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.team-section__title span {
    color: #4E612C;
}

/* Team Cards Grid */
.team-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Team Card */
.team-card {
    width: 320px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.team-card__image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__image img {
    transform: scale(1.05);
}

/* Card Info */
.team-card__info {
    padding: 25px;
    background: linear-gradient(135deg, #f5f1e5 0%, #E8E0BF 100%);
    text-align: center;
}

.team-card__name,
.team-section .team-card h3.team-card__name,
h3.team-card__name {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #4E612C !important;
    margin: 0 0 5px 0 !important;
    font-family: inherit !important;
}

.team-card__role {
    font-size: 14px;
    color: #4A4A4A;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Icons */
.team-card__social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-card__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4E612C;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.team-card__social a:hover {
    background: #3a4821;
    transform: scale(1.1);
}

.team-card__social i {
    font-size: 16px;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .team-cards {
        gap: 25px;
    }

    .team-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 0;
    }

    .team-section__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .team-cards {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 350px;
    }

    .team-card__image {
        height: 280px;
    }
}
