@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --primary: #005285;
    --secondary:#24aee4;
    --dark: #222F30;
    --gradient:linear-gradient(90deg,var(--primary),var(--secondary));

}
/* @view-transition{
    navigation:auto;
} */
body{
    font-family: "Outfit", sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

body,
html {
    scroll-behavior: smooth;
}

.menu{
    >ul{

        >li{
            position: relative;

            >a:not(.menu-cta){
                position: relative;
               border-radius: 0.3rem;
               padding: 0.7rem;
               line-height: 1;
               transition: all 0.3s ease-out;     
            }

            &:hover{
                > a{
                   background: rgba(36, 174, 228, 0.1);
                   color: var(--secondary);
                }
            }
        }

        >li.menu-item-has-children{
            position: relative;
            >a{
                display: inline-flex;
                align-items: center;
                gap: 0.3rem;
                &: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");
                    line-height: 0;
                    width: 15px;
                    height: 15px;
                    display: inline-block;
                }
            }

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

            > ul{
                position: absolute;
                left: 50%;
                text-align: left;
                transform: translateX(-50%) scale(0.9);
                top: 100%;
                padding-top: 40px;
                z-index: 1;
                 width: max-content;
                 line-height: 1;
                 font-size: 1rem;
                 border-radius: 0.4rem;
                 overflow: hidden;
                 transition: all 0.3s ease-out;
                 opacity: 0;
                 pointer-events: none;

                &:before{
                    content: "";
                    position: absolute;
                    inset-inline: 0;
                    top: 40px;
                    bottom: 0;
                    background: white;
                    border:1px solid #9d9d9d33;
                    z-index: -1;
                    border-radius: 0.4rem;
                   
                }

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

                a{
                    display: block;
                    padding: 1.1rem;
                    border-bottom: 1px solid #9d9d9d33;
                    transition: all 0.3s ease-out;

                    &:hover{
                        background: rgba(36, 174, 228, 0.1);
                        color: var(--secondary);
                    }
                }
            }
        }
    }
}

.animation-cta{
    position: relative;
    overflow: hidden;

    span{
        display: block;
        transition: all 0.3s ease-out;
    }

    &:before{
        content: attr(data-text);
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,var(--primary),var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        transform-origin: bottom;
        transform: translateY(100%);
        transition: all 0.3s ease-out;
    }

    &:hover{
        span{
            transform: translateY(-200%);
        }

        &:before{
            transform: translateY(0);
        }
    }
}

.main-cta{
    display: inline-flex;
    gap: 0.5rem;

    p{
        background: var(--bg-color);
        display: block;
        border-radius: 0.3rem;
        color: black;
        position: relative;
        overflow: hidden;
        padding: 0.8rem 1rem;
        line-height: 1;
        transition: all 0.3s ease-out;

        &:before{
            content: attr(data-text);
            position: absolute;
            inset:0;
            transform: translateX(-100%);
            background: var(--gradient);
            border-radius: 0.3rem;
            display: flex;
            transition: all 0.3s ease-out;
            align-items: center;
            justify-content: center;
            color: white;
        }

        span{
            transition: all 0.3s ease-out;
            display: block;
        }
        
    }

    span.icon{
        background: var(--dark);
        line-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding-inline: 0.7rem;
        border-radius: 0.3rem;
        transition: all 0.3s ease-out;

        position: relative;
        z-index: 1;

        &:before{
            content: "";
            position: absolute;
            inset: 0;
            background: var(--gradient);
            z-index: -1;
            transition: all 0.3s ease-out;
        }
    }

    &:hover{
      

        p{
            &:before{
                transform: translateX(0);
            }

            span{
                transform: translateX(200%);
            }
        }

        span.icon{
            &:before{
                opacity: 0;
            }
        }
    }
}

.main-cta.light{
    span.icon{

        color: var(--dark);

        &:before{
            background: white;
            
        }
    }

    &:hover{
        span.icon{
            color: white;
        }
    }
}

.section-label{
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.3rem;
    line-height: 1;
    background: white;
    padding: 0.4rem;
    border-radius: 0.3rem;

    &:before{
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 100%;
        background: var(--secondary);
        display: inline-block;
    }
}

