/* ============================================================
   FelixChess — Figma Banner
   Hero with background image, eyebrow, title, subtitle, CTA
   ============================================================ */

.fc-banner--figma {
    --fc-banner-bg: #202020;
    --fc-banner-accent: #9de000;
    --fc-banner-text: #ffffff;
    --fc-banner-muted: rgba(255 255 255 / 0.92);
    --fc-banner-height: 500px;

    position: relative;
    min-height: var(--fc-banner-height);
    margin: 0;
    overflow: hidden;
    background: var(--fc-banner-bg);
    color: var(--fc-banner-text);
    border-radius: 0;
    isolation: isolate;
}

.fc-banner--figma .fc-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fc-banner--figma .fc-banner__media picture,
.fc-banner--figma .fc-banner__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.fc-banner--figma .fc-banner__media img {
    object-fit: cover;
    object-position: center 32%;
}

.fc-banner--figma .fc-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            90deg,
            rgba(20 20 20 / 0.46) 0%,
            rgba(32 32 32 / 0.24) 48%,
            rgba(32 32 32 / 0.12) 75%
    );
}

.fc-banner--figma .fc-banner__body {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: var(--fc-banner-height);
    box-sizing: border-box;
    max-width: 1512px;
    margin-inline: auto;
    padding: 40px 109px;
    display: flex;
    align-items: center;
}

.fc-banner--figma .fc-banner__content {
    flex: 0 1 720px;
    width: min(720px, 100%);
    min-width: 0;
    max-width: 720px;
    margin: 0;
    display: block;
    text-align: left;
    color: var(--fc-banner-text);
    animation: none;
}

.fc-banner--figma .fc-banner__eyebrow {
    margin: 0;
    color: var(--fc-banner-text);
    font-size: clamp(0.78rem, 1.05vw, 1rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fc-banner--figma .fc-banner__accent-line {
    display: block;
    width: 45px;
    height: 3px;
    margin-top: 12px;
    margin-bottom: 12px;
    background: var(--fc-banner-accent);
}

.fc-banner--figma .fc-banner__title {
    margin: 0;
    color: var(--fc-banner-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5.2vw, 5.5rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.fc-banner--figma .fc-banner__subline {
    max-width: 42rem;
    margin-top: 18px;
    color: var(--fc-banner-muted);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.fc-banner--figma .fc-banner__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 100%;
    animation: none;
}

.fc-banner--figma .fc-banner__cta {
    min-width: 145px;
    min-height: 40px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
    border-radius: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition:
            background-color 180ms ease,
            color 180ms ease,
            border-color 180ms ease,
            transform 180ms ease;
}

.fc-banner--figma .fc-banner__cta--primary {
    background: var(--fc-banner-accent);
    border: 3px solid var(--fc-banner-accent);
    color: #202020;
    box-shadow: none;
}

.fc-banner--figma .fc-banner__cta--secondary {
    background: transparent;
    border: 3px solid var(--fc-banner-accent);
    color: var(--fc-banner-accent);
    backdrop-filter: none;
}

.fc-banner--figma .fc-banner__cta:hover,
.fc-banner--figma .fc-banner__cta:focus-visible {
    transform: translateY(-1px);
}

.fc-banner--figma .fc-banner__cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.fc-banner--figma .fc-banner__cta--primary:hover,
.fc-banner--figma .fc-banner__cta--primary:focus-visible {
    background: #b8ff28;
    border-color: #b8ff28;
    color: #202020;
    box-shadow: none;
}

.fc-banner--figma .fc-banner__cta--secondary:hover,
.fc-banner--figma .fc-banner__cta--secondary:focus-visible {
    background: var(--fc-banner-accent);
    border-color: var(--fc-banner-accent);
    color: #202020;
}

@media (max-width: 62em) {
    .fc-banner--figma {
        --fc-banner-height: 460px;
    }

    .fc-banner--figma .fc-banner__body {
        min-height: var(--fc-banner-height);
        padding: 36px 32px;
    }

    .fc-banner--figma .fc-banner__media img {
        object-position: 56% center;
    }

    .fc-banner--figma .fc-banner__title {
        font-size: clamp(2.9rem, 7.5vw, 4.5rem);
    }
}

@media (max-width: 47.99em) {
    .fc-banner--figma {
        --fc-banner-height: 440px;
    }

    .fc-banner--figma .fc-banner__overlay {
        background: linear-gradient(
                90deg,
                rgba(24 24 24 / 0.62),
                rgba(32 32 32 / 0.42)
        );
    }

    .fc-banner--figma .fc-banner__body {
        min-height: var(--fc-banner-height);
        padding: 32px 22px;
    }

    .fc-banner--figma .fc-banner__content {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }

    .fc-banner--figma .fc-banner__media img {
        object-position: 58% center;
    }

    .fc-banner--figma .fc-banner__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .fc-banner--figma .fc-banner__subline {
        margin-top: 14px;
    }

    .fc-banner--figma .fc-banner__actions {
        margin-top: 20px;
        gap: 12px;
    }

    .fc-banner--figma .fc-banner__cta {
        min-width: 132px;
        min-height: 38px;
        padding-inline: 20px;
    }
}

@media (max-width: 35em) {
    .fc-banner--figma .fc-banner__actions {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 20rem);
    }

    .fc-banner--figma .fc-banner__cta {
        width: 100%;
    }
}
