/* Responsive Styles */

/* Tablets and below (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: var(--spacing-lg);
    }

    .hero-content h1 {
        font-size: var(--font-size-4xl);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .download-landing-actions .btn-lg {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }

    /* Header */
    .mobile-menu-toggle {
        display: flex;
        z-index: calc(var(--z-sticky) + 10);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg-primary);
        flex-direction: column;
        padding: var(--spacing-4xl) var(--spacing-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-slow);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .nav-links a {
        width: 100%;
        padding: var(--spacing-md);
    }

    .nav-controls {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--color-border);
    }

    .language-switcher {
        justify-content: center;
        width: 100%;
    }

    /* Hero */
    .hero {
        padding: var(--spacing-3xl) 0;
    }

    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    /* Sections */
    .features,
    .products-section,
    .about-content,
    .faq-section,
    .contact-section {
        padding: var(--spacing-2xl) 0;
    }

    .page-header {
        padding: var(--spacing-2xl) 0;
    }

    /* Grids */
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    /* Product Detail */
    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    /* Forms */
    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }

    /* Buttons */
    .btn-lg {
        width: 100%;
    }

    /* Tables */
    .specs-table {
        font-size: var(--font-size-sm);
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: var(--spacing-md);
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.25rem;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }

    .nav-menu {
        width: 90%;
    }

    .error-code {
        font-size: 4rem;
    }

    .feature-card,
    .product-card {
        padding: var(--spacing-lg);
    }

    .faq-question {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .faq-answer {
        font-size: var(--font-size-sm);
    }
}

/* Print styles */
@media print {

    .site-header,
    .site-footer,
    .nav-controls,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-border: currentColor;
    }

    .btn {
        border: 2px solid currentColor;
    }
}