/* Navigation Styles */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-navigation {
    padding: 1rem 5%;
}

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

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5016;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.site-branding .custom-logo-link {
    display: block;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #2d5016;
    transition: all 0.3s ease;
}

/* Primary Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: #2d5016;
}

/* Dropdown Menus */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    list-style: none;
    margin: 0;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 0.75rem 1.5rem;
}

.nav-menu .sub-menu a:hover {
    background: #f8f9fa;
}

/* Mobile Menu (Responsive) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 1rem;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        background: #f8f9fa;
    }

    .nav-menu li:hover > .sub-menu {
        display: none;
    }

    .nav-menu li.menu-item-has-children.open > .sub-menu {
        display: block;
    }

    /* Hamburger Animation */
    .menu-toggle.active .menu-icon:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .menu-toggle.active .menu-icon:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Content Spacing for Fixed Header */
.site-content {
    margin-top: 80px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2d5016;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}
