:root {
    --carousel-bg: #fbf8f4;
}
section.hero {
    padding-top: 0;
    margin-left: auto;

    & .hero-img {
        width: 100%;
        height: 300px;
        position: relative;
        & img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        &::before {
            content: "";
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg,rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .2) 100%);
            position: absolute;
            top: 0;
            left: 0;
            display: block;
        }

        & .hero-content {
            max-width: 1200px;
            position: absolute;
            bottom: calc(var(--safe-space) * 1.5);
            left: calc(var(--safe-space) * 1.5);
            display: flex;
            flex-direction: column;
            gap: calc(var(--font-size-base) * 2);
            & * {
                padding: 0;
                margin: 0;
            }
            & h1 {
                font-family: var(--font-canela);
                font-size: calc(var(--font-size-base) * 9);
                color: var(--white);
            }
            & a {
                text-transform: uppercase;
                text-decoration: unset;
            }
            & a, p {
                font-size: calc(var(--font-size-base) * 2.5);
                color: var(--white);
            }
        }
    }

    @media (min-width: 768px) {
        width: calc(100% - var(--safe-space));

        & .hero-img {
            height: 645px;
        }
    }
    @media (min-width: 1024px) {
        width: 80%;
        margin-top: -140px;
        position: relative;
        z-index: 101;
    }

    /* carousel */
    & .hero-carousel {
        --divider-color: #d7c1a5;

        background-color: var(--carousel-bg);

        & .swiper-slide {
            background-color: var(--carousel-bg);
        }

        & .progress-bar {
            --progress: 0;
            width: 100%;
            height: 2px;
            background-color: transparent;
            position: relative;
            & .progress-bar__progress {
                width: calc(var(--progress) * 100%);
                height: 100%;
                background-color: var(--red);
                position: absolute;
                top: 0;
                left: 0;
            }
        }

        & .slide-content {
            display: flex;
            flex-direction: column;

            gap: var(--safe-space) 50px;
            padding: var(--safe-space);

            & .img {
                width: 200px;
                max-width: 100%;
            }

            & .divider {
                background-color: var(--divider-color);
                opacity: .5;
            }

            & .description {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: calc(var(--font-size-base) * 2);

                & h3 {
                    font-family: var(--font-canela);
                    font-size: calc(var(--font-size-base) * 5);
                    color: var(--red);
                    margin: 0;
                }
                & p {
                    font-size: calc(var(--font-size-base) * 2);
                    line-height: 1.5em;
                    color: var(--color-paragraph);
                    margin: 0;
                }
            }

            & .carousel-cta {
                font-family: var(--font-canela);
                font-size: calc(var(--font-size-base) * 2.25);
                text-underline-offset: var(--font-size-base);
                color: var(--divider-color);
                display: flex;
                align-items: center;
                gap: calc(var(--font-size-base) * 2);

                & img {
                    height: 44px;
                    width: auto;
                }

                &:hover {
                    text-decoration: none;
                }
            }

            @media (min-width: 768px) {
                flex-direction: row;
                padding: 50px;

                & .img {
                    flex: 0 0 auto;
                }

                & .divider {
                    width: 2px;
                    position: relative;
                    flex: 0 0 auto;
                    margin-top: 3%;
                    margin-bottom: 3%;

                    &::before, &::after {
                        content: "";
                        width: 20px;
                        height: 2px;
                        background-color: var(--divider-color);
                        display: block;
                        position: absolute;
                    }
                    &::before {
                        top: 0;
                        left: 100%;
                    }
                    &::after {
                        bottom: 0;
                        right: 100%;
                    }
                }
            }
            @media (min-width: 1200px) {
                padding: 75px 100px;

                & .img {
                    width: 300px;
                    flex: 0 0 auto;
                }
            }
            @media (min-width: 1400px) {
                gap: var(--safe-space) 110px;
            }

            
        }
    }
}