/* Solar Food Trucks - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Typography adjustments */
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    
    .display-4 { font-size: 2rem; }
    .lead { font-size: 1rem; }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand { font-size: 1.25rem; }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #hero .d-flex {
        flex-direction: column;
    }
    
    /* Hero shapes smaller on mobile */
    .hero-shapes .shape-1 {
        width: 100px;
        height: 100px;
        top: 5%;
        right: 5%;
    }
    
    .hero-shapes .shape-2 {
        width: 80px;
        height: 80px;
        bottom: 10%;
        left: 5%;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Services grid */
    #services .col-md-6:not(:last-child) {
        margin-bottom: 1rem;
    }
    
    /* Features section */
    #features .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #features .flex-shrink-0 {
        margin-bottom: 1rem;
    }
    
    /* Price plan cards */
    #priceplan .card {
        margin-bottom: 1rem;
    }
    
    /* Team members */
    #team .col-md-6:not(:last-child) {
        margin-bottom: 2rem;
    }
    
    /* Contact form */
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery grid */
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* FAQ cards */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .process-step::after {
        display: none;
    }
    
    /* Additional pages adjustments */
    .breadcrumb {
        text-align: center;
        justify-content: center;
    }
    
    /* Timeline cards */
    .timeline-badge {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    /* Statistics display */
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero .btn {
        width: auto;
        margin-right: 0.5rem;
    }
    
    /* Services grid - 2 columns */
    #services .row .col-md-6:nth-child(odd) {
        padding-right: 0.5rem;
    }
    
    #services .row .col-md-6:nth-child(even) {
        padding-left: 0.5rem;
    }
    
    /* Team grid - 2 columns */
    #team .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact info grid */
    #contacts .row:last-child .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
    }
    
    /* Services grid - 2 columns */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
    
    /* Price plan cards */
    #priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Team grid */
    #team .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Process steps connection */
    .process-step::after {
        right: -25%;
        width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max-width adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Services 3-column layout */
    #services .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Price plan 3-column layout */
    #priceplan .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Team layout adjustments */
    #team .col-lg-4:nth-child(n+4) {
        margin-top: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section enhancements */
    #hero {
        min-height: 100vh;
    }
    
    .hero-shapes .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shapes .shape-2 {
        width: 200px;
        height: 200px;
    }
    
    /* Typography enhancements */
    h1, .h1 { font-size: 3rem; }
    .display-4 { font-size: 3.5rem; }
    
    /* Card hover effects enhanced */
    .card:hover {
        transform: translateY(-8px);
    }
    
    /* Process steps with better connections */
    .process-step::after {
        right: -50%;
        width: 100%;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Larger hero shapes */
    .hero-shapes .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-shapes .shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        display: none;
    }
}

/* Print media adjustments */
@media print {
    /* Remove backgrounds for better printing */
    #hero,
    .bg-light,
    .bg-primary,
    .bg-secondary {
        background: white !important;
        color: black !important;
    }
    
    /* Adjust margins */
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Hide decorative elements */
    .hero-shapes,
    .shadow-sm,
    .shadow-md,
    .shadow-lg {
        display: none !important;
    }
    
    /* Ensure text is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    /* Page breaks */
    .card,
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    .card,
    .btn,
    img,
    .hero-shapes *,
    .process-step::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove hover effects */
    .card:hover,
    #team img:hover,
    #gallery img:hover,
    #priceplan .card:hover {
        transform: none !important;
        filter: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid black;
    }
    
    .btn-primary {
        background-color: black;
        border-color: black;
        color: white;
    }
    
    .text-muted {
        color: black !important;
    }
    
    #hero {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support */