/* Selective Hero Engine — activates only when Component Composer is selective
   and the Hero component is checked. It preserves all Hero Art Director controls. */

body.flads-selective.flads-part-hero #hero {
    background:var(--flads-dark) !important;isolation:isolate;
}
body.flads-selective.flads-part-hero.flads-hero-art-on #hero::before {
    content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
    background-image:linear-gradient(115deg,rgba(var(--flads-accent-rgb),.13),transparent 30%,transparent 70%,rgba(var(--flads-accent-rgb),.08)),var(--flads-art);
    background-size:cover,cover;background-position:center,var(--flads-art-position,center);
    opacity:var(--flads-hero-art-opacity,var(--flads-art-opacity));mix-blend-mode:var(--flads-hero-art-blend,var(--flads-mix-mode));
}
body.flads-selective.flads-part-hero.flads-hero-art-off #hero::before { display:none !important; }
body.flads-selective.flads-part-hero #hero::after {
    content:'';position:absolute;inset:0;z-index:3;pointer-events:none;
    background:linear-gradient(90deg,transparent 0 8%,rgba(var(--flads-accent-rgb),.2) 8.1%,transparent 8.25%),linear-gradient(180deg,transparent 0 88%,rgba(var(--flads-accent-rgb),.18) 88.1%,transparent 88.25%);
    opacity:.18;
}

body.flads-selective.flads-part-hero .flads-native-hero-overlay { background:transparent !important;opacity:0 !important; }
body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>div:first-child::after { background:none !important;opacity:0 !important; }
body.flads-selective.flads-part-hero .flads-hero-veil {
    position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(90deg,#020308,#27113f);opacity:.68;mix-blend-mode:multiply;transition:opacity .28s ease,background .28s ease;
}
body.flads-selective.flads-part-hero.flads-hero-veil-off .flads-hero-veil { display:none; }

body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container {
    position:relative !important;display:block !important;align-items:initial !important;padding-top:0 !important;height:100% !important;z-index:8 !important;
}
body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container>div.flads-hero-content {
    position:absolute !important;left:var(--flads-hero-text-x) !important;top:var(--flads-hero-text-y) !important;
    width:min(var(--flads-hero-text-width),calc(100% - 2.5rem)) !important;max-width:none !important;padding:0 !important;margin:0 !important;
    transform:translate(var(--flads-hero-text-anchor),-50%) !important;z-index:10 !important;background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;
    backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
    transition:left .34s cubic-bezier(.22,1,.36,1),top .34s cubic-bezier(.22,1,.36,1),width .34s ease;
}
body.flads-selective.flads-part-hero .flads-hero-content::before,
body.flads-selective.flads-part-hero .flads-hero-content::after { display:none !important; }
body.flads-selective.flads-part-hero.flads-text-align-center .flads-hero-content { text-align:center; }
body.flads-selective.flads-part-hero.flads-text-align-center .flads-hero-content p { margin-left:auto !important;margin-right:auto !important; }
body.flads-selective.flads-part-hero.flads-text-align-center .flads-hero-content>div:last-child { justify-content:center !important; }
body.flads-selective.flads-part-hero.flads-text-align-right .flads-hero-content { text-align:right; }
body.flads-selective.flads-part-hero.flads-text-align-right .flads-hero-content p { margin-left:auto !important;margin-right:0 !important; }
body.flads-selective.flads-part-hero.flads-text-align-right .flads-hero-content>div:last-child { justify-content:flex-end !important; }

body.flads-selective.flads-part-hero #hero .fl-gradient-text,
body.flads-selective.flads-part-hero #hero h1 {
    background:var(--flads-title-gradient) !important;-webkit-background-clip:text !important;background-clip:text !important;-webkit-text-fill-color:transparent !important;color:transparent !important;
    filter:drop-shadow(0 14px 32px rgba(0,0,0,.35));
}
body.flads-selective.flads-part-hero:not(.flads-native-htfx-sub-on) #hero p { color:var(--flads-on-dark-muted) !important; }
body.flads-selective.flads-part-hero #hero .nr-label { color:var(--flads-accent) !important; }
body.flads-selective.flads-part-hero #hero .nr-label::before { background:linear-gradient(90deg,var(--flads-accent),var(--flads-accent-2)) !important; }

