/* Mobile First Responsive Design */

/* Small devices (phones, 480px and up) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn {
        width: 100%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: space-around;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Modal */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 0 15px;
    }
    
    /* Thank You Page */
    .thank-you-content {
        margin: 0 15px;
        padding: 2rem 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .modal,
    .footer {
        display: none !important;
    }
    
    .legal-page,
    .thank-you-page {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .btn {
        display: none;
    }
    
    a {
        text-decoration: underline;
    }
    
    .legal-content,
    .thank-you-content {
        box-shadow: none;
        background-color: white;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }
    
    .btn-primary {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-outline {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .review-card,
    .contact-form-wrapper {
        border: 2px solid #000;
    }
    
    .hero {
        background: #000;
        color: #fff;
    }
}

/* 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) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .header {
        background-color: #2d3748;
    }
    
    .service-card,
    .review-card,
    .contact-form-wrapper,
    .thank-you-content {
        color: #e2e8f0;
    }
    
    .services,
    .reviews {
        background-color: #2d3748;
    }
    
    .about {
        background-color: #1a202c;
    }
    
    .contact {
        background-color: #2d3748;
    }
    
    .legal-page,
    .thank-you-page {
        background-color: #1a202c;
    }
    
    .legal-content {
        background-color: #2d3748;
        padding: 2rem;
        border-radius: 10px;
    }
    
    input,
    textarea {
        color: #e2e8f0;
        border-color: #6b7280;
    }
    
    input:focus,
    textarea:focus {
        border-color: #3b82f6;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 14px 32px;
        font-size: 1.1rem;
    }
    
    .nav-links a {
        padding: 10px 0;
        display: block;
        color: #fff;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 16px;
        font-size: 1.1rem;
    }
}

/* Accessibility improvements for screen readers */
@media (prefers-reduced-transparency: reduce) {
    .hero-bg-image {
        opacity: 0.1;
    }
    
    .modal {
        background-color: rgba(0,0,0,0.9);
    }
}
