/*===================================== 
   FortKnox Custom Mobile & Responsive CSS
======================================*/

/* Prevent horizontal body overflow across mobile devices */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.page-wraper {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Fix dark rounded shadow/overlay artifact on hover button */
.btn-hover-animation:before,
.site-button:before {
    display: none !important;
}

/* Fix top-bar phone icon overlap issue */
.header-style-2 .top-bar .widget_address li {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-style-2 .top-bar .widget_address li i,
.widget_address li i {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin-right: 6px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    color: #009688 !important;
}

/* Top bar styling fixes for mobile & tablet */
@media (max-width: 767px) {
    .header-style-2 .top-bar {
        display: block !important;
        background-color: #f8f9fa !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    .header-style-2 .top-bar .container .d-flex {
        flex-direction: column-reverse !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .header-style-2 .top-bar .widget_address {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .header-style-2 .top-bar .widget_address li {
        font-size: 12px !important;
        line-height: 1.4 !important;
        color: #333 !important;
        border: none !important;
        padding: 0 !important;
        text-align: center !important;
        white-space: normal !important;
        font-weight: 600 !important;
    }

    .header-style-2 .top-bar .widget_address li a {
        color: #333 !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }

    .header-style-2 .top-bar .wt-topbar-right {
        margin: 0 !important;
        justify-content: center !important;
    }
    
    .header-style-2 .top-bar .wt-topbar-right-info ul.social-icons {
        border-right: none !important;
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-style-2 .top-bar .wt-topbar-right-info ul.social-icons li {
        margin: 0 !important;
    }
    
    .header-style-2 .top-bar .wt-topbar-right-info ul.social-icons li a {
        width: 30px !important;
        height: 30px !important;
        line-height: 28px !important;
        font-size: 12px !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 50% !important;
        background: #fff !important;
        color: #444 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }
    
    .header-style-2 .top-bar .wt-topbar-right-info ul.social-icons li a:hover {
        background: #009688 !important;
        color: #fff !important;
        border-color: #009688 !important;
    }
}

/* Header middle (Logo) sizing - prominent and bigger */
.header-style-2 .logo-header {
    width: 240px !important;
    height: auto !important;
}

.header-style-2 .logo-header .logo-header-inner img,
.site-header .logo-header img {
    max-height: 95px !important;
    max-width: 220px !important;
    width: auto !important;
}

@media (max-width: 767px) {
    .header-style-2 .header-middle-wraper {
        padding: 14px 0 !important;
    }
    
    .header-style-2 .header-middle-wraper .logo-header {
        float: none !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center;
        text-align: center !important;
        width: auto !important;
        max-width: 250px !important;
        height: auto !important;
    }
    
    .header-style-2 .logo-header img,
    .site-header .logo-header img {
        max-height: 90px !important;
        max-width: 230px !important;
        width: auto !important;
        margin: 0 auto !important;
        display: inline-block !important;
    }
}

/* Mobile Navigation Bar & Request a Quote button alignment */
@media (max-width: 991px) {
    .header-style-2 .main-bar .container-block,
    .header-style-2 .main-bar .container-block-fluid {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        padding: 0 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .header-style-2 .main-bar .container-block .navigation-bar,
    .header-style-2 .main-bar .container-block-fluid .navigation-bar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 14px !important;
        min-height: 52px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-color: #009688 !important;
    }

    .header-style-2 .extra-nav {
        order: 1 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-style-2 .navbar-toggler {
        order: 2 !important;
        float: none !important;
        margin: 0 !important;
        padding: 6px 8px !important;
        background: transparent !important;
        border: none !important;
    }

    .header-style-2 .extra-nav .site-button {
        padding: 8px 18px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: none !important;
        transition: all 0.25s ease !important;
    }

    .header-style-2 .extra-nav .site-button:hover {
        background-color: #ffffff !important;
        color: #009688 !important;
    }
}

@media (max-width: 480px) {
    .header-style-2 .extra-nav .site-button {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }
    
    .header-style-2 .main-bar .container-block .navigation-bar {
        padding: 6px 10px !important;
    }
}

@media (max-width: 360px) {
    .header-style-2 .extra-nav .site-button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

/* Floating WhatsApp & Call Buttons on Mobile */
@media (max-width: 576px) {
    .float-pair {
        right: 14px !important;
        bottom: 14px !important;
        gap: 10px !important;
    }
    
    .wa-circle {
        width: 46px !important;
        height: 46px !important;
    }
    
    .wa-circle svg {
        width: 24px !important;
        height: 24px !important;
    }
}
