/* ===== Branded 2-Col CTA (Static Image) ===== */
.cta-2col-container{
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
}

/* Desktop/tablet: maintain visual ratio using a shim */
.cta-2col-container::before{
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: var(--cta-ratio, 16/5);
}

/* Optional dim overlay */
.cta-overlay{
    position: absolute;
    inset: 0;
    background: var(--cta-overlay, rgba(0,0,0,0.35));
    pointer-events: none;
    z-index: 1;
}

/* Content layer (desktop defaults) */
.cta-2col-text{
    position: absolute;
    inset: 0;
    z-index: 2;
    text-transform: uppercase;
    display: flex;
    align-items: center;   /* vertical center whole grid */
    padding: 2rem 1rem;
    color: #fff;
}

/* Alignment helpers for left column text */
.cta-2col-container.content-left  .cta-2col-copy { text-align: left;  text-transform: uppercase; }
.cta-2col-container.content-center .cta-2col-copy { text-align: center; text-transform: uppercase; }
.cta-2col-container.content-right .cta-2col-copy { text-align: right; text-transform: uppercase; }

.cta-2col-heading, .cta-2col-subtext{
    margin: 0;
    font-weight: 100;
    letter-spacing: .02em;
    line-height: 1.1;
    font-size: clamp(1.5rem, 3.2vw + 0.6rem, 2.25rem);
    text-transform: uppercase;
}
.cta-2col-heading{
    font-style:italic;
}
.cta-2col-subtext{
    font-weight: 600;
}

/* Button */
.cta-2col-button{
    display: inline-block;
    padding: .9rem 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.cta-2col-button:hover{
    transform: translateY(-1px);
    opacity: 0.95;
}

/* Button themes */
.cta-2col-button--dark{
    background: #111;
    color: #fff;
}
.cta-2col-button--dark:hover{
    background: #000;
}

.cta-2col-button--light{
    background: #fff;
    color: #111;
}
.cta-2col-button--light:hover{
    background: #f5f5f5;
}

/* ===== Mobile/Tablets (< 992px): remove ratio shim + 2rem padding around contents ===== */
@media (max-width: 991.98px){
    /* Remove the aspect-ratio shim so height is content-driven */
    .cta-2col-container::before{
        display: none;
    }

    /* Make content normal-flow and give it 2rem padding all around */
    .cta-2col-text{
        position: relative;   /* so it stacks above overlay */
        inset: auto;
        z-index: 2;
        display: block;       /* no full-height flex */
        padding: 2rem;        /* requested padding */
    }

    .cta-2col-heading{
        margin-bottom: .35rem;
    }
}
