/* Mobile Responsive Optimization for Ro Care Bharat */

/* Global Prevent Scroll & Base Adjustments */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Container & Typography Adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    body {
        font-size: 15px;
        /* Slightly smaller body text */
    }

    /* Typography Scaling */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    h4 {
        font-size: 1.2rem !important;
    }

    /* Section Padding - Reduce vertical spacing */
    .section-padding {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}

/* Header & Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Mobile Header Button Styles (Shared) */
    .mobile-actions {
        align-items: center;
    }

    .navbar-toggler,
    .mobile-cart-btn {
        width: 44px;
        /* Fixed consistent size */
        height: 44px;
        display: flex;
        flex-direction: column;
        /* Ensure bars stack vertically */
        align-items: center;
        justify-content: center;
        background-color: #f1f5f9;
        /* Light consistent background */
        border-radius: 10px;
        /* Modern rounded corners */
        border: none;
        transition: all 0.2s ease;
        padding: 0;
        color: var(--primary);
    }

    .navbar-toggler {
        gap: 5px;
        /* Precise gap control */
    }

    .navbar-toggler:active,
    .mobile-cart-btn:active {
        background-color: #e2e8f0;
        transform: scale(0.95);
    }

    /* Cart Specific overrides */
    .mobile-cart-btn {
        text-decoration: none;
        position: relative;
        margin-right: 8px;
        /* Spacing between buttons */
        flex-direction: row;
        /* Reset column for cart */
    }

    .mobile-cart-btn i {
        font-size: 1.1rem;
    }

    /* Hamburger Bars */
    .navbar-toggler .toggler-bar {
        display: block;
        width: 20px;
        height: 2px;
        background-color: #334155;
        /* Dark gray for contrast */
        margin: 0;
        /* Remove margin, use gap instead */
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Cart Count Badge */
    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ef4444;
        color: white;
        font-size: 0.7rem;
        height: 18px;
        min-width: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #fff;
    }
}

/* CTA Section - Centering Content on Mobile */
@media (max-width: 991px) {
    .cta-section .row>div {
        text-align: center !important;
    }

    .cta-section .d-flex {
        justify-content: center !important;
    }

    .cta-section p {
        margin-bottom: 2rem !important;
    }

    .cta-section .btn {
        width: 100%;
        /* Full width buttons on mobile usually look better/easier to tap */
        max-width: 300px;
        /* But not too wide on tablets */
        margin-bottom: 10px;
        display: flex;
        /* Ensure icon and text center */
        align-items: center;
        justify-content: center;
    }
}

/* Footer Adjustments */
@media (max-width: 768px) {

    .footer-premium .col-md-6,
    .footer-premium .col-lg-4,
    .footer-premium .col-lg-2,
    .footer-premium .col-lg-3 {
        text-align: center;
        /* Center footer content */
    }

    .footer-brand-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-bottom .text-md-start,
    .footer-bottom .text-md-end {
        text-align: center !important;
        justify-content: center !important;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Service Coverage Cities Badge Container */
.cities-badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Hero Section Adjustments */
@media (max-width: 768px) {

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-content-premium {
        padding-bottom: 20px;
    }
}

/* Mobile Hero Color Polish */
@media (max-width: 768px) {
    .hero-section-premium {
        background: #ffffff !important;
        /* Clean white background for better contrast */
    }

    .hero-bg-elements {
        opacity: 0.3;
        /* Tweak background elements visibility */
    }

    .hero-badge-top {
        background: #f8faff !important;
        /* Light background for badge */
        border: 1px solid rgba(0, 102, 204, 0.1);
        box-shadow: 0 2px 10px rgba(0, 102, 204, 0.05);
    }

    .hero-title-premium {
        color: #0b1c33;
        /* Darker text for sharpness */
    }
}

/* Mobile Sticky Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: 70px;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-bottom-nav .nav-item-center {
    position: relative;
    top: -25px;
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-bottom-nav .call-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.4);
    border: 4px solid #fff;
    animation: pulse-call 2s infinite;
}

@keyframes pulse-call {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Adjust Toast/SweetAlert position */
.swal2-container {
    z-index: 1060 !important;
}