/* 
   Aarksol Renewable Pvt. Ltd. - Responsive Stylesheet
*/

/* Large Devices (less than 1200px) */
@media only screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About page */
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .certifications-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Medium Devices (less than 992px) */
@media only screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    section { padding: 60px 0; }
    .section-header h2 { font-size: 32px; }
    .hero-section { padding: 120px 0 50px; }
    .hero-content { flex-direction: column; gap: 20px; }
    .hero-text { padding-right: 0; margin-bottom: 20px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 780px; width: 100%; }
    .about-content,
    .technology-content { flex-direction: column; gap: 30px; }
    .about-text,
    .technology-text { order: 2; }
    .about-image,
    .technology-image { order: 1; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    /* Tablet navbar behavior: collapse nav, show toggler, overlay */
    @media only screen and (max-width: 991px) {
      .header-content { gap: 12px; }
      .main-nav { display: none; }
      .main-nav.active { display: block; }
      .mobile-menu-toggle { display: flex; }
      .header-buttons { display: none; }
    }
    
    /* Mobile offcanvas nav similar to Bootstrap */
    @media only screen and (max-width: 767px) {
      .main-nav {
        position: fixed;
        top: 0; left: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        background-color: var(--white);
        transition: left 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding-top: 90px;
        z-index: 999;
      }
      .main-nav.active { left: 0; }
      .main-nav ul { flex-direction: column; padding: 20px; gap: 5px; }
      .main-nav ul li { margin: 0; }
      .main-nav ul li a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--medium-gray); }
      .mobile-menu-toggle { display: block; }
    }
    /* .footer-content { grid-template-columns: repeat(2, 1fr); } */
    /* About page - tablet adjustments */
    .about-hero { padding: 140px 0 60px; }
    .about-hero-content { flex-direction: column; gap: 30px; }
    .about-hero-text h1 { font-size: 42px; text-align: center; }
    .about-hero-text p { text-align: center; }
    .hero-actions { justify-content: center; }
    .goals-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    /* About page sections */
    .about-company-content { flex-direction: column; gap: 30px; }
    .about-company-text { text-align: center; }
    .company-stats { justify-content: center; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .certifications-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { left: 26px; }
    .step-number { width: 54px; height: 54px; font-size: 20px; }
}

/* Small Devices (less than 768px) */
@media only screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        transition: left 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding-top: 90px;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 5px;
    }
    
    .main-nav ul li {
        margin: 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    /* About page - phone adjustments */
    .about-hero-text h1 { font-size: 36px; }
    .goals-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .member-image img { height: 260px; }
    .about-company-content { gap: 20px; }
    .values-grid { grid-template-columns: 1fr; }
    .certifications-grid { grid-template-columns: 1fr; }
    .process-timeline::before { left: 22px; }
    .step-number { width: 48px; height: 48px; font-size: 18px; }
}

/* Extra Small Devices (less than 576px) */
@media only screen and (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* .footer-content {
        grid-template-columns: 1fr;
    } */
    
    /* About page - XS adjustments */
    .stat-item h3 { font-size: 30px; }
    .stat-item p { font-size: 12px; }
}