/* ========================================
   EcoRide Courier - Responsive CSS
   ======================================== */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
        padding-top: 100px;
    }
    
    #hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Process numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: 15px;
    }
    
    .timeline::before {
        left: 7px;
    }
    
    .timeline-marker {
        left: -15px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    /* Team images */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form */
    .contact-form .form-control {
        padding: 10px 12px;
    }
    
    /* Statistics numbers */
    .stat-number, .impact-number {
        font-size: 2rem;
    }
    
    /* Gallery spacing */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 8px;
    }
    
    /* Disable hero decorative shapes */
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
    
    /* Disable scroll animations on mobile */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 80px;
    }
    
    /* Process numbers */
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }
    
    /* Team images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Statistics numbers */
    .stat-number, .impact-number {
        font-size: 2.5rem;
    }
    
    /* Reduce hero shapes opacity */
    .hero-shape-1,
    .hero-shape-2 {
        opacity: 0.05;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 60px;
    }
    
    /* Services cards layout */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Team layout */
    #team .row {
        justify-content: center;
    }
    
    /* Process numbers */
    .process-number {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }
    
    /* Statistics numbers */
    .stat-number, .impact-number {
        font-size: 3rem;
    }
    
    /* Contact section layout */
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 40px;
    }
    
    /* Services layout optimization */
    .services-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Statistics numbers */
    .stat-number, .impact-number {
        font-size: 3.5rem;
    }
    
    /* Timeline content */
    .timeline-content {
        max-width: 400px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    .display-4 {
        font-size: 2.75rem;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Statistics numbers */
    .stat-number, .impact-number {
        font-size: 4rem;
    }
    
    /* Timeline content */
    .timeline-content {
        max-width: 450px;
    }
    
    /* Container max width */
    .container {
        max-width: 1200px;
    }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--neutral-gray-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Services section responsive grid */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    #services .card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Features section responsive layout */
@media (max-width: 991.98px) {
    #features .row {
        flex-direction: column-reverse;
    }
    
    #features img {
        margin-bottom: 2rem;
    }
}

/* Team section responsive layout */
@media (max-width: 767.98px) {
    #team .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Pricing section responsive */
@media (max-width: 991.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* FAQ section responsive */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Contact section responsive */
@media (max-width: 991.98px) {
    #contacts .col-lg-8 {
        margin-bottom: 2rem;
    }
}

/* Gallery responsive */
@media (max-width: 767.98px) {
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Additional page sections responsive */
@media (max-width: 767.98px) {
    .breadcrumb-section {
        margin-top: 70px;
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    header,
    footer,
    .btn,
    .social-links,
    [data-sal] {
        display: none !important;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Adjust spacing */
    section {
        padding: 1rem 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Remove background colors and shadows */
    .card,
    .timeline-content {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    /* Ensure images fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* High contrast mode responsive adjustments */
@media (prefers-contrast: high) {
    @media (max-width: 767.98px) {
        .card {
            border: 3px solid var(--neutral-gray-dark);
        }
        
        .btn {
            border-width: 3px;
        }
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
} 