/*
    Homepage
*/

.hero {
    position: relative;
    margin-bottom: 16rem;
}

.hero-img {
    max-width: 100%;
}

.hero-text__mobile {
    position: absolute;
    top: 95%;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
}

.hero-title {
    text-align: center;
    padding: 1.2rem 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple-dark);
    margin: 0;
    background: var(--blue-light) 0% 0% no-repeat padding-box;
}

.hero-text a {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.12rem;
    color: white;
    padding: 1.2rem 0.8rem;
    background: var(--purple-dark) 0% 0% no-repeat padding-box;
}

.hero>.hero-title, .hero>.btn-main {
    display: none;
}
.text-container {
    margin: 0 1.5rem;
}

.btn-main, .btn-main__arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 35rem;
    font-weight: bold;
    font-size: 1.12rem;
    color: white;
    padding: 1rem;
    background: var(--purple-dark) 0% 0% no-repeat padding-box;
    border: none;
    cursor: pointer;
}

.btn-main__arrow {
    word-break: break-word;
}

.btn-main__arrow::after {
    content: "";
    background-image: url("../img/cobham-rupture/homepage/arrow-next.svg");
    background-repeat: no-repeat;
    width: 1rem;
    height: 1rem;
}

.btn-main:hover, .btn-main__arrow:hover {
    background-color: var(--purple-light);
    color: white;
    transition: 0.2s;
}

.icon-arrow-next {
    max-width: 1rem;
    margin-left: 2rem;
}

.highlight-secondary {
    background: var(--blue-light);
}

@media screen and (min-width: 768px) {
    .hero {
        margin-bottom: 0;
        display: grid;
        grid-template:
            ". i i i i" 
            ". i i i i"
            "h i i i i"
            "h . b b .";
    }
    .hero img {
        grid-area: i;
        max-width: 448px;
    }
    .hero .btn-main {
        height: fit-content;
        grid-area: b;
    }
    .hero-title {
        grid-area: h;
        margin-right: -2rem;
    }
    .hero-text__mobile {
        display: none;
    }
    .hero>.hero-title {
        display: block;
    }
    .hero>.btn-main {
        display: flex;
    }    
}

@media screen and (min-width: 992px) {
    .hero img {
        max-width: 650px;
    }
    .hero .hero-title {
        margin-right: -5rem;
    }
    .hero .btn-main {
        font-size: 1.5rem;
    }
    .hero .hero-title {
        margin-right: -5rem;
        padding: 5rem 0.5rem;
    }
}

@media screen and (min-width: 1200px) {
    .text-container {
        margin: 0 3.3rem;
    }

    .hero img {
        max-width: 850px;
    }

    .hero .hero-title {
        margin-right: -8rem;
        padding: 7rem 0.7rem;
    }

    .hero .btn-main {
        font-size: 1.8rem;
    }

    .btn-main {
        width: fit-content;
        height: fit-content;
    }
}

@media screen and (min-width: 1500px) {
    .hero img {
        max-width: 950px;
    }

    .hero .hero-title {
        padding: 9rem 0.9rem;
    }
}

@media screen and (min-width: 1600px) {
    .main-container, .home-container {
        max-width: 1300px;
    }

    .text-container {
        margin: 0;
    }

    .hero {
        max-width: 1375px;
    }
}