/* 
   Salai St. Xavier's Village Development Trust
   Responsive Stylesheet (responsive.css)
*/

/* --------------------------------------------------
   1. LAPTOPS & MEDIUM DESKTOPS (< 1200px)
   -------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .founder-img {
        height: 420px;
    }
    
    .gallery-item {
        width: 33.333%; /* 3 columns on medium/laptop screens */
    }
}

/* --------------------------------------------------
   2. TABLETS & SMALL LAPTOPS (< 992px)
   -------------------------------------------------- */
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 70px; /* Adjusted offset for mobile navbar */
    }

    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    /* Navigation Adjustments */
    #mainNavbar {
        padding: 10px 0;
        background-color: var(--primary-color) !important;
    }
    .navbar-collapse {
        background-color: var(--primary-dark);
        border-radius: 8px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    #mainNavbar .nav-link {
        padding: 10px 0;
        text-align: center;
    }
    #mainNavbar .nav-link::after {
        display: none; /* Hide hover line effect on mobile */
    }
    #mainNavbar .btn {
        margin-top: 10px;
        width: 100%;
        display: block;
    }

    /* Hero Banner */
    .hero-slider-section {
        height: 60vh;
        min-height: 480px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .hero-slider-section .swiper-button-prev,
    .hero-slider-section .swiper-button-next {
        display: none; /* Hide arrows on tablets and mobile to save space */
    }

    /* About Section */
    .about-image-wrapper {
        margin-bottom: 40px;
        padding-right: 0;
        padding-bottom: 0;
        text-align: center;
    }
    .about-image-wrapper::after {
        display: none;
    }
    .about-img {
        max-width: 550px;
    }

    /* Founder Section */
    .founder-img {
        height: 380px;
        object-position: center top;
    }
    
    /* Impact Counters */
    .counter-box {
        margin-bottom: 30px;
    }
    
    /* Gallery */
    .gallery-item {
        width: 50%; /* 2 columns on tablets */
    }
    
    /* Lightbox controls */
    .lightbox-prev, .lightbox-next {
        font-size: 2rem;
    }
    .lightbox-prev { left: -30px; }
    .lightbox-next { right: -30px; }
    
    /* Contact Section */
    .contact-card-info {
        margin-bottom: 30px;
        padding: 30px;
    }
    .contact-form-card {
        padding: 30px;
    }
}

/* --------------------------------------------------
   3. MOBILE LANDSCAPE & PHONES (< 768px)
   -------------------------------------------------- */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .founder-img {
        height: 320px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    .testimonial-quote-icon {
        top: 20px;
        right: 20px;
        font-size: 2.2rem;
    }
    
    /* Floating Buttons positioning */
    .floating-whatsapp-btn {
        bottom: 25px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    .back-to-top-btn {
        bottom: 145px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .floating-call-btn {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* --------------------------------------------------
   4. EXTRA SMALL PHONES (< 576px)
   -------------------------------------------------- */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.65rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badge {
        padding: 4px 12px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .hero-content-wrapper {
        text-align: center;
    }
    .hero-content-wrapper .d-flex {
        justify-content: center;
        flex-direction: column;
        gap: 10px !important;
    }
    .hero-content-wrapper .btn {
        width: 100%;
    }

    .objective-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .founder-card {
        text-align: center;
    }
    .founder-quote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--accent-color);
        padding-top: 15px;
    }
    .founder-details {
        padding: 20px;
    }
    
    .gallery-item {
        width: 100%; /* 1 column on small phones */
    }
    
    .custom-lightbox {
        padding: 10px;
    }
    .lightbox-close {
        top: -30px;
        right: 5px;
        font-size: 1.6rem;
    }
    .lightbox-prev, .lightbox-next {
        display: none; /* Hide navigation arrows on small screens, rely on swipe if possible or just manual clicks */
    }
    
    .contact-form-card {
        padding: 20px;
    }

    /* Navbar brand mobile optimizations to prevent logo and hamburger wrapping */
    .brand-logo {
        height: 38px;
    }
    .brand-title {
        font-size: 0.95rem;
    }
    .brand-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    .brand-tagline {
        font-size: 0.5rem;
    }
    
    /* Stat counters mobile adjustments to prevent overlap */
    .counter-number {
        font-size: 2rem;
    }
    .counter-icon {
        font-size: 1.85rem;
        margin-bottom: 10px;
    }
    .counter-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    @media (max-width: 360px) {
        .brand-logo {
            height: 34px;
        }
        .brand-title {
            font-size: 0.85rem;
        }
        .brand-subtitle {
            font-size: 0.5rem;
            letter-spacing: 0.2px;
        }
        .brand-tagline {
            font-size: 0.45rem;
        }
        .counter-number {
            font-size: 1.65rem;
        }
        .counter-title {
            font-size: 0.75rem;
            letter-spacing: 0.5px;
        }
    }
}
