/* ===================================
   Responsive Design - Mobile First Approach
   =================================== */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--background-light);
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }
    
    .nav-phone {
        margin-top: 20px;
        text-align: center;
    }
    
    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .emergency-banner {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* About Section */
    .features-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Sections Padding */
    .services-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 0;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    /* Logo */
    .logo {
        font-size: 1.2rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Feature Items */
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
    }
    
    /* Contact Items */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 25px 20px;
    }
    
    /* Emergency Banner */
    .emergency-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    /* Forms */
    .contact-form-wrapper {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .emergency-banner {
        margin-top: 15px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .mobile-menu-toggle,
    .hero-buttons,
    .emergency-banner,
    .btn,
    .contact-form,
    .main-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .section-header h2 {
        color: #000;
        page-break-after: avoid;
    }
    
    .service-card,
    .testimonial-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if desired */
    /* This is optional and can be customized based on preferences */
}