//Fonts
@mixin branded-font {
    font-family: 'Helvetica Neue';
    font-style: normal;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

//Main Colors
$dark: #1D252C;
$dark-grey: #5C6163;
$blue: #1971D4;
$grey: #F0F0F0;

@function get-desktop-vw($target) {
    $vw-context: (1920 * 0.01) * 1px;
    @return ($target/$vw-context) * 1vw;
}

@function get-mobile-vw($target) {
    $vw-context: (320 * 0.01) * 1px;
    @return ($target/$vw-context) * 1vw;
}


.main-container {

    .main-cover {
        position: relative;

        @media (max-width: 640px) {
            display: flex;
            flex-direction: column-reverse;
        }
        
        &-desc {
            @include branded-font();
            position: absolute;
            left: 0;
            top: get-desktop-vw(150px);
            width: 33.333%;
            text-align: center;
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;

            @media (max-width: 1700px) {
                top: get-desktop-vw(130px);
            }

            @media (max-width: 640px) {
                position: static;
                background: black;
                width: 100%;
            }

            &__title {
                font-size: 64px;
                line-height: 60px;
                font-weight: 700;
                margin: 0 0 10px 0;

                @media (max-width: 1700px) {
                    font-size: 48px;
                    line-height: 48px;
                }

                @media (max-width: 640px) {
                    font-size: get-mobile-vw(36px);
                    line-height: get-mobile-vw(32px);
                    margin: get-mobile-vw(30px) 0 get-mobile-vw(10px) 0;
                }
            }

            &__copy {
                font-size: 16px;
                line-height: 20px;
                margin: 0 0 0 0;
                letter-spacing: 1px;
                text-transform: uppercase;
                color: rgba(255, 255, 255, 0.64);

                @media (max-width: 1700px) {
                    font-size: 12px;
                    line-height: 16px;
                }

                @media (max-width: 640px) {
                    font-size: get-mobile-vw(10px);
                    line-height: get-mobile-vw(12px);
                    margin: get-mobile-vw(9px) auto get-mobile-vw(15px) auto;
                    width: get-mobile-vw(256px);
                }
            }

            &__button {
                display: inline-block;
                background: $blue;
                border-radius: 6px;
                width: 175px;
                height: 55px;
                line-height: 55px;
                font-size: 16px;
                font-style: normal;
                font-weight: 700;
                letter-spacing: 1px;
                color: white;
                text-decoration: none;
                margin: 28px 0 30px 0;

                @media (max-width: 1700px) {
                    height: 40px;
                    line-height: 40px;
                    font-size: 14px;
                    margin: 15px 0 20px 0;
                }

                @media (max-width: 640px) {
                    width: get-mobile-vw(120px);
                    height: get-mobile-vw(32px);
                    font-size: get-mobile-vw(10px);
                    line-height: get-mobile-vw(32px);
                    margin: 0 0 get-mobile-vw(15px) 0;
                }
            }

            &__logo {
                margin: 28px 0 23px 0;

                @media (max-width: 1700px) {
                    width: 182px;
                    margin: 20px 0 16px 0;
                }

                @media (max-width: 640px) {
                    width: get-mobile-vw(128px);
                    margin: get-mobile-vw(12px) 0 0 0;
                }
            }

            &__separator {
                height: 28px;
                width: 1px;
                background: rgba(255, 255, 255, 0.64);
                margin: 0 auto;

                @media (max-width: 1700px) {
                    display: none;
                }

                @media (max-width: 640px) {
                    display: block;
                    height: get-mobile-vw(16px);
                }
            }
        }
    }

    .main-buttons {
        display: flex;
        width: 100%;
        height: 100px;
        color: red;
        border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        padding: 25px 0;

        @media (max-width: 640px) {
            width: 100%;
            height: auto;
            border-bottom: 1px solid rgba(0, 0, 0, 0.10);
            padding: 0;
            margin-bottom: get-mobile-vw(48px);
        }

        &__link {
            width: 33.333%;
            display: flex;
            align-items: center;
            justify-content: center;

            color: #1D252C;
            @include branded-font();
            font-weight: 700;
            font-size: 24px;
            line-height: 32px; /* 133.333% */
            letter-spacing: -0.24px;
            text-decoration: none;

            @media (max-width: 640px) {
                width: 100%;
                font-size: get-mobile-vw(16px);
                height: get-mobile-vw(48px);
                line-height: get-mobile-vw(48px);
            }

            &:hover {
                color: $blue;
            }

            &:not(:last-child) {
                border-right: 1px solid rgba(0, 0, 0, 0.10);

                @media (max-width: 640px) {
                    border-right: 0;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
                }
            }  
        }

        @media (max-width: 640px) {
            flex-direction: column;
        }
        
    }

    .bottom-section {
        @include branded-font();
        margin: 155px auto 128px auto;
        width: 850px;
        text-align: center;

        @media (max-width: 640px) {
            margin: get-mobile-vw(48px) auto get-mobile-vw(48px) auto;
            width: get-mobile-vw(240px);
        }

        &__logo {

            @media (max-width: 640px) {
                width: get-mobile-vw(240px);
                height: auto;
            }
        }

        &__copy {
            margin: 19px 0 21px 0;
            font-size: 16px;
            line-height: 20px;
            margin: 0;
            color: $dark-grey !important;

            @media (max-width: 640px) {
                font-size: get-mobile-vw(12px);
                line-height: get-mobile-vw(16px);
                width: get-mobile-vw(240px);
                text-align: left;
                margin: get-mobile-vw(8px) 0 get-mobile-vw(20px) 0;
            }
        }

        &__button {
            @include branded-font();
            font-size: 12px;
            font-weight: 700;
            height: 40px;
            line-height: 40px;
            display: inline-block;
            background: #1971D4;
            border-radius: 3px;
            color: white;
            text-decoration: none;
            padding: 0 15px 0 15px;
            margin: 20px 0 50px 0;

            @media (max-width: 640px) {
                font-size: get-mobile-vw(13px);
                height: get-mobile-vw(40px);
                line-height: get-mobile-vw(40px);
                padding: 0;
                margin: 0 0 get-mobile-vw(40px) 0;
                width: 100%;
            }
        }

        &__image {
            width: 100%;
        }
    }
}