/* ==========================================================================
   RR Homes - Specifications Component
   ========================================================================== */

:root {
    --spec-dark: #12182B; /* Deep Navy/Charcoal from image */
    --spec-gold: #BC9F58; /* Muted Gold/Taupe from image */
    --spec-text-grey: #6c757d;
}

.spec-section {
    padding: 100px 40px;
    background: #ffffff; /* Alternating section color */
    font-family: 'Poppins', sans-serif;
}

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

/* ==========================================================================
   LEFT: ARCHITECTURAL COLLAGE
   ========================================================================== */
.spec-left {
    flex: 1.1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* Solid depth behind the grid */
    border: 2px solid #ffffff;
}

.spec-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 240px); /* Creates absolute exactness for the 2x3 layout */
    gap: 0; /* Fully flush seamless layout like image */
}

.gallery-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Center Floating Badge Layer */
.spec-badge-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; /* Extends almost to borders */
    z-index: 10;
    pointer-events: none; /* Let hover effects trigger through it */
}

.spec-badge {
    background: #ffffff;
    padding: 12px 0;
    text-align: center;
    transform: skewX(-12deg);
    /* Exact hard-edged dark offset shadow seen in the image */
    box-shadow: 
        8px 8px 0 var(--spec-dark), 
        0 15px 35px rgba(0,0,0,0.3);
}

.spec-badge h3 {
    transform: skewX(12deg); /* Unskew text */
    color: var(--spec-dark);
    font-size: 34px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2.5px;
}

/* ==========================================================================
   RIGHT: CONTENT & LISTS
   ========================================================================== */
.spec-right {
    flex: 1;
    padding-right: 20px;
}

.spec-right h2 {
    font-size: 40px;
    font-family: 'Playfair Display', serif;
    color: var(--spec-gold);
    font-weight: 700;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 45px 0;
}

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

/* Custom minimal bullet to match the image precisely */
.spec-dot {
    flex-shrink: 0;
    margin-top: 10px; /* Align perfectly with first text line */
    width: 6px;
    height: 6px;
    background: var(--spec-text-grey);
    border-radius: 50%;
}

.spec-btn {
    background: var(--spec-gold);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 40px;
    font-size: 14px;
    letter-spacing: 1.5px;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.spec-btn:hover {
    background: var(--spec-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18, 24, 43, 0.15);
}

/* ==========================================================================
   RESPONSIVE LOGIC
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .spec-container { gap: 50px; }
    .spec-gallery { grid-template-rows: repeat(2, 200px); }
    .spec-badge h3 { font-size: 28px; }
    .spec-right h2 { font-size: 34px; }
}

@media screen and (max-width: 992px) {
    .spec-container {
        flex-direction: column;
        gap: 60px;
    }
    .spec-left { width: 100%; max-width: 800px; }
    .spec-gallery { grid-template-rows: repeat(2, 220px); }
    .spec-right { width: 100%; max-width: 800px; padding: 0; }
}

@media screen and (max-width: 768px) {
    .spec-section { padding: 60px 20px; }
    /* Mobile - drop to 2 columns to prevent crushing */
    .spec-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px); 
    }
    .spec-badge { padding: 8px 0; }
    .spec-badge h3 { font-size: 24px; letter-spacing: 1px; }
    .spec-right h2 { font-size: 28px; margin-bottom: 25px; }
    .spec-list li { font-size: 14px; margin-bottom: 15px; }
    .spec-btn { padding: 12px 30px; }
}
