/* 1. Main Wrapper */
.fh-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: 20px;
}

/* 2. Hero Container */
.fh-hero {
    position: relative;
    overflow: hidden; 
    height: var(--fh-h-d, 80vh);
    width: var(--fh-w-d, 100%);
    border-radius: var(--fh-r-d, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    transform: translateZ(0);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* 3. Video Layers */
.fh-video-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; 
    pointer-events: none;
    overflow: hidden;
    background: #000;
}

.fh-native-video {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important;
    display: block;
    position: absolute;
    top: 0; left: 0;
}

.fh-iframe-crop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.fh-iframe-crop iframe {
    position: absolute; top: 50%; left: 50%;
    width: 300%; height: 100%; 
    transform: translate(-50%, -50%);
    aspect-ratio: 16/9; border: 0;
}

.fh-poster-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: -1;
}

/* Device Switching */
.fh-show-mobile { display: none; }
.fh-show-desktop { display: block; }
@media (max-width: 768px) {
    .fh-show-desktop { display: none; }
    .fh-show-mobile { display: block; }
}

/* Overlay */
.fh-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; opacity: var(--fh-o, 0.4); z-index: 1;
}

/* Content */
.fh-content {
    position: relative; z-index: 2; text-align: center;
    padding: 20px; max-width: 900px;
}

@keyframes fh-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fh-headline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--fh-fs-h-d, 60px) !important;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
}

.fh-subhead {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--fh-fs-s-d, 20px) !important;
    color: rgba(255,255,255,0.95);
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.fh-btn-wrapper {
    opacity: 0;
    animation: fh-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.fh-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: var(--fh-fs-b-d, 16px) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.fh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #f8f8f8;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .fh-hero {
        height: var(--fh-h-m, 60vh);
        width: var(--fh-w-m, 100%);
        border-radius: var(--fh-r-m, 0px);
    }
    .fh-headline { font-size: var(--fh-fs-h-m, 32px) !important; }
    .fh-subhead  { font-size: var(--fh-fs-s-m, 16px) !important; }
    .fh-btn      { font-size: var(--fh-fs-b-m, 14px) !important; }
}

/* ====================== PREMIUM SCROLL INDICATOR ====================== */
.fh-scroll-indicator {
    position: absolute;
    bottom: var(--fh-scroll-offset, 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; /* ABOVE content (z2) and overlay (z1) */
    pointer-events: none;
    will-change: opacity;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.fh-scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(var(--fh-scroll-size, 1));
}

.fh-arrow {
    display: block;
    width: 14px;
    height: 10px;
    margin: 5px 0;
    background: url("image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M2 14L12 2l10 12H2z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.7;
    animation: 
        fh-scroll-float 4s ease-in-out infinite,
        fh-scroll-sweep 2.8s ease-in-out infinite;
}

.fh-arrow:nth-child(2) { animation-delay: -0.933s, -0.933s; }
.fh-arrow:nth-child(3) { animation-delay: -1.866s, -1.866s; }

@keyframes fh-scroll-sweep {
    0%   { opacity: 0.4; transform: scale(1); }
    12%  { opacity: 1;   transform: scale(1.15); filter: brightness(1.4); }
    25%  { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.4; }
}

@keyframes fh-scroll-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .fh-arrow {
        animation: none !important;
        opacity: 0.6;
    }
}

/* Responsive visibility */
.fh-scroll-indicator:not(.fh-scroll-desktop) { display: none; }
@media (max-width: 768px) {
    .fh-scroll-indicator:not(.fh-scroll-mobile) { display: none; }
    .fh-scroll-indicator.fh-scroll-mobile { display: block; }
}