.homepage-articles{
    .section-label{
        background: #eee;
        margin:0;
    }

    h3{
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    span{
        color: rgb(0 0 0 / 60%);
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
}

.areas-boxes{
    counter-reset: areas;
    >a{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        background: white;
        min-height: 250px;
        position: relative;
        counter-increment: areas;
        overflow: hidden;
        transition: all 0.3s ease-out;
        z-index: 1;

        &:after{
            content: "";
            position: absolute;
            z-index: -1;
            background: var(--gradient);
            transition: all 0.5s ease-out;
            top: 0;
            height: 100%;
            width: 0;
            right: 0;
        }

        &:hover{
            &:after{
                left: 0;
                width: 100%;
            }
            &:before{
                color: white;
            }
            p{
                color: rgba(255 255 255 / 60%);
            }
            color: white;
        }

        &:before{
            content: '0'counter(areas)'.';
            position: absolute;
            top: 2.5rem;
            right: 2.5rem;
            color: var(--secondary);
            font-weight: 300;
            transition: all 0.3s ease-out;
        }

        h3{
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
        }
        p{
            color: rgb(0 0 0 / 60%);
            transition: all 0.3s ease-out;
        }
        span{
            font-size: 2rem;
            display: block;
            transform: rotate(-45deg);
        }
    }
}

#partners-slider{
    a{
        background: white;
        border-radius: 0.5rem;
        display: block;
        padding-inline: 1rem;
    }
}


.cases-list{



    > div:not(.cta) > a{
       aspect-ratio: 1.5;
       display: flex;
       align-items: center;
       justify-content: center;
       transition: all 0.3s ease-out;
       background: #ffffffc9;
       border-radius: 0.5rem;
       

        img{
            max-width: 80%;
            max-height: 100%;
            transition: all 0.3s ease-out;
            filter: grayscale(100%);
            opacity: 0.5;
        }

        &:hover{
            background: white;

            img{
                opacity: 1;
                filter: grayscale(0);
            }
        }
    }

}


#slogan-slider{
    p{
        display: flex;
        align-items: center;
        
        &:before{
             content: "";
        width: 15px;
        height: 15px;
        border-radius: 100%;
        background: var(--secondary);
        display: inline-block;
        margin-right: 200px;
        }
    }
}

.article-arrow{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 16px;
    background: #f5f5f5;
    border-top-left-radius:0.7rem;

   

    span{
        width: 40px;
        height: 40px;
        background: var(--dark);
        color: white;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        position: relative;
        z-index: 1;

         &:before{
            content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient);
    z-index: -1;
    transition: all 0.3s ease-out;
    opacity: 0;
    border-radius: 0.5rem;
    }
    }

}

.homepage-articles{
    a{
        &:hover{
            .article-arrow span:before{
                opacity: 1;
            }

            h3{
                text-decoration: underline;
            }
        }
    }
}

  /* ---------------------------------- */
  /* HERO BACKGROUND ANIMATION */
  /* ---------------------------------- */

    .page-title{
        animation:title 0.4s ease-out forwards;
        clip-path: inset(0% 0% 100% 0%);

         > div{
            opacity: 0;
            transform: translateY(40px);
            animation:fade-up 0.3s 0.3s ease-out forwards;
        }
    }

  .case-hero-animated {
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      background-size: 200% 200%;
      animation:heroAnim 10s ease infinite,title 0.4s ease-out forwards;
      clip-path: inset(0% 0% 100% 0%);

      > div{
            opacity: 0;
            transform: translateY(40px);
            animation:fade-up 0.3s 0.3s ease-out forwards;
        }
  }

  .main-content{
    opacity: 0;
    transform: translateY(40px);
    animation:fade-up 0.5s ease-out forwards;
  }

  @keyframes title{
    to{
        clip-path: inset(0% 0% 0% 0%);
    }
  }

  @keyframes fade-up{
    to{
        transform: translateY(0);
        opacity: 1;
    }
  }

  @keyframes heroAnim {
      0% {
          background-position: 0% 50%;
      }

      50% {
          background-position: 100% 50%;
      }

      100% {
          background-position: 0% 50%;
      }
  }


  /* ---------------------------------- */
  /* CTA PATTERN (removed if not used) */
  /* ---------------------------------- */
  .case-cta-pattern {
      background: url('data:image/svg+xml,<svg width="330" height="330" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" /></svg>');
      background-size: 200px;
      opacity: 0.08;
      animation: floatPattern 20s linear infinite;
  }

  @keyframes floatPattern {
      from {
          transform: translate(0, 0);
      }

      to {
          transform: translate(-200px, -200px);
      }
  }

  .counter-num{
    -webkit-text-stroke: 1px var(--primary);
    font-family: sans-serif;
  }

  .quote-icon{
    img{
        filter: brightness(0) saturate(100%) invert(56%) sepia(70%) saturate(520%) hue-rotate(154deg) brightness(91%) contrast(97%);
    }
  }

.splide__arrow{
    background: white;
    height: auto;
    width: 60px;
    aspect-ratio: 1;
    z-index: 1;
    opacity: 1;

    &:before{
        content: "";
        transition: all 0.3s ease-out;
        background: var(--gradient);
        border-radius: 50%;
        z-index: -1;
        position: absolute;
        opacity: 0;
        inset: 0;
    }

    svg{
        transition: all 0.3s ease-out;
    }

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

        svg{
            fill: white;
        }
    }
}
.splide__arrow--next{
    right: 0;
}
.splide__arrow--prev{
    left: 0;
}

.accordion-list{

    &:has(.active){
        .accordion{
            border-color: transparent;
        }
    }

    &:hover{
        .accordion{
            border-color: transparent;
        }
    }
}

.accordion{
    border-bottom: 1px solid var(--dark);
    transition: all 0.3s ease-out;
}

