/* ── Alva Experiences Slider ─────────────────────────────────────────────── */

.alva-experiences {
    background: #F5F2EC;
    padding: 120px 0;
    overflow: hidden;
}

/* shared label style — matches front page Jost 9px uppercase */
.alva-label {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #9E9890;
    margin: 0;
}

/* ── Section header ──────────────────────────────────────────────────────── */

.alva-experiences__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: 56px;
}

.alva-experiences__header-text .alva-label {
    margin-bottom: 20px;
}

.alva-experiences__title {
    font-family: 'Bodoni Moda', serif;
    font-size: 56px;
    font-weight: 400;
    color: #18150F;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0;
}

/* ── Prev / Next buttons ─────────────────────────────────────────────────── */

.alva-experiences__nav {
    display: flex;
    gap: 8px;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.alva-nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(24, 21, 15, 0.25);
    color: #18150F;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.alva-nav-btn:hover:not(:disabled) {
    background: #18150F;
    border-color: #18150F;
    color: #F5F2EC;
}

.alva-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Slider viewport ─────────────────────────────────────────────────────── */

.alva-slider {
    padding-left: 24px;
    cursor: grab;
    user-select: none;
}

.alva-slider.is-dragging {
    cursor: grabbing;
}

.alva-slider__track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.alva-slider.no-transition .alva-slider__track {
    transition: none;
}

/* ── Experience card ─────────────────────────────────────────────────────── */

.alva-exp-card {
    flex: 0 0 calc(33.333% - 40px);
    min-width: 0;
    position: relative;
}

/*
 * Card structure matches the Terrace Suite pattern on the front page:
 * image fills the entire container as background, text is overlaid.
 *
 * __inner   = overflow:hidden frame that clips the zoom
 * __bg      = the background image layer — only this zooms on hover
 * __inner::after = gradient so title is always legible
 * __overlay = label + title (always visible) + excerpt (reveals on hover)
 */
.alva-exp-card__inner {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
}

/* dark-to-transparent gradient from bottom — makes title legible at all times */
.alva-exp-card__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.20) 45%,
        rgba(0, 0, 0, 0)    70%
    );
    transition: opacity 0.4s ease;
    z-index: 1;
}

.alva-exp-card:hover .alva-exp-card__inner::after {
    opacity: 1.3; /* deepen gradient slightly so revealed text stays readable */
}

/* background image lives here — zooms independently of the overlay text */
.alva-exp-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-color: #DDD9D0; /* placeholder colour */
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.alva-exp-card:hover .alva-exp-card__bg {
    transform: scale(1.04);
}

/* text overlay — sits above the gradient (z-index > __bg and ::after) */
.alva-exp-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    z-index: 2;
}

.alva-exp-card__overlay .alva-label {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

/* title is ALWAYS visible */
.alva-exp-card__title {
    font-family: 'Bodoni Moda', serif;
    font-size: 26px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

.alva-exp-card__title a {
    color: inherit;
    text-decoration: none;
}

/* excerpt is HIDDEN by default, slides up and fades in on hover */
.alva-exp-card__excerpt {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition:
        max-height 0.45s ease,
        opacity    0.4s  ease,
        transform  0.4s  ease,
        margin-top 0.4s  ease;
}

.alva-exp-card:hover .alva-exp-card__excerpt {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}

/* ── Dots ────────────────────────────────────────────────────────────────── */

.alva-slider__dots {
    display: flex;
    gap: 8px;
    padding: 40px 24px 0;
}

.alva-slider__dot {
    width: 24px;
    height: 1px;
    background: rgba(24, 21, 15, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
}

.alva-slider__dot.is-active {
    background: #18150F;
    width: 40px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .alva-exp-card {
        flex: 0 0 calc(50% - 36px);
    }

    .alva-experiences__title {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    .alva-experiences {
        padding: 80px 0;
    }

    .alva-experiences__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 40px;
    }

    .alva-experiences__title {
        font-size: 32px;
    }

    .alva-exp-card {
        flex: 0 0 calc(85vw - 24px);
    }
}

/* ── Accessibility: show excerpt when card is keyboard-focused ───────────── */
.alva-exp-card:focus-within .alva-exp-card__excerpt {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
}
