/* --- 1. Base State for ALL pages --- */
#wrapper-navbar {
    width: 100%;
    z-index: 1050;
    transition: background-color 0.3s ease, padding 0.3s ease;
    background-color: #052d42; /* Solid blue by default for Services/Expertise */
}

/* --- 2. Transparent Override ONLY for Home --- */
body.home #wrapper-navbar {
    position: absolute;
    background-color: transparent;
}

/* --- 3. Sticky State for ALL pages (Triggered by JS) --- */
/* Use the ID and the Class together to increase CSS specificity */
header#wrapper-navbar.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; /* Ensures it stays above all other content */
    background-color: #052d42 !important; /* Your corporate blue */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    animation: slideDown 0.4s ease-out; /* Optional: smooth entrance */
}

/* Optional: Smooth transition when it appears */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Fix for the Navbar inner part when sticky */
header#wrapper-navbar.is-sticky .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Ensure mobile toggle is white */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3 guest%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}