/* =====================================================
   ESSENTIALS CREATIVE - NAVIGATION COMPONENT
   ===================================================== */

/* TARGETED NAVIGATION CONSISTENCY - No aggressive overrides */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

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

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

/* TARGETED LOGO CONSISTENCY - This is the key fix */
.logo img {
    height: 65px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #404040;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #404040;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 50px !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Ensure content doesn't hide under fixed header */
body {
    margin-top: 105px;
}

@media (max-width: 768px) {
    body {
        margin-top: 80px;
    }
}

/* Mobile menu hamburger animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Enhanced accessibility */
.nav-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Improved mobile touch targets */
@media (max-width: 768px) {
    .nav-link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
    }
}