/* 
    Table of content
    1. HERO (EXTENDED)
        1.1 Hero
        1.2 CTA blocks
    2. HERO
    RESIZE
*/

/* 1. HERO (EXTENDED) */
/* 1.1 Hero */
.hero-extended {
    position: relative;
    min-height: 58rem;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-extended::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

.hero-extended .container {
    position: relative;
    z-index: 1;
    width: calc( 50% - 1rem );
    padding-bottom: 9rem;
    color: white;
}

.hero-extended .container a {
    color: white;
}

.hero-extended .text {
    margin: 0 0 3rem;
    font-size: 2rem;
    line-height: 1.5;
}

/* 1.2 CTA blocks */
.hero-cta-blocks {
    position: relative;
    z-index: 1;
    background-color: var(--color-lightgrey);
}

.hero-cta-blocks .container {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 2rem, 1fr ) );
    grid-gap: 2rem;
}

.hero-cta-blocks .item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: -9rem;
    padding: 2rem 3rem 3rem;
    border-radius: 1rem;
    background-color: white;
    color: var(--color-black);
    text-decoration: none;
}

.hero-cta-blocks .item:first-child {
    background-color: var(--color-blue);
}

.hero-cta-blocks h3 {
    margin-bottom: 0;
}

.hero-cta-blocks .item:hover .link-wrapper .title {
    text-decoration: underline;
}

.hero-cta-blocks .item:hover .link-wrapper .arrow {
    background-color: var(--color-darkyellow);
}

/* 2. HERO */
.hero {
    position: relative;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.hero.hero_34 {
    min-height: 34rem;
}

.hero.hero_50 {
    min-height: 50rem;
}

.hero.hero_66 {
    min-height: 66rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.hero .container {
    position: relative;
    z-index: 1;    
    padding: 6rem 6rem 6rem 0;
    color: white;
}

.hero.hero_50 .content-wrapper,
.hero.hero_66 .content-wrapper {
    max-width: 92.5rem;
}

.hero.hero_34 h1,
.hero.hero_66 h1 {
    font-size: 6.5rem;
}

.hero .container a:not(.btn) {
    color: white;
}

.hero .text {
    font-size: 2rem;
    line-height: 1.5;
}

.hero form {
    max-width: calc(50% - 1rem);
}

.hero .btn:hover {
    background-color: var(--color-yellow);
}

.hero .arrow {
    position: absolute;
    right: 0;
    bottom: 6rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: .1rem solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(90deg);
    cursor: pointer;
}

/* RESIZE */
@media (max-width: 1024px) {
    /* 1. HERO (EXTENDED) */
    /* 1.1 Hero */
    .hero-extended .container {
        width: 63%;
    }

    /* 2. HERO */
    .hero form {
        max-width: 63%;
    }
}

@media (max-width: 767px) {
    /* 1. HERO (EXTENDED) */
    /* 1.1 Hero */
    .hero-extended {
        min-height: 56.6rem;
        padding-bottom: 7rem;
        background-image: var(--bg-mobile);
        /* background-position-x: 55%; */
        align-items: flex-end;
    }

    .hero-extended .container {
        width: 100%;
    }

    .hero-extended h1 {
        width: 63%;
    }

    .hero-extended .text {
        font-size: 1.8rem;
    }

    /* 1.2 CTA blocks */
    .hero-cta-blocks .container {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }

    .hero-cta-blocks .item {
        padding: 2rem;
    }

    .hero-cta-blocks .item:not(:first-child) {
        margin-top: 0;
    }

    /* 2. HERO */
    .hero {
        background-image: var(--bg-mobile);
    }

    .hero.hero_34 {
        min-height: 26rem;
    }
    
    .hero.hero_50 {
        min-height: 34rem;
    }

    .hero.hero_66 {
        min-height: 50rem;
    }

    .hero::before {
        background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 75%);
    }

    .hero .container {
        padding: 4rem 0;
    }

    .hero.hero_34 h1,
    .hero.hero_50 h1,
    .hero.hero_66 h1 {
        font-size: 3.6rem;
    }

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

    .hero form {
        max-width: 100%;
    }

    .hero .btn {
        margin-top: -1rem;
    }

    .hero .arrow {
        display: none;
    }
}