/* ==========================================================================
   HOMEPAGE SPECIFIC REFINEMENTS - Theme Sync
   ========================================================================== */

/* --- Investment CTA Refinement --- */
.connect-section {
    background: #F4F6FF; /* Match Leadership Section Background */
    padding-bottom: 0 !important;
}

.connect-box-full {
    background: #F4F6FF; 
    width: 100%;
    padding: 60px 0;
    position: relative;
}

.container-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.connect-content {
    flex: 1;
}

.connect-box-full .section-title-lux {
    color: var(--primary-1) !important;
    margin-bottom: 40px; /* Increased for logic consistency */
}

.serving-highlights {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.serving-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-1);
    opacity: 0.8;
    font-weight: 700;
    white-space: nowrap;
}

.serving-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.serving-pills span {
    background: #fff;
    color: var(--primary-1) !important;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(14, 17, 38, 0.1);
}

.connect-action {
    flex: 0 0 380px;
}

.contact-card-lux {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(14, 17, 38, 0.12);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card-lux:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 100px rgba(14, 17, 38, 0.15);
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-medium);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-number-lux {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-1);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-card-lux:hover .icon-circle {
    background: #fff;
    color: var(--primary-1);
    border: 1px solid var(--primary-1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-card-lux:hover .contact-number-lux {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
}

.contact-number-lux .icon-circle {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.contact-number-lux svg {
    width: 20px;
    height: 20px;
}

.contact-subtext {
    font-size: 13px;
    color: var(--text-medium);
    margin: 0;
    opacity: 0.6;
}

@media (max-width: 1200px) {
    .container-connect {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .serving-highlights {
        flex-direction: column;
        align-items: center;
    }
    .serving-pills {
        justify-content: center;
    }
    .connect-action {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .connect-box-full {
        padding: 36px 0 20px !important; /* Tight bottom — contact card is the last element */
    }
    .container-connect {
        gap: 24px !important; /* Reduce gap between content and card when stacked */
    }
    .contact-card-lux {
        padding: 30px 20px;
    }
    .contact-number-lux {
        font-size: 20px;
    }
}

/* ==========================================================================
   Hero Section – Mobile Overrides
   ========================================================================== */

/* Tablet & below */
@media (max-width: 768px) {
    /* Hero Section */
    section[style*="height: 100vh"] {
        min-height: 520px !important;
    }

    /* Hero content outer wrapper */
    section[style*="height: 100vh"] > div[style*="z-index: 3"] {
        padding: 0 20px !important;
        max-width: 100% !important;
    }

    /* Hero CTA button */
    section[style*="height: 100vh"] .lux-btn {
        font-size: 14px !important;
        padding: 12px 26px !important;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    section[style*="height: 100vh"] {
        min-height: 480px !important;
    }

    section[style*="height: 100vh"] > div[style*="z-index: 3"] {
        padding: 0 16px !important;
    }
}

/* ==========================================================================
   About Split Section – Tablet & Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px): already stacks to 1 column via style.css,
   but we need to fix the image height and accent positioning */
@media (max-width: 992px) {
    /* Reduce section vertical padding */
    .about-split {
        gap: 50px;
    }

    /* Main image: reduce from 600px → 400px */
    .about-img-main {
        height: 400px !important;
    }

    /* Accent image: pull it in so it doesn't overflow */
    .about-img-accent {
        width: 180px !important;
        height: 240px !important;
        bottom: -30px !important;
        right: 10px !important;
        border-width: 6px !important;
    }

    /* Leave room for the overflowing accent image */
    .about-image-stack {
        padding-bottom: 40px;
    }

    /* Inner 2x2 feature grid → single column on tablet */
    .about-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    /* Tighter section padding on mobile */
    .section-padding {
        padding: 60px 0;
    }

    /* Main image further reduced */
    .about-img-main {
        height: 280px !important;
        border-radius: 20px !important;
    }

    /* Hide accent image on small phones – it overlaps too much */
    .about-img-accent {
        display: none;
    }

    /* No extra bottom padding needed when accent is hidden */
    .about-image-stack {
        padding-bottom: 0 !important;
        margin-bottom: 30px !important;
    }

    /* Inner 2x2 feature grid → single column on mobile */
    .about-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Adjust heading on mobile */
    .about-content .section-title-lux {
        font-size: clamp(22px, 6vw, 32px) !important;
    }

    /* Description paragraph */
    .about-content > p {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   Rajmandir In Numbers – Stats Section Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px) — already 2-col via style.css, just refine spacing */
@media (max-width: 992px) {
    .stats-section {
        padding: 70px 0;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-item {
        padding: 30px 16px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .stats-section {
        padding: 50px 0;
    }

    /* Keep 2-col on mobile for a compact look */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
        max-width: 100%;
    }

    /* Stretch the last item to full width if there's an odd number (5 items) */
    .stats-grid .stat-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .stat-item {
        padding: 24px 12px;
        border-radius: 14px;
    }

    /* Section heading adjustments */
    .stats-section .section-title-lux {
        font-size: clamp(22px, 6vw, 30px) !important;
    }

    .stats-section > .container > div {
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   Featured Properties Section – Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px): 2-column grid */
@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .property-image-wrapper {
        height: 220px;
    }

    .property-details {
        padding: 20px 22px;
    }
}

/* Mobile (≤640px): single column */
@media (max-width: 640px) {
    .property-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-top: 24px;
    }

    .property-image-wrapper {
        height: 200px;
    }

    .property-details {
        padding: 18px 20px;
    }

    .property-details h3 {
        font-size: 17px !important;
    }

    .property-price {
        font-size: 18px !important;
    }

    /* Section header: stack title and "Explore all" link vertically */
    #properties .section-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 30px !important;
    }
}

/* ==========================================================================
   Locations We Serve – Cities Grid Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px): override the 1-col rule in style.css with 2-col */
@media (max-width: 992px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        margin-top: 30px;
    }

    .city-overlay {
        padding: 24px;
    }

    .city-name {
        font-size: 22px;
    }
}

/* Mobile (≤600px): keep 2-col, just reduce card proportions */
@media (max-width: 600px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin-top: 24px;
    }

    /* Slightly less tall cards on mobile */
    .city-card {
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }

    .city-overlay {
        padding: 16px;
    }

    .city-name {
        font-size: 18px;
        font-weight: 700;
    }
}

/* ==========================================================================
   Why Rajmandir – Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px): why-grid already stacks to 1-col via style.css */
@media (max-width: 992px) {
    .why-rajmandir {
        padding: 70px 0;
    }

    .why-grid {
        gap: 40px;
    }

    .feature-list {
        gap: 20px;
    }

    .feature-box {
        padding: 28px;
    }

    /* Description paragraph */
    .why-content > p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .why-rajmandir {
        padding: 50px 0;
    }

    /* Feature 2x2 → single column on small phones */
    .feature-list {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .feature-box {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .feat-icon {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .feat-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .feat-desc {
        font-size: 13px;
    }

    .why-content .section-title-lux {
        font-size: clamp(20px, 6vw, 28px) !important;
    }
}

/* ==========================================================================
   Cinematic Banner – "More than just a property company" Mobile Overrides
   ========================================================================== */

/* Tablet (≤992px) */
@media (max-width: 992px) {
    .cinematic-banner {
        height: 480px;
        border-radius: 28px;
    }

    .banner-text {
        font-size: 17px;
        margin-bottom: 32px;
    }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
    .cinematic-banner {
        height: auto;              /* Let content dictate height */
        min-height: 380px;
        border-radius: 18px;
        align-items: center;
    }

    .banner-content {
        padding: 40px 20px;       /* Add vertical breathing room */
        max-width: 100%;
    }

    .banner-title {
        letter-spacing: -0.5px;   /* Loosen tight tracking on small screens */
        margin-bottom: 16px;
    }

    .banner-text {
        font-size: 15px !important;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    /* CTA button */
    .banner-actions .lux-btn {
        font-size: 14px !important;
        padding: 12px 24px !important;
    }
}

/* ==========================================================================
   Speak With Our Experts – Connect Section Mobile Overrides
   ========================================================================== */

/* Tablet (≤768px): tighten spacing */
@media (max-width: 768px) {
    .connect-box-full {
        padding: 50px 0;
    }

    /* Title margin too generous on tablet */
    .connect-box-full .section-title-lux {
        margin-bottom: 24px !important;
        font-size: clamp(22px, 5vw, 32px) !important;
    }

    /* Allow serving-label to wrap on narrow screens */
    .serving-label {
        white-space: normal;
        text-align: center;
    }

    /* Full-width contact card at this breakpoint */
    .connect-action {
        max-width: 100% !important;
        width: 100%;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .connect-box-full {
        padding: 36px 0;
    }

    .contact-card-lux {
        padding: 24px 16px !important;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(14, 17, 38, 0.1) !important; /* Reduce heavy shadow on mobile */
    }

    /* Phone number readable on tiny screens */
    .contact-number-lux {
        font-size: 18px !important;
        gap: 8px;
    }

    .contact-number-lux .icon-circle {
        width: 38px;
        height: 38px;
    }

    .contact-subtext {
        font-size: 12px;
    }

    /* Serving pills full-width wrapping */
    .serving-pills {
        gap: 6px;
    }

    .serving-pills span {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Footer Top Padding – Mobile Fix
   The site-footer has padding: 60px 0 30px which creates a large gap
   between the Speak With Our Experts section and the footer content.
   ========================================================================== */
@media (max-width: 768px) {
    .site-footer {
        padding-top: 36px !important;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding-top: 28px !important;
    }
}
