/* 
    Table of content
    1. W
        1.1 W-wrapper
    2. FORM
    3. GRADIENT
    4. CONTACT
*/

/* 1. W */
.hero-w {
    background-image: url(../images/bg-hero.png);
    background-size: 100% 100%;
    color: white;
    overflow: hidden;
}

.hero-w a {
    color: white;
}

/* 1.1 W-wrapper */
.hero-w .w-wrapper {
    position: relative;
}

.hero-w .w-wrapper .container {
    padding-top: 16rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    grid-gap: 18rem;
}

.hero-w .content-wrapper {
    font-size: 2.1rem;
    line-height: 1.4;
}

.hero-w .media-wrapper {
    position: relative;
    min-height: 48rem;
}

.hero-w .media {
    position: absolute;
    top: 0;
    left: -9rem;
    width: 85.6rem;
    height: 48rem;
    mask-image: url(../images/icon-w-white.svg);
    mask-size: auto 48rem;
    mask-repeat: no-repeat;
    mask-position: left center;
}

.hero-w .media img,
.hero-w iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-w .link {
    position: absolute;
    right: calc( -1 * var(--grid-padding) );
    bottom: 7rem;    
    height: 12rem;
    padding: 0 5rem;
    border-radius: 6rem 0 0 6rem;
    background-color: white;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hero-w .link.mobile {
    display: none;
}

.hero-w .link span {
    max-width: 12.5rem;
    font-family: "Archivo", sans-serif; 
    font-optical-sizing: auto;    
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    text-decoration: none;
}

/* 2. FORM */
.hero-form {
    padding: 0;
    color: white;
}

.hero-form a {
    color: white;
}

.hero-form .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-form .content-wrapper {
    padding-left: var(--grid-padding);
    background-color: var(--color-purple);
}

.hero-form .content {
    max-width: calc( var(--grid-size-lg) / 2 );
    margin-left: auto;
    padding-right: 11.5rem;
}

.hero-form .form {
    margin-top: 3rem;
}

.hero-form .image-wrapper {
    background-color: black;
}

.hero-form .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .8;
}

/* 3. GRADIENT */
.hero-gradient {
    background-image: url(../images/bg-hero.png);
    background-size: 100% 100%;
    color: white;
}

.hero-gradient .gradient-wrapper .container {
    padding: 16rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    grid-gap: 18rem;
}

.hero-gradient .gradient-wrapper .image img {
    max-width: 100%;
}

.hero-gradient .gradient-wrapper + .hero-usps {
    margin-top: -16rem;
}

/* 4. CONTACT */
.hero-contact {
    background-image: url(../images/bg-hero.png);
    background-size: 100% 100%;
    color: white;
    overflow: hidden;
}

.hero-contact a {
    color: white;
}

.hero-contact .container {
    padding: 16rem 0;
}

.hero-contact .grid {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    grid-gap: 3rem;
}

