
/* =====================================
   FLYPICTURES - CINEMATIC HERO SLIDER
   Inspired by Cappa Demo 6 Light
===================================== */

.fp-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    max-height: none;
    overflow: hidden;
    isolation: isolate;
    background: #101820;
    color: #fff;
    font-family: inherit;
}

.fp-hero-slides,
.fp-hero-slide {
    position: absolute;
    inset: 0;
}

.fp-hero-slide {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition:
        opacity 1.5s ease,
        visibility 1.5s ease;
}

.fp-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Background image */

.fp-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.08);
    transition: transform 8s cubic-bezier(.2,.6,.3,1);
}

.fp-hero-slide.is-active .fp-hero-image {
    transform: scale(1);
}

/* Dark elegant overlay */

.fp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.48) 0%,
        rgba(0,0,0,.16) 55%,
        rgba(0,0,0,.08) 100%
    ),
    linear-gradient(
        0deg,
        rgba(0,0,0,.28),
        transparent 45%
    );
}

/* Caption */

.fp-hero-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-40px);
    max-width: 850px;
    opacity: 0;
    transition:
        opacity 1s ease .4s,
        transform 1s ease .4s;
}

.fp-hero-slide.is-active .fp-hero-caption {
    opacity: 1;
    transform: translateY(-50%);
}

.fp-hero-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 6px;
    margin-bottom: 25px;
}

.fp-hero-caption h1 {
    font-size: clamp(38px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
}

.fp-hero-caption p {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 22px;
    color: rgba(255,255,255,.9);
}

.fp-hero-decoration {
    display: block;
    width: 55px;
    height: 1px;
    background: #fff;
    margin-top: 30px;
}

/* Navigation */

.fp-hero-navigation {
    position: absolute;
    z-index: 5;
    left: 10%;
    bottom: 45px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fp-hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .3s ease;
}

.fp-hero-arrow:hover {
    background: rgba(255,255,255,.2);
}

.fp-hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-hero-dot {
    width: 25px;
    height: 2px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: all .4s ease;
}

.fp-hero-dot.is-active {
    width: 45px;
    background: #fff;
}

/* Counter */

.fp-hero-counter {
    position: absolute;
    z-index: 5;
    right: 10%;
    bottom: 53px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    letter-spacing: 3px;
    color: #fff;
}

.fp-hero-current {
    font-size: 21px;
    font-weight: 600;
}

/* Progress */

.fp-hero-progress {
    position: absolute;
    z-index: 6;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.2);
}

.fp-hero-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

/* Mobile */

@media (max-width: 767px) {

	.fp-hero {
		width: 100%;
		height: 100vh;
		height: 100svh;
		height: 100dvh;
		min-height: 100vh;
		max-height: none;
	}

    .fp-hero-image {
        object-position: center center;
    }

    .fp-hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0,0,0,.55) 0%,
                rgba(0,0,0,.08) 65%,
                rgba(0,0,0,.12) 100%
            );
    }

    .fp-hero-caption {
        left: 7%;
        right: 7%;
        top: 50%;
        max-width: none;
    }

    .fp-hero-subtitle {
        font-size: 10px;
        letter-spacing: 4px;
        margin-bottom: 18px;
    }

    .fp-hero-caption h1 {
        font-size: clamp(34px, 9vw, 49px);
        line-height: 1.15;
    }

    .fp-hero-caption p {
        font-size: 13px;
        margin-top: 18px;
        line-height: 1.6;
    }

    .fp-hero-decoration {
        margin-top: 22px;
    }

    .fp-hero-navigation {
        left: 7%;
        bottom: 35px;
        gap: 12px;
    }

    .fp-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .fp-hero-dot {
        width: 15px;
    }

    .fp-hero-dot.is-active {
        width: 30px;
    }

    .fp-hero-counter {
        right: 7%;
        bottom: 44px;
        font-size: 10px;
        gap: 8px;
    }

    .fp-hero-current {
        font-size: 18px;
    }
}

/* Accessibility */

.fp-hero-arrow:focus-visible,
.fp-hero-dot:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .fp-hero-slide,
    .fp-hero-image,
    .fp-hero-caption {
        transition: none !important;
    }
}

@media (max-width: 767px) {

    .fp-hero-navigation {
        position: absolute !important;
        left: 7% !important;
        bottom: 100px !important;
        top: auto !important;
        z-index: 50 !important;
    }

    .fp-hero-counter {
        position: absolute !important;
        right: 7% !important;
        bottom: 109px !important;
        top: auto !important;
        z-index: 50 !important;
    }
}
