/* Mobile CSS - Reemzet Services App */
/* Native Mobile App Experience */

@media (max-width: 767px) {
    /* Hide Desktop Header on Mobile */
    .desktop-header {
        display: none !important;
    }
    
    /* Mobile App Bar */
    .mobile-app-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .app-bar-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.3rem;
        font-weight: 800;
    }
    
    .app-bar-logo i {
        font-size: 1.5rem;
    }
    
    .app-bar-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .call-btn-mobile {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.6rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    /* Side Navigation Drawer */
    .side-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .side-nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .side-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1101;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .side-nav.active {
        left: 0;
    }
    
    .side-nav-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .user-profile {
        display: flex;
        gap: 1rem;
        align-items: center;
    }
    
    .user-avatar {
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .user-info h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }
    
    .user-info p {
        font-size: 0.85rem;
        opacity: 0.9;
    }
    
    .side-nav-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.3rem;
    }
    
    .side-nav-content {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .side-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        flex: 1;
    }
    
    .side-nav-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .side-nav-item.active {
        background: var(--bg-secondary);
    }
    
    .side-nav-item a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: background 0.2s ease;
    }
    
    .side-nav-item a:active {
        background: var(--bg-tertiary);
    }
    
    .side-nav-item i {
        font-size: 1.3rem;
        color: var(--primary-color);
        width: 24px;
        text-align: center;
    }
    
    .side-nav-item span {
        font-size: 1rem;
        font-weight: 500;
    }
    
    .side-nav-footer {
        padding: 1rem 1.5rem;
        border-top: 1px solid var(--border-color);
        background: var(--bg-secondary);
    }
    
    .location-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }
    
    .location-info i {
        color: var(--primary-color);
        font-size: 1.1rem;
    }
    
    .change-location-btn {
        width: 100%;
        background: white;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
        padding: 0.7rem;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .change-location-btn:active {
        background: var(--primary-color);
        color: white;
    }
    
    /* Bottom Navigation Bar */
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: white;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-light);
        font-size: 0.75rem;
        font-weight: 500;
        padding: 0.3rem 0.8rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        position: relative;
        flex: 1;
        max-width: 80px;
    }
    
    .bottom-nav-item i {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    
    .bottom-nav-item.active {
        color: var(--primary-color);
    }
    
    .bottom-nav-item.active i {
        transform: scale(1.1);
    }
    
    /* Adjust Body Padding for Mobile */
    body {
        padding-top: 56px;
        padding-bottom: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 1.5rem 0;
        margin-top: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .search-box i {
        display: none;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .search-btn {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .feature-item {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .stat-card {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    /* Services Section Mobile */
    .services {
        padding: 1.5rem 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-header {
        margin-bottom: 0.8rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .service-rating {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .service-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .service-price {
        margin-bottom: 0.8rem;
    }
    
    .price {
        font-size: 1.1rem;
    }
    
    .service-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* How It Works Mobile */
    .how-it-works {
        padding: 1.5rem 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-card {
        text-align: center;
    }
    
    .step-card::after {
        display: none;
    }
    
    .step-number {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 0 auto 1rem;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .step-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .step-card p {
        font-size: 0.9rem;
    }
    
    /* Why Us Mobile */
    .why-us {
        padding: 1.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    /* Testimonials Mobile */
    .testimonials {
        padding: 1.5rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .testimonial-header {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .testimonial-header img {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .customer-info h4 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .rating {
        font-size: 0.85rem;
    }
    
    .testimonial-card p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .service-type {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 1.5rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 8px;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cta-feature {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .cta-feature i {
        font-size: 1.2rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
        justify-content: center;
    }
    
    .footer-logo i {
        font-size: 1.6rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.4rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.7rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        justify-content: center;
    }
    
    .contact-info i {
        width: 18px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding-top: 1.2rem;
        font-size: 0.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .app-bar-logo span {
        font-size: 1.1rem;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .service-image {
        height: 140px;
    }
    
    .service-content h3 {
        font-size: 1rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .bottom-nav-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    
    .bottom-nav-item i {
        font-size: 1.2rem;
    }
}

/* Hide on Larger Screens */
@media (min-width: 768px) {
    .mobile-app-bar,
    .side-nav,
    .side-nav-overlay,
    .bottom-nav {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .service-btn:hover,
    .cta-btn:hover {
        transform: none;
    }
    
    .service-card:active,
    .bottom-nav-item:active,
    .side-nav-item a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .service-btn:active,
    .cta-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}