/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
    color: #525252;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    flex: 0 0 100%;
}

/* .half-and-half-image {
    height: 195px;
} */

.half-and-half-image img.img-mobile {
    display: block;
}

.half-and-half-image img.img-desktop {
    display: none;
}

.half-and-half-text {
    padding: 40px 22px 60px;
    background: #EFF4F0;
}

.half-and-half-text.right {
    margin-right: auto;
}

.half-and-half-text.left {
    margin-left: auto;
}

.half-and-half-text .subheading {
    padding-bottom: 15px;
}

.half-and-half-text p {
    padding-bottom: 15px;
}

.half-and-half-text .btn {
    margin-top: 10px;
}

.warranty-col {
    text-align: center;
    position: relative;
    margin-top: 30px;
    color: #F5F5F5;
}

.warranty-image {
    max-width: 130px;
    margin: 0px auto;
}

.warranty-info {
    background: #50565A;
    padding: 80px 30px 40px;
    margin-top: -67px;
}

.warranty-info h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #BDE3A0;
    padding-bottom: 12px;
}

.bg-light-gray .half-and-half-text {
    background: #F0F0F0;
}


@media (min-width: 768px) {
    .half-and-half-image {
        height: 400px;
    }

    .half-and-half-text {
        padding: 50px 52px 70px;
    }

    .warranty-col {
        background: #50565A;
        padding: 35px 40px 40px 30px;
        margin-top: 40px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
    
    .warranty-image {
        max-width: 190px;
        margin: 0px auto;
    }
    
    .warranty-info {
        background: transparent;
        padding: 0 0 0 15px;
        margin-top: 0px;
        width: calc(100% - 190px);
    }
    
    .warranty-info h4 {
        font-size: 18px;
    }
}
    
@media (min-width: 1200px) {
    
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
        height: auto;
    }

    .half-and-half--home .half-and-half-image {
        flex: 0 0 44%;
    }

    .half-and-half--home .half-and-half-text {
        flex: 0 0 56%;
    }
    
    .half-and-half-image img.img-desktop {
        position: absolute;
        display: block;
    }

    .half-and-half-image img.img-mobile {
        display: none;
    }

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .half-and-half-text.left .half-and-half-text__wrapper {
        float: right;
    }

    .half-and-half-text {
        padding: 100px 16px 100px 50px;
    }

    .image-block-right .half-and-half-text {
        padding: 100px 50px 100px 16px;
    }

    .warranty-col {
        padding: 40px 40px 50px 50px;
        margin-top: 60px;
        width: calc(100% + 50px);
        margin-left: -50px;
    }
    
    .warranty-image {
        max-width: 280px;
        margin: 0px 0;
        position: absolute;
        left: -215px;
        top: -25px;
    }
    
    .warranty-info {
        padding: 0 ;
        width: 100%;
    }
    
    .warranty-info h4 {
        font-size: 20px;
    }
}

@media (min-width: 1440px) {
    .half-and-half-text {
        padding: 100px 142px 100px 50px;
    }

    .image-block-right .half-and-half-text {
        padding: 100px 50px 100px 142px;
    }

}

@media (min-width: 1660px) {
    .half-and-half-text,
    .image-block-right .half-and-half-text {
        padding: 100px 142px;
    }

    .warranty-col {
        padding: 36px 40px 45px 142px;
        width: calc(100% + 142px);
        margin-left: -142px;
    }
    
    .warranty-image {
        left: -140px;
        top: -38px;
    }
    
    .warranty-info h4 {
        font-size: 22px;
    }

}