/* =============================================
   FULLSCREEN IMAGE BLOCK – Frontend Styles
   ============================================= */

.fib-hero *,
.fib-hero *::before,
.fib-hero *::after { box-sizing: border-box; }

/* ── Wrapper ── */
.fib-hero {
    position:   relative;
    width:      var(--fib-width,      100%);
    height:     var(--fib-height,     100vh);
    min-height: var(--fib-min-height, 0);
    max-height: var(--fib-max-height, none);
    overflow:   hidden;
    display:    flex;
    align-items:     center;
    justify-content: center;
}

/* Aspect-ratio override */
.fib-hero[style*="--fib-aspect-ratio"] {
    height:       auto;
    aspect-ratio: var(--fib-aspect-ratio);
}

/* ── Background image container ── */
.fib-bg-wrap {
    position: absolute;
    inset:    -10% 0;
    width:    100%;
    height:   120%;
    will-change: transform;
}

.fib-bg-img {
    display:         block;
    width:           100%;
    height:          100%;
    object-fit:      cover;
    pointer-events:  none;
    user-select:     none;
    transform-origin: center center;
}

/* ── Overlay ── */
.fib-overlay {
    position:       absolute;
    inset:          0;
    background:     var(--fib-overlay, rgba(0,0,0,0));
    mix-blend-mode: var(--fib-overlay-blend, normal);
    pointer-events: none;
    z-index:        1;
}

/* ── Text content ── */
.fib-content {
    position:   relative;
    z-index:    2;
    text-align: var(--fib-text-align, center);
    color:      var(--fib-text-color, #fff);
    padding:    2rem 1.5rem;
    max-width:  900px;
    width:      100%;
}

.fib-title {
    margin:      0 0 1rem;
    font-size:   clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.fib-subtitle {
    margin:    0 0 2rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity:   .9;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.fib-btn {
    display:         inline-block;
    padding:         .85rem 2.2rem;
    background:      #fff;
    color:           #111;
    text-decoration: none;
    border-radius:   3px;
    font-size:       1rem;
    font-weight:     600;
    letter-spacing:  .04em;
    transition:      background .25s, transform .2s;
}
.fib-btn:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); }

/* ── Scroll indicator ── */
.fib-scroll-indicator {
    position:  absolute;
    bottom:    2rem;
    left:      50%;
    transform: translateX(-50%);
    z-index:   3;
    display:   flex;
    flex-direction: column;
    align-items:    center;
    gap:       .4rem;
    color:     var(--fib-text-color, #fff);
    opacity:   .8;
    cursor:    pointer;
    animation: fibScrollBounce 2s ease-in-out infinite;
}
.fib-scroll-mouse {
    width: 26px; height: 40px;
    border: 2px solid currentColor;
    border-radius: 14px;
    display: flex; justify-content: center;
    padding-top: 6px;
}
.fib-scroll-wheel {
    width: 4px; height: 8px;
    background: currentColor; border-radius: 2px;
    animation: fibScrollWheel 2s ease-in-out infinite;
}
.fib-scroll-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

@keyframes fibScrollBounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(6px); }
}
@keyframes fibScrollWheel {
    0%  { opacity:1; transform:translateY(0); }
    80% { opacity:0; transform:translateY(8px); }
}

/* ── Animations ── */
.fib-anim-fade .fib-content { animation: fibFadeIn .9s ease both; }
@keyframes fibFadeIn {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

.fib-anim-slide-up .fib-title    { animation: fibSlideUp .7s .1s ease both; }
.fib-anim-slide-up .fib-subtitle { animation: fibSlideUp .7s .3s ease both; }
.fib-anim-slide-up .fib-btn      { animation: fibSlideUp .7s .5s ease both; }
@keyframes fibSlideUp {
    from { opacity:0; transform:translateY(40px); }
    to   { opacity:1; transform:translateY(0); }
}

.fib-anim-zoom .fib-bg-img { animation: fibZoomIn 1.4s ease both; }
@keyframes fibZoomIn {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .fib-hero {
        height:     var(--fib-mobile-height, 60vh);
        max-height: var(--fib-max-height, none);
    }
    .fib-parallax-disabled .fib-bg-wrap { transform: none !important; }
}
