/* ============================================================
   MOBILE HEADER FIX — Shared across all pages
   ============================================================ */
@media only screen and (max-width: 1199px) {

    /* 1. Kill ALL original theme header sections and sticky bars */
    .gt3_header_builder__section:not(.gt3_header_builder__section--show_on_mobile),
    .gt3_header_builder__section--hide_on_mobile,
    .sticky_header,
    .header_sticky_mobile {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* 2. Force the Mobile Bar to be Fixed and Clean */
    .gt3_header_builder__section--middle__mobile {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 64px !important;
        z-index: 999999 !important;
        background-color: #13182d !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .gt3_header_builder__section--middle__mobile .gt3_header_builder__section-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 64px !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* 3. Suppress navigation links in the fixed bar */
    .gt3_header_builder__section--middle__mobile nav,
    .gt3_header_builder__section--middle__mobile .main-menu,
    .gt3_header_builder__section--middle__mobile ul {
        display: none !important;
    }

    .gt3_header_builder__section--middle__mobile .middle_right__mobile,
    .gt3_header_builder__section--middle__mobile .header_side_container,
    .gt3_header_builder__section--middle__mobile .gt3_header_builder_menu_component {
        position: static !important;
        display: block !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* 4. Force Toggle Visibility and Style */
    html body div[class*="gt3_header_builder__section"] div.mobile-navigation-toggle {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000000 !important;
        width: 44px !important;
        height: 44px !important;
        cursor: pointer !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
    }
    
    html body div[class*="gt3_header_builder__section"] div.mobile-navigation-toggle .toggle-box {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
    }

    div.mobile-navigation-toggle .toggle-inner,
    div.mobile-navigation-toggle .toggle-inner::before,
    div.mobile-navigation-toggle .toggle-inner::after {
        background-color: #c19f63 !important;
        border: none !important;
    }

    div.mobile-navigation-toggle .toggle-inner {
        display: block !important;
        position: absolute !important;
        top: 20px !important;
        margin-top: 0 !important;
        width: 24px !important;
        height: 2px !important;
        transition: background-color 0.2s ease !important;
    }

    div.mobile-navigation-toggle .toggle-inner::before,
    div.mobile-navigation-toggle .toggle-inner::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        width: 24px !important;
        height: 2px !important;
        transition: transform 0.2s ease !important;
    }

    div.mobile-navigation-toggle .toggle-inner::before {
        top: -8px !important;
    }

    div.mobile-navigation-toggle .toggle-inner::after {
        bottom: -8px !important;
    }

    /* 5. Custom Mobile Drawer */
    .mobile_menu_container {
        display: none !important;
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 64px) !important;
        background-color: #13182d !important;
        z-index: 999998 !important;
        overflow-y: auto !important;
    }

    body.mobile_view_on .mobile_menu_container {
        display: block !important;
    }

    .mobile_menu_container .main-menu,
    .mobile_menu_container ul,
    .mobile_menu_container li,
    .mobile_menu_container a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #c19f63 !important;
    }

    .mobile_menu_container li.menu-item {
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        display: block !important;
        margin-bottom: 25px !important;
        border-bottom: 1px solid rgba(193, 159, 99, 0.2) !important;
    }

    .mobile_menu_container a {
        font-size: 1.1em !important;
        font-weight: bold !important;
        text-decoration: none !important;
        padding: 10px 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    /* 7. Extra Resets for messy theme inheritance */
    .mobile_menu_container *,
    .mobile_menu_container div,
    .mobile_menu_container nav,
    .mobile_menu_container ul,
    .mobile_menu_container li {
        float: none !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .mobile_menu_container .fullwidth-wrapper {
        padding: 40px 20px !important;
        display: block !important;
    }

    /* Removed body padding to avoid breaking Slider Revolution */

    /* Logo resizing to fit header */
    body .gt3_header_builder__section--middle__mobile .header_side_container .logo_container {
        display: flex !important;
        align-items: center !important;
        height: 64px !important;
        max-width: 150px !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body .gt3_header_builder__section--middle__mobile .header_side_container .logo_container a img,
    body .gt3_header_builder__section--middle__mobile .header_side_container .logo_container a img.default_logo {
        height: 44px !important;
        max-height: 44px !important;
        max-width: 150px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile_menu_container ul.sub-menu {
        display: block !important;
        padding-left: 20px !important;
        margin: 0 !important;
    }

    .gt3_header_builder__section--middle__mobile .middle_left__mobile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gt3_header_builder__section--middle__mobile .middle_right__mobile,
    .gt3_header_builder__section--middle__mobile .header_side_container,
    .gt3_header_builder__section--middle__mobile .gt3_header_builder_menu_component {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Forcing header to be solid */
    .gt3_header_builder__section--middle__mobile {
        background-color: #13182d !important;
        background: #13182d !important;
    }

    .gt3_header_builder__section--middle__mobile .gt3_header_builder__section-container {
        background-color: #13182d !important;
        background: #13182d !important;
    }

    /* Fixing social icons visibility */
    .mobile-social-icons {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        align-self: center !important;
        margin-right: 15px !important;
        vertical-align: middle !important;
    }

    .mobile-social-icons a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        margin-right: 15px !important;
    }

    .mobile-social-icons a:last-child {
        margin-right: 0 !important;
    }

    .mobile-social-icons i {
        display: inline-block !important;
        font-size: 0.9em !important; /* Reduced size by 40% */
        color: #c19f63 !important;
        visibility: visible !important;
    }

    /* Fixing Logo container alignment */
    .gt3_header_builder__section--middle__mobile .middle_left__mobile {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* Fixing the menu overlap */
    .mobile_menu_container {
        top: 64px !important;
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
}