body.flads-selective.flads-part-hero .flads-hero-card {
    position:absolute;z-index:9;box-sizing:border-box !important;padding:0 !important;margin:0 !important;opacity:0;overflow:hidden;pointer-events:none;
    border-radius:var(--flads-hero-card-radius) !important;
    background:linear-gradient(135deg,rgba(255,255,255,.115),transparent 34%,rgba(var(--flads-accent-rgb),.06) 78%),var(--flads-hero-card-bg) !important;
    border:1px solid var(--flads-hero-card-border) !important;
    box-shadow:0 34px 100px rgba(0,0,0,.38),0 0 52px rgba(var(--flads-accent-rgb),.10),inset 0 1px 0 rgba(255,255,255,.13) !important;
    backdrop-filter:blur(var(--flads-hero-card-blur)) saturate(1.32) !important;-webkit-backdrop-filter:blur(var(--flads-hero-card-blur)) saturate(1.32) !important;
    transition:left .32s cubic-bezier(.22,1,.36,1),top .32s cubic-bezier(.22,1,.36,1),width .32s ease,height .32s ease,opacity .24s ease;
}
body.flads-selective.flads-part-hero.flads-hero-ready .flads-hero-card { opacity:1; }
body.flads-selective.flads-part-hero .flads-hero-card::before {
    content:'';position:absolute;inset:0;background:radial-gradient(460px circle at 16% 4%,rgba(255,255,255,.16),transparent 48%),var(--flads-section-pattern);background-size:auto,var(--flads-pattern-size,auto);opacity:.48;pointer-events:none;
}
body.flads-selective.flads-part-hero .flads-hero-card::after {
    content:'';position:absolute;inset:-1px;border-radius:inherit;padding:1px;background:linear-gradient(125deg,rgba(var(--flads-accent-rgb),.84),rgba(255,255,255,.22),transparent 46%,rgba(var(--flads-accent-rgb),.26));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.72;
}
body.flads-selective.flads-part-hero.flads-hero-card-off .flads-hero-card { display:none !important; }
body.flads-selective.flads-part-hero.flads-hero-card-glass-off .flads-hero-card { backdrop-filter:none !important;-webkit-backdrop-filter:none !important; }
body.flads-selective.flads-part-hero.flads-hero-card-border-off .flads-hero-card { border-color:transparent !important; }

body.flads-selective.flads-part-hero .nr-swiper-btn {
    background:var(--flads-surface) !important;border-color:var(--flads-border-strong) !important;color:var(--flads-on-dark) !important;
    box-shadow:0 12px 35px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.1);backdrop-filter:blur(14px) saturate(1.3);
}
body.flads-selective.flads-part-hero .nr-swiper-btn:hover { background:rgba(var(--flads-accent-rgb),.22) !important;border-color:rgba(var(--flads-accent-rgb),.65) !important;box-shadow:0 0 28px rgba(var(--flads-accent-rgb),.24); }
body.flads-selective.flads-part-hero .nr-hero-pagination .swiper-pagination-bullet-active::after,
body.flads-selective.flads-part-hero #fl-scroll-progress { background:linear-gradient(90deg,var(--flads-accent),var(--flads-accent-2)) !important;box-shadow:0 0 16px rgba(var(--flads-accent-rgb),.65) !important; }

