/* EcoStep - Responsive Design CSS */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile for better performance */
    .blob {
        animation: none !important;
    }
    
    /* Cards spacing */
    .feature-card,
    .service-card,
    .review-card,
    .blog-card {
        margin-bottom: 1rem;
    }
    
    /* Team members */
    .team-member .member-photo img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number .badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-form .btn {
        width: 100%;
    }
    
    /* Gallery adjustments */
    #gallery .row {
        --bs-gutter-x: 0.5rem;
    }
    
    /* Footer spacing */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects on mobile */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .team-member:hover .member-photo img,
    .process-step:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    /* Mobile-specific adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .breadcrumb-image {
        width: 30px;
        height: 30px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    .hero-cta .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Team members */
    .team-member .member-photo img {
        width: 130px;
        height: 130px;
    }
    
    /* Process steps - 2 columns */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery - better spacing */
    #gallery .row {
        --bs-gutter-x: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Service cards - 2 columns */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps - maintain spacing */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full hero height */
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for desktop */
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    }
    
    /* Service cards hover enhancement */
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    /* Team member hover effects */
    .team-member:hover .member-photo img {
        transform: scale(1.1);
    }
    
    /* Process animation */
    .process-step:hover {
        transform: translateY(-8px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    /* Hero enhancements */
    .hero-decoration .blob-1 {
        width: 400px;
        height: 400px;
    }
    
    .hero-decoration .blob-2 {
        width: 250px;
        height: 250px;
    }
    
    /* Team photos */
    .team-member .member-photo img {
        width: 180px;
        height: 180px;
    }
    
    /* Process steps larger badges */
    .step-number .badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Maximum typography sizes */
    .display-4 {
        font-size: 3rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
}

/* Print media queries */
@media print {
    /* Hide navigation and decorative elements */
    .navbar,
    .hero-decoration,
    .breadcrumb-section,
    #footer {
        display: none !important;
    }
    
    /* Adjust sections for print */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    /* Print-friendly colors */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        margin-bottom: 1rem;
    }
    
    /* Remove hover states */
    *:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Ensure text is readable */
    .text-primary,
    .text-secondary,
    .text-muted {
        color: #000 !important;
    }
    
    /* Button adjustments */
    .btn {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .hero-cta {
        margin-top: 1rem;
    }
}

/* Dark mode support (if user prefers dark scheme) */

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove floating animations */
    .blob {
        animation: none !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn:hover,
    .team-member:hover .member-photo img {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --primary-light: #333333;
        --primary-dark: #000000;
        --shadow: 0 0 0 2px #000000;
        --shadow-lg: 0 0 0 3px #000000;
    }
    
    .btn {
        border-width: 2px !important;
    }
    
    .card {
        border: 2px solid #000000 !important;
    }
    
    .navbar-nav .nav-link::after {
        height: 3px;
    }
} 