/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.3s;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    /* Hero */
    .hero {
        padding: 4rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    /* Sections */
    .section {
        padding: 3rem 0;
    }

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

    /* Grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Equipment Analysis */
    .equipment-category {
        padding: 1.5rem;
    }

    /* Table */
    .comparison-table-wrapper {
        margin: 1rem -15px;
        border-radius: 0;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        min-width: 120px;
    }

    /* Reviews */
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .expert-opinion {
        padding: 2rem;
    }

    .expert-card {
        padding: 1.5rem;
    }

    blockquote {
        font-size: 1rem;
        padding-left: 1.5rem;
    }

    /* Newsletter */
    .newsletter-content {
        padding: 2rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

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

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .newsletter-content,
    .expert-opinion,
    .equipment-category {
        padding: 1.5rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .form {
        padding: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .nav-menu {
        height: calc(100vh - 60px);
    }

    .nav-menu.active {
        overflow-y: auto;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .section-icon,
    .logo,
    .footer-logo,
    .contact-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .modal,
    .hero-buttons,
    .btn {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: #333 !important;
        padding: 1rem 0;
    }

    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        background: white !important;
        color: #333 !important;
    }

    a {
        text-decoration: underline;
    }

    .comparison-table {
        font-size: 0.8rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }

    /* Only apply if user hasn't already interacted with cookie settings */
    body:not(.cookie-set) {
        background-color: #fff;
        color: ##2e2e2e;
    }

    body:not(.cookie-set) .card,
    body:not(.cookie-set) .service-card,
    body:not(.cookie-set) .equipment-category,
    body:not(.cookie-set) .newsletter-content {
        background: #fff;
        color: #2d2d2d;
    }

    body:not(.cookie-set) .section-alt {
        background: #fff;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .checkbox-label {
        min-height: 44px;
        align-items: center;
    }

    .close-btn {
        min-width: 44px;
        min-height: 44px;
    }
}
