// RED SYSTEMS — shared site behavior // FAQ accordion document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('.faq-q').forEach(function (q) { q.addEventListener('click', function () { var a = q.nextElementSibling; var isOpen = q.classList.contains('open'); q.classList.toggle('open', !isOpen); if (a) a.classList.toggle('open', !isOpen); }); }); // Mobile nav toggle var toggle = document.querySelector('.nav-toggle'); var panel = document.querySelector('.nav-mobile-panel'); if (toggle && panel) { toggle.addEventListener('click', function () { panel.style.display = panel.style.display === 'flex' ? 'none' : 'flex'; }); } // File upload preview (quote/contact form) var fileInput = document.getElementById('file-input'); if (fileInput) { fileInput.addEventListener('change', function () { var list = document.getElementById('file-list'); var files = Array.from(this.files || []); if (list && files.length) { list.innerHTML = files .map(function (f) { return ( '