/*
* Auto Ekspert Warszawa - Responsive Stylesheet
* Version: 1.0
*/

/* Mobile Menu Styles - Applied when JavaScript activates mobile menu */
.mobile-menu-active {
    overflow: hidden;
}

.mobile-menu-active .mobile-menu-toggle span:first-child {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-active .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-active .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.mobile-menu-active nav {
    display: flex;
}

/* Large Screens (Desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 96rem;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    .banner h1 {
        font-size: 3.6rem;
    }
}

/* Medium Screens (Tablets) */
@media screen and (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .container {
        max-width: 72rem;
    }
    
    /* Service Cards */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* How We Work Steps */
    .step {
        flex: 0 0 30%;
        margin-bottom: 3rem;
    }
    
    .step:after {
        display: none;
    }
    
    /* Banner */
    .banner-content {
        padding-right: 2rem;
    }
    
    /* Contact Section */
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, 
    .contact-form {
        flex: 0 0 100%;
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
    
    /* Footer */
    .footer-logo, 
    .footer-links, 
    .footer-contact {
        flex: 0 0 calc(50% - 3rem);
    }
    
    /* Blog Article */
    .blog-article {
        flex-direction: column;
    }
    
    .blog-article .blog-image {
        flex: 0 0 100%;
        height: 20rem;
    }
}

/* Small Screens (Mobile Landscape) */
@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .container {
        max-width: 54rem;
    }
    
    /* Header & Navigation */
    nav {
        display: none;
        position: fixed;
        top: 7.6rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 7.6rem);
        background-color: #fff;
        padding: 2rem;
        z-index: 1000;
        flex-direction: column;
        overflow-y: auto;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
        padding: 1.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Banner */
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content, 
    .banner-image {
        flex: 0 0 100%;
        padding-right: 0;
    }
    
    .banner-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .banner h1 {
        font-size: 3.2rem;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
    }
    
    .about-text, 
    .about-image {
        flex: 0 0 100%;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* How We Work Steps */
    .step {
        flex: 0 0 100%;
    }
    
    /* Blog Preview */
    .blog-articles {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-logo, 
    .footer-links, 
    .footer-contact {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    /* Article Content */
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Related Articles */
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* Thank You Page */
    .thank-you-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
    }
}

/* Extra Small Screens (Mobile Portrait) */
@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* Banner */
    .banner {
        padding: 4rem 0;
    }
    
    .banner h1 {
        font-size: 2.8rem;
    }
    
    /* Logo */
    .logo img {
        height: 3.5rem;
    }
    
    .logo span {
        font-size: 1.6rem;
    }
    
    /* Service Card */
    .service-card {
        padding: 2rem;
    }
    
    /* Testimonial */
    .testimonial {
        padding: 2rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 2rem;
        padding: 2rem;
    }
    
    /* Legal Content */
    .legal-document {
        padding: 4rem 0;
    }
}
