/* ===================================================
   Project Intro Section
   =================================================== */

body {
    font-family: polymath-display, sans-serif;
}

.project-intro {
    background-color: #FAFAFA;
    padding: 40px 0;
    overflow: hidden;
}

/* ===================================================
   Left Column
   =================================================== */
.project-intro__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 20px;
    padding-right: 24px;
}

/* Gallery - 3 small images row (desktop only) */
.project-intro__gallery {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.project-intro__gallery-item {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.project-intro__gallery-item img {
    width: 100%;
    /* !important overrides Bootstrap .img-fluid { height: auto !important }
       so object-fit: cover has a fixed box to fill */
    height: 160px !important;
    object-fit: cover;
    display: block;
}

/* ===================================================
   Text Content
   =================================================== */
.project-intro__eyebrow {
    font-size: 0.85rem;
    color: var(--color-secondary, #7a4a3a);
    margin-bottom: 8px;
    font-weight: 400;
}

.project-intro__title {
    font-family: polymath-display, sans-serif;
    font-weight: 300;
    font-size: 2.6rem;
    color: #2d2d2d;
    line-height: 1.2;
    margin-bottom: 16px;
    width: 100%;
}

.project-intro__title strong {
    font-weight: 800;
}

.project-intro__description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    width: 100%;
}

/* ===================================================
   CTA Buttons - Desktop
   =================================================== */
.project-intro__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-intro__btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 29px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

/* Outline style (Encuentra tu hogar) */
.project-intro__btn--outline {
    background: transparent;
    border: 1.5px solid var(--color-primary-dark, #3d1a1a);
    color: var(--color-primary-dark, #3d1a1a);
}

.project-intro__btn--outline:hover {
    background: var(--color-primary-dark, #3d1a1a);
    color: #ffffff;
    text-decoration: none;
}

/* Solid style (Habla con un asesor) */
.project-intro__btn--solid {
    background: var(--color-primary, #5c2a2a);
    border: 1.5px solid var(--color-primary, #5c2a2a);
    color: #ffffff;
}

.project-intro__btn--solid:hover {
    background: var(--color-primary-dark, #3d1a1a);
    border-color: var(--color-primary-dark, #3d1a1a);
    color: #ffffff;
    text-decoration: none;
}

/* ===================================================
   Right Column - Feature Image
   =================================================== */
.project-intro__right {
    position: relative;
}

.project-intro__feature-image {
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.project-intro__feature-image img {
    width: 100%;
    /* !important overrides Bootstrap .img-fluid { height: auto !important } */
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* ===================================================
   Responsive - Mobile & Tablet (below 992px)
   =================================================== */
@media (max-width: 991px) {
    .project-intro__title {
        font-size: 2.2rem;
    }

    .project-intro__feature-image {
        margin-top: 24px;
        height: 350px;
    }

    .project-intro__feature-image img {
        height: 350px !important;
        object-fit: cover;
    }
}

/* ===================================================
   Desktop (992px and up)
   =================================================== */
@media (min-width: 992px) {
    .project-intro {
        padding: 60px 0;
    }

    .project-intro__title {
        font-size: 2.8rem;
    }

    .project-intro__gallery-item img {
        height: 180px !important;
    }

    .project-intro__ctas {
        justify-content: flex-end;
    }

    .project-intro__right {
        position: relative;
    }

    .project-intro__feature-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }

    .project-intro__feature-image img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
}

/* ===================================================
   Large Desktop (1200px and up)
   =================================================== */
@media (min-width: 1200px) {
    .project-intro__title {
        font-size: 3.2rem;
    }

    .project-intro__gallery-item img {
        height: 200px !important;
    }
}
