/* 
    Table of content
    1. HERO
    2. TEXT & IMAGE
*/

/* 1. HERO */
.hero {
    position: relative;
    height: calc(100vh - 11rem);
    min-height: 60rem;
    max-height: 98rem;
    padding: 0 calc( var(--grid-padding) + 2rem );
    background-color: var(--color-beige);
    display: flex;
    align-items: flex-end;
}

.hero .bgimage {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
    border-radius: 1rem;
    background-size: cover;
    background-position: center;
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 9rem;
}

.hero .container::before {
    content: '';
    position: absolute;
    right: -2rem;
    bottom: -11rem;
    width: 26rem;
    height: 26rem;
    background-image: url(../images/stamp01.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* 2. TEXT & IMAGE */
.hero-text-image .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 9rem;
}

.hero-text-image .content-wrapper {
    padding-top: 6rem;
}

.hero-text-image .image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 66.67%;
    border-radius: 1rem;
    overflow: hidden;
}

.hero-text-image .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* RESIZE */
@media (max-width: 1320px) {
    /* 1. HERO */
    .hero .container::before {
        bottom: -8rem;
        width: 20rem;
        height: 20rem;
    }
}

@media (max-width: 1120px) {
    /* 2. TEXT & IMAGE */
    .hero-text-image .container {
        grid-template-columns: 1fr 2fr;
        grid-gap: 6rem;
    }

    .hero-text-image .content-wrapper {
        padding-top: 0;
    }
}

@media (max-width: 1024px) {
    /* 1. HERO */
    .hero {
        height: 64rem;
        min-height: inherit;
        max-height: inherit;
    }

    /* 2. TEXT & IMAGE */
    .hero-text-image .container {
        grid-template-columns: 2fr 3fr;
    }
}

@media (max-width: 899px) {
    /* 1. HERO */
    .hero {
        height: 60rem;
        padding: 0 var(--grid-padding);
    }

    .hero .bgimage {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .hero .container {
        padding-bottom: 6rem;
    }

    .hero .container::before {
        right: 0;
        bottom: -8rem;
        width: 16rem;
        height: 16rem;
    }

    /* 2. TEXT & IMAGE */
    .hero-text-image .container {
        grid-template-columns: 1fr;
        grid-gap: 3rem;
    }

    .hero-text-image .content-wrapper {
        order: 2;
    }

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

    .hero-text-image .image {
        padding-top: 56.25%;
    }
}

@media (max-width: 767px) {
    /* 1. HERO */
    .hero {
        height: 50rem;
    }
}