/* ========================================
   Sreevaas Smart Infra Developers - Responsive Styles
   ======================================== */

/* ---- Extra Large Devices (1200px and up) ---- */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ---- Large Devices (less than 1200px) ---- */
@media (max-width: 1199.98px) {
    .hero-section h1,
    .hero-slide h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
}

/* ---- Medium Devices (less than 992px) ---- */
@media (max-width: 991.98px) {
    .hero-section,
    .hero-slider {
        padding: 80px 0;
    }
    
    .hero-section h1,
    .hero-slide h1 {
        font-size: 2.2rem;
    }
    
    .page-banner h1 {
        font-size: 2.2rem;
    }
    
    .stat-item h3 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .process-step {
        margin-bottom: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        text-align: center;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-link {
        margin: 0 5px;
    }
}

/* ---- Small Devices (less than 768px) ---- */
@media (max-width: 767.98px) {
    .hero-section,
    .hero-slider {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-section h1,
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p,
    .hero-slide p {
        font-size: 1rem;
    }
    
    .stat-item {
        margin-bottom: 20px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .page-banner {
        min-height: 300px;
    }
    
    .page-banner h1 {
        font-size: 1.7rem;
    }
    
    .service-card,
    .why-choose-card,
    .package-card,
    .testimonial-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .blog-card .blog-img {
        height: 180px;
    }
    
    .blog-card img {
        height: 180px;
    }
    
    .calculator-form {
        padding: 25px;
    }
    
    .perk-card {
        padding: 20px 15px;
    }
    
    .referral-step {
        padding: 20px 15px;
    }
    
    .referral-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .overview-img img {
        height: 300px;
    }
}

/* ---- Extra Small Devices (less than 576px) ---- */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .stat-item img {
        width: 60px;
    }
    
    .stat-item h3 {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .service-card img {
        width: 60px;
    }
    
    .room-card {
        height: 200px;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-card img {
        width: 60px;
        height: 60px;
    }
    
    .google-review-card {
        padding: 20px;
    }
    
    .faq-section .accordion-button {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .faq-section .accordion-body {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        max-width: 100%;
    }
    
    .location-link {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
}

/* ---- Mobile Navigation ---- */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 10px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse {
        padding: 20px;
        margin-top: 10px;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        border-top: none;
    }
    
    .dropdown-item {
        padding: 8px 0;
    }
    
    .btn-primary.ms-lg-3 {
        margin-top: 15px;
        width: 100%;
    }
}

/* ---- Print Styles ---- */
@media print {
    .header,
    .top-bar,
    .footer,
    .back-to-top,
    .btn-primary,
    .modal {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
        padding: 20px 0;
    }
    
    .hero-section h1,
    .hero-section p {
        color: var(--black) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: var(--black);
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ---- Home Gallery Responsive ---- */
@media (max-width: 991.98px) {
    .home-gallery-slide {
        flex: 0 0 calc(33.333% - 11px);
        min-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .home-gallery-slide {
        flex: 0 0 calc(50% - 8px);
        min-width: 160px;
    }
    .home-gallery-lb-prev,
    .home-gallery-lb-next {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .home-gallery-lb-prev { left: 10px; }
    .home-gallery-lb-next { right: 10px; }
}

@media (max-width: 575.98px) {
    .home-gallery-slide {
        flex: 0 0 75%;
        min-width: 200px;
    }
    .home-gallery-track {
        padding: 0 20px;
        gap: 12px;
    }
}
