/* ================================================
   CTA BANNER SECTION – FULL WIDTH SPLIT
   ================================================ */
/* Break out of container – full viewport width */
.cta-banner-section {
    width: 100vw;
    min-height: 350px;
    display: flex;
    background: transparent;
    margin-left: calc(50% - 50vw);
}

/* Inner wrapper */
.cta-banner-inner {
    display: flex;
    width: 100%;
    min-height: 350px;
}

/* ================================================
   LEFT SIDE – CONTENT (50% VIEWPORT)
   Text aligned to site container
   ================================================ */

.cta-banner-content {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;

    padding-top: 60px;
    padding-bottom: 60px;

    /* Align text with container */
    padding-left: max(40px, calc((100vw - var(--container-width)) / 2));
    padding-right: 40px;
}

.cta-banner-content > * {
    max-width: 640px;
    width: 100%;
}

.cta-banner-heading {
    font-size: var(--h2-size);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: 16px;
    padding: 0 20px;
}

.cta-banner-description {
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}

/* ================================================
   RIGHT SIDE – IMAGE (50% VIEWPORT)
   Touches right screen edge
   ================================================ */

.cta-banner-images {
    width: 50vw;
    display: flex;
    flex-shrink: 0;
}

.cta-banner-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.cta-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide second image on desktop */
.cta-banner-image:nth-child(2) {
    display: none;
}

/* ================================================
   BACKGROUND COLORS (CONTENT ONLY)
   ================================================ */

.cta-banner-section.bg-white .cta-banner-content {
    background-color: var(--bg-white);
}

.cta-banner-section.bg-light .cta-banner-content {
    background-color: var(--bg-light);
}

.cta-banner-section.bg-subtle .cta-banner-content {
    background-color: var(--bg-subtle);
}

.cta-banner-section.bg-gravel .cta-banner-content {
    background-color: var(--color-gravel);
}

.cta-banner-section.bg-mid-blue .cta-banner-content {
    background-color: var(--color-mid-blue);
}

.cta-banner-section.bg-havelock-blue .cta-banner-content {
    background-color: var(--color-havelock-blue);
}

/* ================================================
   TEXT COLORS
   ================================================ */

.cta-banner-section.text-white .cta-banner-heading,
.cta-banner-section.text-white .cta-banner-description {
    color: var(--bg-white);
}

.cta-banner-section.text-gravel .cta-banner-heading,
.cta-banner-section.text-gravel .cta-banner-description {
    color: var(--color-gravel);
}

.cta-banner-section.text-mid-blue .cta-banner-heading,
.cta-banner-section.text-mid-blue .cta-banner-description {
    color: var(--color-mid-blue);
}

.cta-banner-section.text-havelock-blue .cta-banner-heading,
.cta-banner-section.text-havelock-blue .cta-banner-description {
    color: var(--color-havelock-blue);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .cta-banner-content {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Tablet & Mobile (≤ 768px) */
@media (max-width: 768px) {
    .cta-banner-content > * {
        max-width: 100%;
    }

    .cta-banner-section {
        min-height: auto;
    }

    .cta-banner-inner {
        flex-direction: column;
        min-height: auto;
    }

    .cta-banner-content,
    .cta-banner-images {
        width: 100%;
    }

    .cta-banner-content {
        align-items: center;
        padding: 40px 30px;
        text-align: center;
    }

    .cta-banner-images {
        min-height: 250px;
    }

    .cta-banner-heading {
        font-size: 24px;
        padding: 0;
    }

    .cta-banner-description {
        padding: 0;
    }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .cta-banner-content {
        padding: 30px 20px;
    }

    .cta-banner-heading {
        font-size: 20px;
        margin-bottom: 12px;
        padding: 0;
    }

    .cta-banner-description {
        font-size: 14px;
        padding: 0;
    }

    .cta-banner-images {
        min-height: 200px;
    }
}