@media (max-width:900px) {
    body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container>div.flads-hero-content {
        left:1.25rem !important;top:50% !important;width:calc(100% - 2.5rem) !important;transform:translate(0,-50%) !important;text-align:left !important;
    }
    body.flads-selective.flads-part-hero .flads-hero-content p { margin-left:0 !important;margin-right:0 !important; }
    body.flads-selective.flads-part-hero .flads-hero-content>div:last-child { justify-content:flex-start !important; }
}
@media (max-width:560px) { body.flads-selective.flads-part-hero .flads-hero-card { border-radius:20px !important; } }
@media (prefers-reduced-motion:reduce) {
    body.flads-selective.flads-part-hero .flads-hero-card,
    body.flads-selective.flads-part-hero .flads-hero-content,
    body.flads-selective.flads-part-hero .flads-hero-veil { transition:none !important; }
}

/* Hero Card Glass Lab 3.0 — shared by Full and Selective hero engines. */
body.flads-enabled .flads-hero-card,
body.flads-selective.flads-part-hero .flads-hero-card {
    background:var(--flads-hero-card-bg) !important;
    border:1px solid var(--flads-hero-card-border) !important;
    box-shadow:
        var(--flads-hero-card-outer-shadow-x) var(--flads-hero-card-outer-shadow-y) var(--flads-hero-card-outer-shadow-blur) var(--flads-hero-card-outer-shadow-spread) var(--flads-hero-card-outer-shadow-color),
        0 0 var(--flads-hero-card-edge-glow-blur) var(--flads-hero-card-edge-glow-color),
        inset var(--flads-hero-card-inner-shadow-x) var(--flads-hero-card-inner-shadow-y) var(--flads-hero-card-inner-shadow-blur) var(--flads-hero-card-inner-shadow-spread) var(--flads-hero-card-inner-shadow-color),
        inset 0 0 var(--flads-hero-card-inner-glow-blur) var(--flads-hero-card-inner-glow-spread) var(--flads-hero-card-inner-glow-color) !important;
    backdrop-filter:blur(var(--flads-hero-card-blur)) saturate(var(--flads-hero-card-backdrop-sat)) brightness(var(--flads-hero-card-backdrop-bright)) contrast(var(--flads-hero-card-backdrop-contrast)) !important;
    -webkit-backdrop-filter:blur(var(--flads-hero-card-blur)) saturate(var(--flads-hero-card-backdrop-sat)) brightness(var(--flads-hero-card-backdrop-bright)) contrast(var(--flads-hero-card-backdrop-contrast)) !important;
}
body.flads-enabled .flads-hero-card::before,
body.flads-selective.flads-part-hero .flads-hero-card::before {
    display:block !important;content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;
    background:
        radial-gradient(120% 90% at 18% -4%,rgba(255,255,255,calc(var(--flads-hero-card-highlight) * .84)),transparent 48%),
        repeating-radial-gradient(circle at 14% 18%,rgba(255,255,255,.18) 0 1px,transparent 1px 4px);
    opacity:calc(var(--flads-hero-card-highlight) * .94 + var(--flads-hero-card-noise) * 1.55);
    mix-blend-mode:screen;
}
body.flads-enabled .flads-hero-card::after,
body.flads-selective.flads-part-hero .flads-hero-card::after {
    display:block !important;content:'';position:absolute;top:-45%;bottom:-45%;left:-70%;width:var(--flads-hero-card-shine-width);pointer-events:none;
    border-radius:inherit;padding:0;
    background:linear-gradient(var(--flads-hero-card-shine-angle),transparent 0,var(--flads-hero-card-shine-color) 48%,transparent 100%);
    -webkit-mask:none;mask:none;filter:blur(var(--flads-hero-card-shine-blur));opacity:.9;transform:translateX(-140%);
    animation:flads-hero-card-shine 8s ease-in-out infinite;
}
@keyframes flads-hero-card-shine {0%,58%,100%{transform:translateX(-140%)}72%{transform:translateX(760%)}}
body.flads-enabled.flads-hero-card-shine-off .flads-hero-card::after,
body.flads-selective.flads-part-hero.flads-hero-card-shine-off .flads-hero-card::after { display:none !important; }
body.flads-enabled.flads-hero-card-border-off .flads-hero-card,
body.flads-selective.flads-part-hero.flads-hero-card-border-off .flads-hero-card { border-color:transparent !important; }
body.flads-enabled.flads-hero-card-glass-off .flads-hero-card,
body.flads-selective.flads-part-hero.flads-hero-card-glass-off .flads-hero-card { backdrop-filter:none !important;-webkit-backdrop-filter:none !important; }
@media(prefers-reduced-motion:reduce){body .flads-hero-card::after{animation:none !important;}}

