/*
* Luman Dreeki Solar Solutions - Responsive Stylesheet
* Media queries and responsive adjustments for the solar panel company website
*/

/* ===== Extra Large Devices (large desktops, less than 1400px) ===== */
@media (max-width: 1399.98px) {
    :root {
        --h1-size: 2.6rem;
        --h2-size: 2rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* ===== Large Devices (desktops, less than 1200px) ===== */
@media (max-width: 1199.98px) {
    :root {
        --h1-size: 2.4rem;
        --h2-size: 1.9rem;
        --h3-size: 1.4rem;
        --section-spacing: 4.5rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .main-nav li {
        margin-left: 20px;
    }
    
    .project-card {
        width: calc(50% - 20px);
    }
    
    .testimonial-item {
        width: calc(50% - 40px);
    }
    
    .mission-values-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-box {
        padding: 40px;
    }
}

/* ===== Medium Devices (tablets, less than 992px) ===== */
@media (max-width: 991.98px) {
    :root {
        --h1-size: 2.2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.3rem;
        --body-size: 0.95rem;
        --section-spacing: 4rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    header {
        padding: 12px 0;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-banner {
        padding: 4rem 0;
    }
    
    .project-card {
        width: calc(100% - 20px);
    }
    
    .testimonial-item {
        width: calc(100% - 40px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-content, 
    .service-content.reverse {
        direction: ltr;
        text-align: center;
    }
    
    .service-features li {
        justify-content: center;
        text-align: left;
    }
    
    .service-features li i {
        margin-top: 3px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 350px;
    }
    
    .article-cta {
        justify-content: center;
    }
}

/* ===== Small Devices (landscape phones, less than 768px) ===== */
@media (max-width: 767.98px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.7rem;
        --h3-size: 1.2rem;
        --section-spacing: 3.5rem;
    }
    
    .container {
        max-width: 540px;
    }
    
    /* Navigation changes */
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-grid,
    .services-grid,
    .benefits-grid,
    .expertise-grid,
    .team-grid,
    .certifications-grid,
    .projects-grid,
    .categories-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input[type="email"] {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .thank-you-cta {
        flex-direction: column;
    }
    
    .article-meta {
        justify-content: center;
    }
    
    .cookie-option label {
        margin-right: 0;
    }
    
    .contact-methods {
        margin: 1.5rem 0;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

/* ===== Extra Small Devices (portrait phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    :root {
        --h1-size: 1.8rem;
        --h2-size: 1.6rem;
        --h3-size: 1.1rem;
        --body-size: 0.9rem;
        --section-spacing: 3rem;
    }
    
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .logo {
        max-width: 130px;
    }
    
    .hero-banner {
        padding: 3rem 0;
    }
    
    .page-banner {
        padding: 3rem 0;
    }
    
    .service-card,
    .benefit-item,
    .expertise-card,
    .team-member,
    .certification-item,
    .category-card {
        padding: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-connections {
        text-align: center;
    }
    
    .contact-form-container h2,
    .contact-info h2 {
        text-align: center;
    }
    
    .contact-info h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .thank-you-icon {
        font-size: 3rem;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .service-features li {
        flex-direction: column;
        align-items: center;
    }
    
    .service-features li i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .process-timeline:after {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-number {
        position: relative;
        margin-bottom: 15px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .social-share-buttons {
        flex-wrap: wrap;
    }
    
    .article-meta {
        flex-direction: column;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-option label {
        margin-bottom: 5px;
    }
    
    .cookie-option p {
        margin-left: 0;
    }
}

/* ===== Specific Adjustments ===== */

/* For screens where the cookie options need more space */
@media (max-width: 480px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* For very small devices */
@media (max-width: 320px) {
    :root {
        --h1-size: 1.6rem;
        --h2-size: 1.4rem;
        --h3-size: 1rem;
    }
    
    .logo {
        max-width: 110px;
    }
}

/* For print */
@media print {
    .cookie-banner,
    .mobile-menu-toggle,
    .hero-cta,
    .newsletter,
    .cta-section,
    .social-links,
    .back-to-top,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    header {
        position: static;
        box-shadow: none;
        border-bottom: 1pt solid #ccc;
    }
}
