/* /assets/css/carousel.css */
.home-carousel {
    --carousel-font-ui: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --carousel-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(28, 21, 17, 0.98), rgba(16, 12, 10, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 18px 36px rgba(0, 0, 0, 0.18);
    margin-top: 8px;
}

.home-carousel__viewport {
    position: relative;
    height: 390px;
}

.home-carousel__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 28px 28px 8px 28px;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 450ms ease,
        visibility 450ms ease;
    z-index: 0;
}

.home-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.home-carousel__content {
    position: absolute;
    left: 18px;
    right: 142px;
    bottom: 8px;
    z-index: 2;
    max-width: 660px;
}

.home-carousel__eyebrow {
    margin: 0 0 5px;
    color: var(--color-accent);
    font-family: var(--carousel-font-ui);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-carousel__title {
    margin: 0 0 5px;
    color: #f7ecd4;
    font-family: var(--carousel-font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0.005em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.home-carousel__text {
    margin: 0;
    max-width: 580px;
    color: rgba(247, 236, 212, 0.92);
    font-family: var(--carousel-font-ui);
    font-size: 0.93rem;
    font-weight: 400;
    line-height: 1.38;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.home-carousel__cta-wrap {
    margin-top: 8px;
}

.home-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(212, 166, 58, 0.28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(166, 30, 42, 0.96), rgba(122, 24, 34, 0.98));
    color: #f8efdc;
    font-family: var(--carousel-font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 22px rgba(0, 0, 0, 0.18);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.home-carousel__button:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 166, 58, 0.40);
    background: linear-gradient(180deg, rgba(182, 33, 47, 0.98), rgba(138, 27, 38, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 24px rgba(0, 0, 0, 0.20);
}

.home-carousel__controls {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
}

.home-carousel__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-carousel__arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(212, 166, 58, 0.20);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(34, 24, 18, 0.78), rgba(16, 12, 10, 0.92));
    color: #fff4df;
    font-size: 0.96rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 18px rgba(0, 0, 0, 0.14);
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.home-carousel__arrow:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(46, 31, 22, 0.88), rgba(21, 15, 11, 0.96));
    border-color: rgba(212, 166, 58, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 20px rgba(0, 0, 0, 0.16);
}

.home-carousel__arrow:focus-visible {
    outline: 2px solid rgba(212, 166, 58, 0.82);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .home-carousel {
        border-radius: 18px;
        margin-top: 6px;
    }

    .home-carousel__viewport {
        height: 330px;
    }

    .home-carousel__slide {
        padding: 20px 16px 8px 16px;
    }

    .home-carousel__content {
        left: 12px;
        right: 108px;
        bottom: 8px;
        max-width: 520px;
    }

    .home-carousel__eyebrow {
        margin-bottom: 4px;
        font-size: 0.62rem;
    }

    .home-carousel__title {
        margin-bottom: 4px;
        font-size: clamp(1.35rem, 5vw, 1.95rem);
        line-height: 0.92;
    }

    .home-carousel__text {
        font-size: 0.86rem;
        line-height: 1.34;
    }

    .home-carousel__cta-wrap {
        margin-top: 8px;
    }

    .home-carousel__button {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .home-carousel__controls {
        right: 8px;
        bottom: 8px;
    }

    .home-carousel__actions {
        gap: 6px;
    }

    .home-carousel__arrow {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 640px) {
    .home-carousel__viewport {
        height: 300px;
    }

    .home-carousel__slide {
        padding: 18px 12px 8px 12px;
    }

    .home-carousel__content {
        left: 10px;
        right: 98px;
        bottom: 8px;
        max-width: none;
    }

    .home-carousel__eyebrow {
        margin-bottom: 3px;
        font-size: 0.6rem;
    }

    .home-carousel__title {
        margin-bottom: 4px;
        font-size: clamp(1.18rem, 6.8vw, 1.7rem);
        line-height: 0.92;
    }

    .home-carousel__text {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .home-carousel__cta-wrap {
        margin-top: 7px;
    }

    .home-carousel__button {
        min-height: 36px;
        padding: 0 13px;
        font-size: 0.82rem;
    }

    .home-carousel__controls {
        right: 8px;
        bottom: 8px;
    }

    .home-carousel__arrow {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 0.84rem;
    }
}

/* carousel scaled down for home feature showcase */
.home-feature-showcase .home-carousel {
    width: min(100%, 1260px);
    margin: 0 auto;
}

.home-feature-showcase .home-carousel__viewport {
    height: 351px;
}

.home-feature-showcase .home-carousel__slide {
    padding: 24px 24px 8px 24px;
}

.home-feature-showcase .home-carousel__content {
    left: 16px;
    right: 132px;
    bottom: 8px;
    max-width: 610px;
}

.home-feature-showcase .home-carousel__title {
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
}

.home-feature-showcase .home-carousel__text {
    max-width: 540px;
    font-size: 0.9rem;
}
