/* ==========================================================================
   Ansar Telecom — Mobile-First Responsive Stylesheet
   ========================================================================== */

/* Sticky Mobile Quick Action Bar (Fixed at Bottom on Mobile Devices) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0F4C81;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.mobile-bar-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bar-item:active, .mobile-bar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.mobile-bar-item.mobile-wa {
    background: #25D366;
    color: #FFFFFF;
}

.mobile-bar-item.mobile-wa:active {
    background: #128C7E;
}

/* Mobile Toggle Hamburger Menu Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #0F4C81;
    cursor: pointer;
    padding: 6px;
}

/* Mobile Breakpoints (Max-Width 768px for Smartphones) */
@media (max-width: 767px) {

    /* Show Mobile Sticky Action Bar */
    .mobile-bottom-bar {
        display: flex;
    }

    /* Padding bottom to prevent footer/content overlap with sticky bar */
    body {
        padding-bottom: 60px !important;
    }

    .wa-widget {
        bottom: 75px !important;
        right: 16px !important;
    }

    .wa-trigger {
        width: 50px !important;
        height: 50px !important;
        font-size: 26px !important;
    }

    /* Top Bar Mobile Optimization */
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 6px 12px;
    }

    .top-info {
        gap: 12px;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Navbar Mobile Layout */
    .nav-container {
        padding: 12px 16px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #E2E8F0;
        gap: 16px;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-cta {
        display: none; /* Accessible via sticky bottom bar on mobile */
    }

    /* Hero Mobile Styling */
    .hero {
        padding: 40px 0 60px 0 !important;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
    }

    .hero-trust-badges {
        justify-content: center;
        gap: 10px;
    }

    .trust-item {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
    }

    .hero-floating-card {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        margin-top: 16px;
        justify-content: center;
    }

    /* Section Spacing on Mobile */
    .section {
        padding: 45px 0 !important;
    }

    .section-title-box {
        margin-bottom: 30px !important;
    }

    .section-title-box h2 {
        font-size: 1.6rem !important;
    }

    .section-title-box p {
        font-size: 0.92rem !important;
    }

    /* Grids to Single Column Fluid Cards */
    .services-grid, .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .service-card {
        padding: 20px 18px !important;
    }

    .service-icon-wrapper {
        width: 52px !important;
        height: 52px !important;
        font-size: 24px !important;
        margin-bottom: 14px !important;
    }

    .service-card h3 {
        font-size: 1.1rem !important;
    }

    .service-card p {
        font-size: 0.88rem !important;
        margin-bottom: 16px !important;
    }

    /* Calculator Mobile Box */
    .calc-box {
        grid-template-columns: 1fr !important;
        padding: 24px 18px !important;
        gap: 24px !important;
    }

    .calc-info h3 {
        font-size: 1.4rem !important;
    }

    .calc-form {
        padding: 20px 16px !important;
    }

    /* Location Mobile Container */
    .location-container {
        grid-template-columns: 1fr !important;
        padding: 24px 18px !important;
        gap: 24px !important;
    }

    .location-details h3 {
        font-size: 1.4rem !important;
    }

    .location-map iframe {
        height: 260px !important;
    }

    /* Catalog Touch Filter Tabs */
    .catalog-tabs {
        gap: 8px !important;
        margin-bottom: 24px !important;
    }

    .tab-btn {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }

    /* Footer Mobile Grid */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}
