/* ============================================================
   MComm Technologies - Mobile Responsive Fixes
   Added/Updated 2026-07-07 by Jarvis
   ============================================================ */

/* === TOPBAR: Hide login links on small screens === */
@media only screen and (max-width: 992px) {
    #topBar .top-links li { display: none; }
    #topBar .top-links li:first-child { display: inline-block; font-size: 11px; }
    #topBar .container { padding: 0 10px; }
}

/* === HEADER: compact + fixed on mobile === */
@media only screen and (max-width: 992px) {
    #header {
        height: 60px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    #header #topNav .container { padding: 0 10px; }
    #header #topNav a.logo img { max-height: 50px !important; width: auto; }
    #topNav button.btn-mobile {
        display: inline-block !important;
        position: absolute;
        right: 10px;
        top: 8px;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 8px 12px;
    }
    #topNav div.nav-main-collapse {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        z-index: 999;
    }
    #topNav div.nav-main-collapse.collapse { display: none !important; }
    #topNav div.nav-main-collapse.in { display: block !important; }
    #topNav nav.nav-main ul#topMain { flex-direction: column; width: 100%; margin: 0; padding: 0; }
    #topNav nav.nav-main ul#topMain > li { width: 100%; float: none; border-bottom: 1px solid #eee; }
    #topNav nav.nav-main ul#topMain > li > a {
        padding: 12px 20px;
        font-size: 15px;
        height: auto !important;
        line-height: 1.5 !important;
    }
    #topNav nav.nav-main ul#topMain > li > ul.dropdown-menu {
        position: static;
        display: block;
        background: #f5f5f5;
        border: none;
        box-shadow: none;
        width: 100%;
    }
    #topNav nav.nav-main ul#topMain > li > ul.dropdown-menu > li > a {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* ============================================================
   REVOLUTION SLIDER MOBILE FIX
   Hide overlapping absolute-positioned captions; show clean
   mobile-only hero text overlay.
   ============================================================ */

@media only screen and (max-width: 992px) {
    /* Cap slider height */
    .slider.fullwidthbanner-container,
    .fullwidthbanner-container.fullwidth {
        height: auto !important;
        min-height: 220px !important;
        max-height: 280px !important;
        overflow: hidden !important;
    }
    .fullwidthbanner { height: 220px !important; min-height: 220px !important; }
    .fullwidthbanner ul > li { height: 220px !important; min-height: 220px !important; }
    .forcefullwidth_wrapper_tp_banner {
        height: 220px !important;
        max-height: 220px !important;
    }

    /* HIDE all layered captions that overlap */
    .tp-caption,
    .tp-parallax-container,
    .tp-static-layers,
    .tp-static-layers .tp-caption,
    .forcefullwidth_wrapper_tp_banner .tp-caption,
    .fullwidthbanner .tp-caption {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide slider chrome */
    .tparrows,
    .tp-bullets { display: none !important; }

    /* Background image scaling */
    .tp-bgimg {
        background-size: cover !important;
        background-position: center center !important;
    }

    /* Push content below fixed header */
    #wrapper { padding-top: 60px; }

    /* Mobile hero text overlay */
    .mobile-hero-text {
        display: block !important;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        z-index: 50;
        padding: 20px 18px;
        color: #fff;
        text-align: center;
        background: rgba(0, 0, 0, 0.55);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }
    .mobile-hero-text h1 {
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }
    .mobile-hero-text p {
        color: #fff;
        font-size: 14px;
        margin: 0 0 10px 0;
        line-height: 1.4;
    }
    .mobile-hero-text a {
        display: inline-block;
        padding: 8px 18px;
        background: #5cb85c;
        color: #fff !important;
        border-radius: 4px;
        text-decoration: none !important;
        font-size: 13px;
        font-weight: 600;
    }
}

/* Hide hero on desktop */
.mobile-hero-text { display: none !important; }

/* Very small screens */
@media only screen and (max-width: 380px) {
    .fullwidthbanner,
    .fullwidthbanner ul > li { height: 200px !important; }
    .forcefullwidth_wrapper_tp_banner { height: 200px !important; max-height: 200px !important; }
    .mobile-hero-text h1 { font-size: 18px; }
    .mobile-hero-text p { font-size: 12px; }
}

/* === CONTENT SECTIONS === */
@media only screen and (max-width: 992px) {
    #wrapper { padding: 0; }
    .container { width: 100% !important; padding-left: 15px; padding-right: 15px; }
    section { padding: 20px 0 !important; }
    .col-md-4, .col-md-3, .col-md-6, .col-md-8, .col-md-9,
    .col-sm-4, .col-sm-3, .col-sm-6, .col-sm-8 {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    }
    .info-bar .col-md-4, .info-bar .col-sm-4 {
        text-align: center;
        margin-bottom: 10px;
    }
}

/* === FOOTER === */
@media only screen and (max-width: 992px) {
    #footer { padding: 20px 0; }
    #footer .col-md-3, #footer .col-md-4, #footer .col-md-2 {
        float: none;
        width: 100%;
        margin-bottom: 20px;
    }
}

/* === SLIDE TOP === */
@media only screen and (max-width: 992px) {
    #slidetop .container { width: 100% !important; padding: 0 15px; }
    #slidetop .col-md-4 { float: none; width: 100%; margin-bottom: 15px; }
}

/* === INFO BAR on very small === */
@media only screen and (max-width: 600px) {
    .info-bar .col-md-4 { padding: 10px 5px !important; }
    .info-bar h6 { font-size: 13px; margin-bottom: 4px; }
    .info-bar p { font-size: 12px; line-height: 1.3; margin: 0; }
    body { -webkit-overflow-scrolling: touch; }
}

/* === FONTS === */
@media only screen and (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    p { font-size: 14px; line-height: 1.6; }
}

/* === IMAGES === */
@media only screen and (max-width: 992px) {
    img { max-width: 100%; height: auto; }
    .wow { visibility: visible !important; animation: none !important; }
}

/* === NEWSLETTER === */
@media only screen and (max-width: 992px) {
    #footer .input-group { width: 100%; }
    #footer input[type="email"] { width: 70% !important; }
}
