/* Responsive Styles for Isuzu Website */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    header .container {
        padding: 15px;
    }
    
    .about-content, 
    .contact-content,
    .footer-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text {
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Header & Navigation */
    .mobile-menu {
        display: block;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .mobile-menu.active .fa-bars:before {
        content: "\f00d"; /* Change to X icon when active */
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Product Grid */
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    /* Specifications */
    .specs-nav ul {
        flex-wrap: wrap;
    }
    
    .specs-nav ul li {
        margin: 5px;
    }
    
    .specs-content {
        overflow-x: auto;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}
