@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --bg-primary: #240c05;
    --bg-tertiary: #ede5dd;
    --default-text: #fff;
    --link-hover: #b88958;
    --inactive-text: #000;
    --type-option: #c7c7c7;
    --location-bg: #faefee;
    --type-option-hover: #c1c1c1;
    --type-option-active: #b88958;
    --contact-content: #e2d0b3;
    --placeholder-text: #a7a7a7;
    --btn-hover: #c79352;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-padding-top: 70px;
}

html,
body {
    scroll-behavior: smooth;
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-tertiary);
}

.container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;

    .floating-whatsapp-container {
        position: fixed;
        bottom: 3rem;
        right: max((100vw - 1440px) / 2 + 20px, 20px);
        z-index: 999;

        .floating-whatsapp {
            width: 60px;
            height: 60px;
            background-image: url("./assets/images/whatsapp-icon.webp");
            background-size: 90%;
            background-position: center;
            background-repeat: no-repeat;
            display: block;
            border-radius: 50%;
            cursor: pointer;

            &:hover {
                transform: scale(1.05);
                transition: 0.2s ease;
            }
        }
    }
}

nav {
    background-color: var(--bg-primary);
    padding: 1rem;
    text-transform: uppercase;

    ul {
        list-style-type: none;

        li {
            padding: 1rem 0;
            color: var(--default-text);
            font-weight: 400;

            a {
                text-decoration: none;
                color: var(--default-text);
                transition: all 0.3s;
                -webkit-tap-highlight-color: transparent;
                -webkit-user-select: none;
                -webkit-touch-callout: none;
                touch-action: manipulation;
                will-change: transform;
                transform: translateZ(0);

                &:hover,
                &.active {
                    color: var(--link-hover);
                }
            }
        }
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;

    .mobile-nav-menu-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .logo {
            width: 50px;

            img {
                width: 100%;
            }
        }

        .hamburger-menu {
            width: 50px;
            height: 50px;
            border-radius: 5px;
            cursor: pointer;
            position: relative;
        }

        .hamburger-menu span {
            position: absolute;
            background: #fff;
            display: inline-block;
            width: 45%;
            height: 3px;
            border-radius: 3px;
            left: 14px;
            transition: all 0.3s;

            &:nth-of-type(1) {
                top: 15px;
            }
            &:nth-of-type(2) {
                top: 23px;
            }
            &:nth-of-type(3) {
                top: 31px;
            }
        }

        .hamburger-menu.active span {
            &:nth-of-type(1) {
                width: 45%;
                top: 18px;
                left: 14px;
                transform: translateY(6px) rotate(45deg);
            }
            &:nth-of-type(2) {
                opacity: 0;
            }
            &:nth-of-type(3) {
                width: 45%;
                top: 30px;
                left: 14px;
                transform: translateY(-6px) rotate(-45deg);
            }
        }
    }

    ul {
        overflow: hidden;
        height: 0;
        transition: height 0.3s ease;
    }
}

.desktop-nav {
    display: none;
}

.hero-wrapper {
    .hero-image-container-one {
        position: relative;
        width: 100%;
        min-height: 90dvh;
        overflow: hidden;

        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: translate(-50%, -50%);
            z-index: 1;
        }

        .hero-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            text-align: center;
            color: #fff;
            padding: 1rem;

            .hero-logo {
                width: 100px;
                margin-bottom: 1rem;
            }

            h1 {
                font-size: 1.8rem;
                margin-bottom: 0.8rem;
            }

            p {
                font-size: 1rem;
                max-width: 320px;
                margin: 0 auto;
            }
        }
    }

    .hero-image-container-two {
        position: relative;
        overflow: hidden;
        width: 100%;
        min-height: 400px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(1px);
            z-index: 0;
        }

        .hero-image-container-two-details {
            position: absolute;
            bottom: 0;
            padding: 1rem;
            color: var(--default-text);
            max-width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;

            h3 {
                font-size: 1.5rem;
                text-transform: uppercase;
                font-weight: 500;
                margin-bottom: 0.5rem;
            }

            p {
                font-size: 0.875rem;
            }
        }
    }

    .hero-image-container-one {
        background-image: url("./assets/images/hero01.webp");
    }

    .hero-image-container-two {
        background-image: url("./assets/images/hero02.webp");
    }
}

.location-wrapper {
    width: 100%;
    background-color: var(--location-bg);
    padding: 2rem;

    .location-content {
        max-width: 992px;
        text-align: center;
        margin: 0 auto;

        h2 {
            text-transform: uppercase;
        }

        p {
            margin-block: 1.5rem;
        }
    }

    img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.developer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    > div:first-child {
        width: 100%;
    }

    img {
        display: block;
        width: 100%;
        height: auto;
    }

    .developer-content-container {
        padding: 3rem 1rem;

        h4 {
            font-weight: 500;
            text-transform: uppercase;
        }

        h2 {
            margin-block: 1rem 2rem;
        }

        .developer-details {
            div {
                margin-block: 0.5rem;
            }

            strong {
                display: inline-block;
                width: 168px;
                margin-right: 1rem;
                text-transform: uppercase;
            }
        }
    }
}

