/* ABOUTME: Fullscreen hero carousel styles with circular next-preview navigation. */
/* ABOUTME: Fade-through-dark transitions, Ken Burns zoom, masked text reveal animations. */

/* ── Carousel page: floating header (The7 fixed-masthead style) ──
   The header stays fixed at the top. It is transparent with white text while
   over the hero, then fades to a solid white bar with dark text once the user
   scrolls past the hero — the .wsllc-scrolled state (toggled from the carousel
   JS scroll loop) drives that switch, with a smooth background/color fade. */

body.wsllc-hero-page {
    margin-top: 0 !important;
}

body.wsllc-hero-page .masthead {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500 !important;
    transition: background-color 0.35s ease, box-shadow 0.35s ease !important;
}
body.wsllc-hero-page .header-space {
    display: none !important;
}
body.wsllc-hero-page #main {
    padding-top: 0 !important;
}
/* The7 adds a header-clearing top pad to the first content row (was for the
   Rev Slider's 60px offset). With the carousel as the first row that pad just
   opens a gap of white body background above it — zero it so the carousel sits
   flush at the top under the transparent header. Scoped to the hero page, so
   only the carousel row is affected; content rows below keep their spacing. */
body.wsllc-hero-page #content > .wpb-content-wrapper > .vc_row:first-child {
    padding-top: 0 !important;
}
body.wsllc-hero-page #page {
    background: transparent !important;
}

/* Transparent bg + white text over the hero; solid white once scrolled past. */
body.wsllc-hero-page .masthead.masthead.masthead {
    background: transparent !important;
    box-shadow: none !important;
}
body.wsllc-hero-page.wsllc-scrolled .masthead.masthead.masthead {
    background: #fff !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12) !important;
}
body.wsllc-hero-page .masthead.masthead .top-bar,
body.wsllc-hero-page .masthead.masthead .top-bar-bg,
body.wsllc-hero-page .masthead.masthead .header-bar {
    background: transparent !important;
}
body.wsllc-hero-page .masthead.masthead *:not(img) {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transition: color 0.35s ease, border-color 0.35s ease !important;
}
body.wsllc-hero-page .masthead.masthead *::before,
body.wsllc-hero-page .masthead.masthead *::after {
    color: #fff !important;
}
/* Scrolled state: white header bar, so header text/icons flip to dark. */
body.wsllc-hero-page.wsllc-scrolled .masthead.masthead *:not(img) {
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
/* Scrolled state: compact header — the top bar (phone/email) collapses and the
   logo shrinks so the white bar takes less height. Transitions live on the
   base state too, so the header grows back just as smoothly at the top. */
body.wsllc-hero-page .masthead .top-bar {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
body.wsllc-hero-page.wsllc-scrolled .masthead .top-bar {
    max-height: 0;
    min-height: 0;   /* The7 sets min-height: 36px — min-height beats max-height, so drop it */
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}
/* The7 sizes the logo row with an explicit height + min-height (130px), so the
   compact state must override both — shrinking the logo alone does nothing. */
body.wsllc-hero-page .masthead .header-bar {
    transition: height 0.3s ease, min-height 0.3s ease;
}
body.wsllc-hero-page.wsllc-scrolled .masthead .header-bar {
    height: 84px;
    min-height: 84px;
}
body.wsllc-hero-page .masthead .branding img {
    max-height: 110px;
    width: auto;
    transition: max-height 0.3s ease;
}
body.wsllc-hero-page.wsllc-scrolled .masthead .branding img {
    max-height: 64px;
}
/* The centered nav (wsllc-global.css) has no top — its static position sits
   high once the bar shrinks, so true-center it in the compact state. */
body.wsllc-hero-page.wsllc-scrolled .inline-header .header-bar > #primary-menu {
    top: 50%;
    transform: translateY(-50%);
}
body.wsllc-hero-page.wsllc-scrolled .masthead.masthead *::before,
body.wsllc-hero-page.wsllc-scrolled .masthead.masthead *::after {
    color: #333 !important;
}
/* Dropdown submenus keep their own solid white background, so the blanket
   white-text rule above hid their items (white-on-white). Restore The7's
   default dark dropdown text/borders inside .sub-nav. */
body.wsllc-hero-page .masthead.masthead .sub-nav,
body.wsllc-hero-page .masthead.masthead .sub-nav *:not(img),
body.wsllc-hero-page .masthead.masthead .sub-nav *::before,
body.wsllc-hero-page .masthead.masthead .sub-nav *::after {
    color: #333 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── Full-width breakout from WPBakery containers ── */

.wsllc-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #000;
}

/* ── Slides ── */

.wsllc-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 2.3s ease;
}
.wsllc-hero__slide.is-leaving {
    opacity: 0;
    z-index: 2;
    transition: opacity 2.3s ease;
}
.wsllc-hero__slide.is-active {
    opacity: 1;
    z-index: 3;
}

