/* Responsive Styles
---------------------------------------- */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: 3rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    .hero {
        padding: 7rem 0 5rem;
    }

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

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

    .counter {
        min-width: 100%;
        margin: 0.5rem 0;
    }

    .counter .count {
        font-size: 2rem;
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-content {
        padding-right: 0;
    }

    .blog-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--light-grey-color);
        padding-top: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    .counter {
        min-width: calc(50% - 2rem);
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-content {
        padding-right: 0;
    }

    .blog-sidebar {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--light-grey-color);
        padding-top: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        padding: 9rem 0 7rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero {
        padding: 10rem 0 8rem;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 0.5rem 0;
    }

    .nav-cta {
        display: inline-block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Testimonials Responsive */
@media (max-width: 767.98px) {
    .testimonial-content {
        padding: 1.5rem;
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo, .footer-nav, .footer-legal, .footer-contact {
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 1rem;
    }
}

/* Cookie Consent Responsive */
@media (max-width: 767.98px) {
    .cookie-consent {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .cookie-content {
        padding: 1rem;
    }

    .cookie-settings {
        padding: 1rem;
    }
}
