/* ==========================================================================
   RR Homes - Feature Section Component
   ========================================================================== */

:root {
    --fs-dark: #111827;
    --fs-grey: #6b7280;
    --fs-text: #4b5563;
    --fs-bg: #fafafa;
}

.feature-section {
    padding: 100px 40px;
    background: var(--fs-bg);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.feature-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

/* ==========================================================================
   LEFT: TEXT CONTENT
   ========================================================================== */
.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-family: 'Poppins', sans-serif; /* Using bold modern sans matching the image */
    font-size: 34px;
    color: var(--fs-dark);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.feature-intro {
    font-size: 17px;
    color: #888888;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 15px;
    color: var(--fs-text);
    line-height: 1.8;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 400;
}

.bullet-point {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: #555555;
    border-radius: 50%;
    margin-top: 10px; /* Align strictly with text line */
}

/* ==========================================================================
   RIGHT: 3D COMPOSITE VISUALS
   ========================================================================== */
.feature-visuals {
    flex: 1.2;
    position: relative;
    height: 480px;
    border-radius: 4px;
    overflow: hidden; /* Contains the background */
}

/* The Faded Street Background Layer */
.visuals-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e2e8f0; 
}

.visuals-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Perfectly fade it to act as context geometry */
    filter: saturate(0.5); /* Desaturate slightly so foreground pops */
}

/* The Foreground Renders */
.floating-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 2;
}

.float-card {
    width: 50%;
    background: #ffffff;
    border-radius: 16px; /* Heavy curve matching the image */
    overflow: hidden;
    /* Clean white rim + deep drop shadow to create physical elevation */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 0 0 6px rgba(255,255,255,0.75);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.float-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15), 0 0 0 6px rgba(255,255,255,1);
    z-index: 5;
}

.float-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .feature-container { gap: 40px; }
    .feature-content h2 { font-size: 30px; }
}

@media screen and (max-width: 992px) {
    .feature-container {
        flex-direction: column;
    }
    .feature-visuals {
        width: 100%;
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .feature-section { padding: 60px 20px; }
    .feature-content h2 { font-size: 28px; }
    .feature-list li { font-size: 14px; }
    
    .feature-visuals { height: 350px; border-radius: 8px; }
    .floating-cards { gap: 10px; width: 95%; }
    .float-card { border-radius: 10px; }
    .float-card img { min-height: 200px; }
    .float-card { box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 0 0 4px rgba(255,255,255,0.7); }
}
