/**
| * Desktop Combined CSS - Optimized v4.1
| * Unified 980px max-width for all desktop elements
| * Fixed banner alignment and navigation spacing
| */

/* ========== DESKTOP LAYOUT - 980px MAX WIDTH ========== */
@media (min-width: 768px) {
    /* Global background */
    body {
        background: white !important;
        margin: 0;
        padding: 0;
    }
    
    body .site,
    body #page {
        background: white !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Remove any gaps between sections */
    .site-header,
    #masthead,
    .main-navigation,
    #site-navigation,
    .quick-menu-bar,
    .hero-banner-wrapper,
    .hero-banner-section {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* All major sections - 980px unified width, perfectly centered */
    .site-header,
    #masthead,
    .main-navigation,
    #site-navigation,
    .quick-menu-bar,
    .container,
    .wrapper,
    .content-wrapper,
    .single-column-layout,
    .content-area,
    .site-main,
    .homepage-section,
    .hero-banner-wrapper,
    .hero-banner-section,
    .hero-banner-container,
    .banner-slider,
    .single-banner {
        max-width: 980px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Header styling - no gaps */
    body .site-header,
    body #masthead {
        background: linear-gradient(180deg, #c8232c 0%, #8b0000 100%);
        display: flex;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .site-header .header-wrapper,
    .header-wrapper .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Banner section - perfectly centered */
    .hero-banner-wrapper,
    .hero-banner-section {
        display: block !important;
        width: 100% !important;
        max-width: 980px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .hero-banner-container,
    .banner-slider,
    .single-banner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Navigation styling - stick to header, no gap */
    body .main-navigation,
    body #site-navigation {
        background: #1a1a1a;
        display: flex;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        top: 0 !important;
    }
    
    .main-navigation .nav-wrapper,
    .main-navigation .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu {
        display: flex;
        justify-content: center;
        max-width: 100%;
    }
    
    .nav-menu li a {
        color: #ffffff !important;
    }
    
    .nav-menu li a:hover {
        color: #ffd700 !important;
        background: rgba(255,255,255,0.1);
    }
    
    /* Quick menu bar - no extra spacing */
    body .quick-menu-bar {
        background: #ffffff;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: center;
        margin: 0 !important;
        padding: 10px 0 !important;
    }
    
    .quick-menu-bar .menu-wrapper,
    .quick-menu-bar .quick-menu {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Content areas */
    .site-content .container,
    .site-main .container,
    .site-footer .container,
    .footer-widgets .container {
        max-width: 980px !important;
        margin: 0 auto;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ========== HIDE MOBILE MENU ON DESKTOP ========== */
@media (min-width: 768px) {
    .mobile-slide-menu,
    .mobile-menu-overlay,
    .mobile-bottom-nav,
    .mobile-fab,
    .mobile-quick-actions,
    .mobile-menu-toggle,
    .mobile-menu-header,
    .mobile-menu-items,
    .mobile-menu-category,
    .mobile-menu-item,
    .mobile-menu-logo,
    .mobile-menu-tagline {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        pointer-events: none !important;
    }
    
    body.mobile-menu-open {
        overflow: auto !important;
        position: relative !important;
    }
}

/* Remove from print */
@media print {
    .mobile-slide-menu,
    .mobile-menu-overlay,
    .mobile-bottom-nav,
    .mobile-fab,
    .mobile-quick-actions,
    .mobile-menu-toggle {
        display: none !important;
    }
}
