@use '../consts.scss' as consts;
@use '../mixins.scss' as mixins;

.heroContainer {
    position: relative;
    margin: 0 consts.$gap-medium;

    & > .downArrow {
        position: absolute;
        left: calc(50% - (24px / 2));
        bottom: -40px;
        z-index: 5;

        @include mixins.media(md){
            display: none;
        }
    }

    & > .iconLinkWrapper{
        display: none;
        position: absolute;
        bottom: -80px;
        left: 0;
        right: 0;
        justify-content: center;
        z-index: 5;


        @include mixins.media(md){
            display: flex;
        }
    }
}
.hero {
    position: relative;
    overflow: hidden;

    display: flex;
    gap: consts.$gap-base;
    height: 800px;
    padding: 0 consts.$gap-medium;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px;


    @include mixins.media(md){
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    @include mixins.media(sm){
        height: 582px;
    }

    & > .video { 
        &:after {
            position: absolute;
            z-index: 1;
            inset: 0;
            content: " ";
        }
    }
    & > .image, & > .video {
        position: absolute;
        z-index: 0;
        inset: 0;
        img, iframe {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    & > .circles {
        $circle-size: 80px;
        z-index: 2;

        &::after, &::before {
            @include mixins.circle-base($circle-size);
        }
        
        &::before { 
            left: calc(($circle-size/2) * -1);
        }
        &::after {
            right: calc(($circle-size/2) * -1);
        }
    }

    & > .half {
        max-width: calc(50% - (consts.$gap-base / 2));
        width: 100%;
        z-index: 2;

        &.right {
            align-self: end;

            @include mixins.media(md){
                display: none;
            }
        }

        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;

        & > .content {
            text-align: center;
            color: consts.$schema-accent-text;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;

            & > .title{
                @include mixins.text('heading');
                font-size: 76px;
                margin: consts.$gap-large 0;
                line-height: 1;
                text-transform: uppercase;

                @include mixins.media(lg){
                    font-size: 80px;
                }
                @include mixins.media(md){
                    font-size: 72px;
                }
                @include mixins.media(sm){
                    font-size: 40px;
                    margin: 0;
                }
            }

            & > .subtitle{
                width: 75%;
                margin: 0 auto;
                @include mixins.text('text-4');
            }

            & > .banner-button {
                width: 200px;
                padding: 21px 40px 21px 40px;
                background: #DDBD8D;
                color: white;
                //styleName: Heading 7;
                font-family: Cormorant Garamond;
                font-size: 24px;
                font-style: italic;
                font-weight: 700;
                line-height: 24px;
                text-align: center;
                text-decoration: none;
            }
        }

        @include mixins.media(md){
            max-width: unset;
        }
    }

    & > .iconLinkWrapper {
        z-index: 2;

        @include mixins.media(md){
            display: none;
        }
    }

}