/* Responsive CSS for Environmental Impact Consulting Website */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section h2 {
        font-size: 26px;
    }
    
    .py-5 {
        padding: 4rem 0;
    }
}

/* Large Devices (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .container {
        max-width: 960px;
    }
    
    .col-lg-2-4 {
        width: 20%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 50%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
    }
}

/* Medium Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 16px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 0.4rem 0.8rem !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 26px;
    }
    
    .hero-section h2 {
        font-size: 22px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .feature-icon,
    .feature-icon-lg {
        font-size: 2rem;
    }
    
    .service-card,
    .price-card,
    .team-card {
        margin-bottom: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Small Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1.56rem;
    }
    
    .navbar-brand {
        font-size: 16px !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        margin: 0.2rem 0;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 24px;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 20px;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 16px;
        margin-bottom: 1.56rem;
    }
    
    .py-5 {
        padding: 2.5rem 0;
    }
    
    .feature-card,
    .service-card,
    .case-study-card,
    .price-card,
    .team-card,
    .review-card,
    .blog-card {
        margin-bottom: 1.58rem;
        padding: 1.5rem;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 180px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 14px;
    }
    
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin: 1.5rem 0;
    }
    
    .gallery-image {
        height: 200px;
        margin-bottom: 1rem;
    }
}

/* Extra Small Devices (below 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .col-lg-2-4,
    .col-md-6,
    .col-lg-4,
    .col-lg-3 {
        width: 100%;
        margin-bottom: 1.60rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 16px !important;
    }
    
    .navbar-toggler {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 14px;
        margin: 0.2rem 0;
        padding: 0.5rem !important;
        border-radius: 5px;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        text-align: center;
        padding: 1.5rem 0;
        margin-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 22px;
        margin-bottom: 0.96rem;
    }
    
    .hero-section h2 {
        font-size: 18px;
        margin-bottom: 0.97rem;
    }
    
    .hero-section p {
        font-size: 14px;
        margin-bottom: 1.73rem;
    }
    
    .hero-section img {
        height: 250px;
        margin-top: 1rem;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    .feature-card,
    .service-card,
    .case-study-card,
    .price-card,
    .team-card,
    .review-card,
    .blog-card,
    .method-card,
    .regulation-card,
    .expertise-card,
    .project-card,
    .quality-card,
    .tech-card,
    .lab-card,
    .monitoring-card,
    .mitigation-card,
    .training-card,
    .info-card,
    .career-card {
        margin-bottom: 1.67rem;
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 160px;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .feature-icon,
    .feature-icon-lg,
    .contact-icon,
    .info-icon {
        font-size: 2rem;
        margin-bottom: 0.90rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0 10px;
    }
    
    .contact-form .form-control {
        padding: 0.7rem;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 14px;
        width: 100%;
    }
    
    .timeline {
        padding: 1rem 0;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
        margin: 1rem 0;
    }
    
    .timeline-year {
        font-size: 12px;
        padding: 0.3rem 0.8rem;
    }
    
    .gallery-image {
        height: 180px;
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 14px;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 14px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .footer h5 {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .footer p,
    .footer a {
        font-size: 14px;
    }
    
    .breadcrumb-nav {
        margin-top: 60px;
        padding: 0.5rem 0;
    }
    
    .breadcrumb-icon {
        height: 20px;
        width: 20px;
    }
    
    .space-section {
        min-height: calc(100vh - 150px);
        padding: 80px 0 30px;
    }
}

/* Extra Small Devices - Portrait (below 400px) */
@media (max-width: 399px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 20px;
    }
    
    .hero-section h2 {
        font-size: 16px;
    }
    
    .hero-section p {
        font-size: 13px;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
    
    .feature-card,
    .service-card,
    .case-study-card,
    .price-card,
    .team-card,
    .review-card,
    .blog-card,
    .method-card,
    .regulation-card,
    .expertise-card,
    .project-card,
    .quality-card,
    .tech-card,
    .lab-card,
    .monitoring-card,
    .mitigation-card,
    .training-card,
    .info-card,
    .career-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 0.8rem;
        margin: 0 5px;
    }
    
    .navbar-brand {
        font-size: 14px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 13px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    h4 {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav {
        display: none;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: none;
        color: black;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    .feature-card,
    .service-card,
    .case-study-card,
    .price-card,
    .team-card,
    .review-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #c2b7b7;
        page-break-inside: avoid;
    }
    
    .gallery-image,
    .service-image,
    .case-image,
    .blog-image {
        max-height: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .feature-icon-lg,
    .contact-icon,
    .info-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 20px;
    }
    
    .hero-section h2 {
        font-size: 18px;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently not implementing dark mode as per requirements */
    /* This media query is here for future implementation if needed */
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn-primary:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-green);
        outline-offset: 2px;
    }
} 