document.addEventListener('DOMContentLoaded', function() {
// 1. Fix hero gap
var hero = document.querySelector('.lp-header-search-wrap');
if (hero) { hero.style.top = '0'; hero.style.marginTop = '0'; }
// 2. Fix footer text colour
document.querySelectorAll('footer *').forEach(function(el) {
el.style.setProperty('color', 'rgba(255,255,255,0.5)', 'important');
});
// 3. Dropdown menu
document.querySelectorAll('#menu-home-page-menu-1 .menu-item-has-children').forEach(function(item) {
var sub = item.querySelector('.sub-menu');
if (!sub) return;
sub.style.cssText = 'display:none;position:absolute;top:100%;left:0;background:#0b1829;min-width:220px;z-index:99999;border-top:2px solid #b8933a;padding:8px 0;list-style:none;margin:0;';
sub.querySelectorAll('a').forEach(function(a) {
a.style.cssText = 'display:block;padding:12px 20px;color:rgba(255,255,255,0.8);font-size:13px;white-space:nowrap;text-decoration:none;';
a.addEventListener('mouseenter', function() { this.style.color='#b8933a'; });
a.addEventListener('mouseleave', function() { this.style.color='rgba(255,255,255,0.8)'; });
});
item.style.position = 'relative';
item.addEventListener('mouseenter', function() { sub.style.display='block'; });
item.addEventListener('mouseleave', function() { sub.style.display='none'; });
});
});