/* 
 * Neve Child Theme - Custom Header Styles (Dark Theme)
 * Save as: header-style.css in your neve-child theme folder
 */

/* ============================================
   HIDE ORIGINAL NEVE HEADER - CRITICAL
   ============================================ */

/* Hide all Neve header elements */
.header-main,
.header--row,
.header--row-inner,
.hfg_header,
.header-wrapper,
[data-show-on="desktop"],
[data-show-on="mobile"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Force show our custom navbar */
.modern-navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
}

/* ============================================
   MODERN DARK NAVBAR - BASE STYLES
   ============================================ */

.modern-navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 30px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    transition: height 0.3s ease;
}

/* ============================================
   LOGO STYLES
   ============================================ */

.navbar-brand {
    z-index: 10;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px; 
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover Effect with Gradient */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Active/Current Page */
.nav-item.current-menu-item > .nav-link,
.nav-item.current_page_item > .nav-link {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2), 0 4px 16px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

/* Dropdown Icon */
.dropdown-icon {
    font-size: 11px;
    font-style: normal;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    opacity: 0.9;
}

.dropdown:hover > .nav-link > .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    min-width: 250px;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-item {
    width: 100%;
    margin-bottom: 4px;
}

.dropdown-menu .nav-item:last-child {
    margin-bottom: 0;
}

.dropdown-menu .nav-link {
    padding: 14px 18px;
    display: block;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu .nav-link:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(8px);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Multi-level dropdowns */
.dropdown-menu .dropdown > .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 8px;
    margin-top: 0;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger:hover .hamburger-line {
    background: #ffed4e;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.8);
    z-index: 100000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 3px solid rgba(255, 215, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.08);
}

.mobile-logo {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.mobile-site-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.close-btn {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.close-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Mobile Nav List */
.mobile-nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    z-index: 9999999 !important;
}

.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-nav-link.current {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.mobile-dropdown-toggle {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #ffd700;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 14px;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 10px;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.mobile-dropdown-toggle:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Mobile Dropdown */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
}

.mobile-dropdown.active,
.mobile-nav-item.active .mobile-dropdown {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-item.active .mobile-dropdown-toggle {
    transform: rotate(180deg);
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Prevent parent links with dropdowns from navigating - make them look clickable */
.mobile-nav-item.has-dropdown > .mobile-nav-link,
.mobile-nav-item.menu-item-has-children > .mobile-nav-link {
    cursor: pointer;
    pointer-events: auto !important;
}

/* Ensure child links work normally */
.mobile-dropdown .mobile-nav-link {
    cursor: pointer;
    pointer-events: auto !important;
}

.mobile-dropdown .mobile-nav-item {
    margin: 0 0 4px 0;
}

.mobile-dropdown .mobile-nav-link {
    padding: 14px 20px 14px 40px;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid transparent;
}

.mobile-dropdown .mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: #ffd700;
    transform: translateX(12px);
}

/* ============================================
   OVERLAY
   ============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 0;
    visibility: visible;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Show/Hide desktop vs mobile */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

/* Tablet and below */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 25px;
    }
    
    .nav-link {
        padding: 16px 16px;
        font-size: 14px;
    }
    
    .nav-list {
        gap: 6px;
    }
}

/* Mobile breakpoint */
@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .navbar-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Small mobile */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        height: 65px;
    }
    
    .logo-img {
        max-height: 45px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-navbar {
    animation: fadeInDown 0.6s ease-out;
}

/* Scrolled state - darker and more compact */
.modern-navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    border-bottom-color: rgba(255, 215, 0, 0.3);
}

.modern-navbar.scrolled .navbar-container {
    height: 65px;
}

.modern-navbar.scrolled .logo-img {
    max-height: 45px;
}

@media (max-width: 992px) {
    body {
        padding-top: 70px !important;
    }
    
    .modern-navbar.scrolled .navbar-container {
        height: 60px;
    }
    
    .modern-navbar.scrolled .logo-img {
        max-height: 38px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px !important;
    }
    
    .modern-navbar.scrolled .navbar-container {
        height: 55px;
    }
    
    .modern-navbar.scrolled .logo-img {
        max-height: 35px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.nav-link:focus,
.mobile-nav-link:focus,
.hamburger:focus,
.close-btn:focus {
    outline: 3px solid rgba(255, 215, 0, 0.6);
    outline-offset: 3px;
}

/* ============================================
   MODAL FIX
   ============================================ */

body.modal-open .modern-navbar {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

.modal {
    z-index: 100500;
}

.modal-backdrop {
    z-index: 100400;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .modern-navbar {
        display: none !important;
    }
}