/* Background image with Ken Burns zoom — 100% → 110% over 10s.
   The animation lives on the base element (not on .is-active) so a slide
   change never interrupts it: the outgoing bg keeps drifting smoothly
   through the whole cross-fade instead of snapping when .is-active is
   removed. It ends held at the zoomed state (forwards); re-entry restarts
   are done in resetSlideAnimations() in the carousel JS, while the slide
   is still invisible. */
.wsllc-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: wsllc-ken-burns 10s ease-out forwards;
}
/* --wsllc-parallax is the 50% scroll-parallax offset, set per-frame by a rAF
   loop in the carousel JS (The7 never fires scroll events on window/document).
   It lives inside these keyframes so the translate composes with the zoom
   instead of the two fighting over the transform property. */
@keyframes wsllc-ken-burns {
    from { transform: translateY(var(--wsllc-parallax, 0px)) scale(1); }
    to   { transform: translateY(var(--wsllc-parallax, 0px)) scale(1.10); }
}

/* Dark overlay for text readability */
.wsllc-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* ── Text content ── */

/* Top-anchored (not centered): the headline's midline must sit on the hero's
   vertical center, level with the prev/next chevrons (top: 50%) — matching the
   Rev Slider layout, where subtitle + button hang below the center line.
   padding-top = 50vh minus half the headline line-height (per breakpoint). */
.wsllc-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 4;
    padding: calc(50vh - 35px) 20px 0;
}

/* Mask wrapper — clips the text reveal animation */
.wsllc-hero__mask {
    overflow: hidden;
    display: inline-block;
}

/* Headline — Ubuntu 70px/700, slides down from top behind mask */
.wsllc-hero__headline {
    font-family: 'Ubuntu', sans-serif;
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0;
    line-height: 70px;
    transform: translateY(-110%);
    opacity: 0;
    transition: none;
    border-bottom: none;   /* kill the global h1-h6 underline (style.css) on the hero headline */
}
.wsllc-hero__headline::after {
    display: none !important;
}
.wsllc-hero__slide.is-active .wsllc-hero__headline {
    animation: wsllc-reveal-down 1.5s cubic-bezier(0.76, 0, 0.24, 1) 1s forwards;
}

/* Subtitle — Raleway 13px/500, ls:4px, slides up from bottom behind mask */
.wsllc-hero__subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 10px 0 0;
    transform: translateY(110%);
    opacity: 0;
    transition: none;
}
.wsllc-hero__slide.is-active .wsllc-hero__subtitle {
    animation: wsllc-reveal-up 2s cubic-bezier(0.76, 0, 0.24, 1) 1.5s forwards;
}

/* Button — Raleway 14px/500, ls:3px, white border, slides up 50px */
.wsllc-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 30px;
    background: transparent;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    transform: translateY(50px);
    opacity: 0;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
    margin-top: 72px;
}
.wsllc-hero__slide.is-active .wsllc-hero__btn {
    animation: wsllc-fade-up 1.5s cubic-bezier(0.76, 0, 0.24, 1) 2s forwards;
}
.wsllc-hero__btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

/* ── Text reveal keyframes ── */

