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

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

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

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

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

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

    .urgent-contact {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0 2rem;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* 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.1rem;
    }

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

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

    /* Sections */
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .page-header {
        padding: 60px 0 30px;
    }

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

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

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

    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .thank-you-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Grids */
    .services-grid,
    .products-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .next-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Cards */
    .service-card,
    .product-card,
    .review-card {
        padding: 1.5rem;
    }

    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
    }

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

    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }

    /* Contact Form */
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkbox-label {
        align-items: flex-start;
    }

    /* Contact Items */
    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem;
    }

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

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

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

    /* Tables */
    .cookies-table {
        font-size: 0.9rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }

    /* Legal Content */
    .legal-document {
        padding: 0 10px;
    }

    .legal-document h2 {
        font-size: 1.3rem;
    }

    .legal-document h3 {
        font-size: 1.1rem;
    }

    /* Thank You Page */
    .thank-you-icon {
        width: 60px;
        height: 60px;
    }

    .thank-you-icon i {
        font-size: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    .thank-you-contact {
        padding: 1.5rem;
    }

    /* Map */
    .map-placeholder {
        padding: 2rem 1rem;
    }

    .map-placeholder img {
        width: 60px;
        height: 60px;
    }
}

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

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

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

    .service-card,
    .product-card,
    .review-card {
        padding: 1rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-item h4 {
        font-size: 2rem;
    }

    .thank-you h1 {
        font-size: 1.75rem;
    }

    .thank-you-message {
        font-size: 1rem;
    }

    .step {
        padding: 1rem;
    }

    .related-item {
        padding: 1.5rem;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .legal-document {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .legal-footer {
        padding: 1.5rem;
    }

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

    .cookies-table th,
    .cookies-table td {
        padding: 6px 4px;
    }
}

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

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

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

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

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .hero-buttons,
    .thank-you-actions,
    .social-links {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0;
    }

    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 20px 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }

    .service-card,
    .product-card,
    .review-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .legal-document {
        font-size: 11pt;
    }

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

    .btn {
        display: none !important;
    }
}

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

/* 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;
    }

    .service-card:hover,
    .product-card:hover,
    .review-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-card,
    .product-card,
    .review-card,
    .stat-item {
        background-color: #374151;
        color: #f9fafb;
    }

    .service-card h3,
    .product-card h3,
    .review-card h4,
    .stat-item h4 {
        color: #f9fafb;
    }

    .service-card p,
    .product-card p,
    .review-text,
    .stat-item p {
        color: #d1d5db;
    }
}
