/* css/navigation.css - Navigation Styles */

/* Main Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(124, 132, 113, 0.1);
}

#navbar.scrolled {
    background: rgba(250, 248, 243, 0.98);
    box-shadow: 0 2px 20px rgba(30, 58, 41, 0.1);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(124, 132, 113, 0.2);
}

#navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand */
.nav-brand a {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--forest-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    font-style: italic;
}

.nav-brand a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-brand a:hover::after {
    width: 100%;
}

.nav-brand a::before {
    content: '❦';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--terracotta);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-brand a:hover::before {
    opacity: 0.5;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--walnut);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    font-style: italic;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest-green);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--forest-dark);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

/* CTA Button in Nav */
.nav-cta {
    background: var(--forest-green);
    color: var(--warm-white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--forest-green);
    font-style: italic;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--terracotta);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-cta:hover {
    color: var(--warm-white) !important;
    border-color: var(--terracotta);
}

.nav-cta:hover::before {
    left: 0;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--forest-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--warm-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-link {
        font-size: 1.25rem;
        text-transform: none;
        letter-spacing: 0.5px;
    }
    
    .nav-cta {
        margin-top: 1rem;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Tablet Navigation */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-brand a {
        font-size: 1.5rem;
    }
}

/* Animation for menu items */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu.active .nav-link {
    animation: slideInFromRight 0.5s ease forwards;
}

.nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }