/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--earth-sand);
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-links a {
    color: var(--forest-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-warm);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-warm);
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(45, 74, 62, 0.15);
    z-index: 1000;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 0.75rem 1.5rem;
    color: var(--forest-moss);
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown a::after {
    display: none;
}

.dropdown a:hover {
    background: var(--earth-sand);
    color: var(--forest-deep);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--forest-deep);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translate(0px, 8px) rotate(45deg);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--text-light);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--earth-sand);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.mobile-nav-header a {
    color: var(--forest-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    flex: 1;
    transition: color 0.3s ease;
}

.mobile-nav-header a.active {
    color: var(--accent-warm);
    font-weight: 600;
}

.mobile-submenu a.active {
    color: var(--accent-warm);
    font-weight: 600;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    color: var(--forest-deep);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle::before {
    content: '+';
    transition: all 0.3s ease;
}

.mobile-submenu-toggle.active::before {
    content: '-';    
}

.mobile-submenu {
    display: none;
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--forest-moss);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-submenu a:hover {
    color: var(--accent-warm);
}