/* ==========================================================================
   Farm Adventures — Premium Mobile Slider
   Netflix-style 3D depth cards with swipe navigation
   Active only at ≤ 768 px
   ========================================================================== */

/* ── Only activate on mobile ── */
@media (min-width: 769px) {
    .fam-slider { display: none !important; }
}

/* ══════════════════════════════════════════
   CONTAINER
   ══════════════════════════════════════════ */
.fam-slider {
    background: #0d1f0b;
    padding: 0 0 48px;
    position: relative;
    overflow: hidden;
}

.fam-slider__header {
    text-align: center;
    padding: 40px 20px 24px;
}

.fam-slider__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #CBA35C;
    margin-bottom: 8px;
}

.fam-slider__heading {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

/* ── Swipe hint ── */
.fam-slider__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px 20px;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.fam-slider__hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.fam-slider__hint-text {
    font-family: 'Lora', serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
}

.fam-slider__hint-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(203, 163, 92, 0.6);
    border-bottom: 2px solid rgba(203, 163, 92, 0.6);
    transform: rotate(-45deg);
    animation: famHintBounce 1.8s ease-in-out infinite;
}

@keyframes famHintBounce {
    0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: 0.6; }
    50% { transform: rotate(-45deg) translate(5px, 5px); opacity: 1; }
}

/* ══════════════════════════════════════════
   TRACK — Horizontal scroll-snap
   ══════════════════════════════════════════ */
.fam-slider__track {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-left: 20px;
    perspective: 1200px;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.fam-slider__track::-webkit-scrollbar {
    display: none;
}

/* ══════════════════════════════════════════
   CARD — 3D Depth Style
   ══════════════════════════════════════════ */
.fam-card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #111;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transform: scale(0.92) translateZ(0);
    opacity: 0.55;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.fam-card.is-active {
    transform: scale(1) translateZ(0);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(203, 163, 92, 0.12);
}

/* ── Image container — 4:5 aspect ratio ── */
.fam-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #111;
    overflow: hidden;
}

.fam-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Parallax scale on active card */
.fam-card.is-active .fam-card__img {
    transform: scale(1.03) translateZ(0);
}

/* ── Gradient overlay for text readability ── */
.fam-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 20%,
        rgba(0, 0, 0, 0.4) 55%,
        rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Text content ── */
.fam-card__text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 20px 24px;
}

.fam-card__number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 300;
    color: rgba(203, 163, 92, 0.15);
    line-height: 1;
    margin-bottom: -8px;
    letter-spacing: -2px;
}

.fam-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.fam-card__divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #CBA35C, transparent);
    border-radius: 2px;
    margin-bottom: 10px;
    position: relative;
}

.fam-card__divider::after {
    content: '◆';
    position: absolute;
    left: 44px;
    top: -5px;
    font-size: 6px;
    color: #CBA35C;
    opacity: 0.4;
}

.fam-card__desc {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   PAGINATION DOTS
   ══════════════════════════════════════════ */
.fam-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 20px 0;
    flex-wrap: wrap;
}

.fam-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
}

.fam-slider__dot.is-active {
    width: 22px;
    border-radius: 10px;
    background: #CBA35C;
}

/* ══════════════════════════════════════════
   COUNTER
   ══════════════════════════════════════════ */
.fam-slider__counter {
    text-align: center;
    padding: 16px 20px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.fam-slider__counter-current {
    color: #CBA35C;
    font-weight: 600;
}

/* ══════════════════════════════════════════
   SMALL MOBILE TWEAKS (≤ 400px)
   ══════════════════════════════════════════ */
@media (max-width: 400px) {
    .fam-card {
        flex: 0 0 85%;
        max-width: 85%;
    }

    .fam-card__title {
        font-size: 20px;
    }

    .fam-card__desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .fam-card__number {
        font-size: 44px;
    }

    .fam-slider__heading {
        font-size: 22px;
    }
}
