/* ===================================
   Neve Style Header
   =================================== */

.neve-wrapper {
    overflow-x: hidden;
}

.neve-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 999;
    background: #f1f1f1;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    color: #21759b;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 23px 14px;
    text-decoration: none;
    text-transform: none;
}

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

/* Header Main */
.header {
    position: relative;
    z-index: 100;
    width: 100%;
}

.header--row {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

/* Top Bar - White Background */
.header-top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0;
}

.header-top-bar .header--row-inner {
    background: #ffffff !important;
}

.header-top-bar .row {
    min-height: 50px;
}

/* Contact Info in Top Bar */
.header-contact-info {
    display: flex !important;
    align-items: center;
    gap: 30px;
}

.header-contact-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #333333 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-contact-item:hover {
    color: #0066cc !important;
}

.header-contact-item svg {
    flex-shrink: 0;
}

/* Main Navigation Bar - Blue Background */
.header-main {
    background: #0066cc !important;
    border-bottom: none;
}

.header-main .header--row-inner {
    background: #0066cc !important;
}

.header-main .row {
    min-height: 60px;
}

.header--row-inner {
    width: 100%;
}

.header--row .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header--row .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* Builder Items */
.builder-item {
    display: flex;
    align-items: center;
}

.hfg-item-left {
    flex: 0 0 auto;
}

.hfg-item-right {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.hfg-item-full-width {
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
}

.hfg-item-full-width .item--inner {
    width: 100%;
    justify-content: center;
}

.item--inner {
    display: flex;
    align-items: center;
}

/* Site Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.header-top-bar .site-title {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
}

.header-top-bar .brand .site-title {
    color: #1a1a1a;
}

.header-top-bar .site-description {
    color: #666;
    font-size: 12px;
    margin: 0 0 0 10px;
}

/* Navigation */
.nv-nav-wrap {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.primary-menu-ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.nav-ul li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.nav-ul li a {
    display: flex !important;
    align-items: center;
    padding: 0 15px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 60px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-ul li a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-ul li a::after {
    content: none;
}

/* Submenu */
.nav-ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #0066cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-ul li:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-ul .sub-menu li {
    width: 100%;
}

.nav-ul .sub-menu li a {
    padding: 10px 20px;
    line-height: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

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

.nav-ul .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

/* Mobile Menu Toggle */
.navbar-toggle-wrapper {
    display: none;
    margin-left: auto;
    padding-left: 20px;
}

.navbar-toggle {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 36px;
    width: 36px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle Active State */
.navbar-toggle.active .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile Menu Sidebar */
.header-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 360px;
    max-width: 100%;
    height: 100vh;
    z-index: 999900;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.header-menu-sidebar.is-active {
    left: 0;
}

.header-menu-sidebar-bg {
    background: #fff;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.close-nav-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background: #f5f5f5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-nav-toggle:hover {
    background: #e0e0e0;
}

.nv-close {
    position: relative;
    width: 20px;
    height: 20px;
}

.nv-close::before,
.nv-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #404248;
    border-radius: 2px;
}

.nv-close::before {
    transform: rotate(45deg);
}

.nv-close::after {
    transform: rotate(-45deg);
}

.header-menu-sidebar-inner {
    padding-top: 60px;
}

.header-menu-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999800;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-menu-sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Styles */
.builder-item-mobile .nav-ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.builder-item-mobile .nav-ul li {
    width: 100%;
}

.builder-item-mobile .nav-ul li a {
    padding: 15px 0;
    width: 100%;
    line-height: normal;
    border-bottom: 1px solid #f0f0f0;
    color: #404248;
    font-size: 16px;
    font-weight: 500;
}

.builder-item-mobile .nav-ul li a:hover {
    color: #0066cc;
    background: transparent;
}

.builder-item-mobile .nav-ul .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 20px;
    background: transparent;
}

.builder-item-mobile .nav-ul li:hover > .sub-menu {
    display: block;
}

.builder-item-mobile .nav-ul .sub-menu li a {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 960px) {
    .nv-nav-wrap {
        display: none;
    }

    .navbar-toggle-wrapper {
        display: flex !important;
        align-items: center;
    }

    .header--row .row {
        min-height: 60px;
    }

    .neve-site-logo {
        max-height: 48px;
    }

    .header-contact-info {
        gap: 15px;
    }

    .header-contact-item {
        font-size: 12px;
    }

    .header-contact-item svg {
        width: 14px;
        height: 14px;
    }
}

/* Neve Main Content */
.neve-main {
    min-height: calc(100vh - 70px);
}

/* Additional Fixes */
.header-menu-sidebar-bg .nav-menu-primary {
    width: 100%;
}

.header-menu-sidebar-bg .nav-ul {
    width: 100%;
}

/* Ensure proper spacing */
.header-top-bar .builder-item {
    padding: 0;
}

.header-main .builder-item {
    padding: 0;
}

/* Fix for current menu item */
.nav-ul li.current-menu-item > a,
.nav-ul li.current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Ensure menu container is visible */
.nav-menu-primary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for menu wrapper */
.header-main .nv-nav-wrap {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure menu items are visible */
.header-main .nav-ul {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-main .nav-ul li {
    visibility: visible !important;
    opacity: 1 !important;
}

.header-main .nav-ul li a {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .header-contact-item span {
        display: inline !important;
    }

    .header-contact-item {
        gap: 4px;
    }

    .header-contact-info {
        gap: 10px;
    }

    .header-top-bar .row {
        min-height: 40px;
    }

    .header-main .row {
        min-height: 50px;
    }

    /* Ensure mobile menu button is visible */
    .navbar-toggle-wrapper {
        display: flex !important;
    }

    .navbar-toggle {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .header-contact-info {
        gap: 8px;
    }

    .header-contact-item svg {
        width: 12px;
        height: 12px;
    }
}
