
const btn=document.querySelector('.menu-btn');const links=document.querySelector('.navlinks');if(btn&&links){btn.addEventListener('click',()=>{links.classList.toggle('open');btn.setAttribute('aria-expanded',links.classList.contains('open'))})}
document.querySelectorAll('[data-year]').forEach(el=>el.textContent=new Date().getFullYear());
const proposal=document.getElementById('proposal-form');if(proposal){proposal.addEventListener('submit',e=>{e.preventDefault();const data=new FormData(proposal);const subject=encodeURIComponent('Protige management proposal request — '+(data.get('association')||'Houston association'));const body=encodeURIComponent(`Name: ${data.get('name')||''}\nAssociation: ${data.get('association')||''}\nEmail: ${data.get('email')||''}\nPhone: ${data.get('phone')||''}\nCommunity type: ${data.get('type')||''}\nApprox. units: ${data.get('units')||''}\n\nWhat they need help with:\n${data.get('message')||''}`);window.location.href=`mailto:info@protige.com?subject=${subject}&body=${body}`})}
