@use '../base/variables' as *;

// ============================================================================
// Coming Soon Page Styles
// ============================================================================

.coming-soon {
    position: relative;
    background-color: $color-neutral;
    overflow: hidden;
    padding-top: var(--header-height-css);

    // Background
    // ========================================================================

    &__background {
        position: absolute;
        top: -167px;
        left: -1111px;
        width: 4288px;
        height: 2130px;
        pointer-events: none;
        z-index: 1;
    }

    &__mountain-layer {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        z-index: 1;
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    // Logo
    // ========================================================================
    &__logo-image {
        display: block;
        position: relative;
        width: auto;
        height: 76px;
        z-index: 10;
        margin: 0 auto;
    }

    &__parapente-image {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        width: auto;
        height: 76px;
        z-index: 10;
        margin: 0 auto;
        transform: translateX(calc(-50% - 300px));
    }

    // Hero Section
    // ========================================================================

    &__hero {
        position: relative;
        display: flex;
        flex-direction: column;

        &__light-mountain {
            position: absolute;
            transform: translateY(1px);
            height: 993px;
            width: 100%;
            overflow: hidden;
            background-image: url("../../images/coming-soon/mountain-00.svg");
            background-size: auto 100%;
            background-position: center top;
            background-repeat: repeat-x;
            top: 0;
            left: 0;
        }

        &__content {
            width: 100dvw;
            z-index: 2;
            display: flex;
            flex-direction: column;
            position: relative;
            margin: 0 auto;
            padding-top: 485px;

            &:before {
                content: "";
                transform: translateY(1px);
                height: 485px;
                width: 100%;
                position: absolute;
                top: 0;
                left: 0;
                overflow: hidden;
                background-image: url("../../images/coming-soon/mountain-01.svg");
                background-size: auto 100%;
                background-position: center top;
                background-repeat: repeat-x;
                z-index: -1;
            }

            &:after {
                content: "";
                display: flex;
                transform: translateY(1px);
                height: 499px;
                width: 100%;
                position: absolute;
                bottom: 0;
                left: 0;
                overflow: hidden;
                background-image: url("../../images/coming-soon/mountain-02.svg");
                background-size: auto 100%;
                background-position: center top;
                background-repeat: repeat-x;
                z-index: 1;
            }

            &__wrapper {
                background-color: $color-primary-dark;
                padding-bottom: 290px;

                .container {
                    transform: translateY(-170px);
                }
            }

            &__title {
                font-family: 'Bochan Serif', serif;
                font-size: 105px;
                line-height: 1.2;
                font-weight: 400;
                margin: 0 0 40px;
                color: white;
                z-index: 2;
                display: flex;
                flex-direction: column;

                @media (max-width: 992px) {
                    font-size: 60px;
                }

                &__title-line1 {
                    color: white;
                }

                &__title-line2 {
                    color: $color-primary-lighter;
                }
            }

            &__description {
                font-family: 'Lato', sans-serif;
                font-size: 15px;
                line-height: 1.7;
                font-weight: 400;
                text-transform: uppercase;
                color: white;
                margin: 0 0 24px;
                max-width: 395px;
                z-index: 2;
            }

            &__wrapper-cta {
                display: flex;
                flex-direction: row;
                gap: 20px;
            }

            &__cta {
                z-index: 2;
                display: inline-block;
            }

            // Button styles moved to the shared `.btn`/`.btn--lined` component
            // (assets/styles/components/_button.scss).
        }
    }

    // Content Section
    // ========================================================================

    &__content {
        position: relative;
        z-index: 3;

        &__wrapper {
            background-color: $color-primary;
            position: relative;

            &:after {
                content: "";
                transform: translateY(1px);
                height: 117px;
                width: 100%;
                position: absolute;
                bottom: 0;
                left: 0;
                overflow: hidden;

                background-image: url("../../images/coming-soon/mountain-03.svg");
                background-size: auto 100%;
                background-position: center top;
                background-repeat: repeat-x;
                z-index: 1;

                @media (max-width: 992px) {
                    margin-top: 0;
                }
            }

            .container {
                display: grid;
                grid-template-columns: 1fr 1fr;
                position: relative;
                gap: 75px;
                z-index: 4;
                padding-top: 36px;
                margin-bottom: 0;

                @media (max-width: 768px) {
                    grid-template-columns: 1fr;
                    gap: 35px;
                }
            }
        }

        &__image {
            position: relative;

            @media (max-width: 768px) {
                width: 90%;
            }

            &:before, &:after {
                content: "";
                background-color: $color-primary-lighter;
                position: absolute;
            }

            &:before {
                width: 187px;
                height: 1px;
                top: -20px;
                right: -50px;
            }

            &:after {
                width: 1px;
                height: 187px;
                top: -36px;
                right: -20px;
            }
        }
    }

    // Decorative Lines
    // ========================================================================

    &__decorative-lines {
        position: absolute;
        left: 50%;
        top: -46px;
        transform: translateX(-50%);
    }

    &__line {
        position: absolute;
        display: block;

        &--vertical {
            width: auto;
            height: 187px;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
        }

        &--horizontal {
            width: 187px;
            height: auto;
            left: 50%;
            top: 26px;
            transform: translateX(-50%);
        }
    }

    // Content Text
    // ========================================================================

    &__content-text {
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    &__tagline {
        max-width: 600px;
        font-family: 'Bochan Serif', serif;
        font-size: 40px;
        line-height: 1.7;
        font-weight: 400;
        color: white;
        margin: 0 0 47px;
        border-bottom: 1px solid $color-primary-lighter;
        padding-bottom: 47px;

        @media (max-width: 992px) {
            font-size: 32px;
            padding-bottom: 37px;
        }

        @media (max-width: 768px) {
            font-size: 23px;
            padding-bottom: 27px;
        }

        .highlight {
            color: $color-primary-lighter;
        }
    }

    &__separator {
        display: block;
        width: 100%;
        height: auto;
        margin-bottom: 47px;
    }

    &__agency-description {
        font-family: 'Lato', sans-serif;
        font-size: 16px;
        line-height: 1.6;
        color: white;
        max-width: 492px;

        p {
            margin: 0;
        }

        strong {
            font-weight: 700;
        }
    }

    // Footer
    // ========================================================================

    &__footer {
        position: relative;
        display: flex;
        align-items: center;
        gap: 24px;
        font-family: 'Lato', sans-serif;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.6;
        color: white;
        white-space: nowrap;
        z-index: 10;

        &__wrapper {
            width: 100%;
            height: 100%;
            background-color: $color-secondary-dark;
        }

        .container {
            display: flex;
            gap: 29px;
        }
    }

    &__footer-text {
        margin: 0;

        a {
            color: inherit;
            text-decoration: none;
            transition: opacity 0.3s ease;

            &:hover {
                opacity: 0.7;
            }
        }
    }
}
