/*
 * GD Call to Action widget
 * Depends on gd-colors.css, gd-header.css and gd-button.css.
 */

.gd-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Full-bleed: break out of the Elementor container to the viewport edges */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #0f172a;
    padding: clamp(2.75rem, 5.5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
    text-align: center;
}

/* 100vw includes the scrollbar width; clip the overflow without creating a scroll container */
body:has(.gd-cta) {
    overflow-x: clip;
}

/* Soft brand glow at the top */
.gd-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(110, 193, 228, 0.16), transparent 60%);
}

.gd-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Heading sizes for this band (colours come from GD Header) */
.gd-cta .gd-header--pre-title {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.gd-cta .gd-header--h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
}

.gd-cta__text {
    max-width: 34rem;
    margin: 0 0 1.4rem;
    font-family: "versostest", sans-serif;
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.gd-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.gd-cta .gd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}
