@import url(./reff-variables.css);

/* DEKSTOP */
/* ######################################################### */
@media screen and (min-width: 1025px) {
    /* #region ============= GLOBAL ============= */
    :root {
        --maxPage: 2750px;
        --mainPaddingX: 7rem;
    }
    /* #endregion ========== GLOBAL ============= */
}

/* TABLET */
/* ######################################################### */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* #region ============= GLOBAL ============= */
        :root {
            --maxPage: 100%;
            --mainPaddingX: 5rem;
        }

        .subtitle {
            font-size: 2.25rem;
        }
        .desc {
            font-size: 1.1rem;
        }
    /* #endregion ========== GLOBAL ============= */

    /* #region ============= NAVBAR ============= */
        #navbar {
            padding: 1.5rem 3rem;

            .brand {
                svg {
                    height: 35px;
                }
            }
            
            .nav-menu {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                padding: 2rem 1.5rem;
                background-color: var(--hitam);
                opacity: 0;
                pointer-events: none;
                overflow: hidden;

                ul {
                    width: 100%;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    gap: 1.75rem;

                    li {
                        list-style: none;

                        a {
                            color: var(--putih);
                            font-size: 1.25rem;
                            text-decoration: none;
                            transition: var(--anim);

                            &:is(:hover, :active) {
                                color: var(--primary);
                            }
                        }
                    }
                }
            }

            .cta {
                display: none;
            }

            label[for="nav-toggle"] {
                display: grid;
                z-index: 999;
            }

            #nav-toggle:checked ~ .nav-menu {
                opacity: 1;
                pointer-events: all;
            }
            #nav-toggle:checked ~ label[for="nav-toggle"] i:first-child {
                display: none;
            }
            #nav-toggle:checked ~ label[for="nav-toggle"] i:last-child {
                display: block;
            }
        }
    /* #endregion ========== NAVBAR ============= */

    /* #region ============= HEADER ============= */
        
    /* #endregion ========== HEADER ============= */
    
    
}

/* MOBILE */
/* ######################################################### */
@media screen and (max-width: 767px) {
    /* #region ============= GLOBAL ============= */
        :root {
            --maxPage: 100%;
            --mainPaddingX: 1.25rem;
        }

        .subtitle {
            font-size: 2rem;
        }
        .desc {
            font-size: 1rem;
        }
    /* #endregion ========== GLOBAL ============= */

    /* #region ============= NAVBAR ============= */
        #navbar {
            padding: 1.5rem;

            .brand {
                svg {
                    width: auto;
                    height: 35px;
                }
            }
            
            .nav-menu {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                padding: 2rem 1.5rem;
                background-color: var(--hitam);
                opacity: 0;
                pointer-events: none;
                overflow: hidden;

                ul {
                    width: 100%;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    gap: 1.75rem;

                    li {
                        list-style: none;

                        a {
                            color: var(--putih);
                            font-size: 1.25rem;
                            text-decoration: none;
                            transition: var(--anim);

                            &:is(:hover, :active) {
                                color: var(--primary);
                            }
                        }
                    }
                }
            }

            .cta {
                display: none;
            }

            label[for="nav-toggle"] {
                display: grid;
                z-index: 999;
            }

            #nav-toggle:checked ~ .nav-menu {
                opacity: 1;
                pointer-events: all;
            }
            #nav-toggle:checked ~ label[for="nav-toggle"] i:first-child {
                display: none;
            }
            #nav-toggle:checked ~ label[for="nav-toggle"] i:last-child {
                display: block;
            }
        }
    /* #endregion ========== NAVBAR ============= */

    /* #region ============= HEADER ============= */
        header {
            .hero {
                display: flex;
                flex-direction: column-reverse;
                grid-template-columns: unset;
                align-items: flex-start;
                margin-top: 0;
            }
            .text {
                padding: var(--mainPaddingX);
                padding-top: 0;
                padding-bottom: 2rem;

                h4 {
                    font-size: 1.1rem;
                    margin-bottom: 1.5rem;
                }
                a {
                    width: 100%;
                    text-align: center;
                    margin-bottom: 3rem;
                }
                .partner {
                    justify-content: center;

                    .users {
                        min-height: 38px;

                        span {
                            left: calc(1rem * var(--numb));
                            height: 38px;
                        }
                    }
                    p {
                        font-size: .9rem;
                        margin-left: 4rem;
                    }
                }
            }

            .image {
                position: relative;
                display: grid;
                place-items: center;
                height: 50%;
                width: 100%;

                .wrap-img {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%) rotate(0deg) scale(.5);
                    width: clamp(100px, 80%, 525px);
                    aspect-ratio: 1;
                    background-color: var(--grey);
                    border-radius: 1.5rem;
                    animation: heroEntrance 1.25s ease forwards;
                    opacity: 0;
                    overflow: hidden;
                }
                img {
                    display: block;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%) rotate(-2deg);
                    min-width: calc(100% + 3rem);
                    min-height: calc(100% + 3rem);
                    object-fit: cover;
                }
                .rate {
                    position: absolute;
                    left: 5%;
                    bottom: 28%;
                    color: var(--hitam);
                    padding: 1.25rem 1.5rem;
                    background-color: var(--putih);
                    border-radius: 1rem;
                    z-index: 5;

                    i {
                        position: absolute;
                        font-size: 2rem;
                        color: var(--green);
                    }
                    span:first-of-type {
                        display: block;
                        margin-top: .25rem;
                        margin-left: 2.5rem;
                    }
                    span:last-of-type {
                        display: block;
                        font-size: 2rem;
                        font-weight: 800;
                        line-height: 1;
                        margin-top: 1rem;
                    }
                }
            }
        }
    /* #endregion ========== HEADER ============= */

    
}