/* PAGE */

main {
    .header {
        height: 100svh;
        position: relative;
    
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    
        img,
        video {
            position: absolute;
            inset: 0;
            margin: auto;
            width: 60vw;
            max-width: 70svh;
            aspect-ratio: 1;
            object-fit: cover;
            mix-blend-mode: soft-light;
            z-index: 0;
        }
    
        .sectionText {
            color: var(--cream);
            display: flex;
            flex-direction: row;
            gap: 15vw;
            height: 45svh;
            padding: 0 1rem;
            z-index: 1;
    
            h1 {
                font-size: clamp(40px, 7vw, 100px);
                text-transform: uppercase;
    
                .mask {
                    overflow: hidden;
        
                    span {
                        opacity: 0;
                        display: inline-block;
                        transform-origin: center center;
                        line-height: 80%;
                    }
                }
            }
    
            .textArea {
                max-width: 30rem;
                margin-top: auto;
            }
        }
    
        @media (max-width:900px) {
            & {
                .sectionText {
                    gap: 0;
                }
            }
        }
    
        @media (max-width:600px) {
            & {
                img,
                video {
                    margin-right: 1rem;
                    width: 75vw;
                }
    
                .sectionText {
                    flex-direction: column;
                    gap: 30svh;
                    height: auto;
                    margin-top: 10svh;
                }
            }
        }
    }
    
    .content {
       padding: 5rem 0;
    
        .singleColumn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            padding: 4rem 1rem;
            margin-bottom: 5rem;
    
            .text {
                max-width: 30rem;
                text-align: center;
    
                h2 {
                    font-size: clamp(20px, 5vw, 50px);
                    text-transform: uppercase;
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    gap: clamp(5px, 1vw, 14px);
                    justify-content: center;

                    .mask {
                        overflow: hidden;
            
                        span {
                            opacity: 0;
                            display: inline-block;
                            transform-origin: center center;
                            line-height: 80%;
                        }
                    }
                }
            }
    
            .button {
                color: var(--black);
                border: 1px solid var(--black);
    
                @media (min-width:900px) {
                    &:hover {
                        background-color: var(--black);
                        color: var(--white);
                    }
                }
            }
        }
    
        .twoColumns {
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-bottom: 5rem;
    
            img,
            video {
                width: 60%;
                height: 100%;
                object-fit: cover;
                opacity: 0;
            }
    
            .text {
                width: 40%;
                padding: 2rem 4rem;
                display: flex;
                flex-direction: column;
                gap: 1rem;
    
                h2 {
                    text-transform: uppercase;
                    font-size: clamp(20px, 5vw, 50px);
                    max-width: 30rem;
                }
    
                h3 {
                    font-size: clamp(20px, 4vw, 30px);
                    max-width: 30rem;
                }
    
                .button {
                    color: var(--black);
                    border: 1px solid var(--black);
    
                    @media (min-width:900px) {
                        &:hover {
                            background-color: var(--black);
                            color: var(--white);
                        }
                    }
                }
            }
    
            @media (max-width:900px) {
                & {
                    flex-direction: column;
    
                    img,
                    video,
                    .text {
                        width: 100%;
                        height: auto;
                        order: 1;
                    }
    
                    .text {
                        order: 2;
                        padding: 4rem 1rem;
                    }
                }
            }
    
            @media (max-width:700px) {
                & {
                    .text {
                        padding: 4rem 1rem;
                    }
                }
            }
        }
    
        .twoColumnsInvert {
            background-color: var(--cream);
            padding: 7rem 0;
            min-height: 100svh;
    
            @media (max-width:900px) {
                & {
                    min-height: auto;
                    padding: 0;
                }
            }
        }
    
        .sustainability {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 1rem;
            padding: 10vw;
            margin-bottom: 5rem;
            color: var(--white);
            position: relative;
    
            h2 {
                font-size: clamp(20px, 5vw, 50px);
                text-transform: uppercase;
            }
    
            p {
                max-width: 40rem;
            }
    
            img {
                position: absolute;
                inset: 0;
                z-index: -1;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
    
            @media (max-width:900px) {
                & {
                    padding: 4rem 1rem;
                    align-items: flex-start;
                    text-align: left;
                }
            }
        }
    
        .sustainabilityTwo {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            justify-content: center;
            gap: 10vw;
            padding: 10vw;
            margin-bottom: 5rem;
            color: var(--white);
            position: relative;
    
            img {
                position: absolute;
                inset: 0;
                z-index: -1;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
    
            .textLeft,
            .rightBlock {
                max-width: 28rem;
            }
    
            .textLeft {
                h2 {
                    font-size: clamp(20px, 5vw, 50px);
                    text-transform: uppercase;
                }
            }
    
            .rightBlock {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                
                .item {
                    display: flex;
                    flex-direction: row;
                    gap: 2rem;
                    font-size: clamp(16px, 3vw, 20px);
                    font-weight: 600;
                }
            }
    
            @media (max-width:900px) {
                & {
                    grid-template-columns: repeat(1, 1fr);
                    padding: 4rem 1rem;
                }
            }
        }
    
        .slider {
            height: 100svh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4rem;
            margin-bottom: 5rem;
            background-color: var(--cream);
    
            .scroll {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 5rem;
                padding: 0 5rem;
    
                .card {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    gap: 4rem;
    
                    img,
                    video {
                        max-height: 70svh;
                        height: 100%;
                    }
    
                    .text {
                        width: 40rem;
    
                        h2 {
                            text-transform: uppercase;
                            font-size: clamp(20px, 5vw, 50px);
                        }
            
                        h3 {
                            font-size: clamp(20px, 4vw, 30px);
                        }
                    }
                }
    
                @media (max-width:900px) {
                    & {
                        flex-direction: column;
                        padding: 0;
                        gap: 3rem;
    
                        .card {
                            flex-direction: column;
                            gap: 3rem;
                            width: 100%;
    
                            img,
                            video {
                                width: 100%;
                                aspect-ratio: 4 / 3;
                                object-fit: cover;
                            }
    
                            .text {
                                width: auto;
                                padding: 0 1rem;
                            }
                        }
                    }
                }
            }
    
            .scrollContainer {
                margin: 0 auto;
                width: 90vw;
                max-width: 20rem;
                background-color: rgba(37, 37, 37, 0.2);
                border-radius: 3px;
        
                .scrollBar {
                    height: 3px;
                    width: 0;
                    background-color: var(--black);
                    border-radius: 3px;
                    transition: width .1s;
                }
        
                @media (max-width:900px) {
                    & {
                        display: none;
                    }
                }
            }
        
            @media (max-width:900px) {
                & {
                    height: auto;
                    padding-bottom: 3rem;
                }
            }
        }
    
        .sliderInvert {
            background-color: var(--gold);
            color: var(--cream);
    
            .scroll {
                .card {
                    align-items: flex-start;
    
                    .text {
                        width: 40rem;
                        
                        h2 {
                            font-size: clamp(20px, 5vw, 100px);
                        }
    
                        .button {
                            margin-top: 1rem;
                        }
                    }
                }
            }
    
            .scrollContainer {
                background-color: rgba(238, 235, 222, 0.2);
        
                .scrollBar {
                    background-color: var(--cream);
                }
            }
    
            @media (max-width:900px) {
                & {
                    .scroll {
                        .card {
                            flex-direction: column-reverse;
    
                            .text {
                                width: auto;
                            }
                        }
                    }
                }
            }
        }

        .canopy {
            /* min-height: 100svh; */
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4rem;
            padding: 15svh 5rem;
            margin-bottom: 5rem;
            background-color: var(--cream);
            color: var(--cream);

            .scroll {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 5rem 10vw;

                .card:not(:has(.imageText)) {
                    width: 100%;
                }

                .text {
                    h2 {
                        font-size: clamp(30px, 3vw, 50px);
                        text-transform: uppercase;
                        max-width: 20rem;
                    }
                }
    
                .imageText {
                    display: flex;
                    flex-direction: column;
                    gap: 6rem;

                    img {
                        height: 4vw;
                    }
                }
            }

            .scrollContainer {
                position: absolute;
                left: 50%;
                bottom: 10svh;
                transform: translateX(-50%);
                background-color: rgba(238, 235, 222, 0.2);
        
                .scrollBar {
                    background-color: var(--cream);
                }
            }

            @media (max-width:1200px) {
                & {
                    min-height: auto;
                    padding: 5rem 1rem;
                    
                    .scroll {
                        .card {
                            .imageText {
                                img,
                                video {
                                    height: 10vw;
                                }
                            }
                        }
                    }
                }
            }

            @media (max-width:900px) {
                & {
                    .scroll {
                        .card {
                            align-items: flex-start;

                            .imageText {
                                padding: 0 1rem;
                                width: 100%;

                                img,
                                video {
                                    aspect-ratio: unset;
                                    object-fit: contain;
                                    width: fit-content;
                                    max-width: 100%;
                                }
                            }
                        }
                    }
                }
            }
        }

        .sliderSection {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            padding: 6rem 0;
        
            @media (max-width:900px) {
                &
                 {
                    gap: .75rem;
                 }
            }
        
            .cursor {
                z-index: 10;
                transform-origin: center;
                overflow: visible;
                opacity: 0;
                transition: opacity .3s, transform .2s ease-out;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%) scale(0.5);
                position: fixed;
                pointer-events: none;
        
                path {
                    transform-origin: center;
                    transform: translateY(-100%);
                    transition: all .3s;
                }
        
                @media (max-width:900px) {
                    & {
                        display: none;
                    }
                }
            }
        
            .splide {
                position: relative;
        
                .splide__arrows {
                    position: absolute !important;
                    width: 100%;
                    height: 100% !important;
                    display: grid !important;
                    grid-template-columns: repeat(5, 1fr);
        
                    .splide__arrow {
                        position: static !important;
                        width: 100% !important;
                        height: 100% !important;
                        transform: none !important;
                        border-radius: 0 !important;
                        pointer-events: painted;
                        opacity: 0;
                    }
        
                    .splide__arrow--prev {
                        grid-column: 1;
                    }
        
                    .splide__arrow--next {
                        grid-column: 5;
                    }
        
                    @media (max-width:900px) {
                        & {
                            position: relative !important;
                            grid-template-columns: repeat(2, 1fr);
                            transform: translateY(-2.2rem);
                            width: 4rem;
                            margin-left: auto;
                            margin-right: 1rem;
        
                            .splide__arrow {
                                opacity: 1;
                                background-color: transparent;
                                width: auto !important;
                                height: auto !important;
                                pointer-events: all !important;
                            }
                
                            .splide__arrow--next {
                                grid-column: 2;
                            }
                        }
                    }
                }
        
                .splide__track {
                    .splide__list {
                        .splide__slide {
                            opacity: 0;
        
                            img,
                            video {
                                height: 100%;
                                max-width: 100vw;
                                object-fit: cover;
                            }
        
                            p {
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%,-50%);
                                z-index: 5;
                                font-size: 40px;
                                font-weight: 600;
                                text-transform: uppercase;
                                text-align: center;
                                color: var(--cream);
        
                                @media (max-width:1200px) {
                                    & {
                                        font-size: 30px;
                                    }
                                }
        
                                @media (max-width:900px) {
                                    & {
                                        font-size: 20px;
                                    }
                                }
                            }
        
                            &::after {
                                content: "";
                                display: block;
                                position: absolute;
                                inset: 0;
                                background-color: rgba(0, 0, 0, 0.1);
                                z-index: 1;
                            }
                        }
                    }
                }
            }
        }
    
        .contact {
            display: flex;
            justify-content: center;
    
            .wpcf7 {
                width: 100%;
                max-width: 60rem;
    
                form {
                    display: flex;
                    flex-direction: column;
                    gap: 0.75rem;
                    padding: 1rem;
                    
                    .wp-block-columns {
                        display: flex;
                        flex-direction: row;
                        gap: 0.75rem;
    
                        .wp-block-column {
                            width: 100%;
                        }
    
                        @media (max-width:700px) {
                            & {
                                flex-direction: column;
                            }
                        }
                    }
    
                    p { max-width: 100%; }
    
                    br { display: none; }
    
                    input:-webkit-autofill,
                    input:-webkit-autofill:hover,
                    input:-webkit-autofill:focus,
                    input:-webkit-autofill:active,
                    select:-webkit-autofill,
                    select:-webkit-autofill:hover,
                    select:-webkit-autofill:focus,
                    select:-webkit-autofill:active {
                        -webkit-box-shadow: 0 0 0 30px white inset !important;
                    }
    
                    input[type="checkbox"] {
                        width: fit-content;
                        border: 1px solid var(--black);
                        position: relative;
                    }
    
                    input[type="submit"] {
                        width: fit-content;
                        border: 1px solid var(--black);
                        padding: 15px 25px;
                        border-radius: 0;
                        text-transform: uppercase;
                    }
    
                    .wpcf7-list-item {
                        margin: 0;
    
                        input:after {
                            border: 2px solid var(--white);
                            border-top: none;
                            border-right: none;
                            content: "";
                            height: 6px;
                            left: 3px;
                            position: absolute;
                            top: 4px;
                            transform: rotate(-45deg);
                            width: 12px;
                            z-index: 2;
                        }
    
                        input:before {
                            content: "";
                            display: block;
                            width: 18px;
                            height: 18px;
                            border: 1px solid var(--black);
                            background-color: var(--white);
                            z-index: 1;
                        }
    
                        input:checked:after {
                            border-color: var(--black);
                        }
    
                        .wpcf7-list-item-label {
                            margin-left: 0.5rem;
                            font-size: 12px;
                        }
                    }
    
                    .wpcf7-submit {
                        margin-top: 2rem;
                    }
    
                    input,
                    textarea,
                    select {
                        width: 100%;
                        border: 1px solid var(--black);
                        border-radius: 3px;
                        padding: 15px 13px;
                        align-items: center;
                        font-family: 'Poppins', sans-serif;
                    }
                }
            }
        }
    
        @media (max-width:900px) {
            &  {
                gap: 0;
                padding: 0;
    
                .singleColumn,
                .twoColumns,
                .slider,
                .sustainability,
                .sustainabilityTwo {
                    margin-bottom: 0;
                }
            }
        }
    }
}