@keyframes wsllc-reveal-down {
    from { transform: translateY(-110%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes wsllc-reveal-up {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes wsllc-fade-up {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Text exit — everything falls straight down (matches the homepage slider).
   Triggered by .is-exiting AT the slide change (Rev Slider's WAIT semantics):
   the text falls over 1s while the outgoing slide cross-fades underneath it,
   in sync with the scroll dot + pill drop. Masked headline/subtitle keep
   opacity:1 and are hidden by the mask as they fall; the unmasked button fades
   as it drops. */
.wsllc-hero__slide.is-exiting .wsllc-hero__headline,
.wsllc-hero__slide.is-exiting .wsllc-hero__subtitle {
    animation: wsllc-fall-down 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.wsllc-hero__slide.is-exiting .wsllc-hero__btn {
    animation: wsllc-fall-down-btn 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes wsllc-fall-down {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(110%); opacity: 1; }
}
@keyframes wsllc-fall-down-btn {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(50px); opacity: 0; }
}

/* ── Scroll indicator ── */

.wsllc-hero__scroll {
    position: absolute;
    bottom: 50px;
    /* Centered via margin, NOT translateX: the entrance/exit animations
       (wsllc-fade-up / wsllc-fall-down-btn, set by playPill in the carousel JS)
       own the transform property, and a translateX here would be overridden
       mid-animation, snapping the pill off-center. */
    left: 50%;
    margin-left: -15px;
    z-index: 10;
    width: 30px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    cursor: pointer;
    background: none;
    padding: 0;
    /* Hidden until its JS-driven entrance: the pill rises with the CTA button
       (same 2s delay + 1.5s ease) and falls with the texts on slide exit. */
    opacity: 0;
}
.wsllc-hero__scroll-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    opacity: 0;            /* hidden until the JS-driven entrance fades it in */
}
/* Dot motion is driven by the carousel JS, synced to each slide: it streaks up
   (stretched via scaleY) and fades in as a slide enters, settling into a round
   dot at the top; holds there; then streaks back down and fades out ~1s before
   the slide changes. scaleY(1) at the top is the circle; >1 is the stretch. */
@keyframes wsllc-scroll-enter {
    from { top: 26px; opacity: 0; transform: translateX(-50%) scaleY(2); }
    to   { top: 10px; opacity: 1; transform: translateX(-50%) scaleY(1); }
}
@keyframes wsllc-scroll-leave {
    from { top: 10px; opacity: 1; transform: translateX(-50%) scaleY(1); }
    to   { top: 26px; opacity: 0; transform: translateX(-50%) scaleY(2); }
}

/* ── Shared circular preview button base ── */

.wsllc-hero__next-preview,
.wsllc-hero__prev-preview {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s;
}
.wsllc-hero__next-preview { right: 40px; }
.wsllc-hero__prev-preview { left: 40px; }

.wsllc-hero__next-preview:hover,
.wsllc-hero__prev-preview:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.05);
}

/* Preview image — hidden by default, revealed on hover */
.wsllc-hero__next-preview-img,
.wsllc-hero__prev-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.wsllc-hero__next-preview:hover .wsllc-hero__next-preview-img,
.wsllc-hero__prev-preview:hover .wsllc-hero__prev-preview-img {
    opacity: 1;
}

/* Chevron overlay — visible by default with frosted dark bg, fades on hover */
.wsllc-hero__next-preview-chevron,
.wsllc-hero__prev-preview-chevron {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}
.wsllc-hero__next-preview-chevron svg,
.wsllc-hero__prev-preview-chevron svg {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}
.wsllc-hero__next-preview:hover .wsllc-hero__next-preview-chevron,
.wsllc-hero__prev-preview:hover .wsllc-hero__prev-preview-chevron {
    opacity: 0;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .wsllc-hero__content {
        padding-top: calc(50vh - 28px);
    }
    .wsllc-hero__headline {
        font-size: 56px;
        line-height: 56px;
    }
    .wsllc-hero__next-preview,
    .wsllc-hero__prev-preview {
        width: 75px;
        height: 75px;
    }
    .wsllc-hero__next-preview { right: 30px; }
    .wsllc-hero__prev-preview { left: 30px; }
}

@media (max-width: 778px) {
    .wsllc-hero {
        height: 100vh;
    }
    .wsllc-hero__content {
        padding-top: calc(50vh - 22px);
    }
    .wsllc-hero__headline {
        font-size: 40px;
        line-height: 44px;
    }
    .wsllc-hero__subtitle {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .wsllc-hero__btn {
        margin-top: 50px;
    }
    .wsllc-hero__next-preview,
    .wsllc-hero__prev-preview {
        width: 60px;
        height: 60px;
    }
    .wsllc-hero__next-preview { right: 20px; }
    .wsllc-hero__prev-preview { left: 20px; }
    .wsllc-hero__scroll {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .wsllc-hero__content {
        padding-top: calc(50vh - 18px);
    }
    .wsllc-hero__headline {
        font-size: 32px;
        line-height: 36px;
    }
    .wsllc-hero__subtitle {
        letter-spacing: 2px;
    }
    .wsllc-hero__btn {
        margin-top: 40px;
        font-size: 12px;
        padding: 8px 24px;
    }
    .wsllc-hero__next-preview,
    .wsllc-hero__prev-preview {
        width: 50px;
        height: 50px;
        border-width: 1.5px;
        padding: 3px;
    }
    .wsllc-hero__next-preview { right: 15px; }
    .wsllc-hero__prev-preview { left: 15px; }
}
