/* Responsive CSS - Solar Panel Agency */

/* Large Tablets and Small Desktops */
@media (max-width: 1199px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
    
    .service-card .price {
        font-size: 1.5rem;
    }
    
    .price-tag {
        font-size: 1.75rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    /* Hero Section */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    /* Timeline Mobile Layout */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
    }
    
    .timeline-item::before {
        left: 20px !important;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Services Grid */
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    /* Typography */
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Navbar */
    .navbar-brand {
    font-size: 12px !important;
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    #hero {
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    /* About Features */
    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-box i {
        font-size: 2.5rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card .price {
        font-size: 1.4rem;
    }
    
    /* Price Cards */
    .price-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
    
    .price-tag {
        font-size: 1.5rem;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding: 1.5rem;
        padding-left: 60px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    /* Blog Cards */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Disable Swiper autoplay on mobile */
    .swiper-autoplay-disabled {
        --swiper-autoplay: 0 !important;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Section Padding */
    section {
        padding: 3rem 0;
    }
    
    /* Hero */
    #hero h1 {
        font-size: 1.75rem;
    }
    
    #hero h2 {
        font-size: 1.1rem;
    }
    
    /* Headings */
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    /* Cards */
    .feature-box,
    .service-card,
    .price-card,
    .career-card,
    .info-card,
    .case-card {
        padding: 1.25rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-info p {
        font-size: 1rem;
    }
    
    /* Review Quote */
    .review-card::before {
        font-size: 3rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    /* Hero */
    #hero h1 {
        font-size: 1.5rem;
    }
    
    /* Service Prices */
    .service-card .price {
        font-size: 1.25rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 10px !important;
        width: 16px;
        height: 16px;
    }
}

/* Orientation: Landscape on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        height: auto;
    }
    
    #hero h1 {
        font-size: 1.75rem;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Sharper borders and shadows */
    .service-card,
    .price-card,
    .feature-box {
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    header,
    #hero,
    #gallery,
    .swiper-pagination,
    footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    }
    
    /* Break pages between sections */
    section {
        page-break-after: always;
    }
}

/* Accessibility: High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FF5722;
        --secondary-color: #0D47A1;
        --accent-color: #FFC107;
    }
    
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #E0E0E0;
    }
    
    header {
        background: rgba(26, 26, 46, 0.95);
    }
    
    .navbar-nav .nav-link {
    font-size: 10px !important;
        color: #E0E0E0;
    }
    
    .feature-box,
    .service-card,
    .price-card,
    .career-card,
    .info-card,
    .case-card,
    .blog-card,
    .contact-form {
        background: #1F1F1F;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .form-control,
    .form-select {
        background: #2A2A2A;
        border-color: #3A3A3A;
        color: #E0E0E0;
    }
    
    .accordion-button {
        background: #1F1F1F;
        color: #E0E0E0;
    }
    
    .accordion-body {
        background: #2A2A2A;
        color: #E0E0E0;
    }
} 