.accordion-title{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5rem;
    width: 100%;
    transition: all 0.3s ease-out;
    padding: 2rem 0;
    border-radius: 1.5rem;

    &:hover{
        background: white;
        padding: 2rem;
    }

    p{
        font-size: 1.6rem;
        text-align: left;
        transition: all 0.3s ease-out;
    }

    img{
        height: 60px;
        filter: brightness(0) saturate(100%) invert(56%) sepia(70%) saturate(520%) hue-rotate(154deg) brightness(91%) contrast(97%);
    }

    .icon{
        margin-left: auto;
        display: block;
        font-size: 2rem;
    }
}

.accordion-content{
    display: none;
    border-radius:1.5rem;
    padding: 2rem;
    margin-top: 1rem;
    background: white;

    ol{
        list-style-type: decimal;
        list-style-position: inside;
    }

    ul{
        list-style-type: disc;
        list-style-position: inside;
    }

    img{
        border-radius: 1rem;
        width: 100%;
        aspect-ratio: 2/1;
        object-fit: cover;
    }

    h3{
        font-size: 2rem;
    }
    a{
        text-decoration: underline;
        transition: all 0.3s ease-out;

        &:hover{
            color: var(--secondary);
        }
    }
}

.accordion.active{

    border-color: transparent;

    .accordion-title{
        background: white;
        padding: 2rem;

        p{
            color: var(--secondary);
        }
    }
}

.usp-options{

    counter-reset: usp;

    img{
        filter: brightness(0) saturate(100%) invert(100%) sepia(78%) saturate(2%) hue-rotate(113deg) brightness(107%) contrast(101%);
        width: 100px;
        margin-bottom: 100px;
    }

    h3{
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    > div{
        counter-increment: usp;
        position: relative;

        &:before{
            content: '0'counter(usp)'.';
            position: absolute;
            top: 0;
            color: var(--secondary);
            right: 3.4rem;
            line-height: 1;
            font-size: 1.3rem;
            transition: all 0.3s ease-out;
        }
    }
}

.contact-form{
    
    form{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;
    }

    ::placeholder{
        color: var(--dark);
    }

    input[type="text"]{
        width: 100%;
        border: 1px solid #e1e1e1;
        border-radius: 0.3rem;
        min-height: 50px;
        padding-inline: 1rem;
    }
    textarea{
        width: 100%;
        border: 1px solid #e1e1e1;
        border-radius: 0.3rem;
        min-height: 150px;
        padding-inline: 1rem;
        padding-top: 1rem;
    }
}

.g-mobile-slider{
    .splide__pagination{
        position: static;
        margin-top: 2rem;

        .splide__pagination__page.is-active{
            background: var(--secondary);
        }
    }
}

.mobile-menu{
    li:has(ul){

        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;

        ul{
            margin-block: 1rem;
            font-size: 1.1rem;
            width: 100%;
            color: rgba(0 0 0 / 60%);
            display: none;
        }
    }

    li.active{
        .toggle-child-menu{
            transform: rotate(180deg);
        }
    }
}

@media (max-width: 767px) {
    .contact-form form {
        grid-template-columns: 1fr;
    }

    .contact-form form .col-span-2 {
        grid-column: span 1;
    }
}

@media(max-width:620px){
    .accordion-title{
        gap: 1rem;
        p{
            font-size: 1.3rem;
        }
        img{
            height: 40px;
        }
    }
}


.contact-form{

    form{
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;
    }

    p br{
        display: none;
    }    

    label{
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .form-group:has(input[placeholder="Subject"]),
    .form-group:has(textarea){
        grid-column: span 2;
    }

    textarea{
        width: 100%;
        background: transparent;
        padding: 1.5rem;
        border: 1px solid #e1e1e1;
        color: black;
        height: 150px;
        border-radius: .5rem;
    }

    input:not([type="submit"]){
        width: 100%;
        background: transparent;
        border: 1px solid #e1e1e1;
        padding: 0.8rem;
        border-radius: 0.5rem;
        color: black;
        line-height: 1;
    }

    input[type="submit"]{
        background: var(--dark);
        color: white;
        transition: all 0.3s ease-out;
        padding: 1rem;
        line-height: 1;
        display: inline-block;
        border-radius: 60px;

        &:hover{
            background: var(--secondary);
        }
    }

    .form-group:has(input[type="submit"]){
        p{
            display: flex;
            align-items: center;
            gap: 1rem;
        }
    }

    .sent{
        .wpcf7-response-output{
            background: darkseagreen;
            color: white;
        }
    }

    .wpcf7-response-output{
        grid-column: span 2;
        border: none !important;
        background: rgba(219, 6, 49, 0.393);
        color: var(--website_blue);
        padding: 1rem !important;
        border-radius: 1.5rem;
    }
    .wpcf7-not-valid-tip{
        margin-top: 0.2rem;
        color: indianred;
        font-size: 0.9rem;
        text-align: left;
    }
}