/* =============================================================================
   Floredar — Homepage Hero Slider
   Fade transition, dot pagination, single prev/next arrows.
   Exact headline font size clamp(44px, 5.8vw, 76px), alignment (left | center | right),
   and staggered luxury text transition effects.
   ============================================================================= */

/* Container — full viewport hero matching .hero-full-bg dimensions */
.fl-hero-slider {
    position: relative;
    width: 100%;
    min-height: 82vh;
    height: 100vh;
    max-height: 900px;
    overflow: hidden;
    background: #0d1a14;
    outline: none;
    padding: 0 !important;
}

/* Track holds all slides stacked */
.fl-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Individual Slide ---- */
.fl-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fl-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Ensure the initial active slide is solid immediately without a 0.9s fade delay upon preloader reveal */
.fl-hero-slider:not(.fl-slider-ready) .fl-slide.is-active {
    opacity: 1 !important;
    transition: none !important;
}

/* Scrim overlay defaults */
.fl-slide .hero-scrim-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Slide inner container — exact vertical alignment and spacing */
.fl-slide .hero-container-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    align-items: center;
    padding-top: clamp(100px, 14vh, 140px);
    padding-bottom: clamp(90px, 12vh, 130px);
    box-sizing: border-box;
}

.fl-slide .hero-text-col {
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* =============================================================================
   ALIGNMENT MODES: Left | Center (Middle) | Right
   ============================================================================= */

/* 1. Left Aligned */
.fl-slide-align-left .hero-container-inner {
    justify-content: flex-start;
}
.fl-slide-align-left .hero-text-col {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}
.fl-slide-align-left .hero-heading {
    text-align: left;
}
.fl-slide-align-left .hero-sub {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}
.fl-slide-align-left .hero-ctas {
    justify-content: flex-start;
}
.fl-slide-align-left .hero-scrim-overlay {
    background: linear-gradient(
        90deg,
        rgba(10, 18, 26, 0.78) 0%,
        rgba(10, 18, 26, 0.64) 24%,
        rgba(10, 18, 26, 0.42) 44%,
        rgba(10, 18, 26, 0.20) 64%,
        rgba(10, 18, 26, 0.05) 82%,
        transparent 100%
    );
}

/* 2. Center Aligned (Middle) — specifically for slide 2 and center option */
.fl-slide-align-center .hero-container-inner {
    justify-content: center;
}
.fl-slide-align-center .hero-text-col {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
}
.fl-slide-align-center .hero-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.fl-slide-align-center .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 620px;
}
.fl-slide-align-center .hero-ctas {
    justify-content: center;
    width: 100%;
}
.fl-slide-align-center .hero-scrim-overlay {
    background: radial-gradient(
        ellipse at center,
        rgba(10, 18, 26, 0.45) 0%,
        rgba(10, 18, 26, 0.65) 60%,
        rgba(10, 18, 26, 0.82) 100%
    );
}

/* 3. Right Aligned */
.fl-slide-align-right .hero-container-inner {
    justify-content: flex-end;
}
.fl-slide-align-right .hero-text-col {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}
.fl-slide-align-right .hero-heading {
    text-align: right;
}
.fl-slide-align-right .hero-sub {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}
.fl-slide-align-right .hero-ctas {
    justify-content: flex-end;
}
.fl-slide-align-right .hero-scrim-overlay {
    background: linear-gradient(
        270deg,
        rgba(10, 18, 26, 0.78) 0%,
        rgba(10, 18, 26, 0.64) 24%,
        rgba(10, 18, 26, 0.42) 44%,
        rgba(10, 18, 26, 0.20) 64%,
        rgba(10, 18, 26, 0.05) 82%,
        transparent 100%
    );
}

/* =============================================================================
   TYPOGRAPHY — EXACT match to the single image hero
   ============================================================================= */
