/* Custom Header Navigation Plugin CSS */
/* FILE: /wp-content/plugins/custom-header-navigation/assets/navigation.css */

/* Hide default Twenty Twenty-Five header */
.has-custom-navigation .wp-site-blocks > header,
.has-custom-navigation .wp-block-template-part[data-area="header"] {
    display: none;
}

/* Adjust body for fixed header */
.has-custom-navigation body {
    padding-top: 70px !important;
}

.has-custom-navigation .wp-site-blocks {
    padding-top: 0;
}

/* Custom Header Styles */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.custom-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: #e1e1e1;
}

.custom-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: height 0.3s ease;
}

.custom-header.scrolled .custom-nav-container {
    height: 60px;
}

/* Logo Styles */
.custom-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.custom-header.scrolled .custom-logo img {
    height: 35px;
}

.custom-logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.custom-nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.custom-nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.custom-nav-menu a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.custom-nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #32CD32;
    transition: width 0.3s ease;
}

.custom-nav-menu a:hover,
.custom-nav-menu .current-menu-item a,
.custom-nav-menu .current_page_item a {
    color: #32CD32;
}

.custom-nav-menu a:hover::before,
.custom-nav-menu .current-menu-item a::before,
.custom-nav-menu .current_page_item a::before {
    width: 100%;
}

/* Mobile Menu Toggle */
.custom-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.custom-mobile-toggle:hover {
    background: rgba(50, 205, 50, 0.1);
}

.custom-hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
}

.custom-hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333333;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
}

.custom-hamburger span:nth-child(1) {
    top: 0;
}

.custom-hamburger span:nth-child(2) {
    top: 8px;
}

.custom-hamburger span:nth-child(3) {
    top: 16px;
}

.custom-mobile-toggle.active .custom-hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
    background: #32CD32;
}

.custom-mobile-toggle.active .custom-hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.custom-mobile-toggle.active .custom-hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
    background: #32CD32;
}

/* Mobile Navigation */
.custom-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.custom-mobile-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.custom-mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
    padding: 0;
}

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

.custom-mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-mobile-nav a:hover,
.custom-mobile-nav .current-menu-item a,
.custom-mobile-nav .current_page_item a {
    background: rgba(50, 205, 50, 0.1);
    color: #32CD32;
    padding-left: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .has-custom-navigation body {
        padding-top: 60px !important;
    }
    
    .custom-nav-menu {
        display: none;
    }

    .custom-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-nav-container {
        height: 60px;
        padding: 0 15px;
    }

    .custom-logo img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .has-custom-navigation body {
        padding-top: 55px !important;
    }
    
    .custom-nav-container {
        height: 55px;
    }
}

/* Focus states for accessibility */
.custom-nav-menu a:focus,
.custom-mobile-nav a:focus,
.custom-mobile-toggle:focus {
    outline: 2px solid #32CD32;
    outline-offset: 2px;
}

/* WordPress admin bar compatibility */
.admin-bar .custom-header {
    top: 32px;
}

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