/**
 * 911MyWeb Header Styles
 * Bootstrap 5 Compatible - Header & Logo
 * 
 * @package 911myweb
 * @version 4.0.0
 */

/* ============================================
   TOP BAR
   ============================================ */
.top-bar-911 {
    background-color: var(--bs-primary, #01223e);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 9998;
}

.top-bar-911 a,
.top-bar-911 span {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
}

.top-bar-911 a:hover {
    color: #fff !important;
}

.top-bar-911 .top-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-911 .top-bar-left {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-bar-911 .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-911 .top-bar-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    position: relative;
    font-family: var(--font-mono);
    font-size: 12px;
}

.top-bar-911 .top-bar-right a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--brand-accent, #ff7e16);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.top-bar-911 .top-bar-right a:hover::after {
    width: 100%;
}

/* Hide email on small screens */
@media (max-width: 767px) {
    .top-bar-911 .d-none.d-md-inline {
        display: none !important;
    }
}

/* Admin bar offset */
.admin-bar .top-bar-911 {
    margin-top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .top-bar-911 {
        margin-top: 46px;
    }
}

/* ============================================
   MAIN HEADER
   ============================================ */
.header-911 {
    background-color: var(--bs-primary, #01223e);
    padding: 0;
    position: sticky;
    top: 0;
    margin: 0 auto;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.admin-bar .header-911 {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .header-911 {
        top: 46px;
    }
}

.header-911.scrolled {
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   LOGO
   ============================================ */
.logo-911 {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-911 img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Bootstrap custom_logo() */
.header-911 .navbar-brand img,
.header-911 .custom-logo {
    height: 40px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain;
}

/* ============================================
   STICKY HEADER STYLE
   ============================================ */
.is-style-myweb-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

@media screen and (max-width: 782px) {
    .is-style-myweb-sticky-header {
        position: initial;
    }
}
