/* 09 Final CTA. Component key: home.final_cta.

   The supplied artwork (final-cta.webp, 1028x218) is a scenic band with the
   handwritten line already baked into the right side with a separate dog foreground. The band keeps
   that aspect ratio, so the baked handwriting is never cropped and the scenic
   asset is never swapped out. Below 64rem the copy sits on a solid brand-blue
   field with the artwork shown whole underneath; from 64rem up the artwork runs
   behind the centred copy. */

.final-cta {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background-color: var(--color-scenic-overlay);
}

.final-cta__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-section);
    text-align: center;
}

.final-cta__body {
    color: rgba(255, 255, 255, 0.92);
}

.final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.final-cta__media {
    position: relative;
    z-index: 1;
}

.final-cta__image {
    width: 100%;
    aspect-ratio: 1028 / 218;
    object-fit: cover;
    border-radius: 0;
}

.final-cta__dog {
    display: block;
    position: absolute;
    bottom: 0;
    left: var(--page-gutter);
    height: 96%;
    width: auto;
    max-width: 28%;
    object-fit: contain;
    object-position: bottom left;
    border-radius: 0;
    pointer-events: none;
}

@media (min-width: 64rem) {
    .final-cta {
        /* Just above the artwork ratio so centred copy always has room. */
        min-height: clamp(15rem, 22vw, 25rem);
    }

    .final-cta__media {
        position: absolute;
        inset: 0;
    }

    .final-cta__image {
        height: 100%;
    }

    .final-cta::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background-color: rgba(29, 76, 116, 0.55);
    }

    .final-cta__inner {
        padding-block: var(--space-6);
    }

    .final-cta__dog {
        left: max(var(--page-gutter), calc((100vw - var(--container)) / 2));
    }
}