.section-title {
    text-align: center;
}

.layout-section {
    padding-block: 2rem;

    #layoutDisplayContainer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        .layout-option-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 1rem;

            .layout-option {
                font-weight: 700;
                padding-block: 1rem 0.5rem;
                cursor: pointer;
            }

            .active {
                border-bottom: 1px solid var(--type-option-active);
            }
        }
    }

    .type-wrapper {
        margin-block: 1rem;

        .type-option-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;

            .type-option {
                font-size: 0.875rem;
                list-style: none;
                font-weight: 500;

                -webkit-user-select: none;
                -webkit-touch-callout: none;
                cursor: pointer;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
                will-change: transform;
                transform: translateZ(0);

                background-color: var(--type-option);
                color: var(--inactive-text);
                padding: 0.5rem 1.25rem;
                border-radius: 99px;

                &:hover {
                    background-color: var(--type-option-hover);
                    color: var(--default-text);
                }
            }

            .active {
                background-color: var(--type-option-active);
                color: var(--default-text);
                backface-visibility: hidden;
            }
        }
    }

    #layoutDisplay {
        text-align: center;

        #layoutImage {
            width: 100%;
            opacity: 1;
            transition: opacity 0.1s ease;
        }

        #layoutImage.fade-out {
            opacity: 0;
        }
    }

    #facilitiesDisplayContainer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        #facilitiesOption {
            margin-block: 1rem;

            .facilities-option-container {
                display: flex;
                justify-content: center;
                flex-wrap: wrap;
                gap: 1rem;
                margin-top: 1rem;

                .facilities-option {
                    font-size: 0.875rem;
                    list-style: none;
                    font-weight: 500;

                    -webkit-user-select: none;
                    -webkit-touch-callout: none;
                    cursor: pointer;
                    touch-action: manipulation;
                    -webkit-tap-highlight-color: transparent;
                    will-change: transform;
                    transform: translateZ(0);

                    background-color: var(--type-option);
                    color: var(--inactive-text);
                    padding: 0.5rem 1.25rem;
                    border-radius: 99px;

                    &:hover {
                        background-color: var(--type-option-hover);
                        color: var(--default-text);
                    }
                }

                .active {
                    background-color: var(--type-option-active);
                    color: var(--default-text);
                    backface-visibility: hidden;
                }
            }
        }
    }

    #facilitiesDisplay {
        text-align: center;

        #facilitiesImage {
            width: 100%;
            transition: opacity 0.1s ease;
        }

        #facilitiesImage.fade-out {
            opacity: 0;
        }
    }
}

#mobileFacilitiesSlider {
    .thumb {
        width: 200px;
        cursor: pointer;
        border-radius: 8px;
        transition: transform 0.2s;

        &:hover {
            transform: scale(1.05);
        }
    }
}

.mobile-carousel {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;

    .slide {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 100%;
        object-fit: cover;
    }

    .slide.active {
        left: 0;
    }

    .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 40px;
        cursor: pointer;
        color: var(--default-text);
        padding: 5px 10px;
        border-radius: 5px;
        user-select: none;
        z-index: 99;
    }

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

    .banner {
        width: 100%;
        position: absolute;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: rgba(237, 229, 221, 0.65);
        padding: 1rem;
        z-index: 99;
        text-transform: capitalize;
    }
}

