/* Responsive CSS for Eco-Friendly Office Cleaning Template */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No scroll animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    /* Section padding */
    .section {
        padding: 2rem 0;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-card, .team-card, .price-card {
        padding: 1.5rem;
    }
    
    /* Timeline mobile - stacked */
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 2rem;
    }
    
    .timeline-item::before {
        left: -37.5px;
        right: auto;
    }
    
    /* Process steps mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    /* Price cards mobile */
    .price-card.featured {
        transform: none;
        border-width: 2px;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No scroll animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        width: 85%;
    }
    
    .contact-form {
        padding: 1.8rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .timeline-item {
        width: 48%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Enable hover effects on tablets */
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Full timeline layout */
    .timeline-item {
        width: 45%;
    }
    
    /* Full hover and animation effects */
    .card:hover {
        transform: translateY(-2px);
    }
    
    .btn-eco:hover {
        transform: translateY(-1px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Enhanced spacing for large screens */
    .section {
        padding: 5rem 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Print styles */
@media print {
    .hero-section::before,
    .card:hover,
    .btn-eco:hover {
        transform: none !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .btn-eco {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    .btn-eco:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn-eco, .btn-eco-outline {
        min-height: 44px;
        padding: 0.8rem 2.5rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Already handled in main.css but reinforcing here */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before {
        display: none;
    }
} 

.hero-content {
    padding-top: 150px;
}