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

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        z-index: 999;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        padding: 15px 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Newsletter */
    .newsletter-content h2 {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .cookie-buttons {
        justify-content: center;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    /* Thank You Page */
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }

    .social-follow .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Legal Pages */
    .legal-content {
        padding: 0 10px;
    }

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

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

/* Mobile Styles */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .container {
        padding: 0 10px;
    }

    /* Header */
    .nav-brand h1 a {
        font-size: 1.5rem;
    }

    .nav-brand .tagline {
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon .icon-placeholder {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }

    /* Stats */
    .stat {
        padding: 1rem;
    }

    .stat h4 {
        font-size: 1.5rem;
    }

    /* Newsletter */
    .newsletter {
        padding: 40px 0;
    }

    .newsletter-content h2 {
        font-size: 1.8rem;
    }

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

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

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

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

    /* Cookie Banner */
    .cookie-banner {
        padding: 15px;
    }

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

    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* Cookie Modal */
    .cookie-modal-content {
        margin: 5% auto;
        width: 98%;
        padding: 15px;
        max-height: 90vh;
    }

    .close {
        right: 15px;
        top: 10px;
        font-size: 24px;
    }

    .cookie-category {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    /* Thank You Page */
    .thank-you-page {
        padding: 40px 0;
    }

    .success-checkmark {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .thank-you-details {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .social-btn {
        padding: 8px 16px;
        margin: 0.25rem;
        font-size: 0.9rem;
    }

    /* Legal Pages */
    .legal-page {
        padding: 20px 0;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .legal-content ul,
    .legal-content ol {
        margin-left: 1.5rem;
    }

    /* Tables */
    .cookies-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 6px;
        min-width: 100px;
    }

    /* Image Responsiveness */
    .hero-image img,
    .about-image img {
        max-height: 250px;
        object-fit: cover;
    }

    .contact-map img {
        max-height: 200px;
        object-fit: cover;
    }

    /* Switch Toggle - Smaller */
    .switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 320px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .newsletter-content h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .cookie-modal-content {
        padding: 10px;
    }

    .thank-you-details {
        padding: 1rem;
    }

    .legal-content {
        font-size: 0.85rem;
    }
}

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

    section {
        padding: 40px 0;
    }

    .nav-menu {
        top: 60px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon .icon-placeholder,
    .success-checkmark {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion for Accessibility */
@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,
    .map-placeholder {
        background-color: #34495e;
        border-color: #2c3e50;
        color: #bdc3c7;
    }
}

/* Print Responsive */
@media print and (max-width: 768px) {
    .container {
        padding: 0;
    }

    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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