/* ==========================================================================
   Cloudy Hero — FIND-style sticky scroll (Lushara Tea Resort)
   ========================================================================== */

.bravo-form-search-all.has-cloudy-hero,
.bravo_wrap .page-template-content .bravo-form-search-all.has-cloudy-hero,
.bravo-form-search-hotel.has-cloudy-hero {
    padding: 0 !important;
    background: none !important;
}

.cloudy-hero-pinned-scene {
    position: relative;
    width: 100%;
    height: 420vh;
    background: #f4f7f8;
}

.cloudy-hero-sticky {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #fbf8f3, #5791c1);
}

.cloudy-layer-sky,
.cloudy-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity;
}

.cloudy-hero-photo-bg,
.cloudy-layer-sky .item-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Dense original mist — covers photo except letter cutouts */
.cloudy-mist-field {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    will-change: opacity, transform;
}

.mist-blob {
    position: absolute;
    pointer-events: none;
    filter: blur(8px);
}

.mist-left {
    top: -10%;
    left: -22%;
    width: 62%;
    height: 120%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.35) 68%, rgba(255, 255, 255, 0) 82%);
}

.mist-right {
    top: -12%;
    right: -24%;
    width: 64%;
    height: 124%;
    background: radial-gradient(ellipse at 70% 48%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 40%, rgba(255, 255, 255, 0.32) 70%, rgba(255, 255, 255, 0) 84%);
}

.mist-bottom {
    left: -8%;
    bottom: -18%;
    width: 116%;
    height: 58%;
    background: radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0.4) 72%, rgba(255, 255, 255, 0) 88%);
}

.mist-top {
    left: -10%;
    top: -22%;
    width: 120%;
    height: 42%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 80%);
}

.mist-center {
    inset: 8% 6%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0) 78%);
}

.cloud-item {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.cloud-back-1 {
    top: -6%;
    left: -14%;
    width: 1100px;
    height: 520px;
    opacity: 0.95;
    background-image: url('../images/clouds/cloud-1.svg');
    animation: cloudDriftA 70s linear infinite;
}

.cloud-back-2 {
    top: 4%;
    right: -18%;
    width: 1040px;
    height: 500px;
    opacity: 0.92;
    background-image: url('../images/clouds/cloud-2.svg');
    animation: cloudDriftB 85s linear infinite;
}

.cloud-front-1 {
    bottom: -16%;
    left: -22%;
    width: 1400px;
    height: 620px;
    opacity: 1;
    background-image: url('../images/clouds/cloud-1.svg');
    animation: cloudDriftB 60s linear infinite;
}

.cloud-front-2 {
    bottom: -12%;
    right: -20%;
    width: 1320px;
    height: 580px;
    opacity: 0.98;
    background-image: url('../images/clouds/cloud-2.svg');
    animation: cloudDriftA 75s linear infinite;
}

.cloud-front-3 {
    top: 2%;
    left: 18%;
    width: 980px;
    height: 420px;
    opacity: 0.7;
    background-image: url('../images/clouds/cloud-1.svg');
    animation: cloudDriftA 90s linear infinite reverse;
}

.cloud-mist-mid {
    top: 28%;
    left: 0;
    width: 100%;
    height: 48%;
    opacity: 0.85;
    background-image: url('../images/clouds/mist-layer.svg');
    background-size: cover;
    animation: mistPulse 14s ease-in-out infinite alternate;
}

.cloudy-layer-smoke-bottom {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 42%;
    pointer-events: none;
    background-image: url('../images/clouds/smoke-bottom.svg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 1;
}

.cloudy-knockout {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    will-change: opacity, transform;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-mode: luminance;
    mask-mode: luminance;
}

.cloudy-knockout-scale {
    position: absolute;
    inset: 0;
    will-change: transform;
    transform-origin: 50% 48%;
}

.cloudy-knockout-photo {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Beat 1 — title + CTA */
.cloudy-initial-title-wrap {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 12;
    padding: 0 24px;
    will-change: transform, opacity;
    pointer-events: none;
}

.cloudy-initial-title-wrap .text-heading {
    color: #111111;
    font-size: clamp(2.15rem, 6.4vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 auto 14px;
    max-width: 980px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cloudy-hero-subtitle {
    color: rgba(28, 36, 42, 0.78);
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
    font-weight: 400;
    margin: 0 auto 28px;
    max-width: 640px;
    line-height: 1.45;
}

.cloudy-hero-cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111111;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 13px 26px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.cloudy-hero-cta:hover {
    background: #1d3a2e;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.cloudy-hero-cta-arrow {
    font-size: 1.05em;
    line-height: 1;
}

/* Single outlined wordmark — stroke only, never a second filled layer */
.cloudy-outline-wordmark {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 7;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    padding: 0 16px;
    transform-origin: 50% 48%;
}

.cloudy-outline-wordmark .brand-word-lushara,
.cloudy-outline-wordmark .brand-word-sub {
    margin: 0;
    text-align: center;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: none !important;
    paint-order: stroke;
}

.cloudy-outline-wordmark .brand-word-lushara {
    font-family: 'Poppins', 'Arial Black', Impact, sans-serif;
    font-size: clamp(3.4rem, 14vw, 12.5rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 0.85;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.96);
}

.cloudy-outline-wordmark .brand-word-sub {
    font-family: 'Poppins', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.15rem, 3.6vw, 3.1rem);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 0.28em;
    -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.9);
}

.cloudy-booking-section {
    position: relative;
    z-index: 20;
    background: #ffffff;
    padding: 60px 0 90px;
    box-shadow: 0 -25px 60px rgba(0, 0, 0, 0.08);
}

.cloudy-booking-section .booking-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(22, 45, 35, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 25px;
}

.cloudy-booking-header {
    text-align: center;
    margin-bottom: 35px;
}

.cloudy-booking-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2b48;
    margin-bottom: 8px;
}

.cloudy-booking-header .section-subtitle {
    font-size: 1.1rem;
    color: #5e6d77;
}

@keyframes cloudDriftA {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-70px, -12px, 0); }
    100% { transform: translate3d(-140px, 0, 0); }
}

@keyframes cloudDriftB {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(70px, 12px, 0); }
    100% { transform: translate3d(140px, 0, 0); }
}

@keyframes mistPulse {
    0% { opacity: 0.7; transform: scale(1) translateY(0); }
    100% { opacity: 0.95; transform: scale(1.05) translateY(-8px); }
}

@media (max-width: 767px) {
    .cloudy-hero-pinned-scene {
        height: 320vh;
    }
    .cloudy-initial-title-wrap {
        top: 50%;
    }
    .cloudy-outline-wordmark .brand-word-lushara {
        -webkit-text-stroke-width: 1.6px;
    }
    .cloudy-outline-wordmark .brand-word-sub {
        -webkit-text-stroke-width: 1px;
        letter-spacing: 0.14em;
    }
    .cloudy-booking-section {
        padding: 40px 0 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cloud-item {
        animation: none !important;
    }
}
