/* Tablet Styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: none;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
        color: var(--primary-color);
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services and Features Grids */
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Info Grid */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Header */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav ul li {
        border-bottom: 1px solid #eee;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav ul li a {
        display: block;
        padding: 15px 20px;
        text-decoration: none;
        color: var(--text-color);
        transition: background-color 0.3s ease;
        font-size: 0.9rem;
    }
    
    .nav ul li a:hover {
        background-color: #f8f9fa;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Sections Padding */
    .services,
    .about,
    .why-choose-us,
    .reviews,
    .contact {
        padding: 60px 0;
    }
    
    .newsletter {
        padding: 60px 0;
    }
    
    /* Cards and Components */
    .service-card,
    .review-card,
    .info-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        gap: 15px;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 120px 0 80px;
    }
    
    .legal-section {
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 120px 0 80px;
    }
    
    .additional-info {
        padding: 60px 0;
    }
    
    /* Images */
    .hero-image img,
    .about-image img {
        max-width: 100%;
        height: auto;
    }
    
    .service-icon img,
    .feature-icon img,
    .thank-you-icon img {
        width: 50px;
        height: 50px;
    }
    
    /* Newsletter Form */
    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.9rem;
    }
    
    /* Form Elements */
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }
}

/* Very Small Mobile Devices */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .service-card,
    .review-card,
    .info-card {
        padding: 15px;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        gap: 10px;
    }
    
    .cookie-banner {
        padding: 10px;
    }
    
    .cookie-content p {
        font-size: 0.8rem;
    }
    
    .cookie-buttons .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .sections {
        padding: 60px 0;
    }
    
    .cookie-banner {
        position: relative;
        margin-bottom: 20px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-placeholder,
    .icon-placeholder {
        border-width: 1px;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .image-placeholder,
    .icon-placeholder {
        background-color: #495057;
        color: #adb5bd;
        border-color: #6c757d;
    }
}

/* Print Optimizations */
@media print {
    .hero-buttons,
    .newsletter-form,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid,
    .features-grid,
    .reviews-grid,
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    
    .legal-section {
        break-inside: avoid;
    }
}
