/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Sections */
    .company-info,
    .services,
    .testimonials,
    .service-areas,
    .contact {
        padding: 60px 0;
    }
    
    /* Cards */
    .info-card,
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Areas List */
    .areas-list {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .info-card,
    .service-card,
    .testimonial-card,
    .contact-form {
        padding: 1rem;
    }
    
    .cookie-content {
        padding: 0.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal {
        display: none;
    }
    
    .hero {
        background: none;
        color: #333;
    }
    
    .hero-content h1 {
        color: #333;
    }
    
    a {
        color: #333;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid #333;
        background: none;
        color: #333;
    }
}

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

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background-color: #1a202c;
        color: white;
    }
    
    .cookie-category {
        border-bottom-color: #2d3748;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #2d3748;
        color: white;
        border-color: #4a5568;
    }
    
    .contact-form {
        background-color: #1a202c;
        color: white;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .nav-menu {
        flex-direction: row;
        height: auto;
        position: relative;
        width: auto;
        left: 0;
        box-shadow: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}
