@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libertinus+Sans:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root{
    --website_yellow:#d9d750;
    --website_blue:#2368eb;
    --website_red:#f0213f;
}

html,body{
    scroll-behavior: smooth;
}

body{
     font-family: "Manrope", sans-serif;
     background: #FEFAF3;
}

h1,h2,h3,h4,h5{
     font-family: "Libertinus Sans", sans-serif;
}

.main-nav{

    > ul{
        > li {
            position: relative;
            > a{
                position: relative;

                &:before{
                    content: "";
                    position: absolute;
                    right: 0;
                    height: 1px;
                    background: black;
                    transition: all 0.3s ease-out;
                    bottom: -3px;
                    width: 0;
                }

               
            }

            &:hover{
                > a:before{
                    width: 100%;
                    left: 0;
                }
            }

            &:hover > ul{
                opacity: 1;
                pointer-events: all;
                transform: translateY(0px) translateX(-50%);
            }

            >ul{
                position: absolute;
                top: 100%;
                left: 50%;
                padding-top: 25px;
                z-index: 1;
                font-size: 1rem;
                width: max-content;
                max-width: 325px;
                transition: all 0.3s ease-out;
                opacity: 0;
                pointer-events: none;
                transform: translateY(10px) translateX(-50%);


                > li:has(ul){
                    position: relative;

                    > a{
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        gap: 20px;

                        &:after{
                            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3E%3C/svg%3E");
                            display: inline-block;
                            transform: rotate(-90deg);
                            width: 15px;
                            height: 15px;
                            line-height: 0;
                            vertical-align: middle;
                            flex-shrink: 0;
                        }
                    }

                    &:hover{
                        > ul{
                            pointer-events: all;
                            opacity: 1;
                            transform:none
                        }
                    }

                    > ul{
                        position: absolute;
                        left: 100%;
                        top: 0;
                        padding-left: 10px;
                        min-width: 270px;
                        pointer-events: none;
                        opacity: 0;
                        transform: translateX(10px);
                        transition: all 0.3s ease-out;
                        

                        &:before{
                            content: "";
                            border-radius: 0.6rem;
                            position: absolute;
                            top: 0;
                            /* inset-inline: 10px; */
                            bottom: 0;
                            background: #ffffff;
                            z-index: -1;
                            transition: all 0.3s ease-out;
                            left: 10px;
                            right: 0;
                            box-shadow: 0 0 10px 0 rgba(0 0 0 /10%);
                        }
                    }
                }

                li:last-of-type a{
                    border: none;
                }

                a{
                    transition: all 0.3s ease-out;
                    padding-block: 12px;
                    display: block;
                    padding-inline: 20px;
                    border-bottom: 1px solid #eee;

                    &:hover{
                        color: rgba(0 0 0 /50%);
                    }
                }

                &:before{
                    content: "";
                    border-radius: 0.6rem;
                    position: absolute;
                    top: 20px;
                    inset-inline: 0;
                    bottom: 0;
                    background: white;
                    z-index: -1;
                    transition: all 0.3s ease-out;
                    box-shadow: 0 0 10px 0 rgba(0 0 0 /10%);
                }
            }
        }
    }

    .menu-item-has-children{
        >a:after{
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3E%3C/svg%3E");
            display: inline-block;
            width: 15px;
            height: 15px;
            line-height: 0;
            vertical-align: middle;
            margin-left: 2px;
        }
    }
}

.main-cta{
    

    span{
        display: block;
        transform: translateY(12px);
        transition: all 0.3s ease-out;
        &:after{
            display: block;
            content: attr(data-text);
            transform: translateY(100%);
        }
    }

    &:hover{
        span{
           transform: translateY(-37px); 
            
        }
    }

   
}

.right-services{
    h3{
        font-size: 1.05rem;
        padding: 1rem;
        position: relative;
        z-index: 1;

        &:before{
            content: "";
            position: absolute;
            bottom: -1px;
            z-index: -1;
            width: 100%;
            left: 0;
            height: 200%;
            background: linear-gradient(180deg,transparent,white 65%);
        }
    }
}

.testimonial{
    img.quote{
        filter: brightness(0) saturate(100%) invert(20%) sepia(50%) saturate(6427%) hue-rotate(342deg) brightness(98%) contrast(92%);
    }
    opacity: 0.5;
    transition: all 0.3s ease-out;
    transform: scale(0.8);
}

.splide__slide.is-active .testimonial{
    opacity: 1;
    transform: scale(1);
}

.clients-slider{
    img{
        max-width: 240px;
        height: 75px;
        object-fit: contain;
    }
}

.service-content{
    > ul{
        
        > li{
            position: relative;

            > span{
                font-weight: 600 !important;
            }

            &:before{
                content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='32' d='M416 128L192 384l-96-96'/%3E%3C/svg%3E");
                width: 40px;
                height: 40px;
                position: absolute;
                top: 1.25rem;
                left: 1.25rem;
                line-height: 0;
                border-radius: 0.5rem;
                
                flex-shrink: 0;
                display: block;
                background: var(--website_yellow);
                padding: 0.7rem;
            }

            > ul{
                margin-top: 1.3rem;    

                li{
                    margin-top: 0.4rem;
                    display: flex;
                    align-items: flex-start;
                    gap: 0.5rem;

                    &:before{
                        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='32' d='M416 128L192 384l-96-96'/%3E%3C/svg%3E");
                        display: block;
                        line-height: 0;
                        width: 15px;
                        height: 15px;
                        flex-shrink: 0;
                        margin-top: 0.3rem;
                    }
                }
            }
        }
    }
}

.mobile-nav{
    > ul:has(ul){
        > li{
            > ul{
                margin-top: 0.8rem;
                font-size: 1.2rem;
                display: none;
                color: rgba(0 0 0 /70%);
                > li{
                    margin-top: 0.4rem;
                    ul{
                        margin-top: 0.4rem;
                    }
                }
            }
        }
        > li:has(ul){
            > a{
                &:after{
                        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144'/%3E%3C/svg%3E");
                        display: inline-block;
                        width: 20px;
                        height: 20px;
                        margin-left: 0.5rem;
                        line-height: 0;
                        vertical-align: middle;
                        flex-shrink: 0;
                    }
            }
            >a.drop{
                &:after{
                        transform: rotate(180deg);
                    }
            }
        }

    }
}

.vision-boxes{
    ul{
        li:before{
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='32' d='M416 128L192 384l-96-96'/%3E%3C/svg%3E");
            display: block;
            line-height: 0;
            width: 15px;
            height: 15px;
        }
    }
}

.format-text{
    ul{
        list-style: disc;
        margin-left: 1rem;
    }
    ol{
        list-style: decimal;
        margin-left: 1rem;
    }
}

@media(max-width:1280px){
    .testimonial{
        opacity: 1;
        transform: none;
    }
}

@media(max-width:620px){
    .service-content{
        >ul {
            >li{
                &:before{
                position: static;
                margin-bottom: 1rem;
            }
            }
        }
    }
}

