/* ==========================================================================
   NACS Show 2026 - Call to Action B Component
   (Left-Aligned Image/Video Background with Glass Panel)
   Desktop: dark glass panel, white text, yellow button, left-aligned
   Mobile: light glass panel, navy/dark text, green glass button
   Tokens: NACSShow2026Tokens.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CTA B Container
   -------------------------------------------------------------------------- */
.cta-b {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Full-bleed Background Image / Video */
.cta-b__bg {
    position: absolute;
    inset: 0;
}

.cta-b__bg img,
.cta-b__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Content Container (Desktop)
   -------------------------------------------------------------------------- */
.cta-b__content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--nacs-gutter, 20px);
    align-items: center;
    min-height: 480px;
    padding: var(--nacs-padding-56, 56px) var(--nacs-margin-desktop, 80px);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Right Spacers (desktop centering offset)
   -------------------------------------------------------------------------- */
.cta-b__spacer {
    width: 305px;
    height: 104px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Frosted Glass Panel (Desktop: dark glass, left-aligned)
   -------------------------------------------------------------------------- */
.cta-b__panel {
    flex: 1 0 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--nacs-padding-32, 32px);
    align-items: flex-start;
    justify-content: center;
    padding: var(--nacs-padding-40, 40px);
    background: var(--nacs-glass-bg, rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Text Content Group
   -------------------------------------------------------------------------- */
.cta-b__text-content {
    display: flex;
    flex-direction: column;
    gap: var(--nacs-padding-32, 32px);
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Heading (Desktop: white, left-aligned)
   -------------------------------------------------------------------------- */
.cta-b__heading {
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--nacs-color-white);
    margin: 0;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Description (Desktop: white, left-aligned)
   -------------------------------------------------------------------------- */
.cta-b__description {
    font-family: var(--nacs-font-gotham);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--nacs-color-white);
    margin: 0;
    width: 100%;
}

/* --------------------------------------------------------------------------
   CTA Button (Desktop: Yellow Pill)
   -------------------------------------------------------------------------- */
.cta-b__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 24px;
    background-color: var(--nacs-color-yellow, #FAE100);
    border-radius: 360px;
    text-decoration: none;
    color: var(--nacs-color-navy, #00205B);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.cta-b__btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.cta-b__btn-text {
    font-family: var(--nacs-font-gotham);
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: inherit;
}

.cta-b__btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile Styles (max-width: 768px)
   Matches CTA A mobile: dark glass panel, white heading/description,
   yellow button with navy text
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .cta-b__content {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 80px 20px;
        gap: 0;
    }

    .cta-b__spacer {
        display: none;
    }

    /* Dark glass panel on mobile (matches CTA A) */
    .cta-b__panel {
        flex: 0 0 auto;
        min-width: auto;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        gap: 40px;
        padding: var(--nacs-padding-24, 24px);
        background: var(--nacs-glass-bg, rgba(0, 0, 0, 0.2));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-sizing: border-box;
    }

    .cta-b__text-content {
        gap: var(--nacs-padding-32, 32px);
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* White heading on mobile (matches CTA A) */
    .cta-b__heading {
        display: block;
        font-size: 32px;
        line-height: 40px;
        color: var(--nacs-color-white, #FFFFFF);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* White description on mobile (matches CTA A) */
    .cta-b__description {
        display: block;
        font-size: 16px;
        line-height: 18px;
        color: var(--nacs-color-white, #FFFFFF);
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: pre-line;
    }

    /* Yellow button with navy text on mobile (matches CTA A) */
    .cta-b__btn {
        height: 48px;
        padding: 0 20px;
        background-color: var(--nacs-color-yellow, #FAE100);
        color: var(--nacs-color-navy, #00205B);
    }

    .cta-b__btn-text {
        font-size: 14px;
        line-height: 20px;
        color: var(--nacs-color-navy, #00205B);
    }
}

@media screen and (max-width: 480px) {
    .cta-b__heading {
        font-size: 28px;
        line-height: 36px;
    }
}
