/* ============================================= */
/* SHARED HEADER STYLES                          */
/* Extracted from hero.css for cross-page use     */
/* ============================================= */

/* ========================= */
/* RESET & ROOT (only if not already loaded) */
/* ========================= */

.navbar,
.modern-footer,
.top-strip,
.mobile-menu,
#site-header {
    --primary: #EF8002;
    --secondary: #025DA9;
    --container-width: 1200px;
    --primary-light: #ffb04f;
    --secondary-light: #3a8dd1;
    --dark: #0f172a;
    --text: #475569;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 40px rgba(0, 0, 0, .08);
    --radius: 18px;
}

/* ========================= */
/* TOP STRIP */
/* ========================= */
.top-strip {
    background: linear-gradient(90deg, #015DA9, #EF7F03);
    color: white;
    font-size: 13.5px;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    display: none;
}

.top-strip-container {
    width: min(1400px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-strip-left,
.top-strip-center,
.top-strip-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-strip-center {
    flex: 1;
    justify-content: center;
    font-weight: 400;
}

.top-strip-center strong {
    font-weight: 700;
    margin-left: 5px;
}

.top-strip-right {
    justify-content: flex-end;
    gap: 24px;
}

.top-strip-right span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-strip-left a,
.top-strip-center a,
.top-strip-right a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.top-strip-left a:hover,
.top-strip-center a:hover,
.top-strip-right a:hover {
    opacity: 0.8;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.nav-container {
    width: min(1400px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.logo img {
    height: 50px;
    display: block;
}

.desktop-nav {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 34px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .3s ease;
    position: relative;
}

/* Nav link underline sweep animation */
.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width .35s cubic-bezier(.25, .8, .25, 1);
    border-radius: 2px;
}

.nav-links>li>a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* ========================= */
/* MEGA MENU */
/* ========================= */

.mega-menu {
    position: absolute;
    top: 70px;
    left: -120px;
    width: 780px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
    font-family: 'Inter', sans-serif !important;
}

.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu,
.dropdown.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-feature {
    background: linear-gradient(135deg,
            rgba(239, 128, 2, .08),
            rgba(2, 93, 169, .08));
    padding: 24px;
    border-radius: 18px;
}

.menu-feature span {
    display: inline-block;
    color: var(--primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    font-family: 'Inter', sans-serif !important;
}

.menu-feature h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--dark) !important;
}

.menu-feature p {
    color: var(--text) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.navbar .mega-menu .menu-column {
    display: flex;
    flex-direction: column;
}

.navbar .mega-menu .menu-column h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--dark);
    margin-top: 0;
    font-weight: 700;
}

.navbar .mega-menu .menu-column a {
    padding: 10px 0;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    margin: 0;
}

.navbar .mega-menu .menu-column a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

/* ========================= */
/* NAV BUTTONS */
/* ========================= */

.nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.login-btn {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
}

.sales-btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    background: #015DA9;
    /* Blueish Base */
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Orange sweep on hover */
.sales-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #EF8002, #FF9500);
    /* Orangeish Hover */
    transition: width .5s cubic-bezier(.16, 1, .3, 1);
    z-index: -1;
    border-radius: 14px;
}

.sales-btn:hover::before {
    width: 100%;
}

.sales-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(239, 128, 2, 0.35);
    /* Glowing Orange Shadow */
    color: #fff;
    border-color: #EF8002;
}

.mobile-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

/* ========================= */
/* MOBILE MENU */
/* ========================= */

.mobile-menu,
.modern-mobile-menu {
    display: none;
}

/* ========================= */
/* RESPONSIVE - TABLET */
/* ========================= */

@media(max-width:768px) {

    .desktop-nav,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mega-menu {
        display: none;
    }

    .top-strip-left,
    .top-strip-right {
        display: none;
    }

    .top-strip-center {
        font-size: 12px;
    }

    .top-strip {
        padding: 8px 0;
    }

    .navbar {
        top: 0;
    }

    .mobile-menu.active,
    .modern-mobile-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 100px;
        left: 5%;
        right: 5%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
        z-index: 998;
        gap: 6px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        animation: mobileMenuFade 0.3s ease;
    }

    @keyframes mobileMenuFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu.active a,
    .modern-mobile-menu.active a {
        padding: 14px 18px;
        text-decoration: none;
        color: var(--dark);
        font-weight: 600;
        font-size: 16px;
        border-radius: 12px;
        transition: background 0.2s ease;
    }

    .mobile-menu.active a:hover,
    .modern-mobile-menu.active a:hover {
        background: rgba(2, 93, 169, 0.06);
        color: var(--secondary);
    }

    .mobile-menu.active .mobile-sales-btn,
    .modern-mobile-menu.active .mobile-sales-btn {
        background: #015DA9;
        color: #fff;
        text-align: center;
        border-radius: 14px;
        padding: 16px;
        margin-top: 10px;
        font-weight: 700;
        transition: all 0.3s ease;
    }

    .mobile-menu.active .mobile-sales-btn:hover,
    .modern-mobile-menu.active .mobile-sales-btn:hover {
        background: #EF8002;
        box-shadow: 0 10px 20px rgba(239, 128, 2, 0.3);
    }

    .mobile-dropdown-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-dropdown-btn {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-dropdown-btn svg {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-wrapper.active .mobile-dropdown-btn svg {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        display: none;
        flex-direction: column;
        padding-left: 15px;
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 10px;
        gap: 2px;
        border-left: 2px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-dropdown-wrapper.active .mobile-submenu {
        display: flex;
    }

    .mobile-submenu a {
        font-size: 14px !important;
        padding: 8px 14px !important;
        color: var(--text) !important;
    }

    .mobile-submenu a:hover {
        background: transparent !important;
        color: var(--secondary) !important;
    }
}

@media(max-width:480px) {
    .nav-container {
        padding: 10px 16px;
    }

    .logo img {
        height: 38px;
    }
}

@media(max-width:768px) {

    .mobile-dropdown-wrapper.active .mobile-submenu.products-mobile-submenu {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .mobile-submenu.products-mobile-submenu a {
        padding: 5px 10px !important;
        font-size: 13px !important;
        word-break: break-word;
        white-space: normal;
    }

}

@media(max-width:768px) {

    /* Fix for inline scripts on other pages that toggle .open instead of .active */
    .mobile-submenu.open {
        display: flex !important;
    }

    .mobile-dropdown-btn.open svg {
        transform: rotate(180deg);
    }

    .mobile-submenu.products-mobile-submenu.open {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
}