/* Responsive Styles for Solar Carports */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.80rem;
    }
    
    h2 {
        font-size: 1.52rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.26rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #fefefe;
        padding-top: 1rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.66rem;
    }
    
    .btn-lg {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 150px;
    }
    
    /* Team member images */
    .team-member-card img,
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
    
    /* Forms */
    .form-control {
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Contact form adjustments */
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery grid */
    .gallery-item {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navigation */
    .navbar-collapse {
        margin-top: 0.57rem;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding: 110px 0 70px;
    }
    
    .display-4 {
        font-size: 2.39rem;
    }
    
    /* Cards in grid */
    .card-img-top {
        height: 180px;
    }
    
    /* Team images */
    .team-member-card img,
    .card-img-top.rounded-circle {
        width: 175px;
        height: 175px;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.53rem;
    }
    
    .navbar-brand {
        font-size: 1.65rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images - full size */
    .team-member-card img,
    .card-img-top.rounded-circle {
        width: 200px;
        height: 200px;
    }
    
    /* Grid adjustments */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 995px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    /* Re-enable animations for desktop */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-1px);
    }
    
    /* Grid restoration */
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full animations and effects */
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    
    /* Optimal spacing for large screens */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hero section */
    .hero-section {
        padding: 140px 0 100px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section {
        padding: 160px 0 120px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .card {
        border: 1px solid #f1dcdd;
        page-break-inside: avoid;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove 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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .navbar {
        border-bottom: 2px solid #000;
    }
}

/* Dark mode support (if needed in future) */

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

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

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

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

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