/* =========================================================================
   LAVACASCADE — css/sections/cta-band.css
   The closing call to action: a framed band with a molten glow rising
   from the bottom edge, like lava under the surface.
   ========================================================================= */

.cta-band__inner {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    /* a village at night behind the band (assets/img/bg-village.jpg),
       darkened so the text stays readable; the lava glow sits on top */
    background:
        radial-gradient(ellipse 60% 70% at 50% 50%, rgba(23, 17, 33, 0.6), rgba(23, 17, 33, 0.25)),
        linear-gradient(rgba(23, 17, 33, 0.25), rgba(23, 17, 33, 0.55)),
        url("../../assets/img/bg-village.jpg") center 60% / cover no-repeat var(--night-800);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    isolation: isolate;
}

/* the glow */
.cta-band__inner::before {
    content: "";
    position: absolute;
    inset: auto -10% -60% -10%;
    z-index: -1;
    height: 120%;
    background: radial-gradient(closest-side, rgba(199, 71, 12, 0.4), transparent);
}

/* the seam along the top */
.cta-band__inner::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--grad-seam);
}

.cta-band h2 {
    max-width: 20ch;
    margin-inline: auto;
}

.cta-band p {
    max-width: 56ch;
    margin: var(--space-4) auto 0;
    color: var(--text-soft);
}

.cta-band__actions {
    justify-content: center;
    margin-top: var(--space-6);
}
