/* Native page scroll */
html {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
}

body.home-main-crev,
body.page-home,
body.loaded {
    height: auto !important;
    min-height: 100vh;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
}

body.page-home main.main-bg {
    overflow: visible !important;
    height: auto !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Navbar overlays the hero slider */
body.page-home .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* Header: solid white background */
.navbar.navbar-gradient,
body.home-main-crev .navbar.navbar-gradient,
body.home-main-crev .navbar.navbar-gradient.nav-scroll {
    background-color: #fff !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link,
body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link .rolling-text,
body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link span {
    color: #000 !important;
}

body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link:hover,
body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link:hover .rolling-text {
    color: #555 !important;
}

body.home-main-crev .navbar.navbar-gradient .icon-bar,
body.home-main-crev .navbar.navbar-gradient .navbar-toggler {
    color: #000 !important;
}

body.home-main-crev .navbar.navbar-gradient .search-form .search-icon .open-search,
body.home-main-crev .navbar.navbar-gradient .search-form .search-icon .close-search {
    color: #000 !important;
}

body.home-main-crev .navbar.navbar-gradient .search-form .search-icon:after {
    border-left-color: rgba(0, 0, 0, 0.15);
    border-right-color: rgba(0, 0, 0, 0.15);
}

.navbar-collapse.justify-content-center {
    justify-content: right !important;
}

body.page-home .showcase-full .bg-img[data-overlay-dark]::before,
body.page-home .showcase-full .bg-img[data-overlay-light]::before,
body.page-home .showcase-full [data-overlay-dark]::before,
body.page-home .showcase-full [data-overlay-light]::before {
    display: none !important;
    opacity: 0 !important;
    content: none !important;
}

/* Full viewport hero slider (desktop/tablet) */
@media (min-width: 601px) {
    body.page-home .showcase-full {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100svh;
        min-height: 100vh;
        overflow: hidden;
        touch-action: pan-y;
    }

    body.page-home .showcase-full .parallax-slider,
    body.page-home .showcase-full .swiper-container,
    body.page-home .showcase-full .swiper-wrapper {
        height: 100% !important;
        min-height: 100vh !important;
    }

    body.page-home .showcase-full .swiper-slide {
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 0 !important;
        overflow: hidden;
    }

    body.page-home .showcase-full .swiper-slide .bg-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100% !important;
        min-height: 100vh !important;
        background-size: cover;
        background-position: center;
    }
}

body.page-home .showcase-full {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

body.page-home .showcase-full .swiper-slide {
    padding: 0 !important;
    overflow: hidden;
}

body.page-home .showcase-full .swiper-slide .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero slider caption — layout + entrance animation (colors/type in home-hero-caption.css) */
body.page-home .showcase-full .hero-caption {
    position: relative;
    z-index: 3;
}

body.page-home .showcase-full .hero-caption__subtitle,
body.page-home .showcase-full .hero-caption__subtitle span {
    opacity: 0;
}

body.page-home .showcase-full .hero-caption__title {
    margin: 0;
    opacity: 0;
}

body.page-home .showcase-full .hero-caption__title a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08em;
    text-decoration: none !important;
}

@keyframes heroSubtitleIn {
    0% {
        opacity: 0;
        transform: translate3d(-40px, 16px, 0);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translate3d(-56px, 28px, 0);
        filter: blur(8px);
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes heroTitleLineIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

body.page-home .showcase-full .swiper-slide-active .hero-caption__subtitle {
    animation: heroSubtitleIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

body.page-home .showcase-full .swiper-slide-active .hero-caption__title {
    animation: heroTitleIn 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

body.page-home .showcase-full .swiper-slide-active .hero-caption__title span {
    display: block;
    opacity: 0;
    animation: heroTitleLineIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.page-home .showcase-full .swiper-slide-active .hero-caption__title span:nth-child(1) {
    animation-delay: 0.45s;
}

body.page-home .showcase-full .swiper-slide-active .hero-caption__title span:nth-child(2) {
    animation-delay: 0.62s;
}

body.page-home .showcase-full .swiper-slide:not(.swiper-slide-active) .hero-caption__subtitle,
body.page-home .showcase-full .swiper-slide:not(.swiper-slide-active) .hero-caption__title,
body.page-home .showcase-full .swiper-slide:not(.swiper-slide-active) .hero-caption__title span {
    animation: none !important;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .showcase-full .swiper-slide-active .hero-caption__subtitle,
    body.page-home .showcase-full .swiper-slide-active .hero-caption__title,
    body.page-home .showcase-full .swiper-slide-active .hero-caption__title span {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
}

@media (max-width: 991px) {
    body.page-home {
        -webkit-overflow-scrolling: touch;
    }

    body.page-home .showcase-full .caption {
        padding-top: 100px;
    }

    body.home-main-crev .navbar.navbar-gradient .navbar-collapse {
        background: #fff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    body.home-main-crev .navbar.navbar-gradient .navbar-nav .nav-link {
        border-bottom-color: rgba(0, 0, 0, 0.08) !important;
        color: #000 !important;
    }

    body.home-main-crev .navbar.navbar-gradient .icon-bar,
    body.home-main-crev .navbar.navbar-gradient .navbar-toggler {
        color: #000 !important;
    }
}

/* Small mobile: max-width 600px — fixed 300px banner */
@media (max-width: 600px) {
    body.page-home .showcase-full,
    body.page-home .showcase-full .parallax-slider,
    body.page-home .showcase-full .swiper-container,
    body.page-home .showcase-full .swiper-wrapper,
    body.page-home .showcase-full .swiper-slide,
    body.page-home .showcase-full .swiper-slide .bg-img {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body.page-home .navbar.navbar-gradient {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    body.page-home .navbar.navbar-gradient .logo {
        max-width: 70px !important;
        margin-left: 15px !important;
    }

    body.page-home .navbar.navbar-gradient .navbar-toggler {
        margin-right: 15px !important;
    }

    body.page-home .showcase-full .caption {
        display: none !important;
    }

    body.page-home .showcase-full .dots {
        bottom: 18px;
    }

    body.page-home .showcase-full .swiper-slide .bg-img {
        background-position: center center;
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }

    body.page-home .showcase-full .swiper-slide .valign {
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        min-height: 0 !important;
    }
}

/* Short viewport: max-height 300px */
@media (max-height: 300px) {
    body.page-home .navbar.navbar-gradient {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    body.page-home .navbar.navbar-gradient .logo {
        max-width: 55px !important;
    }

    body.page-home .showcase-full .caption {
        padding-top: 48px;
    }

    body.page-home .showcase-full .caption .sub-title {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }

    body.page-home .showcase-full .parallax-slider .caption h1,
    body.page-home .showcase-full .caption h1 {
        font-size: 18px !important;
        line-height: 1.1 !important;
    }

    body.page-home .showcase-full .slider-contro,
    body.page-home .showcase-full .dots {
        display: none;
    }

    body.page-home .showcase-full .swiper-slide .valign {
        align-items: flex-start !important;
    }
}

/* Small + short screens */
@media (max-width: 600px) and (max-height: 300px) {
    body.page-home .showcase-full .caption {
        padding-top: 42px;
    }

    body.page-home .showcase-full .parallax-slider .caption h1,
    body.page-home .showcase-full .caption h1 {
        font-size: 16px !important;
    }

    body.page-home .showcase-full .caption .sub-title {
        font-size: 8px !important;
        margin-bottom: 2px !important;
    }
}
