/*
 * Elementor Compatibility Stylesheet - 3M Estates Clean Theme v5
 * Ensures native Elementor Free builder support without body prefix clutter
 */

/* 1. HERO SECTION & ABOUT SECTION (55% Left Col / 40% Right Col Split on Desktop) */
.hero-section,
.about-section,
.elementor-section-full_width {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.hero-section .hero-grid-row,
.hero-grid-row,
.about-section .about-grid-row,
.about-grid-row,
.hero-section .elementor-container > .e-con,
.about-section .elementor-container > .e-con {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 40px !important;
    box-sizing: border-box !important;
}

/* Force Left Column EXACTLY 55% Width */
.hero-section .hero-left-col,
.hero-left-col,
.about-section .about-left-col,
.about-left-col,
.hero-section .elementor-container > .e-con > .e-con:first-child,
.about-section .elementor-container > .e-con > .e-con:first-child {
    width: 55% !important;
    max-width: 55% !important;
    flex: 0 0 55% !important;
    box-sizing: border-box !important;
}

/* Force Right Column EXACTLY 40% Width */
.hero-section .hero-right-col,
.hero-right-col,
.hero-lead-form-card,
.about-section .about-right-col,
.about-right-col,
.about-image-card,
.hero-section .elementor-container > .e-con > .e-con:last-child,
.about-section .elementor-container > .e-con > .e-con:last-child {
    width: 40% !important;
    max-width: 40% !important;
    flex: 0 0 40% !important;
    box-sizing: border-box !important;
}

/* Hero Stat Row - Horizontal display below CTAs */
.hero-stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
    align-items: center !important;
    width: 100% !important;
}

.hero-stat-item {
    flex: 0 0 auto !important;
    min-width: 110px !important;
}

/* 2. FOUR-CARD HORIZONTAL GRIDS (Towers, Amenities, Floor Plans, Specs) */
.towers-grid-row,
.amenities-grid-row,
.floorplans-grid-row,
.specs-grid-row,
.cards-grid-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.tower-card,
.amenity-card,
.floorplan-card,
.spec-card,
.towers-grid-row > .e-con,
.amenities-grid-row > .e-con,
.floorplans-grid-row > .e-con,
.specs-grid-row > .e-con,
.cards-grid-row > .e-con {
    width: calc(25% - 24px) !important;
    max-width: calc(25% - 24px) !important;
    flex: 0 0 calc(25% - 24px) !important;
    box-sizing: border-box !important;
}

/* 3. RESPONSIVE BREAKPOINTS (Tablet & Mobile) */
@media (max-width: 1024px) {
    .hero-section .hero-grid-row,
    .hero-grid-row,
    .about-section .about-grid-row,
    .about-grid-row,
    .hero-section .elementor-container > .e-con,
    .about-section .elementor-container > .e-con {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 32px !important;
    }

    .hero-section .hero-left-col,
    .hero-left-col,
    .hero-section .hero-right-col,
    .hero-right-col,
    .hero-lead-form-card,
    .about-section .about-left-col,
    .about-left-col,
    .about-section .about-right-col,
    .about-right-col,
    .about-image-card,
    .hero-section .elementor-container > .e-con > .e-con:first-child,
    .hero-section .elementor-container > .e-con > .e-con:last-child,
    .about-section .elementor-container > .e-con > .e-con:first-child,
    .about-section .elementor-container > .e-con > .e-con:last-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .tower-card,
    .amenity-card,
    .floorplan-card,
    .spec-card,
    .towers-grid-row > .e-con,
    .amenities-grid-row > .e-con,
    .floorplans-grid-row > .e-con,
    .specs-grid-row > .e-con,
    .cards-grid-row > .e-con {
        width: calc(50% - 24px) !important;
        max-width: calc(50% - 24px) !important;
        flex: 0 0 calc(50% - 24px) !important;
    }
}

@media (max-width: 768px) {
    .tower-card,
    .amenity-card,
    .floorplan-card,
    .spec-card,
    .towers-grid-row > .e-con,
    .amenities-grid-row > .e-con,
    .floorplans-grid-row > .e-con,
    .specs-grid-row > .e-con,
    .cards-grid-row > .e-con,
    .hero-stat-item {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* ==========================================================================
   ELEMENTOR FREE FREE-COMPATIBLE LUXURY SCREENCAPTURE CARD & BUTTON OVERRIDES
   ========================================================================== */

/* Ensure Elementor Button widgets render as luxury gold gradient pills */
.elementor-widget-button .elementor-button,
.elementor-widget-button a.elementor-button {
    background: linear-gradient(135deg, #F9E3A3 0%, #D4AF37 50%, #B89228 100%) !important;
    color: #0A0E17 !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 16px 32px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-widget-button .elementor-button:hover,
.elementor-widget-button a.elementor-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    background: linear-gradient(135deg, #FFF0BE 0%, #E5C378 50%, #C8A038 100%) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    color: #000000 !important;
}

/* Ensure Elementor shortcode widgets containing Contact Form 7 render with luxury glassmorphic styling */
.elementor-widget-shortcode .wpcf7-form input[type="text"],
.elementor-widget-shortcode .wpcf7-form input[type="email"],
.elementor-widget-shortcode .wpcf7-form input[type="tel"],
.elementor-widget-shortcode .wpcf7-form input[type="date"],
.elementor-widget-shortcode .wpcf7-form select,
.elementor-widget-shortcode .wpcf7-form textarea {
    width: 100% !important;
    padding: 15px 18px !important;
    background: rgba(10, 14, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.95rem !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.elementor-widget-shortcode .wpcf7-form input[type="submit"] {
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #F9E3A3 0%, #D4AF37 50%, #B89228 100%) !important;
    color: #0A0E17 !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-widget-shortcode .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02) !important;
    background: linear-gradient(135deg, #FFF0BE 0%, #E5C378 50%, #C8A038 100%) !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6) !important;
}

