/* --- 1. GLOBAL RESET & SCROLL KILLER --- */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    height: auto !important; /* Prevents height traps */
    margin: 0 !important;
    padding: 0 !important;
}

/* --- 2. BLACKIRON SPACING ADJUSTMENTS --- */
/* Custom header and row section padding for desktop */
.wvc-heading-container { padding: 30px 0 10px 0 !important; }
.wvc-row-section { padding: 20px 0 10px 0 !important; }

/* --- 3. THE HERO ENGINE (Double Scroll Fix) --- */
body .lfpnd-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    /* 100vh minus the 119px header height */
    min-height: calc(100vh - 119px) !important;
    margin-top: 119px !important; 
    box-sizing: border-box !important;
    position: relative !important;
}

body .lfpnd-hero-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    text-align: center !important;
    z-index: 2 !important;
}

/* --- 4. MOBILE MENU LOGIC (Merged) --- */
/* Essential toggle logic for the mobile menu shortcode */
.lfpnd-site-header.lfpnd-menu-open .lfpnd-nav-wrap { 
    display: block !important; 
}

/* --- 5. BREAKOUTS & ELEMENTOR FIXES --- */
.lfpnd-trust-breakout, 
.lfpnd-hero-breakout {
    max-width: none !important;
    width: 100vw !important;
    overflow-x: hidden;
}

.lfpnd-site-header,
.lfpnd-footer {
    max-width: 100%;
    overflow-x: hidden;
}

.elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
}

/* --- 6. THE 1200px DESKTOP CAP --- */
.page-header .entry-title, 
.site-footer .footer-inner, 
.site-footer:not(.dynamic-footer), 
.site-header .header-inner, 
.site-header:not(.dynamic-header), 
body:not([class*=elementor-page-]) .site-main {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- 7. TYPOGRAPHY & CLEANUP --- */
h1, h2, h3, h4, h5, h6, 
.trust-text strong, 
.logo-bold {
    text-wrap: balance;
}

/* Remove wpautop injected spacing */
.page-content > p:empty,
.page-content > br,
section + br, 
section + p {
    display: none !important;
}