.hero-contact .item {
    display: block;
    padding: 4rem 2rem;
    border: .1rem solid white;
    border-radius: 1rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.hero-contact .image {
    width: 4.6rem;
    height: 4.4rem;
    margin: 0 auto;
    transition: .3s;
}

.hero-contact .item:hover .image {
    transform: scale(1.15);
}

.hero-contact .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-contact h4 {
    margin: 2rem 0 1rem;
}

.hero-contact .text-wrapper {
    font-size: 1.6rem;
    line-height: 1.5;
}

/* RESIZE */
@media (max-width: 1340px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .w-wrapper .container {
        padding-top: 12rem;
    }

    .hero-w .link {
        height: 10rem;
        padding: 0 4rem;
    }

    .hero-w .link span {  
        font-size: 2.8rem;
    }    

    /* 3. GRADIENT */
    .hero-gradient .gradient-wrapper .container {
        padding: 12rem 0;
    }

    .hero-gradient .gradient-wrapper + .hero-usps {
        margin-top: -12rem;
    }

    /* 4. CONTACT */
    .hero-contact .container {
        padding: 12rem 0;
    }

    .hero-contact .grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

@media (max-width: 1024px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .w-wrapper .container {
        padding-top: 9rem;
        grid-gap: 10rem;
    }

    .hero-w .content-wrapper {
        font-size: 1.8rem;
        line-height: 1.6;
    }

    .hero-w .media-wrapper {
        min-height: 40rem;
    }

    .hero-w .media {
        left: -5rem;
        width: 71.3rem;
        height: 40rem;
        mask-size: auto 40rem;
    }

    /* 2. FORM */
    .hero-form .content {
        max-width: inherit;
        padding-right: 5rem;
    }

    /* 3. GRADIENT */
    .hero-gradient .gradient-wrapper .container {
        padding: 9rem 0;
        grid-gap: 10rem;
    }

    .hero-gradient .gradient-wrapper + .hero-usps {
        margin-top: -9rem;
    }

    /* 4. CONTACT */
    .hero-contact .container {
        padding: 9rem 0;
    }

    .hero-contact .grid {
        grid-gap: 2rem;
    }
}

@media (max-width: 899px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .w-wrapper .container {
        grid-gap: 6rem;
    }

    .hero-w .content-wrapper {
        font-size: 1.6rem;
        line-height: 1.5;
    }

    .hero-w .media-wrapper {
        min-height: 35rem;
    }

    .hero-w .media {
        left: -3rem;
        width: 62.4rem;
        height: 35rem;
        mask-size: auto 35rem;
    }

    .hero-w .link {
        height: 7rem;
    }

    .hero-w .link span {
        max-width: 10rem;
        font-size: 2.2rem;
    }

    /* 3. GRADIENT */
    .hero-gradient .gradient-wrapper .container {
        grid-gap: 6rem;
    }

    .hero-gradient .gradient-wrapper + .hero-usps {
        margin-top: -6rem;
    }
}

@media (max-width: 767px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .w-wrapper .container {
        padding: 7rem 0;
        grid-template-columns: 1fr;
        grid-gap: 2rem;
    }

    .hero-w .content-wrapper {
        order: 2;
    }

    .hero-w .media-wrapper {
        order: 1;
        min-height: inherit;
    }

    .hero-w .media {
        position: relative;
        top: inherit;
        left: inherit;
        width: 100%;
        height: 0;
        padding-top: 56.25%;
        mask-size: contain;
    }

    .hero-w .media img,
    .hero-w iframe {
        position: absolute;
        top: 0;
        left: 0;
    }

    .hero-w .link.desktop {
        display: none;
    }

    .hero-w .link.mobile {
        display: flex;
    }

    /* 2. FORM */
    .hero-form .container {
        grid-template-columns: 1fr;
    }

    .hero-form .content {
        padding-right: var(--grid-padding);
    }

    .hero-form .image-wrapper {
        display: none;
    }

    /* 3. GRADIENT */
    .hero-gradient .gradient-wrapper .container {
        padding: 7rem 0;
        grid-template-columns: 1fr;
        grid-gap: 2rem;
    }

    .hero-gradient .gradient-wrapper .content-wrapper {
        order: 2;
    }

    .hero-gradient .gradient-wrapper .image-wrapper {
        order: 1;
    }

    .hero-gradient .gradient-wrapper .image {
        text-align: center;
    }

    .hero-gradient .hero-gradient .image img {
        width: 80%;
        max-width: 40rem;
        max-height: 30rem;
        object-fit: contain;
    }

    /* 4. CONTACT */
    .hero-contact .container {
        padding: 7rem 0;
    }

    .hero-contact .grid {
        margin-top: 4rem;
    }
}

@media (max-width: 599px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .link {
        bottom: 4rem;        
    }

    /* 4. CONTACT */
    .hero-contact .grid {
        grid-gap: 1.5rem;
    }
}

@media (max-width: 499px) {
    /* 1. W */
    /* 1.1 W-wrapper */
    .hero-w .link {
        bottom: 2.5rem;
        height: 4.6rem;
        padding: 0 2rem;
    }

    .hero-w .link span {
        max-width: 7rem;
        font-size: 1.5rem;
    }
}