/* EcoTrail Rental - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.95rem;
    }
    
    h2 {
        font-size: 1.61rem;
    }
    
    h3 {
        font-size: 1.43rem;
    }
    
    h4 {
        font-size: 1.14rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 277px;
}
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.28rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-position,
    .info-card,
    .blog-card {
        margin-bottom: 1.70rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Team Members */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.32rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery [class*="col-"] {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        justify-content: center;
    }
    
    /* Additional Page Elements */
    .equipment-category,
    .sustainability-feature,
    .tech-spec,
    .training-program,
    .support-service,
    .planning-phase,
    .execution-strategy,
    .quality-measure,
    .risk-category,
    .monitoring-system {
        margin-bottom: 1.63rem;
        padding: 1.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.28rem;
    padding-top: 275px;
}
    
    /* Cards */
    .service-card img,
    .case-study-card img,
    .blog-card img {
        height: 180px;
    }
    
    /* Contact Info */
    .contact-info {
        text-align: center;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.55rem;
    padding-top: 275px;
}
    
    /* Navbar */
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    /* Cards */
    .service-card,
    .pricing-card,
    .case-study-card,
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer */
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.85rem;
    padding-top: 275px;
}
    
    /* Team Members */
    .team-member img {
        width: 95px;
        height: 95px;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.44rem;
    }
    
    /* Cards equal height adjustment */
    .row [class*="col-"] .feature-card,
    .row [class*="col-"] .service-card,
    .row [class*="col-"] .pricing-card,
    .row [class*="col-"] .review-card,
    .row [class*="col-"] .case-study-card,
    .row [class*="col-"] .career-position,
    .row [class*="col-"] .info-card,
    .row [class*="col-"] .blog-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 275px;
}
    
    /* Container max-width adjustment */
    .container {
        max-width: 1140px;
    }
    
    /* Team Members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.61rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Cards with enhanced spacing */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-position,
    .info-card,
    .blog-card {
        padding: 2.5rem;
    }
}

/* Landscape Phone Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 275px;
}
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.34rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-position:hover,
    .info-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .team-member:hover,
    .process-step:hover,
    .timeline-item:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* 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;
    }
}

/* Print Responsive */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .breadcrumb,
    footer {
        display: none;
    }
    
    /* Adjust layout for print */
    .hero-section {
        page-break-inside: avoid;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        color: #000;
    padding-top: 275px;
}
    
    /* Ensure cards fit on page */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-position,
    .info-card,
    .blog-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #c3c3c3;
        margin-bottom: 1rem;
    }
    
    /* Adjust colors for print */
    .text-white {
        color: #000 !important;
    }
    
    .bg-dark {
        background: #fff !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove animations for users who prefer reduced motion */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-position,
    .info-card,
    .blog-card,
    .team-member,
    .process-step,
    .timeline-item {
        transition: none;
    }
    
    .gallery img {
        transition: none;
    }
    
    .fade-in-up {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .career-position,
    .info-card,
    .blog-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background: #212121;
        border-color: #1d1d1d;
    }
}

/* Dark Mode Support */

/* Flexible Grid Adjustments */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 1rem;
    }
}

/* Responsive Typography Scale */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 576px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .mt-5 {
        margin-top: 2rem;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Service and blog card images responsive */
.service-card img,
.case-study-card img,
.blog-card img {
    width: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .service-card img,
    .case-study-card img,
    .blog-card img {
        height: 150px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .service-card img,
    .case-study-card img,
    .blog-card img {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .service-card img,
    .case-study-card img,
    .blog-card img {
        height: 200px;
    }
}

/* Responsive Contact Info */
@media (max-width: 767.98px) {
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-info i {
        font-size: 1.57rem;
    }
}

/* Responsive FAQ */
@media (max-width: 575.98px) {
    .accordion-button {
        font-size: 1.01rem;
        padding: 0.75rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Responsive Gallery */
@media (max-width: 575.98px) {
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* Responsive Form Elements */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-check-label {
        font-size: 0.98rem;
    }
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
}

/* Responsive Utilities */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
}

.d-mobile-block {
    display: block;
}

@media (min-width: 768px) {
    .d-mobile-block {
        display: none;
    }
} 