/* ==========================================================================
   AH ESTATES BUILDERS - Responsive Breakpoints & Device Adaptations
   Sialkot, Punjab, Pakistan
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Desktops & Laptops (Max Width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   Tablets & Medium Screens (Max Width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* Top bar adjustments */
    .top-bar-left, .top-bar-right {
        justify-content: center;
        width: 100%;
        gap: 0.85rem;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 0.35rem;
    }

    /* Navigation */
    .nav-menu, .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }

    /* Hero section */
    .hero-section {
        padding-top: 8.5rem;
        padding-bottom: 5rem;
        min-height: auto;
    }

    /* Search form */
    .search-box {
        padding: 1.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-form .form-group:last-child,
    .search-form .btn {
        grid-column: span 2;
        width: 100%;
    }

    /* Property Cards */
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* About section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrap img {
        height: 380px;
    }
    
    .about-floating-card {
        right: 1rem;
        bottom: -1rem;
    }

    /* Citi Housing Showcase */
    .citi-grid {
        grid-template-columns: 1fr;
    }
    
    .citi-content {
        padding: 2.5rem 2rem;
    }
    
    .citi-image-wrap {
        height: 340px;
        min-height: 340px;
    }

    /* Services & Testimonials */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }

    /* Ready CTA Box */
    .ready-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
    }
    
    .ready-cta-actions {
        width: 100%;
    }
    
    .ready-cta-actions .btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    /* Detail Page */
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-main {
        height: 380px;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   Mobile Devices (Max Width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    .section-sm {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Hero section */
    .hero-section {
        padding-top: 7.5rem;
        padding-bottom: 4.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-trust-bar {
        gap: 1rem;
        font-size: 0.8rem;
    }

    /* Search form */
    .search-bar-wrap {
        margin-top: -2rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-form .form-group:last-child,
    .search-form .btn {
        grid-column: span 1;
    }

    /* Property Cards */
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .card-media {
        height: 220px;
    }

    /* Services & Why choose us */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .about-points {
        grid-template-columns: 1fr;
    }
    
    .about-floating-card {
        position: static;
        margin-top: 1rem;
        max-width: 100%;
    }

    /* Detail Page */
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .detail-price {
        text-align: left;
    }
    
    .gallery-main {
        height: 280px;
    }
    
    .feature-check-list {
        grid-template-columns: 1fr;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrap {
        padding: 1.75rem 1.25rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }

    /* Floating WhatsApp */
    .floating-whatsapp {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    
    .whatsapp-btn-pulse {
        width: 52px;
        height: 52px;
        font-size: 1.65rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Small Mobile Screens (Max Width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .site-logo img {
        height: 38px;
        max-width: 220px;
    }
    
    .top-bar {
        display: none; /* Hide on very small screens to maximize viewport */
    }
    
    .hero-section {
        padding-top: 5.5rem;
    }
    
    .page-hero {
        padding-top: 6.5rem;
    }
    
    .citi-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .citi-actions .btn {
        width: 100%;
    }
    
    .invest-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .invest-cta-buttons .btn {
        width: 100%;
    }
}
