/* Responsive Adjustments for Hero Homes Landing Page */

/* Tablet and smaller screens */
@media (max-width: 991px) {

    /* General Typography & Spacing */
    .about-title,
    .difference-title,
    .config-title,
    .amenities-title,
    .floor-plan-title,
    .gallery-title,
    .section-title,
    .cta-title,
    .faq-title {
        font-size: 32px;
    }

    /* Hero Section */
    .hero-section {
        padding: 180px 0 40px 0;
        min-height: 70vh;
    }

    .hero-heading {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    /* Amenities */
    .amenities-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Custom Header Mobile Sticky */
    .custom-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }

    /* Fix Mobile & Tablet Header Layout */
    .header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background-color: #fff;
        border-radius: 0 0 20px 20px;
        padding: 10px 15px !important;
        flex-wrap: wrap;
    }

    .header-logo-box {
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        margin-bottom: 0 !important;
    }

    .header-logo-box .logo {
        max-height: 60px !important;
    }

    .header-nav-box {
        width: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .navbar-toggler {
        margin: 0 !important;
        border: none !important;
        padding: 4px 0 !important;
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        width: 2em !important;
        height: 2em !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .mobile-offcanvas {
        width: 100% !important;
    }

    .collapse.navbar-collapse {
        display: none !important;
    }

    /* Hide floating sidebar & hero form on mobile and tablets */
    .floating-sidebar,
    .hero-section .form-card-wrapper {
        display: none !important;
    }

    /* Prevent horizontal scrolling on sections */
    section {
        overflow: hidden;
    }

    /* General Typography - Smaller on mobile */
    .about-title,
    .difference-title,
    .config-title,
    .amenities-title,
    .floor-plan-title,
    .gallery-title,
    .faq-title,
    .section-title,
    .cta-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .section-subtitle,
    .difference-subtitle,
    .about-subtitle {
        font-size: 0.8rem;
    }

    .config-price-value {
        font-size: 1.85rem !important;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto !important;
        padding: 50px 0 50px !important;
    }

    .hero-subheading {
        font-size: 0.85rem;
        margin-bottom: 0.25rem !important;
    }

    .hero-heading {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 0.25rem !important;
    }

    .hero-title {
        font-size: 1.15rem !important;
        line-height: 1.35;
        margin-bottom: 0.75rem !important;
    }

    .ardicon-hero-logo {
        top: 85px !important;
        right: 15px !important;
    }

    .ardicon-hero-logo img {
        max-height: 70px !important;
    }

    /* Reduce large gaps on mobile */
    .hero-section .mb-5 {
        margin-bottom: 1.25rem !important;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-btn-primary,
    .hero-secondary-btn {
        width: calc(50% - 0.5rem);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        /* Managed by flex now */
        font-size: 1rem !important;
        height: 54px !important;
    }

    .hero-rera-box {
        width: calc(50% - 0.5rem);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 0.5rem !important;
        text-align: left;
        height: 54px !important;
    }

    .hero-rera-box .hero-rera-icon {
        display: none !important;
    }

    .hero-rera-box .hero-rera-label {
        font-size: 0.7rem;
        text-align: left;
    }

    .hero-rera-box .hero-rera-num {
        font-size: 0.75rem;
    }

    /* Reset Footer RERA box */
    .footer-rera-box {
        width: auto !important;
        height: auto !important;
        padding: 0.65rem 1.25rem !important;
    }

    .footer-rera-box .hero-rera-icon {
        display: inline-block !important;
    }

    /* Hide Floating Sidebar on mobile */
    .floating-sidebar {
        display: none !important;
    }

    /* Location & Lifestyle text side-by-side */
    .hero-location-container {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    .hero-location-text {
        font-size: 1rem !important;
        line-height: 1.4;
    }

    .hero-location-icon {
        font-size: 2rem !important;
        margin-right: 0.70rem !important;
    }

    .hero-location-container .border-start {
        border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
        padding-left: 0.5rem !important;
    }

    /* Highlights Section */
    .highlight-item {
        min-width: 140px;
    }

    .highlight-title {
        font-size: 1.1rem;
    }

    .highlight-subtitle {
        font-size: 0.85rem;
    }

    /* About Section */
    .about-features-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem 0.5rem !important;
    }

    .about-feature-item {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column;
        gap: 0.75rem !important;
        background: #ffffff;
        padding: 1.5rem 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .about-feature-icon {
        font-size: 2.2rem !important;
    }

    .about-feature-text {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
        font-weight: 600;
    }

    .about-feature-item::after {
        display: none !important;
        /* Hide dividers on mobile */
    }

    /* All Main Sections Padding */
    .about-section,
    .difference-section,
    .config-section,
    .floor-plan-section,
    .amenities-section,
    .gallery-section,
    .location-section,
    .trust-section,
    .builder-section,
    .faq-section,
    .cta-section {
        padding: 50px 0 !important;
    }

    /* Infra Table Scroll */
    .infra-table-wrapper {
        overflow-x: auto !important;
    }

    .infra-table {
        min-width: 700px;
    }

    /* Trust Section */
    .trust-cards-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .trust-card {
        padding: 1.5rem 0.5rem !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .trust-icon {
        font-size: 2.2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .trust-card strong {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
    }

    .about-image {
        margin-top: 1rem;
    }

    /* Builder Profile Section */
    .builder-content {
        text-align: center;
    }

    /* CTA Section Buttons */
    .cta-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center;
    }

    .cta-buttons .custom-btn {
        width: auto !important;
        flex: 1;
        font-size: 0.95rem !important;
        padding: 12px 5px !important;
        text-align: center;
        white-space: nowrap;
    }

    .about-btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    /* Reduce large gaps on mobile globally */
    .mb-5 {
        margin-bottom: 1rem !important;
    }

    /* Amenities Section */

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenity-gallery .gallery-col {
        flex-direction: column;
    }

    /* Floor Plans Section */

    .floor-plan-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Other Sections (Gallery, FAQ, CTA, etc.) */

    /* Testimonial Section */
    .testi-card {
        padding: 1.5rem;
    }

    /* Footer */
    footer .container {
        padding-bottom: 20px;
    }
}

/* Small Mobile Screens */
@media (max-width: 575px) {
    .hero-heading {
        font-size: 3rem !important;
        line-height: 1.25;
    }

    .hero-title {
        font-size: 1.15rem !important;
    }

    .about-title,
    .difference-title,
    .config-title,
    .amenities-title,
    .floor-plan-title,
    .gallery-title,
    .faq-title,
    .section-title,
    .cta-title {
        font-size: 34px !important;
        line-height: 1.3 !important;
    }

    .difference-card {
        padding: 15px !important;
    }

    .difference-card-title {
        font-size: 1rem !important;
    }

    .difference-card-desc {
        font-size: 0.75rem !important;
    }

    .highlights-section {
        box-shadow: none !important;
        border-bottom: none !important;
        padding: 1.5rem 0 0.5rem 0 !important;
        background: transparent !important;
    }

    .highlights-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .highlight-item {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        background: #ffffff;
        padding: 1.25rem 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        gap: 0.5rem;
    }

    .highlight-divider {
        display: none !important;
    }

    .hero-rera-floating {
        position: static !important;
        margin-bottom: 20px !important;
        padding: 8px 12px !important;
        max-width: 75%;
    }
    
    .hero-rera-floating-icon {
        font-size: 1.6rem !important;
        margin-right: 10px !important;
    }

    .hero-rera-floating-label {
        font-size: 0.7rem !important;
    }

    .hero-rera-floating-num {
        font-size: 0.85rem !important;
    }
}