/**
 * Singles
 * Remodelando Pixel
 */

/* =========================================================
   SINGLE SERVICIO
   ========================================================= */

.rmd-single-hero {
    padding: 70px 0;
    background:
        linear-gradient(
            135deg,
            #f8f8f5 0%,
            #edf2df 100%
        );
}

.rmd-single-hero__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
}

.rmd-single-hero__content h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 5vw, 68px);
    letter-spacing: -0.04em;
}

.rmd-single-hero__content p {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--rmd-text-soft);
    font-size: 18px;
}

.rmd-single-hero__media {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--rmd-shadow-md);
}

.rmd-single-hero__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================================================
   SINGLE PROYECTO HERO
   ========================================================= */

.rmd-single-project-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--rmd-brown-dark);
}

.rmd-single-project-hero__media {
    position: absolute;
    inset: 0;
}

.rmd-single-project-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rmd-single-project-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 10%,
            rgba(0, 0, 0, 0.78) 100%
        );
}

.rmd-single-project-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 58px;
    color: var(--rmd-white);
}

.rmd-single-project-hero__content h1 {
    max-width: 850px;
    margin-bottom: 14px;
    color: var(--rmd-white);
    font-size: clamp(44px, 6vw, 76px);
}

.rmd-single-project-hero__content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.rmd-single-content__inner {
    width: min(
        calc(100% - 40px),
        840px
    );
    margin: 0 auto;
}

.rmd-single-content__inner > *:first-child {
    margin-top: 0;
}

.rmd-single-content__inner h2 {
    margin-top: 42px;
    margin-bottom: 16px;
    font-size: 32px;
}

.rmd-single-content__inner h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 24px;
}

.rmd-single-content__inner p,
.rmd-single-content__inner li {
    color: var(--rmd-text);
    font-size: 17px;
    line-height: 1.8;
}

.rmd-single-content__inner img {
    border-radius: 10px;
}

/* =========================================================
   CTA SINGLE
   ========================================================= */

.rmd-single-cta {
    padding: 48px 0;
    color: var(--rmd-white);
    background:
        linear-gradient(
            90deg,
            #332f24,
            #211f18
        );
}

.rmd-single-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.rmd-single-cta h2 {
    margin: 0;
    color: var(--rmd-white);
    font-size: clamp(28px, 4vw, 44px);
}

@media (max-width: 900px) {

    .rmd-single-hero__grid {
        grid-template-columns: 1fr;
    }

    .rmd-single-project-hero {
        min-height: 440px;
    }

}

@media (max-width: 640px) {

    .rmd-single-hero {
        padding: 52px 0;
    }

    .rmd-single-project-hero {
        min-height: 380px;
    }

    .rmd-single-project-hero__content {
        padding-bottom: 38px;
    }

    .rmd-single-content__inner {
        width: min(
            calc(100% - 28px),
            840px
        );
    }

    .rmd-single-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

}