// JavaScript Document
const timelines =[];

(function (){
		  let goto_contact = document.querySelectorAll('.go-to-contact');
    goto_contact.forEach(function (el,ind){
        el.addEventListener('click',function (e){
e.preventDefault();

            
            let vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0)
            if(vw>1000){
                gsap.to(window,{duration:1,scrollTo:'.form-area'});
            }else{
                gsap.to(window,{duration:1,scrollTo:'.ready-to-area'});
                document.querySelector('header').classList.remove('menu-opened');
            }



        })
    })
    window.addEventListener('scroll', function () {



        let top = window.pageYOffset || document.documentElement.scrollTop



        if(top>100){
            document.querySelector('header').classList.add('white-header');
        }else{
            document.querySelector('header').classList.remove('white-header');
        }


    });
	



   const jump_btns =  document.querySelectorAll('.jump-to-contact-1');

   /* jump_btns.forEach(function (el,ind){
        el.addEventListener('click',function (e){
            e.preventDefault();

            gsap.to(window,{duration:0,scrollTo:'.contact-area'})
        })
    })*/
	
	
	const tabable_lis =  document.querySelectorAll('header .menu-item-has-children');
	tabable_lis.forEach(function(el,id){
		el.setAttribute('tabindex','0');
	})
})()