/* Logo sizing - Responsive */
.logo_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo_icon img {
    height: auto;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Mobile devices */
.header .logo_icon {
    width: auto;
    height: 50px;
}

.header .logo_icon img {
    height: 50px;
    width: auto;
    max-height: 50px;
}

.footer_top .logo_icon {
    width: auto;
    height: 50px;
}

.footer_top .logo_icon img {
    height: 50px;
    width: auto;
    max-height: 50px;
}

/* Tablet devices */
@media screen and (min-width: 575.98px) {
    .header .logo_icon {
        height: 50px;
    }

    .header .logo_icon img {
        height: 50px;
        max-height: 50px;
    }

    .footer_top .logo_icon {
        height: 60px;
    }

    .footer_top .logo_icon img {
        height: 60px;
        max-height: 60px;
    }
}

/* Desktop devices */
@media screen and (min-width: 991.98px) {
    .header .logo_icon {
        height: 85px;
    }

    .header .logo_icon img {
        height: 85px;
        max-height: 85px;
    }

    .footer_top .logo_icon {
        height: 85px;
    }

    .footer_top .logo_icon img {
        height: 85px;
        max-height: 85px;
    }
}

/* Header logic missing when not including prices.min.css */
.header .logo {
    gap: 7px;
    flex-grow: 1 !important;
    order: 1;
}

.header_nav {
    order: 2;
}

/* Header buttons styling */
.header_btn.btn--neon {
    background: #0140b4 !important;
    color: #fff !important;
    border: 1px solid #0140b4 !important;
    box-shadow: 3px 3px 0 #0140b4 !important;
}

.header_btn.btn--neon:hover,
.header_btn.btn--neon:focus {
    box-shadow: 6px 6px 0 #1b2129 !important;
}

@media screen and (min-width: 575.98px) {
    .header_btn+.header_btn {
        margin-left: 15px !important;
    }
}

@media screen and (min-width: 991.98px) {
    .header_btn+.header_btn {
        margin-left: 15px !important;
    }
}

/* Mobile Menu Toggle Button - Force visibility on mobile */
#mobileMenuToggle.mobile-menu-toggle {
    position: relative;
    order: 2;
    background: transparent;
    border: 2px solid #0140b4;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 8px;
    width: 44px;
    height: 44px;
    margin-left: 15px;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

/* Show hamburger button on mobile devices */
@media screen and (max-width: 991.97px) {
    #mobileMenuToggle.mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide hamburger button on desktop */
@media screen and (min-width: 991.98px) {
    #mobileMenuToggle.mobile-menu-toggle {
        display: none !important;
    }
}

/* Hamburger icon styling */
#mobileMenuToggle .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
    gap: 5px;
}

#mobileMenuToggle .hamburger-line {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #0140b4 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hamburger animation when active */
#mobileMenuToggle.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg) !important;
}

#mobileMenuToggle.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}

#mobileMenuToggle.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) !important;
}

/* Mobile Menu - Hidden by default on mobile */
@media screen and (max-width: 991.97px) {
    #headerMenu.header_nav:not(.mobile-menu-open) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        padding: 0 !important;
        height: 0 !important;
    }

    #headerMenu.header_nav:not(.mobile-menu-open) .header_nav-list {
        display: none !important;
        visibility: hidden !important;
    }

    /* Show menu only when mobile-menu-open class is added */
    #headerMenu.header_nav.mobile-menu-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        margin-top: 13px !important;
        padding: 0 !important;
    }

    #headerMenu.header_nav.mobile-menu-open .header_nav-list {
        display: block !important;
        visibility: visible !important;
    }

    /* Mobile Menu Buttons Styling */
    .mobile-menu-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 0 !important;
        margin-top: 10px !important;
        border-top: 1px solid rgba(1, 64, 180, 0.2) !important;
    }

    .mobile-menu-buttons .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        display: block !important;
    }

    .mobile-menu-buttons .btn--neon {
        background: #0140b4 !important;
        color: #fff !important;
        border: 2px solid #0140b4 !important;
        box-shadow: 3px 3px 0 #0140b4 !important;
        transition: all 0.3s ease !important;
    }

    .mobile-menu-buttons .btn--neon:hover,
    .mobile-menu-buttons .btn--neon:focus {
        box-shadow: 6px 6px 0 #1b2129 !important;
        transform: translateY(-2px) !important;
    }
}

/* Hide mobile menu buttons on desktop */
@media screen and (min-width: 991.98px) {
    .mobile-menu-buttons {
        display: none !important;
    }
}
