/* Solar Carport Installation Company Template - Responsive CSS */
/* Mobile-First Responsive Design */

/* ========== MOBILE STYLES (Default) ========== */
/* Base styles are mobile-first in main.css */

/* ========== TABLET STYLES (768px and up) ========== */
@media (min-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 0 2rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team photos */
    .team-photo {
        width: 180px;
        height: 180px;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact form */
    .contact-form {
        padding: 2.5rem;
    }
}

/* ========== DESKTOP STYLES (992px and up) ========== */
@media (min-width: 992px) {
    /* Typography adjustments */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.75rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 0 3rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Team photos */
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* FAQ layout */
    .faq-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 3rem;
    }
}

/* ========== LARGE DESKTOP STYLES (1200px and up) ========== */
@media (min-width: 1200px) {
    /* Typography adjustments */
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 0 4rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Section padding */
    .section {
        padding: 6rem 0;
    }
}

/* ========== EXTRA LARGE DESKTOP STYLES (1400px and up) ========== */
@media (min-width: 1400px) {
    /* Container max-width */
    .container {
        max-width: 1320px;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ========== MOBILE SPECIFIC STYLES ========== */
@media (max-width: 767px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Section padding */
    .section {
        padding: 3rem 0;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery items */
    .gallery-item img {
        height: 200px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 2rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* FAQ items */
    .faq-item {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Decorative shapes - hide on mobile */
    .decorative-shape {
        display: none;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    /* Hide unnecessary elements */
    .navbar,
    .btn,
    .decorative-shape,
    .hero-section::before {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    }
    
    /* Adjust typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Adjust layout for print */
    .section {
        padding: 2rem 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* ========== ACCESSIBILITY & MOTION ========== */
/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations */
    .card:hover,
    .service-card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none;
    }
    
    /* Reduce transitions */
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    /* Disable smooth scrolling */
    html {
        scroll-behavior: auto;
    }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
    /* Increase contrast */
    :root {
        --shadow-color: rgba(0, 0, 0, 0.3);
        --border-color: #333;
    }
    
    /* Adjust card borders */
    .card {
        border: 2px solid var(--border-color);
    }
    
    /* Adjust form controls */
    .form-control {
        border: 2px solid var(--border-color);
    }
}

/* ========== DARK MODE SUPPORT ========== */

/* ========== UTILITY RESPONSIVE CLASSES ========== */
/* Show/hide on different screen sizes */
.d-mobile-only {
    display: block;
}

.d-tablet-up {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-only {
        display: none;
    }
    
    .d-tablet-up {
        display: block;
    }
}

/* Responsive spacing */
.p-responsive {
    padding: 1rem;
}

.m-responsive {
    margin: 1rem;
}

@media (min-width: 768px) {
    .p-responsive {
        padding: 2rem;
    }
    
    .m-responsive {
        margin: 2rem;
    }
}

@media (min-width: 1200px) {
    .p-responsive {
        padding: 3rem;
    }
    
    .m-responsive {
        margin: 3rem;
    }
}

/* ========== CONTAINER ADJUSTMENTS ========== */
/* Ensure proper container behavior */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========== NAVIGATION RESPONSIVE ========== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 20px var(--shadow-color);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
} 

.hero-content {
    padding-top: 275px;
}