/* navigation.css - Updated with Logo Integration */

/* Floating Navigation */
nav {
    position: fixed;
    top: 70px; /* Moved down to avoid countdown banner */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(143, 166, 142, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    width: auto;
    min-width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Logo in Navigation */
nav .logo-container {
    display: none; /* Hide logo in floating nav */
}

/* Navigation Logo */
.nav-logo {
    display: none; /* Hidden by default, show only on mobile */
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--sage);
    object-fit: cover;
}

.nav-brand-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--deep-olive);
    letter-spacing: 0.5px;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8FA68E;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8FA68E, #7C8C7B);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle,
#mobileMenuToggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span,
#mobileMenuToggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #7C8C7B;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Scroll Effect */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 50px rgba(143, 166, 142, 0.15);
    top: 10px;
    padding: 12px 35px;
}

nav.scrolled .logo-img {
    width: 32px;
    height: 32px;
}

/* Desktop - Show logo text */
@media (min-width: 1024px) {
    nav .logo-text {
        display: inline;
    }
}

/* Tablet & Mobile Responsive */
@media (max-width: 768px) {
    nav {
        width: calc(100% - 40px);
        padding: 12px 20px;
        top: 75px; /* Account for countdown banner */
        justify-content: space-between;
    }
    
    .nav-logo {
        display: flex; /* Show logo on mobile */
    }
    
    .nav-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav-brand-name {
        font-size: 1rem;
    }
    
    nav .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .mobile-menu-toggle,
    #mobileMenuToggle {
        display: flex;
        z-index: 1002;
    }
    
    nav ul {
        position: fixed;
        top: 130px; /* Account for countdown banner + nav */
        left: 50%;
        transform: translateX(-50%) translateY(-150%);
        background: linear-gradient(135deg, white, #F5F0E6);
        flex-direction: column;
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(143, 166, 142, 0.2);
        transition: transform 0.3s ease;
        width: calc(100% - 40px);
        max-width: 280px;
        gap: 18px;
        z-index: 1001;
    }
    
    nav.mobile-open ul {
        transform: translateX(-50%) translateY(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(1),
    #mobileMenuToggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2),
    #mobileMenuToggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3),
    #mobileMenuToggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        font-size: 15px;
        padding: 8px 0;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav {
        top: 60px; /* Account for countdown banner on small screens */
        padding: 10px 15px;
        width: calc(100% - 30px);
    }
    
    .nav-logo-img {
        width: 28px;
        height: 28px;
    }
    
    .nav-brand-name {
        font-size: 0.9rem;
    }
    
    nav .logo-img {
        width: 28px;
        height: 28px;
    }
    
    nav ul {
        top: 115px; /* Adjusted for smaller screens */
        max-width: 260px;
        padding: 20px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 0;
    }
}

/* Countdown Timer Banner with Logo Colors */
.countdown-banner {
    background: linear-gradient(135deg, #8FA68E, #7C8C7B);
    color: white;
    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.5s ease;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-text {
    font-size: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 15px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.7rem;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}