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

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 0;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

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

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

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
    }

    h1 { font-size: var(--font-size-h1); }
    h2 { font-size: var(--font-size-h2); }
    h3 { font-size: var(--font-size-h3); }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-menu.active {
        top: 100%;
        transform: translateY(0);
    }

    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero {
        padding: 3rem 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

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

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    /* Search Section */
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }

    .search-form select,
    .search-form input {
        min-width: auto;
    }

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

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

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

    /* About */
    .about-content {
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .stat h3 {
        font-size: 2rem;
    }

    /* Pricing */
    .pricing-grid {
        gap: 2rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .price-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .review-card {
        padding: 1.5rem;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    /* Contact */
    .contact-content {
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-item {
        gap: 1rem;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
    }

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

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

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

    .cookie-content p {
        min-width: auto;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cookie Categories */
    .cookie-category {
        padding: 0.75rem;
    }

    .cookie-category label {
        font-size: 0.875rem;
    }

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

    .thank-you-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .newsletter-benefits {
        padding: 1.5rem;
    }

    /* Legal Pages */
    .legal-content {
        padding: 0 1rem;
    }

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

    .legal-content h2 {
        font-size: 1.25rem;
    }

    /* Image Placeholders */
    .image-placeholder {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .image-placeholder i {
        font-size: 2rem;
    }

    .image-placeholder p {
        font-size: 0.875rem;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Cards */
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
}

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

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

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

    .section {
        padding: 2.5rem 0;
    }

    .service-card,
    .pricing-card,
    .contact-form {
        padding: 1.5rem;
    }

    .review-card {
        padding: 1rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .newsletter-benefits {
        padding: 1rem;
    }

    .newsletter-benefits li {
        font-size: 0.875rem;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat h3 {
        font-size: 1.75rem;
    }

    .thank-you-page {
        padding: 3rem 0;
    }

    .success-icon i {
        font-size: 3rem;
    }

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

    .back-to-home {
        margin-top: 2rem;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .thank-you-page {
        min-height: 50vh;
        padding: 3rem 0;
    }

    .nav-menu.active {
        max-height: 60vh;
        overflow-y: auto;
    }
}

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

/* 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) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --border-color: #333333;
    }

    /* Override colors only if explicitly requested */
    .dark-mode {
        background-color: var(--background-color);
        color: var(--text-color);
    }
}

/* Print Styles */
@media print {
    .nav-toggle,
    .cookie-banner,
    .modal,
    .btn,
    .newsletter,
    .social-links {
        display: none !important;
    }

    .header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #ccc;
    }

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

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .service-card,
    .pricing-card,
    .review-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .image-placeholder {
        border: 1px solid #ccc;
        background: transparent;
    }

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

    .footer {
        background: transparent;
        color: #000;
        border-top: 1px solid #ccc;
    }
}
