"use strict";document.addEventListener("DOMContentLoaded",function(){var o=document.querySelector("body"),r=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500;return void 0===e.attributes.style||"none"===e.style.display?function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500;e.style.removeProperty("display");var i=window.getComputedStyle(e).display;"none"===i&&(i="block"),e.style.display=i;var o=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=o+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),window.setTimeout(function(){e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)}(e,t):function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500;e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.boxSizing="border-box",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,window.setTimeout(function(){e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property")},t)}(e,t)},t=window.matchMedia("(max-width: 991px)"),i=document.querySelectorAll(".has-sub > a"),n=function(e){e.matches?i.forEach(function(i){i.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),e.target.classList.toggle("active");var t=i.nextElementSibling;r(t,500)})}):i.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault()})})};t.addEventListener("change",function(e){e.matches?(window.location.reload(),n(e)):(t.removeEventListener("change",function(e){n(e)}),window.location.reload())}),n(t),window.addEventListener("scroll",function(){var e=document.querySelector(".navbar-overlay");if(e){var t=e.offsetHeight,i=window.scrollY;setTimeout(function(){t<i?o.classList.add("navbar-sticky-init"):o.classList.remove("navbar-sticky-init")},100)}});var e=new Swiper(".testimonial-nav",{spaceBetween:8,slidesPerView:3,centeredSlides:!0,centeredSlidesBounds:!0,centerInsufficientSlides:!0,watchSlidesProgress:!0,loop:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{576:{slidesPerView:5},1200:{slidesPerView:6}}}),s=(new Swiper(".testimonial-body",{slidesPerView:1,spaceBetween:8,loop:!0,thumbs:{swiper:e}}),document.querySelector(".testimonial-slider-2"));s&&new Swiper(s,{slidesPerView:1,loop:!0,navigation:{nextEl:".testimonial-slider-2__next",prevEl:".testimonial-slider-2__prev"}});var l=document.querySelector(".service-slider__is");l&&new Swiper(l,{spaceBetween:16,slidesPerView:1,loop:!0,pagination:{el:".service-slider__pagination",type:"bullets",clickable:!0},navigation:{nextEl:".service-slider__nav-next",prevEl:".service-slider__nav-prev"},breakpoints:{576:{slidesPerView:2},992:{slidesPerView:3},1400:{slidesPerView:4},1920:{slidesPerView:5},2100:{slidesPerView:6}}}),scrollCue.init({duration:500,interval:-300,percentage:.8})});var preloader=document.querySelector(".preloader");window.addEventListener("load",function(){preloader&&(preloader.style.display="none")});