/* Responsive Styles - Mobile First Approach */

/* Base styles for small mobile devices */
html, body, .container, section, main {
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

.testimonials-container {
    flex-direction: column;
}

.testimonial {
    min-width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    height: auto;
    min-height: 200px;
}
.hero-section {
    padding: 60px 0 40px;
    min-height: 300px;
}

.hero-section h1 {
    font-size: 2rem;
}

.hero-section p {
    font-size: 1rem;
}
.mobile-menu-toggle {
    display: block;
}

.desktop-menu {
    display: none;
}

.services-grid, 
.benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-grid,
.footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    
    .testimonials-container {
        flex-wrap: wrap;
    }
    
    .cookie-content {
        flex-wrap: nowrap;
    }
    
    .cookie-content p {
        margin-bottom: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .desktop-menu {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .testimonial {
        min-width: calc(33.33% - 14px);
        max-width: calc(33.33% - 14px);
    }
    
    .testimonials-container {
        flex-wrap: nowrap;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section p {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .testimonials-container {
        height: 120px;
    }
}

/* Mobile menu specific styles */
@media (max-width: 991px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .mobile-menu li {
        margin-bottom: 15px;
    }
    
    .mobile-menu li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu a {
        font-size: 1.1rem;
        font-weight: 500;
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }
}
