/* Responsive Styles */

/* Large Devices, Wide Screens */
@media only screen and (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .services-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-features {
        justify-content: space-around;
    }

    .feature {
        width: 45%;
        margin-bottom: 20px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width: 992px) {
    :root {
        --container-width: 720px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-content {
        position: relative;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 0 0 15px 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 8px 15px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        width: 100%;
    }

    .contact-info {
        margin-bottom: 40px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo, .footer-links {
        width: 100%;
    }

    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-links {
        justify-content: space-around;
    }

    .cookie-consent {
        max-width: 100%;
        left: 10px;
        right: 10px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width: 768px) {
    :root {
        --container-width: 540px;
        --header-height: 70px;
    }

    section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-links-column {
        width: 45%;
        margin-bottom: 30px;
    }

    .article-featured-image {
        height: 300px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .blog-img {
        height: 250px;
    }

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

    .cookie-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 576px) {
    :root {
        --container-width: 100%;
        --header-height: 60px;
    }

    body {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns .btn {
        margin: 5px;
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .footer-links-column {
        width: 100%;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-featured-image {
        height: 200px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .article-nav-prev, .article-nav-next {
        width: 100%;
    }

    .article-nav-prev a, .article-nav-next a {
        width: 100%;
        text-align: center;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .thanks-content {
        padding: 20px;
    }

    .thanks-content h1 {
        font-size: 1.8rem;
    }

    .thanks-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Custom Adjustments for Specific Elements */
@media only screen and (max-width: 450px) {
    .logo img {
        height: 40px;
    }

    .service-icon img {
        height: 120px;
    }
}
