/*
 * Variação fotográfica experimental.
 * Ativação: /landing?visual=fotos
 * A landing padrão permanece inalterada quando o parâmetro não é informado.
 * Fotografias provisórias: Pexels (origens registradas no rodapé do modo de teste).
 */

.photo-test-credit { display: none; }

.landing-page--photos .journey-section {
    background:
        linear-gradient(90deg, rgba(16, 24, 40, 0.98) 0%, rgba(16, 24, 40, 0.92) 42%, rgba(16, 24, 40, 0.73) 100%),
        url("https://images.pexels.com/photos/4344116/pexels-photo-4344116.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover no-repeat;
}

.landing-page--photos .journey-card {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(16, 24, 40, 0.72);
    backdrop-filter: blur(0.75rem);
}

.landing-page--photos .journey-card:hover {
    background: rgba(16, 24, 40, 0.82);
}

.landing-page--photos .closing-card {
    position: relative;
    grid-template-columns: minmax(0, 0.86fr) minmax(23rem, 1.14fr);
    grid-template-rows: auto auto;
    gap: 1.5rem 3rem;
    min-height: 24rem;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    border: 0;
    border-radius: 2rem;
    background: #f3f4f6;
    box-shadow: 0 1.5rem 4rem rgba(16, 24, 40, 0.12);
}

.landing-page--photos .closing-card::before {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 46%;
    background:
        linear-gradient(90deg, #f3f4f6 0%, rgba(243, 244, 246, 0.18) 28%, rgba(243, 244, 246, 0) 58%),
        url("https://images.pexels.com/photos/4623518/pexels-photo-4623518.jpeg?auto=compress&cs=tinysrgb&w=1600&h=900&fit=crop") center / cover no-repeat;
    content: "";
}

.landing-page--photos .closing-card > div,
.landing-page--photos .closing-card > .btn {
    position: relative;
    z-index: 1;
    grid-column: 1;
}

.landing-page--photos .closing-card > .btn {
    grid-row: 2;
    justify-self: start;
}

.landing-page--photos .photo-test-credit {
    display: block;
    padding-block: 1rem;
    border-top: 1px solid var(--ec-color-border);
    color: var(--ec-color-text-muted);
    font-size: 0.68rem;
    line-height: 1.6;
}

.landing-page--photos .photo-test-credit strong { color: var(--ec-color-text); }

.landing-page--photos .photo-test-credit a {
    color: var(--ec-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.landing-page--photos .photo-test-credit a:hover,
.landing-page--photos .photo-test-credit a:focus-visible { text-decoration: underline; }

@media (max-width: 56rem) {
    .landing-page--photos .journey-section {
        background:
            linear-gradient(rgba(16, 24, 40, 0.9), rgba(16, 24, 40, 0.86)),
            url("https://images.pexels.com/photos/4344116/pexels-photo-4344116.jpeg?auto=compress&cs=tinysrgb&w=1200") 58% center / cover no-repeat;
    }

    .landing-page--photos .closing-card {
        grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
        min-height: 22rem;
    }
}

@media (max-width: 43rem) {
    .landing-page--photos .closing-card {
        grid-template-columns: 1fr;
        grid-template-rows: 17rem auto auto;
        gap: 1.25rem;
        min-height: auto;
        padding: 0 1.5rem 2rem;
        text-align: left;
    }

    .landing-page--photos .closing-card::before {
        inset: 0 0 auto;
        height: 17rem;
        background:
            linear-gradient(0deg, #f3f4f6 0%, rgba(243, 244, 246, 0) 38%),
            url("https://images.pexels.com/photos/4623518/pexels-photo-4623518.jpeg?auto=compress&cs=tinysrgb&w=1000&h=700&fit=crop") center / cover no-repeat;
    }

    .landing-page--photos .closing-card > div {
        grid-row: 2;
    }

    .landing-page--photos .closing-card > .btn {
        grid-row: 3;
        justify-self: start;
    }

    .landing-page--photos .closing-card h2 { margin-inline: 0; }
}
