/* ============================================================
   fab-carousel.css — "FAB Carousel / Highlighted Content" (ISOLADO, .fab-carousel / .fc-*).
   Figma kPNQN...: 1920 1:1854 · 992 1:2012 · mobile 1:3200. Tokens da host. Desktop-first.
   Breakpoint: 768 (empilha). Fundo gradiente roxo; swirl atrás; card com 4 estados (crossfade).
   Setas/progresso: visual 100% do carouseltpc.css (biblioteca) — mínimo de CSS de
   carrossel aqui, só o necessário pra compensar esse módulo não usar a classe .tp-carousel.
   ============================================================ */

.fab-carousel {
    position: relative;
    overflow: clip; /* contém o swirl que sangra p/ esquerda/baixo */
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: flex-start;
}

/* ---------- swirls decorativos (atrás, crossfade) ---------- */
.fc-images {
    position: absolute;
    z-index: 1;
    left: -416px;
    width: 1240px;
    height: 1240px;
    pointer-events: none;
    overflow: hidden;
}

.fc-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    backface-visibility: hidden;
    transition: transform 2s ease, opacity 2s ease;
    transform: rotate(90deg);
}

    .fc-image.is-active {
        opacity: 1;
        transform: rotate(0);
    }

    .fc-image.fc-enter {
        transform: rotate(90deg);
        opacity: 0;
    }

    .fc-image.fc-exit {
        transform: rotate(-90deg);
        opacity: 0;
    }

/* ---------- header (fixo) ---------- */
.fc-header {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 896px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.fc-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 4px 8px;
    background: var(--bg-neutral-dark);
    font-family: var(--font-sans);
    font-weight: var(--fw-medium);
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    color: var(--title-inverse);
    white-space: nowrap;
}

.fc-header__title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--fw-extralight);
    font-size: 56px;
    line-height: 56px;
    letter-spacing: 0;
    color: var(--title-inverse);
}

.fc-header__body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--fw-light);
    font-size: 24px;
    line-height: 32px;
    color: var(--title-inverse);
}

/* ---------- container: spacer + card ---------- */
.fc-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.fc-spacer {
    flex: 1 0 0;
    min-width: 0;
    align-self: stretch;
}

.fc-card {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 100px;
    padding-right: var(--section-horizontal);
}

.fc-slides {
    display: grid;
    max-width: 100%;
}

.fc-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}

    .fc-slide.is-active {
        opacity: 1;
        visibility: visible;
        transition: opacity var(--t-base) var(--ease);
    }

.fc-slide__title {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--fw-extralight);
    font-size: 80px;
    line-height: 80px;
    letter-spacing: 0;
    color: var(--title-inverse);
}

.fc-slide__body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--fw-light);
    font-size: 24px;
    line-height: 32px;
    color: var(--title-inverse);
}

.fc-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .fc-nav .tpc__progress {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        height: 4px;
    }

        .fc-nav .tpc__progress::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            height: 1px;
            transform: translateY(-50%);
            background: var(--bg-neutral-strong);
        }

    .fc-nav .tpc__progress-fill {
        position: absolute;
        left: 0;
        top: 0;
        height: 4px;
        background: var(--bg-primary-strong);
        transition: width 0.4s var(--ease);
    }

@media (prefers-reduced-motion: reduce) {
    .fc-image, .fc-slide {
        transition: none;
    }
}

@media (min-width: 1920px) {
    section:has(.fab-carousel) {
        overflow-x: visible;
        overflow-y: clip;
    }

    .fab-carousel {
        overflow-x: visible;
        overflow-y: clip;
    }
}

@media (max-width:992px) {
    .fc-nav .tpc__progress {
        display: none;
    }
}

@media (max-width: 768px) {

    .fc-card {
        gap: 50px;
    }

    .fc-slides {
        max-width: 500px;
        margin: 0 auto;
    }

    .fab-carousel {
        padding: 56px 20px 60px;
    }

    .fc-header__title {
        font-size: 40px;
        line-height: 40px;
    }

    .fc-header__body {
        font-size: 16px;
        line-height: 24px;
    }

    .fc-spacer {
        display: none;
    }

    .fc-slide__title {
        font-size: 56px;
        line-height: 56px;
    }

    .fc-slide__body {
        font-size: 16px;
        line-height: 24px;
    }

    .fc-nav {
        width: 100%;
        justify-content: center;
    }

    .fc-images {
        left: 50%;
        top: auto;
        bottom: -670px;
        transform: translateX(-50%);
        width: 825px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
