/* 
* Mankato Repair - Responsive Styles
* Author: Developer
* Version: 1.0
*/

/* Large Screens (1200px and down) */
@media screen and (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 1.5rem;
    }
}

/* Medium Screens (992px and down) */
@media screen and (max-width: 992px) {
    html {
        font-size: 60%;
    }

    .hero h2 {
        font-size: 4.2rem;
    }

    .services-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.8rem;
    }
}

/* Small Screens (768px and down) */
@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }

    .header {
        height: auto;
        padding: 2rem 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
    }

    .hamburger,
    .hamburger::before,
    .hamburger::after {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .hamburger {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
        display: none;
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1.5rem 2rem;
        border-radius: 0;
    }

    .hero {
        padding-top: calc(6rem + 6rem);
    }

    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-cta .btn {
        width: 80%;
    }

    .services-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer {
        padding: 4rem 0 2rem;
    }
}

/* Extra Small Screens (576px and down) */
@media screen and (max-width: 576px) {
    html {
        font-size: 55%;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .hero h2 {
        font-size: 3.6rem;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 3rem;
    }

    .service-card,
    .about-item {
        padding: 2rem 1.5rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Menu JavaScript Support Classes */
.nav-list.active {
    display: flex;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
} 