/* ============================================================
   Drop Catalog Slider v1.4 — Stylesheet
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   OUTER WRAPPER
   Full-bleed breakout from WPBakery column.
   Uses negative margin + 100vw trick so the slider always
   fills the full viewport width regardless of column padding.
   ══════════════════════════════════════════════════════════════ */
.drop-catalog-slider {
    position: relative;
    /* Break out of WPBakery column constraints */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 40px 0 32px;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
    overflow: hidden; /* clips cards bleeding past viewport edges */
}

/* ══════════════════════════════════════════════════════════════
   SLIDER WRAPPER
   Full width, relative container for absolute arrows.
   JS sets its height = active card height.
   ══════════════════════════════════════════════════════════════ */
.dcs-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Track: overflow visible so side/far cards bleed naturally */
.dcs-track-container {
    width: 100%;
    overflow: visible;
    position: relative;
}

.dcs-track {
    display: flex;
    align-items: flex-end; /* bottom-align: scaled cards share baseline */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.dcs-card {
    flex: 0 0 auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    transition:
        transform  0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity    0.45s ease,
        box-shadow 0.45s ease;
    transform-origin: bottom center;
}

.dcs-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Active / center */
.dcs-card--active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 10px 48px rgba(0,0,0,0.20);
    z-index: 3;
}

/* Adjacent ±1 */
.dcs-card--side {
    transform: scale(0.82);
    opacity: 0.85;
    z-index: 2;
}

/* Far ±2 */
.dcs-card--far {
    transform: scale(0.70);
    opacity: 0.55;
    z-index: 1;
}

/* Outer ±3+ */
.dcs-card--outer {
    transform: scale(0.62);
    opacity: 0.30;
    z-index: 0;
}

/* ── PDF hover badge ── */
.dcs-card__link-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.40) 0%, transparent 55%);
    text-decoration: none;
}

.dcs-card--active:hover .dcs-card__link-badge {
    opacity: 1;
}

.dcs-card__link-badge span {
    background: #fff;
    color: #111;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   ARROWS
   Positioned absolutely by JS in the gap between active
   and adjacent side cards.
   ══════════════════════════════════════════════════════════════ */
.dcs-arrow {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    /* top/left set by JS — no CSS default needed */
    transition: opacity 0.2s;
}

.dcs-arrow svg {
    width: 44px;
    height: 44px;
    display: block;
}

.dcs-arrow:hover  { opacity: 0.72; }
.dcs-arrow:active { opacity: 0.45; }

/* ══════════════════════════════════════════════════════════════
   LABEL
   Viewport-centered via 100vw + negative margin breakout,
   matching the slider wrapper's own full-bleed technique.
   ══════════════════════════════════════════════════════════════ */
.dcs-label {
    width: 100%;
    margin-top: 22px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.15;
    min-height: 28px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 0 20px;
    box-sizing: border-box;
}

.dcs-label__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #111;
}

.dcs-label__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: #111;
}

/* ══════════════════════════════════════════════════════════════
   HEADER BACKGROUND LAYER
   Injected by JS as first child of #page.
   z-index 9998 sits just below .site-header (9999).
   Dark overlay via ::after keeps navbar text legible.
   ══════════════════════════════════════════════════════════════ */
.dcs-header-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease;
    background-color: #0a0a14;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .dcs-arrow { width: 38px; height: 38px; }
    .dcs-arrow svg { width: 38px; height: 38px; }
}

@media (max-width: 768px) {
    .drop-catalog-slider { padding: 28px 0 24px; }
    .dcs-label__title,
    .dcs-label__subtitle { font-size: 1rem; }
    .dcs-arrow { width: 34px; height: 34px; }
    .dcs-arrow svg { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
    .drop-catalog-slider { padding: 20px 0 18px; }
    .dcs-label__title,
    .dcs-label__subtitle { font-size: 0.88rem; }
}

