/* =========================================================================
   residential.css - Residential Portfolio Page Styling (October Gardens)
   ========================================================================= */

/* 1. Residential Hero */
.res-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background-color: var(--black);
}

.res-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/residential/building-classic-1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.35;
}

.res-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.95) 100%);
    z-index: 2;
}

.res-hero .container {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.res-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--off-white);
}

html[lang="ar"] .res-hero h1 {
    font-size: 3.8rem;
}

.res-hero p {
    font-size: 1.1rem;
    color: var(--stone);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 700px;
}

/* 2. Portfolio Intro */
.res-intro-section {
    padding: 80px 0 20px;
    background-color: var(--black);
    text-align: center;
}

.res-intro-section p {
    font-size: 1.15rem;
    color: var(--stone);
    max-width: 760px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* 3. Residential Cards Grid */
.res-grid-section {
    padding: 60px 0 100px;
    background-color: var(--black);
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Architectural file card styling */
.res-card {
    background-color: var(--charcoal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.res-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.res-card-num {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.15;
    z-index: 5;
    font-family: var(--font-heading-en);
}

.res-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.res-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.res-card:hover .res-card-media img {
    transform: scale(1.04);
}

/* Custom premium visual coming soon placeholder */
.res-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 1px dashed rgba(200, 164, 93, 0.15);
    background-color: #0b0b0b;
}

.res-media-placeholder i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 14px;
    opacity: 0.4;
}

.res-media-placeholder span {
    font-size: 0.8rem;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-card-info {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.res-card-type {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.res-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 12px;
}

.res-card-location {
    font-size: 0.88rem;
    color: var(--stone);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.res-card-location i {
    color: var(--gold);
}

.res-card-btn-wrap {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 20px;
}

.res-card-btn-wrap .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.82rem;
}

/* 4. Development Beginning Story */
.res-story-section {
    padding: 100px 0;
    background-color: var(--charcoal);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.res-story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.res-story-text {
    position: relative;
    z-index: 5;
}

.res-story-watermark {
    position: absolute;
    font-size: 20rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading-en);
    inset-inline-start: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.res-story-text h3 {
    font-size: 2.2rem;
    color: var(--off-white);
    margin-bottom: 20px;
}

.res-story-text p {
    color: var(--stone);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 30px;
}

.res-story-media {
    border: 1px solid var(--border-color);
    padding: 16px;
    background-color: var(--black);
}

.res-story-media-inner {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.res-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 5. Residential CTA Section */
.res-cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--black);
}

.res-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--off-white);
}

.res-cta h2 span {
    color: var(--gold);
}

.res-cta p {
    font-size: 1.1rem;
    color: var(--stone);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.res-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================================================
   Residential Responsiveness
   ========================================================================= */

@media (max-width: 1024px) {
    .res-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .res-story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .res-story-media {
        order: 2;
    }
}

@media (max-width: 768px) {
    .res-hero h1 {
        font-size: 2.5rem;
    }
    
    .res-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .res-story-text h3 {
        font-size: 1.8rem;
    }
    
    .res-cta h2 {
        font-size: 2.2rem;
    }
    
    .res-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .res-cta-buttons .btn {
        width: 100%;
        margin-inline-start: 0 !important;
    }
}
