/* Tablet Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Services and Products */
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About Stats */
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Newsletter */
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"] {
        margin-bottom: 1rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Thank You Page */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .thank-you-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    /* Brand */
    .brand-text {
        font-size: 1.2rem;
    }
    
    .logo, .footer-logo {
        height: 30px;
    }
    
    /* Cards */
    .service-card,
    .product-category {
        padding: 1.5rem;
    }
    
    .service-card img,
    .product-category img {
        width: 60px;
        height: 60px;
    }
    
    /* About Stats */
    .stat h3 {
        font-size: 2rem;
    }
    
    /* Newsletter */
    .newsletter-form {
        padding: 0 1rem;
    }
    
    /* Contact Form */
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .social-links {
        flex-wrap: wrap;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .cookies-table {
        font-size: 0.8rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 100px 0 60px;
    }
    
    .thank-you-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

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

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .legal-page {
        padding: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
    
    .nav-link::after {
        height: 3px;
    }
    
    .service-card,
    .product-category {
        border: 2px solid #333;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    /* Note: This is a basic dark mode implementation */
    /* In a full implementation, you would override all colors */
    
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background-color: #2d2d2d;
    }
    
    .service-card,
    .product-category {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .contact-form input,
    .contact-form textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #555;
    }
}
