/* 
* Sdolerioss Media - Responsive CSS Styles
* Website for an Italian plumbing service company
* Version: 1.0
*/

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Large screens (1200px and below) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .services-grid,
    .blog-grid {
        gap: 2rem;
    }

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

/* Medium screens (992px and below) */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }

    .container {
        max-width: 720px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-logo {
        text-align: center;
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
    }

    .about-features {
        display: inline-block;
        text-align: left;
    }
}

/* Small screens (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    .container {
        max-width: 540px;
    }

    .header-content {
        height: 7rem;
    }

    .main-nav {
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

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

    .mobile-menu-toggle.active span:first-child {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-menu-toggle.active span:last-child {
        transform: translateY(-9px) rotate(-45deg);
    }

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

    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .blog-image {
        height: 200px;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .blog-post-navigation {
        flex-direction: column;
        gap: 2rem;
    }

    .prev-post, .next-post {
        margin: 0;
    }

    .cookie-content {
        padding: 1.5rem;
    }

    .cookie-options {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Extra small screens (576px and below) */
@media (max-width: 576px) {
    html {
        font-size: 50%;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

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

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

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

    .logo img {
        height: 4rem;
    }

    .blog-content {
        padding: 2rem;
    }

    .legal-content h2 {
        font-size: 2.4rem;
    }

    .legal-content h3 {
        font-size: 2rem;
    }

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

    .blog-post-header h1 {
        font-size: 3rem;
    }

    .cookie-table {
        font-size: 1.4rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.8rem;
    }
}

/* Height-based responsiveness for hero section */
@media (max-height: 700px) {
    .hero-section {
        height: auto;
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .blog-post-cta,
    .related-posts-section,
    .blog-post-navigation,
    .back-to-blog {
        display: none !important;
    }

    .blog-post-section,
    .legal-section {
        padding-top: 2rem;
    }

    body {
        color: #000;
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    img {
        max-width: 500px !important;
    }

    h1 {
        font-size: 24pt;
    }

    h2 {
        font-size: 18pt;
    }

    h3 {
        font-size: 16pt;
    }
}
