/* Navigation Bar Styles */
.navbar {
    background-color: #fff;
    padding: 0;
    position: relative; /* Ensure it's not sticky */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo Styles - Fixed display issues */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.nav-logo-text {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    margin-left: 12px;
    white-space: nowrap;
}

/* Navigation Menu Styles */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 30px;
}

.nav-link {
    color: var(--brand);
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: #eaf4ff;
}

/* Dropdown Arrow */
.arrow {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    color: var(--brand);
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background-color: #f0f0f0;
}

/* Request a Quote Button Style - Improved styling with blue color */
.request-quote {
    background-color: var(--brand);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.request-quote:hover {
    background-color: #0B1A33 !important;
    transform: translateY(-2px);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--brand);
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Show Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Brand text responsiveness */
    .nav-logo{max-width:calc(100% - 140px)} /* keep room for hamburger */
    /* Keep logo and brand text on the same row; allow brand text to wrap to two lines */
    .nav-logo a{gap:8px;flex-wrap:nowrap}
    .nav-logo-text{white-space:normal;line-height:1.2;font-size:15px;margin-left:8px;padding:2px 0;display:block;max-width:60vw}

    /* Navigation Menu Mobile Styles */
    .nav-menu {
        position: absolute; /* Changed from fixed to absolute to remove stickiness */
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.06);
        padding: 0;
        height: auto;
        overflow-y: auto;
        align-items: stretch;
        margin: 0;
        border-top: 1px solid #e5e7eb;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        display: block;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background-color: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        border-radius: 0;
        border-top: 1px solid #e5e7eb;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .dropdown-link {
        color: var(--brand);
        padding: 10px 30px;
    }

    .dropdown-link:hover {
        background-color: #eaf4ff;
    }

    .dropdown.active .arrow {
        transform: rotate(180deg);
    }

    /* Request Quote Button Mobile - Fixed styling */
    .request-quote {
        margin: 20px auto;
        display: inline-block;
        width: calc(100% - 40px);
        max-width: 200px;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Tablet Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-item {
        margin-left: 20px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-logo-text {
        font-size: 16px;
    }
}