/**
 * Agro Consult - Nasz Zespol Page Styles
 */

/* ========================================
   HERO SECTION (contains title + intro)
======================================== */
.zespol-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 120px;
    background-color: #1a3a2f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.zespol-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 60, 25, 0.78);
    z-index: 1;
}

.zespol-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
}

.zespol-hero-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.zespol-hero-icon-row::before,
.zespol-hero-icon-row::after {
    content: '';
    display: block;
    width: 220px;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.zespol-hero-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.zespol-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 45px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.zespol-hero-intro {
    max-width: 760px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
}

.zespol-hero-intro p {
    margin: 0 0 1.1em;
}

.zespol-hero-intro p:last-child {
    margin-bottom: 0;
}

.zespol-hero-intro p:first-child {
    font-weight: 700;
    font-size: 1.05rem;
}

/* ========================================
   TEAM GRID SECTION
======================================== */
.zespol-team {
    padding: 70px 20px 90px;
    background-color: #ffffff;
}

.zespol-team-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.zespol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   TEAM MEMBER CARD - horizontal layout
======================================== */
.zespol-card {
    background: var(--color-primary);
    border-radius: 14px 0 0 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 190px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.zespol-card:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Left column: role + description on dark green */
.zespol-card-body {
    flex: 1 1 58%;
    padding: 18px 16px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--color-primary);
}

.zespol-card-role {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    padding-bottom: 10px;
    line-height: 1.3;
    border-bottom: 2px solid #ffffff;
}

.zespol-card-desc {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #ffffff;
    margin: 0;
    opacity: 0.92;
}

/* Right column: photo + name label */
.zespol-card-photo {
    position: relative;
    width: 42%;
    min-width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #d9c8b9;
}

.zespol-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border: none;
    outline: none;
}

/* Name bar at bottom of photo - flush to all edges of photo column */
.zespol-card-name-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: #ffffff;
    padding: 8px 10px;
    border: 1px solid #000000;
    outline: none;
}

.zespol-card-name {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
    line-height: 1.25;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .zespol-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }

    .zespol-hero {
        padding: 80px 20px 90px;
    }

    .zespol-hero-icon-row::before,
    .zespol-hero-icon-row::after {
        width: 140px;
    }
}

@media (max-width: 575px) {
    .zespol-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zespol-hero {
        padding: 60px 15px 70px;
    }

    .zespol-hero-title {
        margin-bottom: 30px;
    }

    .zespol-hero-icon-row::before,
    .zespol-hero-icon-row::after {
        width: 70px;
    }

    .zespol-team {
        padding: 45px 15px 60px;
    }

    .zespol-card-photo {
        width: 42%;
    }
}
