/* ================================================================
   Arc Carousel Widget v1.1.0 — By Warieta Gift Ejovwoke
   arc-carousel.css
   ================================================================ */

/* ── Section wrapper ─────────────────────────────────────────── */
.arc-section {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    background: #f2f2f2;
    padding: 60px 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── Heading block ───────────────────────────────────────────── */
.arc-header {
    text-align: center;
    margin-bottom: 36px;
    padding: 0 24px;
}
.arc-eyebrow {
    margin: 0 0 4px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    font-family: inherit;
}
.arc-heading {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    font-family: inherit;
    line-height: 1.1;
}

/* ── Stage (visible viewport — clips overflow) ───────────────── */
.arc-stage {
    position: relative;
    width: 100%;
    overflow: hidden;          /* hides off-screen cards          */
    /* height set by JS via CSS var */
    height: var(--arc-stage-h, 480px);
    cursor: grab;
}
.arc-stage.is-dragging { cursor: grabbing; }

/* ── Track (absolute-positioned card container) ──────────────── */
.arc-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cards are positioned individually inside by JS */
}

/* ── Card ────────────────────────────────────────────────────── */
.arc-card {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    will-change: transform, opacity;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.20),
        0 2px 8px  rgba(0,0,0,0.14);
    transition:
        transform   var(--arc-speed, 550ms) cubic-bezier(0.33, 1, 0.68, 1),
        opacity     var(--arc-speed, 550ms) cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow  0.3s ease;
    /* top / left / transform all set by JS */
}
.arc-card:hover {
    box-shadow:
        0 14px 48px rgba(0,0,0,0.28),
        0 4px 12px  rgba(0,0,0,0.18);
}
.arc-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
}
.arc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    mix-blend-mode: normal;
    pointer-events: none;
    border-radius: inherit;
}
.arc-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 70%, transparent 100%);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: inherit;
    pointer-events: none;
    border-radius: 0 0 inherit inherit;

    /* Hidden by default — JS fades it in only on centre card */
    opacity: 0;
    transform: translateY(6px);
    /* Transition is set inline by JS so it matches transitionSpeed config */
    transition: opacity 550ms cubic-bezier(0.33,1,0.68,1),
                transform 550ms cubic-bezier(0.33,1,0.68,1);
}

/* ── When JS disables transitions (instant repositioning) ─────── */
.arc-card.no-transition {
    transition: none !important;
}

/* ── Credit line ─────────────────────────────────────────────── */
.arc-credit {
    text-align: center;
    font-size: 0.68rem;
    color: rgba(0,0,0,0.3);
    margin: 18px 0 0;
    letter-spacing: 0.06em;
    font-family: inherit;
}

/* ────────────────────────────────────────────────────────────────
   MOBILE  (≤ 768 px)
   - One card fully visible, adjacent cards peek ~20 % from sides
   - Aspect ratio preserved (set by JS)
   - Same infinite loop, same auto-play
   ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .arc-section  { padding: 40px 0; }
    .arc-stage    { cursor: default; overflow: hidden; }
    .arc-stage.is-dragging { cursor: default; }

    /* Cards on mobile: override to single-card width with peek */
    .arc-card {
        /* Width = stage - 2 × peek margin; peek handled in JS  */
        border-radius: 12px !important;
    }
}
