/* 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);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    /* Hero Section */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.4rem;
    }

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

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

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

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

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Emergency Section */
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ Grid */
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

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

    /* Thanks Page */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .emergency-card {
        flex-direction: column;
        text-align: center;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

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

    /* Hero Section */
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

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

    /* Cards and Sections */
    .service-card,
    .project-card,
    .review-card,
    .faq-item {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

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

    /* Cookie Banner */
    .cookie-content {
        padding: 1rem;
    }

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

    .cookie-text i {
        font-size: 1.5rem;
    }

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

    .btn-cookie {
        width: 100%;
        padding: 12px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-emergency {
        font-size: 1rem;
        padding: 12px 24px;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Thanks Page */
    .thanks-content h1 {
        font-size: 2rem;
    }

    .thanks-message {
        font-size: 1rem;
    }

    .request-summary,
    .next-steps {
        padding: 1.5rem;
    }

    .emergency-card {
        padding: 1.5rem;
    }

    .emergency-card i {
        font-size: 2rem;
    }

    .emergency-phone {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

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

    .service-card,
    .project-card,
    .review-card,
    .faq-item,
    .contact-form {
        padding: 1rem;
    }

    .nav-container {
        padding: 1rem 10px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-logo i {
        font-size: 1.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

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

    .services-grid,
    .projects-grid,
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .thanks-actions,
    .emergency-info {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: white;
        color: #000;
    }

    .hero-content {
        color: #000;
    }

    .hero-text h1,
    .hero-text h2,
    .hero-text p {
        color: #000;
    }

    .section-header,
    .contact-content,
    .footer-content {
        break-inside: avoid;
    }

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

    .btn {
        border: 1px solid #000;
        background: white;
        color: #000;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff4500;
        --secondary-color: #ffa500;
        --accent-color: #228b22;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .service-card,
    .project-card,
    .review-card,
    .faq-item {
        border: 2px solid var(--border-color);
    }
}

/* Dark Mode (respecting user preference but not implementing full dark theme as requested) */
@media (prefers-color-scheme: dark) {
    /* Minimal adjustments for better readability without full dark theme */
    .hero {
        background: linear-gradient(135deg, #cc5429, #c5741a, #3e8e41);
    }
}
