﻿.header {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    background-image: url(../img/contact/headerContact.png);
    background-repeat: repeat-x;
    padding-bottom: 10%;
    z-index: -5;
    gap: 50px;
}

.header-h1 {
    font-size: 60px;
}

.header-h6 {
    font-size: 20px;
}

.header-p {
    color: #000;
    text-align: center;
    font-family: Switzer;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
    width: 60%;
}

.header-content {
    margin-top: 120px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.reference-section {
    display: grid;
    padding: 10px;
    grid-template-columns: repeat(2,215px);
    grid-template-rows: repeat(1, 1fr);
    align-items: center;
    /*justify-items: center;*/
    justify-content: center;
    gap: 40px;
    align-self: stretch;
    margin: 0 0 5% 0;
}

.reference-item {
    border-radius: 8px;
    border: 1px solid #dedede;
}

.reference-img {
    width: 220px;
    height: 120px;
    object-fit: contain;
    filter: gray;
    filter: grayscale(100%);
    background-color: #F5F5F5;
}

    .reference-img:hover {
        filter: grayscale(0%);
        transition: 0.5s;
    }


@media (max-width: 1096px) {
    .header-img {
        width: 90%;
    }

    .reference-section {
        grid-template-columns: repeat(3,220px); /* Four columns */
    }
}

@media (max-width: 835px) {
    .reference-section {
        grid-template-columns: repeat(2,220px); /* Four columns */
        max-width: 540px;
        margin: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 34px;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    .reference-item {
        height: 120px;
        object-fit: contain;
        border-radius: 8px;
        border: 1px solid #dedede;
    }
}

@media (max-width: 430px) {
    .header-content {
        margin-top: 60px
    }

    .header-h1 {
        font-size: 45px;
    }
}
