/* Solar Charge - Responsive CSS */
/* Mobile-first responsive design for solar charging kiosks website */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for better performance */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
    
    /* Button spacing */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Team member images */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Process section circles */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem !important;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0 !important;
    }
    
    /* FAQ cards */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable scroll animations on small devices */
    .sal-animate {
        animation: none !important;
    }
    
    .hero-section {
        padding-top: 110px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    .bg-primary.rounded-circle {
        width: 55px !important;
        height: 55px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
    
    /* Contact form layout */
    .contact-info {
        margin-top: 1rem;
    }
    
    /* Services cards */
    .services .col-md-6 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Team grid adjustments */
    .team .col-lg-4:nth-child(6) {
        margin-top: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    /* Larger spacing for desktop */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding-top: 120px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI / Retina Display Optimizations */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    /* Sharper borders and shadows for high DPI */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Dark Mode Support */

/* Reduced Motion Preferences */
@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 hover effects that rely on transitions */
    .card:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Print Media Queries */
@media print {
    /* Hide non-essential elements */
    .navbar,
    footer,
    .btn,
    #gallery,
    .sal-animate {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .hero-section {
        background: none !important;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    section {
        padding: 1rem 0 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    /* High contrast mode adjustments */
    :root {
        --primary-color: #ff6f00;
        --text-dark: #000000;
        --text-muted: #333333;
        --border-color: #000000;
    }
    
    .card {
        border: 2px solid var(--border-color) !important;
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
}

/* Focus visible improvements for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem !important;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 319.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}

/* Large Desktop Optimization (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increase section padding for very large screens */
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        padding-top: 140px;
    }
    
    /* Larger images for high resolution displays */
    .card-img-top {
        height: 250px;
    }
    
    .rounded-circle {
        width: 180px !important;
        height: 180px !important;
    }
}

.hero-section h1 {
    padding-top: 175px;
}