/* =============================================
   Company Name Text Logo
   ============================================= */
.site-logo-text {
    display: inline-flex;
    align-items: center;
    font-family: 'Open Sans', 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #cc0000;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    height: 90px; /* match original logo height to preserve header layout */
}

.top-bar__logo.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.top-bar__logo.site-logo:hover .site-logo-text {
    color: #a00000;
    text-decoration: none !important;
}

/* =============================================
   MOBILE MENU FIX
   The original theme uses a vertical-centering
   CSS trick (:before with height:100% + 
   vertical-align:middle) that pushes nav items
   to the middle of the screen. We override this
   so items appear at the TOP, right below the logo.
   ============================================= */
@media (max-width: 991.98px) {

    /* Header row – vertically center logo & hamburger */
    .top-bar .row.justify-content-between {
        align-items: center;
        min-height: 70px;
    }

    /* --- Expanded overlay: align content to TOP --- */
    .top-bar.is-expanded .top-bar__inner {
        border-top: 70px solid transparent !important;  /* clears the logo/header */
        border-bottom: 0 !important;
        text-align: left !important;
        padding: 0 !important;
        overflow-y: auto;
    }

    /* Kill the vertical-centering pseudo-element trick */
    .top-bar.is-expanded .top-bar__inner::before {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Make the inner wrapper a normal block from the top */
    .top-bar.is-expanded .top-bar__inner > div:first-child {
        display: block !important;
        vertical-align: top !important;
        width: 100% !important;
        padding: 10px 0 30px 0;
    }

    /* d-lg-flex wrapper – stack vertically on mobile */
    .top-bar.is-expanded .d-lg-flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }

    /* --- Nav list --- */
    .top-bar.is-expanded .top-bar__navigation {
        display: block !important;
        width: 100%;
        margin-bottom: 0 !important;
    }

    .top-bar.is-expanded .top-bar__navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .top-bar.is-expanded .top-bar__navigation ul li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e8e8e8;
    }

    .top-bar.is-expanded .top-bar__navigation ul li:first-child {
        border-top: 1px solid #e8e8e8;
    }

    /* Nav link text */
    .top-bar.is-expanded .top-bar__navigation ul li a:not(.custom-btn) {
        display: block;
        padding: 16px 30px !important;
        font-size: 13px !important;
        font-weight: 600;
        letter-spacing: 1.5px;
        color: #3e392d !important;
        text-align: left;
        text-transform: uppercase;
    }

    .top-bar.is-expanded .top-bar__navigation ul li a:not(.custom-btn):hover {
        color: #cc0000 !important;
        background: #f9f9f9;
    }

    /* Active link indicator */
    .top-bar.is-expanded .top-bar__navigation ul li.active > a:not(.custom-btn) {
        color: #cc0000 !important;
    }

    /* Career button */
    .top-bar.is-expanded .top-bar__navigation ul li.li-btn {
        border: none;
        padding: 20px 30px !important;
    }

    .top-bar.is-expanded .top-bar__navigation ul li.li-btn a.custom-btn {
        display: inline-block;
        width: auto;
        font-size: 12px;
        padding: 12px 36px;
    }

    /* Contact info block */
    .top-bar.is-expanded .top-bar__contacts {
        display: block !important;
        padding: 20px 30px !important;
        border-top: 1px solid #e8e8e8;
        width: 100%;
    }

    .top-bar.is-expanded .top-bar__contacts span {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
    }

    .top-bar.is-expanded .top-bar__contacts a {
        color: #3e392d;
        font-weight: 600;
        text-decoration: underline;
    }
}

/* =============================================
   WhatsApp Floating Widget
   ============================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
    color: #fff !important;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
}
