/* 
  Pro Rapid Building Group - Custom Homes Page Styles
*/

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

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

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

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

.ch-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%);
}

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

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

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

/* --- Built Around You Section --- */
.built-around-you {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.bay-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.bay-image {
    flex: 1;
}

.bay-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.bay-content {
    flex: 1;
}

.bay-content .section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.bay-text {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.bay-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.bay-feature-item {
    text-align: center;
}

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

.bay-feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.bay-feature-item p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Custom Homes That Inspire Section --- */
.homes-inspire {
    background-color: #eaeaea; /* Slightly darker grey to distinguish from top/bottom */
    padding: 100px 0;
}

.inspire-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.inspire-content {
    flex: 0 0 35%;
}

.inspire-content .section-title {
    font-size: 4rem;
    line-height: 0.95;
    margin-bottom: 20px;
}

.inspire-content p {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.inspire-images {
    flex: 1;
    display: flex;
    gap: 20px;
}

.inspire-img {
    flex: 1;
    height: 400px;
}

.inspire-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Process Section --- */
.ch-process {
    background-color: #f5f5f5;
    padding: 100px 0;
}

.process-subtitle {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.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: var(--white);
    padding: 40px 20px;
    border: 1px solid #ddd;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

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

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

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

/* --- Bottom CTA Section --- */
.ch-cta {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

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

.ch-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ch-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17,17,17,0.85);
}

.ch-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ch-cta-content h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

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

.ch-cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .bay-container, .inspire-grid {
        flex-direction: column;
    }
    .process-steps {
        flex-direction: column;
        gap: 20px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .ch-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}
