/* ==========================================================================
   HEADER, NAVBAR & MEGA MENU STYLING (WHITE NAVBAR & #000B33 TOP BAR)
   ========================================================================== */

/* 1. Top Bar (#000B33 Dark Navy Background) */
.top-header {
    background-color: #000B33 !important;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-header a { 
    color: #FFFFFF !important; 
    text-decoration: none; 
    transition: color 0.3s ease;
}
.top-header a:hover { 
    color: #F27915 !important; 
}
.top-header-info, .top-header-social { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

/* 2. Sticky Navbar (Clean White Background) */
.header-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-nav.scrolled {
    box-shadow: 0 10px 30px rgba(0, 11, 51, 0.15);
    padding: 3px 0;
}

/* Logo Text Colors */
.navbar-brand .logo-text {
    font-family: var(--font-heading, sans-serif);
    font-weight: 800;
    font-size: 1.2rem;
    color: #000B33 !important;
}
.navbar-brand .logo-text span { 
    color: #F27915 !important; 
}

/* Nav Links Color Adjustments for White Background */
.nav-link {
    font-weight: 600;
    color: #000B33 !important;
    padding: 20px 15px !important;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { 
    color: #F27915 !important; 
}

/* Proposal CTA Button Styling */
.header-btn-wrapper {
    display: inline-block;
}

.btn-luxury-primary.header-proposal-btn {
    padding: 12px 30px !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #F27915 0%, #FF9436 100%) !important;
    color: #FFFFFF !important;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(242, 121, 21, 0.3);
    border: none;
}

.btn-luxury-primary.header-proposal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 121, 21, 0.5);
}

/* 3. DESKTOP MEGA MENU LOGIC (Screen >= 992px) */
@media (min-width: 992px) {
    .has-megamenu { position: static !important; }

    .navbar .megamenu {
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        background: #000B33 !important; /* Deep Dark Blue Dropdown */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 3px solid #F27915;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 30px 60px rgba(0, 11, 51, 0.4);
        padding: 30px 20px;
        backdrop-filter: blur(25px);
    }
}

/* Mega Menu Card Box & Sub-links */
.megamenu-card-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    height: 100%;
    transition: all 0.3s ease;
}

.megamenu-card-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(242, 121, 21, 0.4);
}

.megamenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.megamenu-icon-wrapper {
    width: 38px;
    height: 38px;
    background: rgba(242, 121, 21, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F27915;
    font-size: 1rem;
    flex-shrink: 0;
}

.megamenu-cat-title, 
.megamenu-cat-title a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none;
    margin: 0;
}

.megamenu-sub-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-sub-links li { margin-bottom: 6px; }

.megamenu-sub-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

.megamenu-sub-links li a:hover {
    color: #38BDF8;
    transform: translateX(4px);
}

.text-orange {
    color: #F27915 !important;
    font-weight: 700;
}

/* 4. MOBILE RESPONSIVE FIXES (< 991.98px) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh !important;
        overflow-y: auto !important;
        background: #FFFFFF !important;
        padding: 20px;
        border-radius: 16px;
        margin-top: 10px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        border: 1px solid #E2E8F0;
    }

    .has-megamenu .dropdown-menu.megamenu {
        display: none;
        position: static !important;
        float: none !important;
        width: 100% !important;
        background: #000B33 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        margin-top: 10px !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .has-megamenu .dropdown-menu.megamenu.show {
        display: block !important;
    }

    .megamenu-card-box {
        background: transparent;
        border: none;
        padding: 6px 0;
    }

    .header-btn-wrapper {
        width: 100%;
        margin-top: 15px !important;
    }
    .btn-luxury-primary.header-proposal-btn {
        width: 100%;
        min-width: 100%;
    }
}