/* ==========================================
   BASE & LAYOUT
   ========================================== */

html,
body {
    height: 100%;
    margin: 0;
    max-height: 100vh;
    overflow: hidden;
    padding: 0;
    touch-action: none;
}


   body {
    background-color: rgb(244, 242, 239);
}


#global-footer {
    bottom: 0;
    position: fixed;
}

.adaptive-container {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: center;
    margin: 25px 0 15px 0;
    min-height: 60px;
    overflow: hidden;
    padding: 33vh;
    position: absolute;
    width: 100%;
    z-index: 10;
}

#animated-text {
    color: var(--c029_solid);
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 10vw, 42px);
    font-weight: bold;
    line-height: 1.1;
    margin: 0;
    max-width: 95%;
    opacity: 1;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.body-text {
    color: var(--c004b_tnsluc);
    font-size: 16px;
    line-height: 1.5;
}

.slide-in {
    animation: slideIn 1s ease-in-out forwards;
}

.slide-out {
    animation: slideOut 1s ease-in-out forwards;
}

/* ==========================================
   BACKGROUND VIDEO
   ========================================== */

.homepage_video-container {
    animation: fadeInVideo 12s ease-in-out forwards;
    height: 100vh;
    height: 100dvh;
    left: 0;
    opacity: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: -1;
}

.homepage_video-container video {
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
}

.homepage_video-container video.video-ready {
    opacity: 1;
}

.homepage_video-container::after {
    background: var(--c002_tnsluc);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* ==========================================
   CAROUSEL OVERLAY & TIMING (12s CYCLE)
   ========================================== */

.carousel-overlay {
    animation: fadeOutCarousel 12s forwards;
    height: 100vh;
    height: 100dvh;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1;
}

.carousel-overlay::after {
    background: var(--c002_tnsluc);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}


.carousel-slide img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}


.carousel-slide {
    animation: cycleImages 5s ease-in-out forwards;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: translateX(-100%);
    width: 100%;
    will-change: transform, opacity;
    z-index: 1;
}

.slide-1 {
    animation: none;
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.slide-2 {
    animation-delay: 3.5s;
    z-index: 2;
}

.slide-3 {
    animation: cycleImagesFromRight 5s ease-in-out forwards;
    animation-delay: 7s;
    z-index: 3;
}

.carousel-overlay {
    view-transition-name: none;
}

/* ==========================================
   KEYFRAMES & RESPONSIVE OVERRIDES
   ========================================== */
@keyframes fadeInFirstSlide {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    20%, 70% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes fadeOutCarousel {
    0%, 99.9% {
        visibility: visible;
    }
    100% {
        visibility: hidden;
    }
}

@keyframes fadeInOnly {
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    20%, 70% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes cycleImages {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    20%, 70% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes cycleImagesFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    20%, 70% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(0);
    }
}

@keyframes fadeInVideo {
    0%, 40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hamburger-bar:nth-child(1) {
    background-color: var(--c019a_solid) !important;
}

.hamburger-bar:nth-child(2) {
    background-color: var(--c026_solid) !important;
}

.hamburger-bar:nth-child(3) {
    background-color: var(--c021_solid) !important;
}

@media screen and (max-width: 1024px) {
    .adaptive-container {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    #animated-text {
        font-size: clamp(20px, 6vh, 32px);
        max-width: 85%;
    }
}
