/* ===========================
   REAL ESTATE CAPITAL MARKETS
   Premium Capital Stack Design
   =========================== */

/* ===========================
   HERO SECTION
   =========================== */
.recm-hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(10, 18, 25, 0.6), rgba(10, 18, 25, 0.65)),
                url('../images/real-estate-hero-new.jpg') center center/cover no-repeat;
    overflow: hidden;
}

.recm-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
}

.recm-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.recm-hero-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.recm-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recm-hero-breadcrumb a:hover {
    color: #1a4d4d;
}

.recm-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin: 0 0 28px 0;
}

.recm-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0;
}

/* ===========================
   OVERVIEW SECTION
   =========================== */
.recm-overview {
    padding: 120px 0;
    background: #ffffff;
}

.recm-overview-content {
    max-width: 900px;
    margin: 0 auto;
}

.recm-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid #e1e4e8;
}

.recm-capability h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.recm-capability p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #6a737d;
    margin: 0;
}

/* ===========================
   CAPITAL STACK SECTION - CLEAN MINIMALISTIC DESIGN
   =========================== */
.recm-stack-section {
    padding: 140px 0;
    background: #ffffff;
}

.recm-stack-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

/* Clean Minimalistic Capital Stack */
.stack-clean-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 80px;
    align-items: start;
}

/* Visual Bar - Sleek Vertical Stack */
.stack-visual-bar {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 2px;
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.stack-bar-segment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stack-bar-segment::after {
    content: attr(data-percentage);
    position: absolute;
    right: 12px;
    top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
}

.stack-equity {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    flex: 1.2;
}

.stack-mezzanine {
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    flex: 0.8;
}

.stack-senior {
    background: linear-gradient(135deg, #6a737d 0%, #8b949e 100%);
    flex: 2;
}

.stack-construction {
    background: linear-gradient(135deg, #9ca3af 0%, #b5bcc4 100%);
    flex: 0.8;
}

.stack-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.stack-bar-segment:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Details Grid - Minimalistic Cards */
.stack-details-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stack-detail-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 2px;
    padding: 32px 40px;
    transition: all 0.3s ease;
}

.stack-detail-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.stack-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stack-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.6px;
}

.stack-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #6a737d;
}

.stack-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
}

.stack-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.recm-services {
    padding: 140px 0;
    background: #ffffff;
}

.recm-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 64px;
}

.recm-service-item {
    padding: 48px;
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.recm-service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #1a4d4d;
}

.recm-service-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 300;
    color: #e1e4e8;
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.recm-service-item:hover .recm-service-number {
    color: #1a4d4d;
}

.recm-service-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    letter-spacing: -0.4px;
}

.recm-service-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
}

/* ===========================
   PROCESS SECTION
   =========================== */
.recm-process {
    padding: 140px 0;
    background: #fafbfc;
}

.recm-process-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.recm-process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

/* Connection Line */
.recm-process-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(to right, #1a4d4d 0%, #1a4d4d 25%, #e1e4e8 25%, #e1e4e8 50%, #e1e4e8 50%, #e1e4e8 75%, #e1e4e8 75%, #e1e4e8 100%);
    z-index: 0;
}

.recm-process-step {
    position: relative;
    z-index: 1;
}

.recm-step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #1a4d4d;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a4d4d;
    margin-bottom: 24px;
}

.recm-step-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.recm-step-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #6a737d;
    margin: 0;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
    .recm-hero-title {
        font-size: 52px;
    }

    .stack-clean-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stack-visual-bar {
        position: static;
        flex-direction: row;
        height: 120px;
    }
    
    .stack-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
    
    .stack-bar-segment::after {
        top: auto;
        bottom: 8px;
        right: 8px;
    }

    .recm-services-grid {
        gap: 32px;
    }

    .recm-process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px 32px;
    }

    .recm-process-timeline::before {
        display: none;
    }

    .recm-capabilities {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .recm-hero {
        min-height: 500px;
    }

    .recm-hero-title {
        font-size: 40px;
    }

    .recm-hero-subtitle {
        font-size: 17px;
    }
    
    .recm-stack-section {
        padding: 80px 20px;
    }
    
    .stack-clean-wrapper {
        gap: 32px;
    }
    
    .stack-visual-bar {
        height: 100px;
    }
    
    .stack-detail-card {
        padding: 24px 28px;
    }
    
    .stack-card-header h3 {
        font-size: 24px;
    }
    
    .stack-card-desc {
        font-size: 14px;
    }

    .recm-overview {
        padding: 100px 0;
    }

    .recm-capabilities {
        margin-top: 48px;
        padding-top: 48px;
    }

    .recm-stack-section {
        padding: 100px 0;
    }

    .recm-layer-content {
        padding: 32px 24px 32px 40px;
    }

    .recm-layer-title {
        font-size: 24px;
    }

    .recm-layer-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .recm-construction-box {
        padding: 32px 24px;
    }

    .recm-services {
        padding: 100px 0;
    }

    .recm-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .recm-service-item {
        padding: 36px 28px;
    }

    .recm-process {
        padding: 100px 0;
    }

    .recm-process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
