/**
 * WUC Header, Footer & Shell CSS
 * Replaces WPCode #16111 — navigation-related styles REMOVED.
 * Max Mega Menu handles all menu styling via its own theme editor.
 *
 * This file ONLY styles:
 *   - Header shell (utility bar, nav bar, logo, CTA button)
 *   - Footer
 *   - Body lock for mobile nav (Max Mega Menu triggers)
 *   - Skip link
 *   - Floating CTA
 *   - Reduced motion
 */

/* =========================================================================
   RESETS — scoped to header/footer only
   ========================================================================= */

.wuc-header,
.wuc-footer {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    box-sizing: border-box;
}

.wuc-header *,
.wuc-header *::before,
.wuc-header *::after,
.wuc-footer *,
.wuc-footer *::before,
.wuc-footer *::after {
    box-sizing: border-box;
}

.wuc-header a {
    text-decoration: none;
    color: inherit;
}

.wuc-header img,
.wuc-footer img {
    max-width: 100%;
    height: auto;
}

:where(.wuc-header) p,
:where(.wuc-header) h1,
:where(.wuc-header) h2,
:where(.wuc-header) h3,
:where(.wuc-header) h4,
:where(.wuc-header) ul,
:where(.wuc-header) ol,
:where(.wuc-header) li,
:where(.wuc-header) figure {
    margin: 0;
    padding: 0;
}

:where(.wuc-footer) p,
:where(.wuc-footer) h1,
:where(.wuc-footer) h2,
:where(.wuc-footer) h3,
:where(.wuc-footer) h4,
:where(.wuc-footer) ul,
:where(.wuc-footer) ol,
:where(.wuc-footer) figure {
    margin: 0;
    padding: 0;
}

.wuc-footer a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================================
   SKIP LINK — accessible keyboard shortcut
   ========================================================================= */

.wuc-skip {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #0070e0;
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    transition: top 0.2s;
}

.wuc-skip:focus {
    top: 0;
}


/* =========================================================================
   HEADER — fixed positioning
   ========================================================================= */

.wuc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s;
}


/* =========================================================================
   UTILITY BAR — phone number + quick links
   ========================================================================= */

.wuc-util {
    background: #04080f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: margin-top 0.3s;
}

.wuc-util-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.wuc-util a {
    color: #94a3b8;
    font-size: 13px;
    transition: color 0.2s;
}

.wuc-util a:hover {
    color: #fff;
}

.wuc-util-links {
    display: flex;
    gap: 20px;
}


/* =========================================================================
   NAV BAR — logo + menu + CTA
   ========================================================================= */

.wuc-nav {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.wuc-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.wuc-logo img {
    height: 42px;
    width: auto;
}


/* =========================================================================
   CTA BUTTON — "Get a Quote"
   ========================================================================= */

.wuc-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0070e0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.wuc-cta-header:hover {
    background: #005bb5;
    box-shadow: 0 8px 24px rgba(0, 112, 224, 0.25);
    color: #fff;
}

/* Override Elementor kit link styles that bleed into header */
a.wuc-cta-header,
.wuc-header a.wuc-cta-header {
    color: #fff;
}


/* =========================================================================
   MAX MEGA MENU — Integration Overrides
   These target Max Mega Menu's own classes to make it sit correctly
   in the WUC header layout. Minimal overrides only.
   ========================================================================= */

/* Ensure Max Mega Menu container sits in nav flow */
#mega-menu-wrap-menu-1 {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Remove Max Mega Menu's default container background in desktop */
#mega-menu-wrap-menu-1 #mega-menu-menu-1 {
    background: transparent;
}

/* Top-level menu item text styling to match WUC brand */
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    transition: color 0.2s, background 0.2s;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a:hover,
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

/* Mega panel styling */
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > ul.mega-sub-menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
}


/* =========================================================================
   FOOTER
   ========================================================================= */

.wuc-footer {
    background: #04080f;
    padding: 64px 0 32px;
    color: #94a3b8;
}

.wuc-footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 4fr 2fr 3fr 3fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wuc-footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.wuc-footer-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 20px;
}

.wuc-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.wuc-footer-phone:hover {
    color: #fff;
}

.wuc-footer h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 20px;
}

.wuc-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wuc-footer li {
    margin-bottom: 12px;
}

.wuc-footer li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.wuc-footer li a:hover {
    color: #fff;
}

.wuc-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.wuc-footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.wuc-footer-legal {
    display: flex;
    gap: 24px;
}

.wuc-footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
}

.wuc-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.6);
}


/* =========================================================================
   FLOATING CTA — appears on scroll past hero
   ========================================================================= */

.wuc-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s;
}

.wuc-floating.show {
    transform: translateY(0);
    opacity: 1;
}

.wuc-floating a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0070e0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 112, 224, 0.3);
    transition: all 0.3s;
    text-decoration: none;
}

.wuc-floating a:hover {
    background: #005bb5;
    box-shadow: 0 12px 40px rgba(0, 112, 224, 0.4);
    transform: translateY(-2px);
}


/* =========================================================================
   FOCUS VISIBLE — keyboard accessibility
   ========================================================================= */

.wuc-header *:focus-visible,
.wuc-footer *:focus-visible {
    outline: 2px solid #0070e0;
    outline-offset: 2px;
}


/* =========================================================================
   MOBILE BODY LOCK — used by Max Mega Menu when mobile panel is open
   ========================================================================= */

html.wuc-mobile-nav-open {
    overflow: hidden;
}

html.wuc-mobile-nav-open body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


/* =========================================================================
   RESPONSIVE — mobile adjustments for header shell + footer
   ========================================================================= */

@media (max-width: 1024px) {
    .wuc-util-links {
        display: none;
    }

    .wuc-util-inner {
        justify-content: center;
    }

    .wuc-nav-inner {
        padding: 0 16px;
    }

    /* Hide desktop CTA on mobile — Max Mega Menu mobile panel has its own */
    .wuc-cta-header {
        display: none;
    }
}

@media (max-width: 768px) {
    .wuc-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .wuc-footer-top {
        grid-template-columns: 1fr;
    }
}


/* =========================================================================
   REDUCED MOTION — accessibility
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    .wuc-header,
    .wuc-header *,
    .wuc-footer *,
    .wuc-floating {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
