/* ============================================================
   Pointblank Dynamic Card Carousel — front-end styles.
   Horizontal drag-scroll carousel. Two card types: intro / product.
   ============================================================ */

.pb-dcc {
    --pbdcc-per: 4.1;
    --pbdcc-gap: 20px;
    --pbdcc-ratio: 3 / 4;
    --pbdcc-scrim: rgba(0, 0, 0, 0.55);
    position: relative;          /* anchor for the drag cursor pill */
    width: 100%;
    box-sizing: border-box;
    padding: 24px 0;
    background-color: transparent;
}

.pb-dcc *,
.pb-dcc *::before,
.pb-dcc *::after {
    box-sizing: border-box;
}

/* ---- Track ------------------------------------------------ */
.pb-dcc__track {
    display: flex;
    gap: var(--pbdcc-gap);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    cursor: default;          /* no hand on hover — only while dragging */
    padding: 0 24px;
    scrollbar-width: none;          /* Firefox */
    /* Drag must never select card text. */
    user-select: none;
    -webkit-user-select: none;
}

.pb-dcc__track::-webkit-scrollbar {  /* Chrome/Safari */
    display: none;
}

.pb-dcc__track.is-grabbing {
    cursor: grabbing;
}

/* Full-bleed: break the scroll track out of a boxed container so cards stay
   visible past the left/right edges while dragging. First card aligns to the
   container's left content edge; the track itself spans the full viewport.
   Requires no ancestor with overflow:hidden. */
.pb-dcc--bleed .pb-dcc__track {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* ---- Grid mode: wrap cards into rows instead of horizontal scroll ---- */
.pb-dcc--grid .pb-dcc__track {
    flex-wrap: wrap;
    row-gap: var(--pbdcc-gap);
    overflow: visible;
    cursor: default;
}

/* min-width would force overflow at 1-column (mobile) widths; basis drives size in grid. */
.pb-dcc--grid .pb-dcc__card {
    min-width: 0;
}

/* Grid never scrolls, so drop the full-bleed breakout and the drag pill. */
.pb-dcc--grid.pb-dcc--bleed .pb-dcc__track {
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
}

.pb-dcc--grid .pb-dcc__cursor {
    display: none;
}

/* ---- Card ------------------------------------------------- */
.pb-dcc__card {
    position: relative;
    flex: 0 0 calc((100% - (var(--pbdcc-per) - 1) * var(--pbdcc-gap)) / var(--pbdcc-per));
    min-width: 316px;
    aspect-ratio: var(--pbdcc-ratio);
    /* When --pbdcc-height is set (Elementor "Card Height" control), the explicit
       height wins over aspect-ratio; otherwise it stays auto and the ratio drives. */
    height: var(--pbdcc-height, auto);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
    text-decoration: none;
    color: #fff;
    background-color: #111;
}

/* Image set as a true background inline per card, on its own layer so it can
   transform-scale on arrow hover. */
.pb-dcc__media {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

/* Zoom the card image while its arrow button is hovered. */
.pb-dcc__card:has(.pb-dcc__arrow:hover) .pb-dcc__media {
    transform: scale(1.08);
}

.pb-dcc__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Product: bottom scrim for legibility. */
.pb-dcc__card--product .pb-dcc__overlay {
    background: linear-gradient(to top, var(--pbdcc-scrim) 0%, rgba(0, 0, 0, 0) 55%);
}

/* Intro: gradient tint (overridden by Elementor Drag Pill / Overlays controls). */
.pb-dcc__card--intro .pb-dcc__overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.40) 0%, #000 100%);
}

/* ---- Content sits above the overlay ----------------------- */
.pb-dcc__eyebrow,
.pb-dcc__title,
.pb-dcc__body,
.pb-dcc__footer,
.pb-dcc__intro {
    position: relative;
    z-index: 1;
}

.pb-dcc__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0;
}

.pb-dcc__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    font-weight: 600;
}

.pb-dcc__body {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #f2f2f2;
}

/* ---- Product layout: eyebrow top, footer (title + arrow) bottom --- */
.pb-dcc__card--product {
    justify-content: space-between;
}

.pb-dcc__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.pb-dcc__footer .pb-dcc__title {
    flex: 1 1 auto;
}

/* ---- Intro layout: top-aligned column, title -> eyebrow -> body ----- */
.pb-dcc__card--intro {
    justify-content: flex-start;
    text-align: center;
}

.pb-dcc__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.pb-dcc__card--intro .pb-dcc__title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ---- Arrow (the card's only link) -------------------------- */
.pb-dcc__arrow {
    position: relative;               /* anchors the absolute second icon */
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    overflow: hidden;                 /* clips the swipe-out/in icon animation */
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* !important: the Elementor controls set the resting colors via post-CSS rules
   ({{WRAPPER}} .pb-dcc__arrow) whose specificity beats anything we can write here. */
.pb-dcc .pb-dcc__arrow:hover {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* Two stacked icons: on hover the first slides out right while the second
   slides in from the left; the transition plays in reverse on hover-out. */
.pb-dcc__arrow svg {
    transition: transform 0.35s ease;
}

.pb-dcc__arrow svg + svg {
    position: absolute;
    inset: 0;
    margin: auto;
    transform: translateX(-250%);   /* parked left, outside the clipped circle */
}

.pb-dcc .pb-dcc__arrow:hover svg {
    transform: translateX(250%);
}

.pb-dcc .pb-dcc__arrow:hover svg + svg {
    transform: translateX(0);
}

/* ---- Drag cursor pill (follows the mouse on hover) -------- */
.pb-dcc__cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background-color: rgba(87, 85, 85, 0.5);   /* #575555 @ 50% — matches Button.svg */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    color: #fff;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;            /* never intercept drag/clicks */
    opacity: 0;
    /* Centered below the pointer (JS pins left/top to the pointer position). */
    transform: translate(-50%, 18px) scale(0.8);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pb-dcc.is-cursor-active .pb-dcc__cursor {
    opacity: 1;
    transform: translate(-50%, 18px) scale(1);
}

/* Hide the drag pill while the arrow button is hovered. */
.pb-dcc.is-cursor-active:has(.pb-dcc__arrow:hover) .pb-dcc__cursor {
    opacity: 0;
}


.pb-dcc__cursor-text {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px; /* 142.857% */
    text-transform: uppercase;
}

.pb-dcc__cursor-arrows {
    display: block;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 767px) {
    .pb-dcc__track { padding: 0 16px; }
}
