/* =============================================
   Hover Card Slider for Elementor — v2.0.0
   ============================================= */

/* ── WRAPPER ── */
.hcs-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* ── TRACK (scrollable row) ── */
.hcs-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── CARD ── */
.hcs-card {
    position: relative;
    flex: 0 0 calc(25% - 12px);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4.2;
    min-height: 380px;
}

/* ── FULL BG IMAGE (position absolute, covers entire card) ── */
.hcs-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    z-index: 0;
}

.hcs-card__bg--placeholder {
    background: linear-gradient(160deg, #c9a0b0 0%, #7a3050 50%, #3d1525 100%);
}

/* Hover zoom */
.hcs-card:hover .hcs-card__bg {
    transform: scale(1.07);
}

/* ── BASE OVERLAY ── */
.hcs-card__overlay-base {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(80, 30, 60, 0.88) 0%,
        rgba(80, 30, 60, 0.40) 45%,
        rgba(80, 30, 60, 0.10) 100%
    );
    transition: background 0.45s ease;
    pointer-events: none;
}

.hcs-card:hover .hcs-card__overlay-base {
    background: linear-gradient(
        to top,
        rgba(80, 30, 60, 0.95) 0%,
        rgba(80, 30, 60, 0.65) 55%,
        rgba(80, 30, 60, 0.20) 100%
    );
}

/* ── CONTENT ── */
.hcs-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 24px;
    z-index: 2;
}

.hcs-card__eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4a853;
    margin-bottom: 8px;
}

.hcs-card__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    padding: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hcs-card:hover .hcs-card__title {
    transform: translateY(-4px);
}

/* ── DESCRIPTION (slide up on hover) ── */
.hcs-card__desc {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease 0.05s;
}

.hcs-card:hover .hcs-card__desc {
    max-height: 300px;
    opacity: 1;
}

.hcs-card__desc-inner {
    padding-top: 14px;
}

.hcs-card__divider {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.hcs-card__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hcs-card__bullets li {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.hcs-card__bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: #d4a853;
    margin-top: 5px;
}

.hcs-card__cta {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4a853;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 168, 83, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hcs-card__cta:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* ── ACTIVE CARD ── */
.hcs-card--active {
    outline: 2px solid rgba(212, 168, 83, 0.6);
    outline-offset: -2px;
}

/* ── CAROUSEL NAV ARROWS ── */
.hcs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.hcs-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.hcs-nav:disabled {
    opacity: 0.3;
    cursor: default;
    transform: translateY(-50%) scale(1);
}

.hcs-nav--prev { left: -22px; }
.hcs-nav--next { right: -22px; }

.hcs-nav svg {
    width: 18px;
    height: 18px;
    stroke: #501e3c;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── DOTS ── */
.hcs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.hcs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(80,30,60,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hcs-dot.is-active {
    background: #d4a853;
    transform: scale(1.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hcs-card {
        flex: 0 0 calc(33.333% - 11px);
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .hcs-card {
        flex: 0 0 calc(50% - 8px);
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .hcs-card {
        flex: 0 0 calc(100% - 0px);
        aspect-ratio: 4 / 3;
        min-height: unset;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hcs-card__bg,
    .hcs-card__desc,
    .hcs-card__title,
    .hcs-card__overlay-base,
    .hcs-track { transition: none !important; }
}
