/*
 * Mobile Header Alignment CSS
 * This file ensures proper alignment between hamburger menu and logo on mobile
 */

/* Create a flex container for the mobile header */
@media (max-width: 1100px) {
    .nav-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        height: 80px; /* Fixed excessive height that was breaking layout */
        background-color: #000; /* Ensure black background */
    }

    /* Ensure hamburger is properly positioned and ALWAYS visible */
    .hamburger-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: -20px;
        align-self: center;
        width: 40px; /* Increased size */
        height: 50px; /* Increased height */
        position: absolute !important; /* Position absolute for precise placement */
        right: 25px !important; /* Position from right side */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 9999 !important; /* Maximum z-index to be above everything */
        pointer-events: auto !important; /* Ensure it's clickable */
    }

    /* Increase hamburger line thickness and set gold color */
    .hamburger-menu span {
        height: 5px !important; /* Thicker lines for better visibility */
        background-color: #d9a442 !important; /* Direct gold hex color for guaranteed visibility */
        margin: 5px 0 !important; /* Increased spacing between lines */
        border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Light border for contrast */
    }

    /* Hide the original navbar logo on mobile since we're showing the mobile-only logo */
    .navbar-logo:not(.mobile-only-logo) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* General styles for navbar logos */
    .navbar-logo {
        height: 100%;
        align-items: center;
        margin: 0 auto 0 0;
        padding: 0;
    }

    .navbar-logo img {
        width: auto;
        height: auto;
        max-height: 40px;
        max-width: 140px;
        object-fit: contain;
        display: block !important;
    }

    /* Show the mobile-only logo on mobile - positioned at the left side */
    .mobile-only-logo {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute;
        left: 20px; /* Position at the left side with more space */
        top: 50%;
        transform: translateY(-50%);
        height: 100%;
        z-index: 1001;
    }

    .mobile-only-logo img {
        max-height: 55px; /* Significantly increased from 40px */
        max-width: 180px; /* Increased from 140px */
    }

    /* No need to adjust position since we're using absolute positioning */
    /* Make sure contact info is completely hidden on mobile */
    .nav-contact-info {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Hide the services logo as we only want one logo in the navbar */
.services-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide the mobile-only logo on desktop */
.mobile-only-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
    .services-logo {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Maintain hamburger size even on small screens */
    .hamburger-menu {
        right: 15px; /* Slightly closer to edge on small screens */
        width: 38px; /* Still larger than original */
        height: 30px;
    }

    /* Ensure navbar height is reasonable on smaller screens */
    .nav-bar {
        height: 65px; /* Reasonable height for mobile */
        padding: 8px 15px; /* Slightly reduced padding */
    }

    /* Adjust navbar logo for very small screens */
    .navbar-logo {
        height: 100%;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1001;
    }

    .navbar-logo img {
        max-height: 35px;
        max-width: 120px;
        display: block !important;
    }

    /* Adjust mobile-only logo for very small screens */
    .mobile-only-logo {
        left: 15px; /* Adjust left position for smaller screens */
    }

    .mobile-only-logo img {
        max-height: 50px; /* Keep logo substantial even on small screens */
        max-width: 150px; /* Still larger than original */
    }

    /* No need for margin adjustment since we're using absolute positioning */
}