@media (max-width: 992px) {
    /* Tablet & Mobile */
    
    /* Header handled in style.css for consistency */
    
    .logo img { height: 45px; }
    
    /* Hide top bar if it existed */
    .top-bar { display: none; }

    /* Hero */
    .hero-section {
        height: auto;
        min-height: 450px;
        position: relative;
    }

    .hero-slider {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    .hero-overlay {
        position: relative;
        background: rgba(0,0,0,0.5); /* Darker overlay for mobile/tablet */
        padding: 40px 0;
        z-index: 1;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
        white-space: normal; /* Allow wrapping on tablet/mobile */
    }
    
    .hero-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .hero-search-form .form-group {
        width: 100%;
    }
    
    .hero-search-form .submit-btn {
        width: 100%;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-category-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* New Sections Tablet */
    .popular-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .process-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    .step-arrow {
        display: none;
    }
    .step-item {
        flex: 1 1 40%;
    }

    /* About Page Tablet/Mobile */
    .feature-boxes-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .why-us-images {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    /* Mobile Only */
    
    /* Header layout handled in style.css */
    
    .logo img { height: 45px; }
    
    .logo-tagline { display: none; }
    .header-search .search-form { grid-template-columns: 1fr 44px; }
    .nav-bar .container { grid-template-columns: 1fr auto auto; }
    .cart-summary { display: none; } /* keep UI clean on small devices */

    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-search-form {
        padding: 15px;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
    }

    .shop-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-boxes-row {
        grid-template-columns: 1fr 1fr; /* 2 boxes per row on mobile as requested */
        gap: 10px; /* Reduce gap for mobile */
    }

    /* New Sections Mobile */
    .popular-services-grid {
        grid-template-columns: 1fr;
    }
    .surveying-services-grid {
        grid-template-columns: 1fr;
    }
    .survey-card {
        flex-direction: column;
    }
    .survey-card-icon {
        flex: 0 0 auto;
        width: 100%;
        min-height: 160px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .step-item {
        flex: 1 1 100%;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .company-info .logo-wrapper {
        justify-content: center;
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 26px;
    }

    /* About Page Mobile */
    .header-content h1 {
        font-size: 1.8rem;
    }
    .header-content .subtitle {
        font-size: 1rem;
    }
    .about-content-section, .why-us-list-section {
        padding: 30px 0;
    }
    
    /* Adjust feature box padding on small screens */
    .feature-box {
        padding: 15px;
    }
    .feature-box h3 {
        font-size: 1rem;
    }
    .feature-box .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}
