document.addEventListener('DOMContentLoaded',function(){const headerHeight=200;document.querySelectorAll('a[href^="#"]').forEach(anchor=>{anchor.addEventListener('click',function(e){e.preventDefault();const targetId=this.getAttribute('href').substring(1);const target=document.getElementById(targetId);if(target){const accordionSection=target.closest('.elementor-accordion-item');if(accordionSection){const accordionTitle=accordionSection.querySelector('.elementor-tab-title');if(!accordionSection.classList.contains('elementor-active')){accordionTitle.click()}}
setTimeout(()=>{const offsetPosition=target.getBoundingClientRect().top+window.scrollY-headerHeight;window.scrollTo({top:offsetPosition,behavior:'smooth'})},300)}})})})