/* Modern Header Styles */
.modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky; /* keep header visible */
    top: 0;
    z-index: 1040; /* above hero and dropdowns */
}

/* Prevent flicker when JS toggles .header-fixed on scroll */
.header.header-fixed,
.header.header-transparent.header-fixed {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1040 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06) !important;
    animation: none !important;
    transition: none !important;
}

/* Neutralize plugin's fixed nav state */
.navigation-fixed {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
}

.modern-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.modern-logo:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.logo-img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.modern-logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    transition: all 0.3s ease;
}

.company-tagline {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    transition: all 0.3s ease;
}

.modern-logo:hover .company-name {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-logo:hover .company-tagline {
    color: #3b82f6;
}

/* Navigation Menu Styling */
.navigation-landscape .nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navigation-landscape .nav-menu > li > a {
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    transition: all 0.3s ease;
    font-size: 15px;
}

.navigation-landscape .nav-menu > li > a:hover {
    color: #3b82f6;
    text-decoration: none;
}

.navigation-landscape .nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    transition: width 0.3s ease;
}

.navigation-landscape .nav-menu > li > a:hover::after {
    width: 100%;
}

/* Dropdown Styling */
.nav-dropdown {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 15px 0;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1050;
}

.nav-dropdown li a {
    padding: 12px 20px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 10px;
}

.nav-dropdown li a:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #3b82f6;
    transform: translateX(5px);
}

/* Modern CTA Button Styling */
.modern-cta-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.modern-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-cta-btn:hover::before {
    left: 100%;
}

.modern-cta-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.modern-cta-btn .svg-icon {
    transition: all 0.3s ease;
    z-index: 1;
}

.modern-cta-btn:hover .svg-icon {
    transform: rotate(360deg) scale(1.1);
}

.modern-cta-btn .btn-text {
    z-index: 1;
    position: relative;
}

.modern-cta-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-logo {
        gap: 10px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-tagline {
        font-size: 10px;
    }
    
    .logo-text {
        display: none;
    }
    
    .navigation-landscape .nav-menu {
        gap: 20px;
    }
    
    .navigation-landscape .nav-menu > li > a {
        font-size: 14px;
    }
}

/* Desktop centering: center menu text block between logo and CTA */
@media (min-width: 992px) {
    .nav-menus-wrapper {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    .navigation-landscape .nav-menu {
        flex: 1 1 auto;
        justify-content: center;
    }
    .nav-menu.nav-menu-social {
        margin-left: auto;
    }
    .navigation-landscape .nav-menu > li > a {
        display: inline-flex;
        align-items: center;
        height: 50px;
        padding: 0;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .modern-logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 40px !important;
    }
    
    .navigation-landscape .nav-menu {
        gap: 15px;
    }
    
    .add-listing a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Header Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modern-header {
    animation: slideDown 0.6s ease-out;
}

/* Glass Effect */
.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

/* Remove old hero layout overrides to prevent header pushing content */