.fl-hero-slider .hero-heading,
.fl-slide .hero-heading {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(32px, 5.2vw, 68px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    color: var(--color-paper-white, #ffffff);
    font-weight: var(--font-weight-bold, 700);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.fl-hero-slider .hero-heading-highlight,
.fl-slide .hero-heading-highlight {
    color: var(--color-mint-wash, #bbf7d0);
    font-weight: var(--font-weight-bold, 700);
}

.fl-hero-slider .hero-sub,
.fl-slide .hero-sub {
    font-family: var(--font-pp-neue-montreal, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: clamp(15px, 1.8vw, 20px);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    max-width: 560px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.fl-hero-slider .hero-ctas,
.fl-slide .hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =============================================================================
   TEXT TRANSITION EFFECTS
   ============================================================================= */
.fl-slide .hero-heading,
.fl-slide .hero-sub,
.fl-slide .hero-ctas {
    will-change: transform, opacity;
}

/* 1. Default: Fade Up (Staggered luxury motion) */
.fl-text-trans-fade_up .fl-slide:not(.is-active) .hero-heading {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fl-text-trans-fade_up .fl-slide.is-active .hero-heading {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.fl-text-trans-fade_up .fl-slide:not(.is-active) .hero-sub {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fl-text-trans-fade_up .fl-slide.is-active .hero-sub {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.fl-text-trans-fade_up .fl-slide:not(.is-active) .hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fl-text-trans-fade_up .fl-slide.is-active .hero-ctas {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.44s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.44s;
}

/* 2. Soft Fade */
.fl-text-trans-fade .fl-slide:not(.is-active) .hero-heading,
.fl-text-trans-fade .fl-slide:not(.is-active) .hero-sub,
.fl-text-trans-fade .fl-slide:not(.is-active) .hero-ctas {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.fl-text-trans-fade .fl-slide.is-active .hero-heading {
    opacity: 1;
    transition: opacity 0.9s ease 0.12s;
}
.fl-text-trans-fade .fl-slide.is-active .hero-sub {
    opacity: 1;
    transition: opacity 0.9s ease 0.28s;
}
.fl-text-trans-fade .fl-slide.is-active .hero-ctas {
    opacity: 1;
    transition: opacity 0.9s ease 0.44s;
}

/* 3. Horizontal Slide In */
.fl-text-trans-slide .fl-slide:not(.is-active) .hero-heading {
    opacity: 0;
    transform: translateX(-36px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fl-text-trans-slide .fl-slide.is-active .hero-heading {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.fl-text-trans-slide .fl-slide:not(.is-active) .hero-sub {
    opacity: 0;
    transform: translateX(-26px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fl-text-trans-slide .fl-slide.is-active .hero-sub {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}
.fl-text-trans-slide .fl-slide:not(.is-active) .hero-ctas {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fl-text-trans-slide .fl-slide.is-active .hero-ctas {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.44s,
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.44s;
}

/* Slide in adjustments for center aligned slide */
.fl-text-trans-slide .fl-slide-align-center:not(.is-active) .hero-heading,
.fl-text-trans-slide .fl-slide-align-center:not(.is-active) .hero-sub,
.fl-text-trans-slide .fl-slide-align-center:not(.is-active) .hero-ctas {
    transform: translateY(28px);
}
.fl-text-trans-slide .fl-slide-align-center.is-active .hero-heading,
.fl-text-trans-slide .fl-slide-align-center.is-active .hero-sub,
.fl-text-trans-slide .fl-slide-align-center.is-active .hero-ctas {
    transform: translateY(0);
}

/* 4. Subtle Zoom & Fade */
.fl-text-trans-zoom .fl-slide:not(.is-active) .hero-heading {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fl-text-trans-zoom .fl-slide.is-active .hero-heading {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s,
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.fl-text-trans-zoom .fl-slide:not(.is-active) .hero-sub {
    opacity: 0;
    transform: scale(0.95) translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.fl-text-trans-zoom .fl-slide.is-active .hero-sub {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}
.fl-text-trans-zoom .fl-slide:not(.is-active) .hero-ctas {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fl-text-trans-zoom .fl-slide.is-active .hero-ctas {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.44s,
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.44s;
}

/* =============================================================================
   PREV / NEXT NAVIGATION ARROW BUTTONS (SINGLE CLEAN ARROW)
   ============================================================================= */
.fl-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fl-slider-btn:hover,
.fl-slider-btn:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    border-color: #ffffff;
    color: #0f2537;
    transform: translateY(-50%) scale(1.08);
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.fl-slider-btn:active {
    background: var(--color-primary-dark, var(--color-primary, #165347));
    border-color: var(--color-primary-dark, var(--color-primary, #165347));
    transform: translateY(-50%) scale(0.96);
}

.fl-slider-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    stroke: currentColor;
    pointer-events: none;
    flex-shrink: 0;
}

.fl-slider-prev svg {
    margin-right: 2px;
}

.fl-slider-next svg {
    margin-left: 2px;
}

.fl-slider-prev {
	left: clamp(12px, 3vw, 36px);
}

.fl-slider-next {
	right: clamp(12px, 3vw, 36px);
}

/* When arrows are disabled via customizer option */
.fl-no-arrows .fl-slider-btn {
    display: none !important;
}

/* =============================================================================
   DOT PAGINATION
   ============================================================================= */
.fl-slider-dots {
    position: absolute;
    bottom: clamp(54px, 7.5vh, 68px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
    flex-shrink: 0;
}

.fl-slider-dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fl-slider-dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.75);
}

/* =============================================================================
   HERO SCROLL DOWN INDICATOR & ANIMATION
   ============================================================================= */
.hero-scroll-cue {
    position: absolute;
    bottom: clamp(14px, 2vh, 22px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    cursor: pointer;
}

.hero-full-bg:not(.fl-hero-slider) .hero-scroll-cue {
    bottom: clamp(24px, 4vh, 36px);
}

.hero-scroll-cue:hover {
    color: var(--color-mint-wash, #bbf7d0);
    transform: translateX(-50%) translateY(2px);
}

.hero-scroll-cue.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}

/* Mouse capsule */
.hero-scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: border-color 0.25s ease;
}

.hero-scroll-cue:hover .hero-scroll-mouse {
    border-color: var(--color-mint-wash, #bbf7d0);
}

.hero-scroll-wheel {
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: currentColor;
    animation: heroScrollWheel 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes heroScrollWheel {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.hero-scroll-text {
    font-family: var(--font-pp-neue-montreal, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-scroll-chevron {
    animation: heroScrollBounce 2s ease-in-out infinite;
    display: block;
}

@keyframes heroScrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(4px);
    }
    60% {
        transform: translateY(2px);
    }
}

/* =============================================================================
   RESPONSIVE & MOBILE ONE-SIDED BACKGROUND FIX
   ============================================================================= */
@media (max-width: 991px) {
    .fl-hero-slider {
        min-height: 520px;
    }

    .fl-slide,
    .hero-full-bg {
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Fix one-sided background: override all directional scrims with balanced full-width vertical gradient */
    .hero-scrim-overlay,
    .fl-slide .hero-scrim-overlay,
    .fl-slide-align-left .hero-scrim-overlay,
    .fl-slide-align-right .hero-scrim-overlay,
    .fl-slide-align-center .hero-scrim-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 18, 26, 0.78) 0%,
            rgba(10, 18, 26, 0.52) 38%,
            rgba(10, 18, 26, 0.65) 72%,
            rgba(10, 18, 26, 0.85) 100%
        ) !important;
    }

    .fl-slide .hero-container-inner {
        padding-top: clamp(90px, 12vh, 120px);
        padding-bottom: clamp(70px, 10vh, 100px);
    }
}

@media (max-width: 768px) {
    .fl-hero-slider {
        height: 90vh;
        min-height: 480px;
    }

    .fl-slider-btn {
        width: 42px;
        height: 42px;
    }

    .fl-slider-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 640px) {
    .fl-hero-slider .hero-heading,
    .fl-slide .hero-heading {
        font-size: clamp(28px, 7.5vw, 36px) !important;
    }

    .fl-hero-slider .hero-sub,
    .fl-slide .hero-sub {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .fl-hero-slider .hero-ctas,
    .fl-slide .hero-ctas {
        gap: 12px;
    }

    .fl-slide .hero-container-inner {
        padding-top: 85px;
        padding-bottom: 75px;
    }

    /* Compact scroll cue and dots on small devices */
    .fl-slider-dots {
        bottom: 46px;
    }

    .hero-scroll-cue {
        bottom: 8px;
        gap: 2px;
    }

    .hero-scroll-mouse {
        width: 16px;
        height: 24px;
        border-radius: 9px;
        padding-top: 3px;
    }

    .hero-scroll-wheel {
        width: 2px;
        height: 4px;
    }

    .hero-scroll-text {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    /* Balanced mobile scrim */
    .hero-scrim-overlay,
    .fl-slide .hero-scrim-overlay,
    .fl-slide-align-left .hero-scrim-overlay,
    .fl-slide-align-right .hero-scrim-overlay,
    .fl-slide-align-center .hero-scrim-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 18, 26, 0.80) 0%,
            rgba(10, 18, 26, 0.56) 35%,
            rgba(10, 18, 26, 0.70) 65%,
            rgba(10, 18, 26, 0.88) 100%
        ) !important;
    }
}

@media (max-width: 480px) {
    .fl-slider-btn {
        width: 38px;
        height: 38px;
    }

    .fl-slider-btn svg {
        width: 16px;
        height: 16px;
    }

	.fl-slider-prev {
		left: 8px;
	}

	.fl-slider-next {
		right: 8px;
	}
}