/* ============================================================
   Selective Hero compatibility — Falc-Lion ACF PRO 3.7+
   ============================================================ */
body.flads-selective.flads-part-hero .flads-hero-stage {
    z-index:auto !important;
    isolation:auto !important;
    transform:none !important;
}
body.flads-selective.flads-part-hero .flads-hero-content {
    z-index:auto !important;
    isolation:auto !important;
    transform:none !important;
}
body.flads-selective.flads-part-hero .flads-hero-card { z-index:0 !important; }
body.flads-selective.flads-part-hero .flads-hero-media-stage { isolation:isolate; }
body.flads-selective.flads-part-hero .flads-hero-theme-art {
    position:absolute;inset:-2%;z-index:1;pointer-events:none;
    background-image:linear-gradient(115deg,rgba(var(--flads-accent-rgb),.13),transparent 30%,transparent 70%,rgba(var(--flads-accent-rgb),.08)),var(--flads-art);
    background-size:cover,cover;background-position:center,var(--flads-art-position,center);
    opacity:var(--flads-hero-art-opacity,var(--flads-art-opacity));
    mix-blend-mode:var(--flads-hero-art-blend,var(--flads-mix-mode));
    transform:translate3d(0,var(--flads-art-shift),0) scale(1.035);transform-origin:50% 50%;
}
body.flads-selective.flads-part-hero.flads-hero-art-off .flads-hero-theme-art{display:none!important;}
body.flads-selective.flads-part-hero.flads-hero-layer-v2 #hero::before{display:none!important;}
body.flads-selective.flads-part-hero #hero :is(.fl-hero-overlay-main,.fl-hero-overlay-bottom).flads-native-hero-overlay{background:transparent!important;opacity:0!important;}
body.flads-selective.flads-part-hero.flads-native-htfx-on #hero .fl-hero-title{
    background:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;
    -webkit-text-fill-color:initial!important;color:inherit!important;filter:none!important;
}
@media(max-width:900px){
    body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container>div.flads-hero-content{transform:none!important;}
}

body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container.flads-hero-stage{
    z-index:auto!important;isolation:auto!important;transform:none!important;
}
body.flads-selective.flads-part-hero .nr-hero-swiper .swiper-slide>.nr-container>div.flads-hero-content{
    z-index:auto!important;isolation:auto!important;transform:none!important;
}

/* 3.7 semantic pre-JS guard for Selective Composer. */
body.flads-selective.flads-part-hero #hero[data-htfx-version] .fl-hero-content {
    z-index:auto !important; isolation:auto !important; transform:none !important;
}
body.flads-selective.flads-part-hero #hero[data-htfx-version] .fl-hero-content > .fl-hero-copy {
    padding:0 !important; border:0 !important; border-radius:0 !important;
    background:transparent !important; box-shadow:none !important;
    backdrop-filter:none !important; -webkit-backdrop-filter:none !important; isolation:auto !important;
}
body.flads-selective.flads-part-hero #hero[data-htfx-version] .fl-hero-content > .fl-hero-copy::before,
body.flads-selective.flads-part-hero #hero[data-htfx-version] .fl-hero-content > .fl-hero-copy::after { display:none !important; }
body.flads-selective.flads-part-hero #hero .fl-hero-title.fl-htfx-enabled {
    background:none !important; -webkit-background-clip:border-box !important; background-clip:border-box !important;
    -webkit-text-fill-color:initial !important; color:inherit !important; filter:none !important;
}
