/* =============================================================================
 * Team Block — Zwirner Equipment
 * ========================================================================== */

.zwirner-team {
    padding: 80px 0;
    background: #fff;
}

/* Header */
.zwirner-team__header {
    text-align: center;
    margin-bottom: 55px;
}

.zwirner-team__heading {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.zwirner-team__description {
    font-size: 1.05rem;
    color: #666;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid */
.zwirner-team__grid {
    justify-content: center;
}

/* Card */
.zwirner-team__card {
    margin-bottom: 35px;
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.zwirner-team__card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.zwirner-team__card.has-bio {
    cursor: pointer;
}

/* Photo */
.zwirner-team__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8e8e8;
}

.zwirner-team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.zwirner-team__card:hover .zwirner-team__photo {
    transform: scale(1.04);
}

.zwirner-team__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #bbb;
    font-size: 2.5rem;
}

/* Bio Badge — overlaid on photo */
.zwirner-team__bio-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--font2);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
    pointer-events: none;
}

.zwirner-team__card:hover .zwirner-team__bio-badge {
    background: rgba(0, 0, 0, 0.85);
}

/* Info */
.zwirner-team__info {
    padding: 20px 22px;
}

.zwirner-team__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 3px;
    color: #1a1a1a;
    line-height: 1.3;
}

.zwirner-team__title {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* =============================================================================
 * Modal
 * ========================================================================== */

.zwirner-team__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    box-sizing: border-box;
}

.zwirner-team__modal[hidden] {
    display: none;
}

/* Backdrop */
.zwirner-team__modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: teamFadeIn 0.2s ease;
}

/* Content */
.zwirner-team__modal-content {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: teamModalIn 0.3s ease;
}

/* Close */
.zwirner-team__modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    line-height: 1;
}

.zwirner-team__modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

/* Modal Grid */
.zwirner-team__modal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
}

.zwirner-team__modal-photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.zwirner-team__modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zwirner-team__modal-body {
    padding: 35px 35px 35px 30px;
}

.zwirner-team__modal-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1a1a1a;
    padding-right: 30px;
}

.zwirner-team__modal-title {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 22px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.zwirner-team__modal-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.zwirner-team__modal-bio p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.8;
}

.zwirner-team__modal-bio p:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes teamFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes teamModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================================================
 * Responsive
 * ========================================================================== */

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

    .zwirner-team__heading {
        font-size: 2rem;
    }

    .zwirner-team__header {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .zwirner-team {
        padding: 50px 0;
    }

    .zwirner-team__heading {
        font-size: 1.75rem;
    }

    .zwirner-team__header {
        margin-bottom: 30px;
    }

    .zwirner-team__card {
        margin-bottom: 24px;
    }

    .zwirner-team__modal {
        padding: 16px;
        align-items: flex-end;
    }

    .zwirner-team__modal-content {
        max-height: 90vh;
        border-radius: 10px 10px 0 0;
    }

    .zwirner-team__modal-grid {
        grid-template-columns: 1fr;
    }

    .zwirner-team__modal-photo {
        aspect-ratio: 16 / 9;
    }

    .zwirner-team__modal-body {
        padding: 24px;
    }

    .zwirner-team__modal-name {
        font-size: 1.3rem;
    }
}
