/* Solar Lighting Template - Responsive CSS */

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

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .display-1 { font-size: 2.5rem; }
    .display-2 { font-size: 2.25rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    
    .h1 { font-size: 1.75rem; }
    .h2 { font-size: 1.5rem; }
    .h3 { font-size: 1.25rem; }
    
    /* Navbar brand size reduction */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-shape {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Section padding reduction */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding-left: 2rem;
    }
    
    /* Process steps - stack vertically */
    .process-steps .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    /* Disable animations on mobile to respect reduced motion */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Footer adjustments */
    #footer .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 { font-size: 1.875rem; }
    .h1 { font-size: 1.875rem; }
    .h2 { font-size: 1.625rem; }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Card grid adjustments */
    .services-grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Disable some animations on small screens */
    @media (prefers-reduced-motion: no-preference) {
        [data-sal] {
            animation-duration: 0.3s;
        }
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Services grid - 2 columns on tablets */
    .services-grid .col-lg-4:nth-child(2n+1) {
        clear: left;
    }
    
    /* Timeline improvements */
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    /* Process steps - better spacing */
    .process-steps .col-lg-2 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full hero height */
    #hero {
        min-height: 100vh;
    }
    
    /* Optimal card image height */
    .card-img-top {
        height: 200px;
    }
    
    /* Process steps - horizontal layout */
    .process-steps .col-lg-2 {
        margin-bottom: 0;
    }
    
    /* Timeline full functionality */
    .timeline-item {
        padding-left: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full typography scale */
    .display-1 { font-size: 4rem; }
    .display-2 { font-size: 3.5rem; }
    .display-3 { font-size: 3rem; }
    .display-4 { font-size: 2.25rem; }
    
    /* Larger navbar brand */
    .navbar-brand {
        font-size: 1.625rem;
    }
    
    /* Enhanced hero section */
    #hero {
        min-height: 100vh;
    }
    
    .hero-shape {
        display: block;
    }
    
    /* Larger cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Enhanced button sizes */
    .btn-lg {
        padding: 1.125rem 2.25rem;
        font-size: 1.25rem;
    }
    
    /* Full section padding */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    /* Container max width adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Typography enhancements */
    .display-1 { font-size: 4.5rem; }
    .display-2 { font-size: 4rem; }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Larger cards for better proportions */
    .card-img-top {
        height: 240px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero height on landscape mobile */
    #hero {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    /* Compact navbar */
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .hero-shape {
        display: none;
    }
    
    /* Adjust typography for print */
    body {
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    /* Section spacing for print */
    section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Card adjustments for print */
    .card {
        border: 1px solid #000;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    /* Typography adjustments for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Remove background colors for print */
    .bg-light,
    .bg-primary,
    .bg-secondary {
        background: transparent !important;
        color: #000 !important;
    }
}

/* High DPI/Retina display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp borders and shadows */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
    
    /* Enhanced shadows for retina */
    .shadow-sm {
        box-shadow: 0 0.5px 1px 0 rgba(0, 0, 0, 0.05);
    }
}

/* Accessibility - 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 transform effects */
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dark mode preferences */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch device adjustments */
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
}

/* Container breakpoint adjustments */
@media (min-width: 576px) {
    .container-sm { max-width: 540px; }
}

@media (min-width: 768px) {
    .container-md { max-width: 720px; }
}

@media (min-width: 992px) {
    .container-lg { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container-xl { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container-xxl { max-width: 1320px; }
} 