/* 
  Pro Rapid Building Group - Our Work Page Styles
*/

/* --- General Fixes & Utilities --- */
.text-dark {
    color: #111 !important;
}
.text-white {
    color: var(--white) !important;
}

/* --- Hero Section --- */
.ow-hero {
    position: relative;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    margin-top: 130px; /* Offset for fixed header */
}

.ow-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.ow-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ow-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 50%, rgba(17,17,17,0.2) 100%);
}

.ow-hero-content {
    max-width: 650px;
    padding-top: 40px;
}

.ow-hero-content .hero-title {
    font-size: 5rem;
    margin-bottom: 25px;
    line-height: 0.95;
}

.ow-hero-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* --- Portfolio Section --- */
.portfolio {
    background-color: #f5f5f5;
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #333;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px 15px;
}

.project-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.project-info p {
    font-size: 0.85rem;
    color: #666;
}

/* --- Why Our Work Stands Out --- */
.stands-out {
    background-color: #111;
    padding: 100px 0;
}

.stands-out-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.stands-out-content {
    text-align: left;
    max-width: 600px;
}

.stands-out-content .section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.stands-out-text {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.stands-out-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 50px;
}

.stand-feature {
    text-align: center;
}

.stand-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.stand-feature h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stand-feature p {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.5;
}

/* --- Process Section (5 Steps) --- */
.ow-process {
    background-color: #f5f5f5;
    padding: 100px 0;
}

.process-steps.five-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
}

.process-steps.five-steps .step-item {
    position: relative;
    flex: 1;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    z-index: 2;
}

.step-card {
    background-color: transparent;
    padding: 20px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.step-icon {
    margin-bottom: 15px;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.step-arrow {
    flex: 0 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Stats / Results Section --- */
.ow-stats {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    background-color: #111;
}

.ow-stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.ow-stats-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ow-stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,1) 0%, rgba(17,17,17,0.85) 50%, rgba(17,17,17,0.4) 100%);
    z-index: 1;
}

.ow-stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.ow-stats-content {
    flex: 1;
}

.ow-stats-content .stats-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 15px;
}

.ow-stats-content p {
    font-size: 1.1rem;
    color: #ccc;
}

.ow-stats-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 40px;
}

.ow-stat-item {
    text-align: center;
}

.ow-stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.ow-stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.ow-stat-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #aaa;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stands-out-features {
        grid-template-columns: repeat(3, 1fr);
    }
    .ow-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-steps.five-steps {
        flex-direction: column;
        gap: 20px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .ow-stats-container {
        flex-direction: column;
        text-align: left;
    }
    .ow-stats-grid {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 40px;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .stands-out-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ow-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
