@import "../modules/variables";
@import "../modules/mixins";
@import "../modules/fonts";

#bannerForYourBusiness {
    padding-bottom: 97px;
    background-image: url(../../img/bg-for-business.png);
    h1 {
        font-size: 25px;
    }
    @media (min-width: 768px) {
        padding-bottom: 335px;
        h1 {
            font-size: inherit;
        }
    }
}

#listBusiness {
    margin-top: -60px;
    overflow-x: auto;
    margin-bottom: 10px;
    &::-webkit-scrollbar {
        display: block;
    }
    .content {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        display: flex;
        .item {
            scroll-snap-align: start;
            flex-shrink: 0;
            transform-origin: center center;
            transition: transform 0.5s;
            padding: 30px;
            width: 60%;
            border-radius: 6px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            img {
                margin-bottom: 13px;
                width: 100%;
                max-width: 65px;
            }
            p {
                color: #fff;
                font-size: 14px;
                font-family: $gotham-bold;
            }
            &:nth-of-type(1) {
                background-color: $black-light3;
            }
            &:nth-of-type(2) {
                background-color: $black-light2;
            }
            &:nth-of-type(3) {
                background-color: $black-light1;
            }
            &:nth-of-type(4) {
                background-color: $black;
                img {
                    max-width: 45px;
                    padding-left: 6px;
                }
            }
        }
    }
    @media (min-width: 768px) {
        margin-top: -247px;
        margin-bottom: 0;
        z-index: 9;
        position: absolute;
        width: 100%;
        .content {
            .item {
                width: unset;
                flex: 1;
                padding: 50px;
                p {
                    font-size: 24px;
                }
                img {
                    max-width: 110px;
                    margin-bottom: 22px;
                }
                &:nth-of-type(4) {
                    img {
                        max-width: 80px;
                    }
                }
            }
        }
    }
}

#business {
    .content {
        display: flex;
        flex-wrap: wrap;
        &:nth-of-type(odd) {
            .info {
                padding-top: 20px;
            }
        }
        &:nth-of-type(even) {
            .info {
                padding-top: 40px;
                background-color: $black;
                padding-bottom: 52px;
                h2 {
                    color: #fff;
                }
                p {
                    color: #fff;
                }
                a:hover {
                    border-color: #fff;
                }
            }
        }
        .info {
            width: 100%;
            padding-bottom: 33px;
            position: relative;
            z-index: 2;
            .col-12 {
                position: relative;
            }
            .col-12::before {
                content: "";
                position: absolute;
                width: 1px;
                height: 160%;
                left: 6px;
                top: 13px;
                display: block;
                background-color: $orange;
            }
            h2 {
                font-size: 32px;
                font-family: $gotham-bold;
                line-height: 130%;
                color: $black;
                margin-bottom: 12px;
            }
            p {
                font-size: 16px;
                margin-bottom: 12px;
                max-width: 30ch;
            }
        }
        .img {
            height: 356px;
            width: 100%;
            background-size: cover;
            background-position: center;
            background-image: url(../../img/foryou.png);
            display: block;
            z-index: 1;
        }
    }
    @media (min-width: 768px) {
        .content {
            &:nth-of-type(odd) {
                flex-direction: row-reverse;
                .info {
                    padding-left: 60px;
                    h2::after {
                        right: 0;
                        left: unset;
                    }
                }
            }
            &:nth-of-type(even) {
                .col-12 {
                    margin-left: auto;
                }
                .info {
                    padding-right: 60px;
                }
            }
            .info {
                width: 50%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                .col-12::before {
                    width: 0;
                }
                h2 {
                    position: relative;
                    margin-bottom: 44px;
                    &::after {
                        content: "";
                        height: 3px;
                        width: 150%;
                        left: 0;
                        bottom: -22px;
                        position: absolute;
                        background-color: $orange;
                        display: block;
                    }
                } 
                p {
                    max-width: unset;
                }  
                a {
                    max-width: 300px;
                }            
            }
            .img {
                width: 50%;
                height: 637px;
            }
        }
    }
    @media (min-width: 990px) {
        .content {
            &:nth-of-type(even) {
                .container {
                    margin: unset;
                    margin-left: auto;
                }
            }   
            .container {
                max-width: 480px;
                margin: revert;
            }
        }
    }
    
    @media (min-width: 1200px) {
        .content {
            .container {
                max-width: 570px;
            }
        }
    }
}
