/* Revon Hero Slider — frontend styles
 *
 * Layout: full-width section, fixed height per breakpoint (set via inline
 * CSS custom properties on the wrapper), with absolutely-positioned
 * background image + overlay + content per slide.
 */

.rhs-hero-slider {
    position: relative;
    width: 100%;
    height: var(--rhs-h, 760px);
    overflow: hidden;
    background-color: transparent;
    color: #fff;
}

@media (max-width: 991px) {
    .rhs-hero-slider {
        height: var(--rhs-h-md, 480px);
    }
}

@media (max-width: 767px) {
    .rhs-hero-slider {
        height: var(--rhs-h-sm, 420px);
    }
}

.rhs-swiper,
.rhs-swiper .swiper-wrapper,
.rhs-swiper .swiper-slide {
    height: 100%;
}

.rhs-slide {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.rhs-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 6s ease-out;
    will-change: transform;
}

.swiper-slide-active .rhs-slide__bg {
    transform: scale(1.08);
}

.rhs-slide__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rhs-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

/* Vertical position (top / middle / bottom) */
.rhs-slide__content--top-left,
.rhs-slide__content--top-center,
.rhs-slide__content--top-right {
    justify-content: flex-start;
    padding-top: 4rem;
}

.rhs-slide__content--middle-left,
.rhs-slide__content--middle-center,
.rhs-slide__content--middle-right {
    justify-content: center;
}

.rhs-slide__content--bottom-left,
.rhs-slide__content--bottom-center,
.rhs-slide__content--bottom-right {
    justify-content: flex-end;
    padding-bottom: 5rem;
}

/* Horizontal position (left / center / right) */
.rhs-slide__content--top-left,
.rhs-slide__content--middle-left,
.rhs-slide__content--bottom-left {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rhs-slide__content--top-center,
.rhs-slide__content--middle-center,
.rhs-slide__content--bottom-center {
    align-items: center;
    text-align: center;
}

.rhs-slide__content--top-right,
.rhs-slide__content--middle-right,
.rhs-slide__content--bottom-right {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rhs-slide__subtitle {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    font-size: clamp(0.7rem, 0.95vw, 0.85rem);
    letter-spacing: 0.2em;
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 3px;
    display: inline-block;
    background: linear-gradient(
        to bottom,
        rgba(255, 69, 0, 0) 0%,
        rgba(255, 69, 0, 0.7) 25%,
        rgba(255, 69, 0, 0.7) 75%,
        rgba(255, 69, 0, 0) 100%
    );
}

.rhs-slide__title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    max-width: 760px;
    text-wrap: balance;
    font-feature-settings: "kern" 1, "liga" 1;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.35),
        0 4px 24px rgba(0, 0, 0, 0.4);
}

.rhs-slide__description {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    margin: 0 0 1.5rem;
    max-width: 640px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.rhs-slide__content--top-left .rhs-slide__description,
.rhs-slide__content--middle-left .rhs-slide__description,
.rhs-slide__content--bottom-left .rhs-slide__description,
.rhs-slide__content--top-right .rhs-slide__description,
.rhs-slide__content--middle-right .rhs-slide__description,
.rhs-slide__content--bottom-right .rhs-slide__description {
    margin-left: 0;
    margin-right: 0;
}

.rhs-slide__button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #ffffff;
    color: #111;
    border-radius: 3px;
    text-decoration: none;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rhs-slide__button:hover,
.rhs-slide__button:focus {
    background-color: #ff4500;
    color: #000000;
    transform: translateY(-1px);
    outline: none;
}

/* Swiper control overrides */
.rhs-hero-slider .swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 3;
    /* Container is full-width but transparent — let clicks pass
     * through empty space so the CTA button stays reachable. */
    pointer-events: none;
}

.rhs-hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.55;
    pointer-events: auto;
    border-radius: 0;
    width: 10px;
    height: 10px;
}

.rhs-hero-slider .swiper-pagination-bullet-active {
    background: #ee4e12;
    opacity: 1;
}

.rhs-hero-slider .swiper-button-prev,
.rhs-hero-slider .swiper-button-next {
    color: #fff;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.rhs-hero-slider .swiper-button-prev::after,
.rhs-hero-slider .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.rhs-hero-slider .swiper-button-prev:hover,
.rhs-hero-slider .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Ken Burns — slow pan + zoom on the active slide background.
 * Active even when "Ken Burns" isn't the chosen effect (subtle enhancement).
 * When the effect IS Ken Burns, the slide transitions fade and the bg keeps zooming. */
.rhs-hero-slider .rhs-slide__bg {
    transition: transform 7s ease-out, filter 7s ease-out;
}

.rhs-hero-slider:not(.rhs-effect--ken-burns) .rhs-slide__bg {
    transform: scale(1.02);
}

.rhs-hero-slider:not(.rhs-effect--ken-burns) .swiper-slide-active .rhs-slide__bg {
    transform: scale(1.08);
}

.rhs-hero-slider.rhs-effect--ken-burns .rhs-slide__bg {
    transform: scale(1.05) translate3d(0, 0, 0);
}

.rhs-hero-slider.rhs-effect--ken-burns .swiper-slide-active .rhs-slide__bg {
    transform: scale(1.18) translate3d(-2%, 1%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .rhs-hero-slider.rhs-effect--ken-burns .rhs-slide__bg,
    .rhs-hero-slider.rhs-effect--ken-burns .swiper-slide-active .rhs-slide__bg {
        transform: none;
        transition: none;
    }
}

/* Carousel — Center mode: side slides are smaller and offset. */
.rhs-hero-slider.rhs-effect--carousel-center .rhs-slide {
    width: 80%;
    max-width: 900px;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.rhs-hero-slider.rhs-effect--carousel-center .swiper-slide-active {
    opacity: 1;
}

/* Vertical direction: swiper-wrapper stacks vertically. */
.rhs-hero-slider .rhs-swiper.rhs-swiper-vertical,
.rhs-hero-slider .rhs-swiper-vertical .swiper-wrapper {
    flex-direction: column;
}

.rhs-hero-slider .rhs-swiper-vertical .rhs-slide {
    height: 100%;
}

/* Parallax: tighten Swiper's transition timing slightly. */
.rhs-hero-slider.rhs-effect--parallax .rhs-slide__bg,
.rhs-hero-slider.rhs-effect--parallax .rhs-slide__overlay,
.rhs-hero-slider.rhs-effect--parallax .rhs-slide__content {
    will-change: transform;
}

/* Mobile tweaks */
@media (max-width: 767px) {

    .rhs-hero-slider .swiper-button-prev,
    .rhs-hero-slider .swiper-button-next {
        width: 26px;
        height: 26px;
    }

    .rhs-hero-slider .swiper-button-prev::after,
    .rhs-hero-slider .swiper-button-next::after {
        font-size: 11px;
    }

    .rhs-slide__content {
        padding: 1rem;
    }

    .rhs-slide__button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .rhs-hero-slider .swiper-wrapper {
        transition: none !important;
    }

    .rhs-slide__bg {
        transition: none;
    }

    .swiper-slide-active .rhs-slide__bg {
        transform: none;
    }
}