/**
 * Responsive Styles
 *
 * @package Nettuno
 */

/* Large desktop: > 1200px */
@media (min-width: 1201px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 1025-1200px */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 801-1024px */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .cta-content {
        text-align: center;
    }

    .cta-contact-info {
        align-items: center;
    }

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

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

/* Mobile: <= 800px */
@media (max-width: 800px) {
    :root {
        --header-height: 70px;
        --container-padding: 16px;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: var(--z-header);
    }

    .main-navigation.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .nav-menu a {
        font-size: var(--fs-h3);
    }

    /* Hero */
    .hero-home {
        height: auto;
        min-height: 100vh;
        padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .hero-title {
        font-size: clamp(32px, 7vw, 50px);
    }

    .hero-pretitle {
        font-size: var(--fs-small);
    }

    .hero-icon img {
        width: 45px;
        height: auto;
    }

    /* Products Slider */
    .products-slider-wrapper {
        padding: 0 40px;
    }

    .slider-arrow svg {
        width: 24px;
        height: 24px;
    }

    .product-slide-image {
        min-height: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .posts-grid--3 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Gallery */
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    /* CTA */
    .cta-form {
        padding: var(--space-lg);
    }

    /* Specs Table */
    .specs-table th,
    .specs-table td {
        padding: 10px var(--space-md);
        font-size: var(--fs-xs);
    }

    .specs-table th {
        width: 50%;
    }

    /* Product Hero */
    .hero-product {
        min-height: 50vh;
    }

    .breadcrumb {
        font-size: var(--fs-xs);
    }

    /* Section spacing */
    section {
        padding: var(--space-3xl) 0;
    }

    /* Product card content */
    .product-card-content {
        padding: var(--space-md);
    }

    /* About features */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Feature items */
    .feature-item {
        padding: var(--space-md);
    }

    /* Description content tables */
    .description-content table {
        font-size: var(--fs-xs);
    }

    .description-content table th,
    .description-content table td {
        padding: 8px var(--space-sm);
    }

    /* Vision */
    .vision-text-1,
    .vision-text-2 {
        font-size: var(--fs-h3);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Resources */
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials */
    .testimonial-card {
        min-width: 280px;
    }

    /* Art slides */
    .art-slide {
        min-width: 220px;
    }

    /* Excellence */
    .excellence-title {
        font-size: var(--fs-h2);
    }
}

/* Small Mobile: <= 480px */
@media (max-width: 480px) {
    /* Resources 1 column */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonial cards smaller */
    .testimonial-card {
        min-width: 250px;
    }

    /* Art slides smaller */
    .art-slide {
        min-width: 180px;
    }

    /* Gallery */
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Buttons */
    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--fs-small);
    }

    /* Products Slider small mobile */
    .products-slider-wrapper {
        padding: 0 30px;
    }

    .product-slide-image {
        min-height: 180px;
    }

    /* Forms */
    .cta-form {
        padding: var(--space-md);
    }

    /* Post */
    .single-post .post-hero {
        height: 40vh;
        min-height: 300px;
    }

    /* Table */
    .specs-table th {
        width: 45%;
    }

    /* Hero title */
    .hero-title {
        font-size: clamp(26px, 6vw, 40px);
        letter-spacing: -0.01em;
    }

    .hero-icon img {
        width: 36px;
        height: auto;
    }
}

/* Animations - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print */
@media print {
    .site-header,
    .site-footer,
    .hero-scroll-indicator,
    .cta-section,
    .menu-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

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