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

.team-section {
    padding: 4rem 0;
    background: #f4f7fb;
}

.team-section__title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #1f345c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 2.5rem 0;
    text-align: center;
}


/* ==========================================================================
   TEAM GRID
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* ==========================================================================
   TEAM CARD
   ========================================================================== */

.team-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    /* border-radius: 0.75rem; */
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Clickable attorney card */
a.team-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.team-card:has(a.team-card__link):hover,
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   CARD IMAGE
   ========================================================================== */

.team-card__image-wrap {
    aspect-ratio: 17 / 20;
    overflow: hidden;
    background: #e5e7eb;
    /* margin: 1rem 1rem 0;
    border-radius: 0.5rem; */
}

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

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

.team-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f345c, #2a4a7f);
}


/* ==========================================================================
   CARD BODY
   ========================================================================== */

.team-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.team-card__name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1f345c;
    margin: 0;
    line-height: 1.3;
}

.team-card__title {
    font-size: 0.875rem;
    color: #bf8764;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-card__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f345c;
    margin-top: auto;
    padding-top: 0.75rem;
    transition: color 0.2s ease;
}

a.team-card__link:hover .team-card__cta {
    color: #b85619;
}

@media (max-width: 600px) {
    .team-card__name {
        font-size: 0.9rem;
    }

    .team-card__title {
        font-size: 0.8rem;
    }

    .team-card__body {
        padding: 0.75rem;
    }
}