/* Mobile aur readability fixes. Ye file sabse aakhir mein load hoti hai. */

/* Listing / contact pages: dark background par dark heading nahi dikhti thi */
body.frontend-page .bravo_wrap {
    background: var(--tmt-page-bg) !important;
}
body.frontend-page .bravo_wrap .bravo_banner h1 {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(2, 6, 23, 0.75);
}
body.frontend-page .contact-page-redesign .contact-hero h1,
body.frontend-page .contact-page-redesign .contact-hero h3 {
    color: #fff !important;
}
body.frontend-page .contact-page-redesign .contact-hero p {
    color: #cbd5e1 !important;
}

.tmt-m-head,
.tmt-m-contact {
    display: none;
}

@media (max-width: 768px) {
    /* backdrop-filter ki wajah se fixed menu header ke andar band ho jata tha */
    body.frontend-page .bravo_wrap .bravo_header {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    body.frontend-page .bravo_wrap .bravo_header:has(.bravo-menu-mobile.active) {
        z-index: 7000;
    }
    body.frontend-page .bravo_wrap .bravo_header .bravo-menu-mobile {
        width: min(300px, 84vw);
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 7001;
    }
    body.frontend-page .bravo_wrap .bravo_header .bravo-menu-mobile .g-menu {
        max-height: none !important;
    }
    body.frontend-page .bravo_wrap .bravo_header .bravo-menu-mobile .g-menu > ul > li a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
    .tmt-m-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 12px 12px 20px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }
    .tmt-m-head a,
    .tmt-m-head a:hover {
        color: #fff;
        font-weight: 700;
        text-decoration: none;
    }
    .tmt-m-head .b-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 24px;
        line-height: 1;
    }
    .tmt-m-contact {
        display: grid;
        gap: 10px;
        padding: 18px 20px 30px;
    }
    .tmt-m-contact a,
    .tmt-m-contact a:hover {
        display: block;
        padding: 12px;
        border-radius: 12px;
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: #fff;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
    .tmt-m-contact a + a,
    .tmt-m-contact a + a:hover {
        background: #15803d;
    }
}

@media (max-width: 575px) {
    /* floating buttons form aur text ko kam dhakein */
    body.frontend-page .bravo-buy-button {
        left: auto;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        padding: 9px 14px 7px;
        font-size: 11px;
    }
    body.frontend-page .tmt-theme-tool {
        bottom: 12px;
    }
    body.frontend-page .tmt-theme-toggle {
        width: 34px;
        min-height: 34px;
    }
    /* iPhone input par tap karne se page zoom na kare */
    body.frontend-page input:not([type="checkbox"]):not([type="radio"]),
    body.frontend-page select,
    body.frontend-page textarea {
        font-size: 16px !important;
    }
}