.card-slider {
    display: none;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-us-container {
    max-width: 480px;
    margin-inline: auto;
    padding: 2rem;
    text-align: center;

    .logo {
        width: 100px;
        height: 100px;
    }

    h2 {
        margin-top: 1rem;
        color: var(--link-hover);
    }

    p {
        margin-block: 1.5rem;
    }

    .contact-number {
        display: inline-block;
        margin-top: 1rem;
        font-size: 1.5rem;
        color: var(--link-hover);
        text-decoration: none;

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

.contact-us-form-wrapper {
    background-color: var(--bg-primary);

    .contact-us-form-container {
        max-width: 500px;
        margin-inline: auto;
        padding: 2rem;

        .contact-form-heading {
            text-align: center;
            color: var(--contact-content);
            font-size: 2rem;
            font-weight: 500;
            text-transform: uppercase;
            margin-block: 2rem 1rem;
        }

        .contact-form-subheading {
            text-align: center;
            color: var(--default-text);
            font-size: 0.875rem;
            opacity: 0.85;
        }

        .form-box {
            margin-top: 2rem;

            .input-group {
                margin-block: 1.5rem;

                label {
                    display: inline-block;
                    margin-bottom: 0.5rem;
                    text-align: left;
                    text-transform: capitalize;
                    color: var(--contact-content);
                }

                input {
                    width: 100%;
                    padding: 14px;
                    border: 1px solid var(--contact-content);
                    background: transparent;
                    color: var(--contact-content);
                    font-size: 1rem;
                    outline: none;

                    &::placeholder {
                        font-weight: 300;
                        text-transform: capitalize;
                        color: var(--placeholder-text);
                        opacity: 0.5;
                    }
                }

                .radio-group {
                    .radio-item {
                        display: flex;
                        align-items: center;
                        font-size: 1rem;
                        margin-bottom: 0.5rem;
                        cursor: pointer;
                    }

                    .radio-item input[type="radio"] {
                        accent-color: var(--link-hover);
                        width: 16px;
                        height: 16px;
                        margin-right: 0.625rem;
                    }
                }
            }

            .btn-submit {
                width: 100%;
                padding: 1rem;
                margin-top: 2rem;
                background-color: var(--link-hover);
                border: none;
                font-size: 1.125rem;
                text-transform: uppercase;
                letter-spacing: 2px;
                cursor: pointer;

                &:hover {
                    background-color: var(--btn-hover);
                }
            }
        }

        .success-message {
            margin-top: 20px;
            font-size: 16px;
            color: var(--contact-content);
        }
    }
}

.site-map-wrapper {
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;

    h3 {
        font-size: 1rem;
        font-weight: 500;
        color: var(--default-text);
    }

    .marketing-agency-container {
        img {
            width: 180px;
            margin-block: 1rem;
        }
    }

    .site-map-container {
        ul {
            margin-block: 1rem;
            list-style-type: none;

            li {
                margin-block: 0.5rem;

                a {
                    color: var(--btn-hover);
                }
            }
        }
    }

    .info-container {
        div {
            margin-block: 1rem;

            .contact-number {
                display: inline-block;
                margin-top: 0.25rem;
                color: var(--link-hover);
            }

            .operation-hour {
                margin-top: 0.25rem;
                color: var(--default-text);
            }
        }
    }
}

.footer {
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-primary);
    color: var(--link-hover);
}

@media screen and (min-width: 768px) {
    .hero-wrapper {
        .hero-content {
            .hero-logo {
                max-width: 180px;
            }

            h1 {
                font-size: 2.2rem;
            }

            p {
                font-size: 1.1rem;
                max-width: 480px;
            }
        }

        .hero-image-container-two {
            .hero-image-container-two-details {
                max-width: 45%;

                h3 {
                    font-size: 2rem;
                }
            }
        }
    }

    #facilitiesSlider {
        max-width: 992px;
        margin-inline: auto;
        padding: 3rem 1rem;

        .card-slider {
            display: flex;
            align-items: stretch;
            height: 400px;
            gap: 12px;

            .card {
                flex: 0.6;
                background: var(--bg-primary);
                border-radius: 20px;
                cursor: pointer;
                position: relative;
                overflow: hidden;
                transition:
                    flex 0.4s ease-in-out,
                    border-radius 0.3s ease;

                &::before {
                    content: "";
                    position: absolute;
                    inset: 0;
                    background-image: var(--img);
                    background-size: cover;
                    background-position: center;
                    opacity: 0.4;
                    transition: opacity 0.4s ease;
                }

                span {
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translateX(-50%) rotate(-90deg);
                    transform-origin: center;
                    text-align: center;
                    font-size: 1.3rem;
                    font-weight: 600;
                    color: var(--default-text);
                    letter-spacing: 1px;
                    transition:
                        transform 0.25s ease,
                        opacity 0.3s ease;
                }

                &:hover::before {
                    opacity: 1;
                }

                &:hover span {
                    left: 50%;
                    transform: translateX(-50%) rotate(0deg);
                    opacity: 1;
                }
            }

            &:hover .card {
                flex: 0.4;
            }

            .card:hover {
                flex: 2;
            }
        }
    }

    .mobile-carousel {
        display: none;
    }

    .developer-wrapper {
        flex-direction: row;

        > div:first-child {
            width: auto;
        }

        img {
            width: auto;
            max-width: 100%;
        }
    }

    .site-map-wrapper {
        flex-direction: row;
        justify-content: space-evenly;

        .site-map-container ul {
            display: inline-block;
            margin-right: 1rem;
        }

        .info-container div:nth-child(1) {
            margin-top: 0;
        }
    }
}

@media screen and (min-width: 992px) {
    .hero-wrapper {
        margin-top: 0;

        .hero-content {
            .hero-logo {
                max-width: 220px;
            }

            h1 {
                font-size: 2.8rem;
            }

            p {
                font-size: 1.25rem;
                max-width: 600px;
            }
        }
    }

    nav ul li {
        padding-inline: 1rem;
    }

    .desktop-nav {
        width: 100%;
        position: fixed;
        z-index: 99;
        display: flex;
        justify-content: center;

        ul {
            display: flex;
        }
    }

    .mobile-nav {
        display: none;
    }

    .layout-section {
        #layoutDisplay {
            #layoutImage {
                width: 50%;
            }
        }

        #facilitiesDisplay {
            #facilitiesImage {
                width: 50%;
            }
        }
    }

    .developer-wrapper {
        .developer-content-container {
            margin-left: 3rem;
        }
    }

    .site-map-wrapper {
        .site-map-container ul {
            margin-right: 2rem;
        }
    }
}
