header {
    background-color: rgba(255, 250, 250, 1); /* Slightly transparent cream */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--primary-cream);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
    width: auto;
    background-color: transparent;
    mix-blend-mode: multiply; /* Helps remove white backgrounds */
}

/* Call Us Button Styles */
.call-us-item {
    margin-left: 10px;
}

.call-us-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(193, 18, 31, 0.3);
}

.call-us-btn:hover {
    background-color: var(--primary-dark-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(193, 18, 31, 0.4);
    color: white !important;
}

.call-us-btn .phone-icon {
    margin-right: 6px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark-blue);
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--primary-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-red);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-dark-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dropdown-item:hover {
    background-color: var(--primary-cream);
    color: var(--primary-red);
}

/* Font styles for locksmith website */
html, body {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6, .nav-link, .dropdown-toggle, .nav-toggle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .header-call-button {
        position: absolute;
        right: 70px;
    }
    
    .call-us-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-dark);
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-cream);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown-toggle::after {
        content: '+';
        margin-left: 0.5rem;
    }

    .dropdown-toggle.active::after {
        content: '-';
    }

    .dropdown-toggle.active + .dropdown-menu {
        max-height: 500px;
    }
}