/* 
================================================================
M R VEGETABLES AND FRUITS - RESPONSIVE STYLESHEET
================================================================
Author: Expert Frontend Developer & UI/UX Designer
Description: Handles media queries, responsive grids, and hamburger navigation drawer
*/

/* --- Media Query for Laptops & Small Desktops (max-width: 1024px) --- */
@media (max-width: 1024px) {
    html {
        font-size: 15px; /* Scale down rem base */
    }

    .container {
        padding: 0 20px;
    }

    /* Grids Adjustment */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gallery-preview-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-preview-grid {
        gap: 40px;
    }

    .about-preview-img-wrapper img {
        height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-grid {
        gap: 40px;
    }
}

/* --- Media Query for Tablets (max-width: 768px) --- */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Navigation Menu Toggle Drawer */
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 30px rgba(17, 66, 39, 0.15);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 1050;
        padding: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .nav-btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    /* Hero Section */
    .hero {
        height: 85vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    /* About Preview */
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-preview-img-wrapper img {
        height: 350px;
    }

    /* Stats on About Page */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 40px 20px;
    }

    /* Inner About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Contact Details Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Lightbox Navigation */
    .lightbox-prev {
        left: 10px;
        background-color: rgba(17, 66, 39, 0.6);
    }

    .lightbox-next {
        right: 10px;
        background-color: rgba(17, 66, 39, 0.6);
    }

    .lightbox-close {
        top: -60px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* --- Media Query for Mobile Devices (max-width: 480px) --- */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    /* Hero Buttons */
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* Hero Text Sizes */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 4px 14px;
    }

    .about-badge {
        padding: 12px 20px;
        bottom: 15px;
        right: 15px;
    }

    .about-badge .years {
        font-size: 1.75rem;
    }

    .preview-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
    }

    /* Why grid */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery list */
    .gallery-preview-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* CTA Section */
    .cta-wrapper h2 {
        font-size: 1.85rem;
    }

    .cta-phone {
        font-size: 2rem;
    }

    /* Contact Details */
    .contact-info-wrapper {
        padding: 24px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .contact-action-btns {
        flex-direction: column;
    }

    .contact-action-btns .btn {
        width: 100%;
    }

    .map-container {
        height: 250px;
    }

    /* Footer Col Layout */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal-links {
        justify-content: center;
        width: 100%;
    }

    /* Back-to-top position adjustments */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
