/* ── Rotating Card Carousel — style.css v2.0.0 ── */

.rcc-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12vh;
    box-sizing: border-box;
}

/* ── Background watermark ── */
.rcc-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    font-weight: 900;
    color: #ffffff;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

/* ── Arc container — absolute, fills wrapper ── */
.rcc-arc-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Individual card ── */
.rcc-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    pointer-events: all;
    /* JS sets transform; CSS handles transition */
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    will-change: transform, opacity;
    outline: none;
}

.rcc-card:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 8px 32px rgba(255,255,255,0.08);
}

/* ── Card inner — counter-rotates so icon stays upright ── */
.rcc-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: rotate(-45deg);
}

/* ── Icon image ── */
.rcc-card-icon {
    display: block;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* ── Center content ── */
.rcc-center-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 360px;
    padding: 0 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rcc-center-content.rcc-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.rcc-center-content.rcc-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Large faint step number ── */
.rcc-step-number {
    font-size: 96px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    margin-bottom: -20px;
    user-select: none;
    pointer-events: none;
}

/* ── Card title ── */
.rcc-center-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* ── Card description ── */
.rcc-center-desc {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════
   MOBILE — Swiper flat slider
══════════════════════════════════════════ */
@media (max-width: 767px) {
    .rcc-wrapper {
        min-height: auto;
        padding: 40px 0 60px;
        justify-content: flex-start;
        flex-direction: column;
    }

    .rcc-watermark {
        font-size: 120px;
    }

    /* Hide arc layout on mobile */
    .rcc-arc-container {
        position: relative;
        inset: auto;
        width: 100%;
        overflow: visible;
        pointer-events: all;
    }

    /* Swiper injected by JS on mobile */
    .rcc-arc-container .swiper {
        width: 100%;
        padding: 20px 0;
    }

    .rcc-arc-container .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Cards flat on mobile — no 45deg rotation */
    .rcc-arc-container .swiper-slide .rcc-card {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        left: auto !important;
        top: auto !important;
        width: 140px !important;
        height: 140px !important;
    }

    .rcc-arc-container .swiper-slide .rcc-card-inner {
        transform: none !important;
    }

    .rcc-center-content {
        margin-top: 30px;
        order: 2;
    }

    .rcc-step-number {
        font-size: 60px;
    }
}

/* ══════════════════════════════════════════
   TABLET
══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
    .rcc-watermark {
        font-size: 200px;
    }
}
