/* Main page: Longevity block right after the hero. Text on the left, photo collage with a white card on the right. */
.longevity-cta__container {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.longevity-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.longevity-cta__title {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-text-main, #312a23);
}

/* Words in <span> of the admin title: the big gold italic first line. */
.longevity-cta__title span {
    display: block;
    width: fit-content;
    padding-inline-end: 0.15em; /* the italic «y» sticks out of the box and loses its gradient otherwise */
    font-style: italic;
    font-size: 1.5em;
    line-height: 1.2;
    color: transparent;
    background: linear-gradient(135.64deg, #e1c48c 0%, #c5a059 47.1%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.longevity-cta__description {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.5rem;
    letter-spacing: 0.0338rem;
    color: var(--color-text-main, #312a23);
}

.longevity-cta__description p,
.longevity-cta__description p:not(:last-child) {
    margin: 0;
}

.longevity-cta__button {
    margin-block-start: 0.5rem;
}

/*
 * Collage geometry from the design (1104 × 463): large photo, small framed photo over its lower left corner,
 * white card over its right side. Percentages keep the overlaps identical at every width.
 */
.longevity-cta__media {
    position: relative;
    container-type: inline-size;
}

.longevity-cta__photos {
    position: relative;
    aspect-ratio: 1104 / 463;
}

.longevity-cta__photo {
    position: absolute;
    top: 0;
    left: 14.86%;
    display: block;
    width: 59.42%;
    height: 100%;
    object-fit: cover;
}

.longevity-cta__photo--small {
    top: 47.73%;
    left: 0;
    width: 32.61%;
    height: 43.41%;
    border: 0.65cqi solid var(--color-white, #fff);
}

.longevity-cta__card {
    position: absolute;
    top: 28.73%;
    right: 0;
    left: 52.63%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4em;
    min-height: calc(100cqi * 463 / 1104 * 0.4449);
    padding: 1.6cqi 2.2cqi 1.6cqi 3.2cqi;
    font-size: max(0.8125rem, 2.6cqi);
    line-height: 1.27;
    letter-spacing: 0.03em;
    color: var(--color-text-main, #312a23);
    background: var(--color-white, #fff);
}

.longevity-cta__card p,
.longevity-cta__card p:not(:last-child) {
    margin: 0;
}

/* First paragraph of the card: gold italic caption. */
.longevity-cta__card p:first-child:not(:only-child) {
    font-family: "Playfair Display", serif;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary, #c5a059);
}

/*
 * Phones: the large photo takes 78% of the width (same aspect, same overlaps scaled to it)
 * and the card grows to the left and below so its text stays readable.
 */
@media (max-width: 47.99em) {
    .longevity-cta__media {
        padding-block-end: 2rem;
    }

    .longevity-cta__photos {
        aspect-ratio: 656 / 361;
    }

    .longevity-cta__photo {
        left: 22%;
        width: 78%;
    }

    .longevity-cta__photo--small {
        left: 0;
        width: 42.8%;
        border-width: 4px;
    }

    .longevity-cta__card {
        left: 46%;
        min-height: 0;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 61.99875em) {
    .longevity-cta__container {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
        gap: clamp(2.5rem, 5vw, 6rem);
    }

    .longevity-cta__content {
        gap: 2rem;
    }

    .longevity-cta__button {
        margin-block-start: 1rem;
    }
}

/* Same scale as .section-heading__title / __description in app.min.css. */
@media (min-width: 74.99875em) {
    .longevity-cta__title {
        font-size: 3.25rem;
    }

    .longevity-cta__description {
        font-size: 1.25rem;
        line-height: 1.75rem;
        letter-spacing: 0.0375rem;
    }
}
