:root {
    --primary-beige: #f9f7f2;
    --warm-orange: #F78B05;
    /* --dark-brown: #3B2A1E; Old Brown */
    --dark-brown: #4A3B32;
    /* Balinese Wood Dark Brown */
    --sand-beige: #E6D5B8;
    --deep-green: #2F5D50;

    /* Bali Style Palette */
    --bali-gold: #C5A059;
    /* Matte Antique Gold */
    --bali-green: #3D5A45;
    /* Tropical Dark Green */
    --gold-gradient: linear-gradient(45deg, #B67B03 0%, #DAAF08 45%, #FEE9A0 70%, #DAAF08 85%, #B67B03 90% 100%);

    /* Mappings */
    /* --accent-red: var(--warm-orange); Previous Orange */
    --accent-red: var(--bali-gold);
    /* Switch accent to Gold */
    /* --onzs-dark: var(--dark-brown); */
    --onzs-dark: var(--dark-brown);
}

/* Gold Gradient Utilities */
.bg-gold-gradient {
    background: var(--gold-gradient) !important;
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-beige);
    color: var(--dark-brown);
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

}

/* Character Animation Base (Used in FV) */
.char {
    display: inline-block;
    opacity: var(--opacity, 0);
    transform: translateY(var(--translate-y, 15px));
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: calc(0.04s * var(--char-index));
    white-space: pre;
}

.fv-catch,
.fv-sub,
.fv-logo,
.fv-read-more {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fv-catch.is-active,
.fv-sub.is-active,
.fv-logo.is-active {
    opacity: 1;
    --opacity: 1;
    --translate-y: 0;
}

.fv-read-more.is-visible {
    opacity: 1;
}

.fv-catch {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.75;
    color: #333;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.fv-catch-line {
    display: block;
}

.fv-catch-line:nth-child(2) {
    white-space: nowrap;
}

.fv-sub {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    letter-spacing: 0.18em;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.fv-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    color: #333;
    letter-spacing: 0.2em;
    margin-bottom: 2.8rem;
    line-height: 1.2;
}

.fv-logo .char {
    transition-delay: calc(0.06s * var(--char-index));
}

.fv-read-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.fv-read-more-line {
    width: 1px;
    height: 0;
    background-color: #333;
}

.fv-read-more-line.animate {
    animation: lineGrow 1.2s ease-out forwards;
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 70px;
    }
}

.fv-read-more-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: lowercase;
}

@media (max-width: 1024px) {
    .fv-catch {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
        margin-bottom: 1rem;
    }

    .fv-sub {
        margin-bottom: 2rem;
    }

    .fv-logo {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 2rem;
    }

    .fv-read-more {
        align-items: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fv-catch {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    .fv-sub {
        font-size: 0.85rem;
    }

    .fv-logo {
        font-size: 2.5rem;
    }

    .fv-read-more-line.animate {
        animation: lineGrowMobile 1.2s ease-out forwards;
    }

    @keyframes lineGrowMobile {
        from {
            height: 0;
        }

        to {
            height: 50px;
        }
    }

    .fv-read-more-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fv-catch {
        font-size: 1.1rem;
    }

    .fv-logo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* CTA & Reservation */
.reservation-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--onzs-dark);
}

@media (max-width: 768px) {
    .reservation-title {
        font-size: 1.8rem;
    }
}

/* Menu Course Card */
.course-menu-card {
    background:
        radial-gradient(circle at 90% 10%, #FFF9E6, transparent 50%),
        radial-gradient(circle at 10% 90%, #FFF9E6, transparent 50%),
        #FBF8F1;
    /* Warm Off-White Base */
}

/* About Section Customization */
/* Outdated About/Recommend rules removed to avoid conflict */



img {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
}

/* Plumeria Accent */
.section-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--onzs-dark);
    /* Subtle gold shadow for premium depth */
    text-shadow: 2px 2px 4px rgba(197, 160, 89, 0.2);
    margin-bottom: 0.5rem;
}

.section-title p {
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--dark-brown);
    margin-bottom: 25px;
    font-family: 'Noto Serif JP', serif;
}

/* Section Title Underline */
.section-title p::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    transform: translateX(-50%);
    opacity: 0.9;
}

.gallery-swiper .swiper-slide {
    width: 300px;
}

@media (max-width: 768px) {
    .gallery-swiper .swiper-slide {
        width: 80%;
    }
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.menu-link:hover::after {
    width: 100%;
}

main {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    main {
        padding-bottom: 0;
    }
}

main {
    padding-bottom: 0;
}

/* Add padding to footer on mobile to prevent sticky bar overlap */
@media (max-width: 768px) {
    footer {
        padding-bottom: 90px;
    }
}

/* Scroll Animation */
.scroll-fade-up {
    opacity: 0 !important;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-fade-up.is-visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Scroll Animation - Zoom In */
.scroll-zoom-in {
    opacity: 0 !important;
    transform: scale(0.8);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-zoom-in.is-visible {
    opacity: 1 !important;
    transform: scale(1);
}

/* Scroll Animation - Stagger Children */
.scroll-stagger>* {
    opacity: 0 !important;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-stagger.is-visible>* {
    opacity: 1 !important;
    transform: translateY(0);
}

.scroll-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.3s;
}

.scroll-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.5s;
}

.scroll-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.7s;
}

.scroll-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.9s;
}



/* ==========================================================================
   Gallery Modal (Lightbox)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    cursor: zoom-out;
    padding: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active img {
    transform: scale(1);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
    transition: transform 0.2s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    transform: scale(1.1);
}

.gallery-item img {
    cursor: pointer;
}

/* Map height on mobile */
@media (max-width: 768px) {
    #access iframe {
        min-height: 550px !important;
    }
}

/* Review content adjustment */
.review-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    transition: opacity 0.3s;
}

.review-content-wrapper[style*="max-height: none"]::after {
    opacity: 0;
}

/* =========================================
   New Design Updates (Ref: buko-onsen)
   ========================================= */

/* Info Bar */
.info-bar {
    z-index: 101;
    position: relative;
}

/* FV Section - Full Background */
.fv-section-new {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    /* background-image: url('../img/fv_food_01.jpg'); */
    /* Replaced by slideshow */
    background-color: #f9f7f2;
    /* Fallback */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .fv-section-new {
        height: auto !important;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Content Wrapper visual adjustments */
    .fv-content-wrapper {
        background-color: var(--primary-beige);
        position: relative;
        z-index: 20;
        padding-bottom: 2rem;
        order: 1;
    }

    .fv-slideshow {
        position: relative !important;
        height: 35vh;
        min-height: 250px;
        width: 100%;
        inset: auto !important;
        order: 2;
        /* Force above 0 index issues if any */
        z-index: 1;

        /* Fade in after content */
        opacity: 0;
        animation: simple-fade-in 1.5s ease-out 3.2s forwards;
        /* Delay increased to wait for read more */
    }

    /* Wave positioning on mobile */
    .wave-container {
        bottom: -5px;
        /* Ensure coverage */
        z-index: 30;
        height: 50px;
        opacity: 0;
        animation: simple-fade-in 1.5s ease-out 3.2s forwards;
        /* Delay increased */
    }

    /* Wave orientaion correction */
    .wave-svg {
        transform: scaleY(-1);
    }

    /* Mobile specific: All slides stay for 4s.
       Total cycle duration 32s (8 slides * 4s) */
    .fv-slide {
        animation: fv-fade-mobile 32s infinite !important;
    }

    .fv-slide:nth-child(1) {
        animation-delay: 3.2s !important;
    }

    .fv-slide:nth-child(2) {
        animation-delay: 7.2s !important;
    }

    .fv-slide:nth-child(3) {
        animation-delay: 11.2s !important;
    }

    .fv-slide:nth-child(4) {
        animation-delay: 15.2s !important;
    }

    .fv-slide:nth-child(5) {
        animation-delay: 19.2s !important;
    }

    .fv-slide:nth-child(6) {
        animation-delay: 23.2s !important;
    }

    .fv-slide:nth-child(7) {
        animation-delay: 27.2s !important;
    }

    .fv-slide:nth-child(8) {
        animation-delay: 31.2s !important;
    }
}

/* Mobile Slide Animations */
@keyframes fv-fade-mobile {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    10% {
        opacity: 1;
    }

    /* Holds for approx 4s in a 32s cycle */
    13% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes simple-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (min-width: 768px) {
    .fv-section-new {
        height: 85vh;
        min-height: 650px;
    }
}

/* Slideshow Container */
.fv-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Individual Slide */
.fv-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    animation: fv-fade 32s infinite;
    /* 8 images * 4s each */
}

/* Stagger start times so they loop sequentially */
.fv-slide:nth-child(1) {
    animation-delay: 0s;
}

.fv-slide:nth-child(2) {
    animation-delay: 4s;
}

.fv-slide:nth-child(3) {
    animation-delay: 8s;
}

.fv-slide:nth-child(4) {
    animation-delay: 12s;
}

.fv-slide:nth-child(5) {
    animation-delay: 16s;
}

.fv-slide:nth-child(6) {
    animation-delay: 20s;
}

.fv-slide:nth-child(7) {
    animation-delay: 24s;
}

.fv-slide:nth-child(8) {
    animation-delay: 28s;
}

/* 
 Animation Logic for 8 slides over T=32s (4s interval)
 Each cycle is 100/8 = 12.5%
 We want fade in (approx 1s), hold, fade out (approx 1s).
 1% of 32s is 0.32s.
 3% is ~1s.
 12.5% is 4s.
 So visible from 0% to ~13%.
*/
@keyframes fv-fade {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    3% {
        opacity: 1;
    }

    10% {
        opacity: 1;
        transform: scale(1.05);
    }

    13% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fv-fade-float {
    0% {
        opacity: 0;
        transform: scale(1.0) translateY(20px);
    }

    3% {
        opacity: 1;
        transform: scale(1.02) translateY(0);
    }

    10% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }

    13% {
        opacity: 0;
        transform: scale(1.08) translateY(-10px);
    }

    100% {
        opacity: 0;
    }
}



/* Overlay to improve text readability */
.fv-new-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    /* Adjust opacity */
    z-index: 1;
}

/* Center textual content */
.fv-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 60px;
    /* Space for wave */
}

/* Adjust text colors/shadows for visibility on image */
.fv-content-wrapper .fv-catch {
    color: #333;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.fv-content-wrapper .fv-sub {
    color: #444;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.fv-content-wrapper .fv-logo {
    color: #333;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

.fv-content-wrapper .fv-read-more-text {
    color: #333;
    font-weight: 600;
}

.fv-content-wrapper .fv-read-more-line {
    background-color: #333;
}

/* Wave Animation Container */
.wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    /* Reduced slightly to prevent excessive overlap */
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    /* Lowered z-index to stay well below sections with z-50 */
    transform: rotate(180deg);
}

.wave-svg {
    position: relative;
    display: block;
    width: 300%;
    /* Make wider to allow horizontal movement */
    height: 100%;
    margin-left: -100%;
    /* Center the wider element */
}

@media (min-width: 768px) {
    .wave-container {
        height: 150px;
    }

    /* Taller on PC */
}

/* Base style for all paths */
.wave-svg path {
    transform-origin: center top;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    /* Sway back and forth to simulate seamless flow */
}

/* Layer 1 (Lightest, Back) */
.wave-svg path:nth-child(1) {
    animation-name: wave-flow-1;
    animation-duration: 8s;
    /* Slower, majestic flow */
    animation-delay: 0s;
    opacity: 0.3;
}

/* Layer 2 (Medium, Middle) */
.wave-svg path:nth-child(2) {
    animation-name: wave-flow-2;
    animation-duration: 6s;
    animation-delay: -2s;
    opacity: 0.5;
}

/* Layer 3 (Solid, Front) */
.wave-svg path:nth-child(3) {
    animation-name: wave-flow-3;
    animation-duration: 5s;
    animation-delay: -1s;
}

/* Animations for Left-to-Right Flow (In rotated 180deg container: -X is Right, +X is Left) */

@keyframes wave-flow-1 {
    0% {
        transform: scaleY(1) translateX(10%);
    }

    100% {
        transform: scaleY(1.1) translateX(-10%);
    }
}

@keyframes wave-flow-2 {
    0% {
        transform: scaleY(1.1) translateX(15%);
    }

    100% {
        transform: scaleY(1.2) translateX(-15%);
    }
}

@keyframes wave-flow-3 {
    0% {
        transform: scaleY(1) translateX(8%);
    }

    100% {
        transform: scaleY(1.1) translateX(-8%);
    }
}

/* Sticky Navigation below FV */
.sticky-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Utility Classes for New Bali Palette */
.text-warm-orange {
    color: var(--warm-orange) !important;
}

.text-dark-brown {
    color: var(--dark-brown) !important;
}

.text-deep-green {
    color: var(--deep-green) !important;
}

.text-sand-beige {
    color: var(--sand-beige) !important;
}

.bg-warm-orange {
    background-color: var(--warm-orange) !important;
}

.bg-dark-brown {
    background-color: var(--dark-brown) !important;
}

.bg-deep-green {
    background-color: var(--deep-green) !important;
}

.bg-sand-beige {
    background-color: var(--sand-beige) !important;
}

.border-warm-orange {
    border-color: var(--warm-orange) !important;
}

.border-dark-brown {
    border-color: var(--dark-brown) !important;
}

/* About Section (Reset) */
#about {
    position: relative;
    background-color: var(--primary-beige);
    color: var(--dark-brown);
}

#about p {
    color: var(--dark-brown) !important;
    text-shadow: none !important;
}

#about .section-title h2 {
    color: var(--onzs-dark) !important;
    text-shadow: none !important;
}

#campaign {
    position: relative;
    background: #000;
    overflow: hidden;
}

.campaign-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

#campaign .container {
    position: relative;
    z-index: 1;
}

/* Text overrides for readability over video */
/* Text overrides for readability over video */
#campaign .section-title h2,
#campaign>div>p {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Ensure text inside white cards remains dark */
#campaign .bg-white h3,
#campaign .bg-white p,
#campaign .bg-white span,
#campaign .bg-white div {
    color: inherit !important;
    text-shadow: none !important;
}

#campaign .section-title h2,
#campaign>div>div>p,
/* Targeting paragraph inside container or generic p */
#campaign>div>p {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Fix for #recommend to match #tv background (Reset to default beige) */
#recommend {
    background-image: none !important;
    background-color: var(--primary-beige) !important;
    color: var(--dark-brown) !important;
}

#recommend .section-title h2,
#recommend p,
#recommend span {
    color: var(--dark-brown) !important;
}

#recommend .section-title h2::after {
    background: var(--accent-red) !important;
}

/* TV Section Background Parallax Space */
#tv {
    background-image: url('../img/fv01.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: white !important;
    padding-top: 20vh !important;
    padding-bottom: 40vh !important;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
}

@media (max-width: 768px) {
    #tv {
        background-attachment: scroll !important;
        background-image: none !important;
        /* Image is handled in HTML for mobile */
        background-color: var(--primary-beige) !important;
        color: var(--dark-brown) !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
        min-height: auto !important;
    }

    #tv h2,
    #tv p,
    #tv span,
    #tv li {
        color: var(--dark-brown) !important;
        text-shadow: none !important;
    }

    #tv::before,
    #tv::after,
    .section-bottom-gradient {
        display: none !important;
    }
}

/* Gradient Blur Overlay - Strong blur at top, fading out */
#tv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Fade out the blur from top (opaque mask) to bottom (transparent mask) */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
}

#tv .container {
    width: 100%;
}

#tv h2,
#tv p,
#tv span,
#tv li {
    color: white !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Good for readability on bg image */
}

/* Fix border color in TV section (was dark brown) */
#tv .border-onzs-dark {
    border-color: white !important;
}

/* Glass Card effect: Deep brown with 38% alpha (user requested #3b2a1e61) */
.glass-card {
    background-color: #3b2a1ea1;
    /* Adjusted for better readability than 61 if it's too light, but user said 61. I'll use 61 as requested. */
    background-color: #3b2a1e61;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
}

.glass-card:hover {
    background-color: rgba(0, 0, 0, 0.2);
    /* Lightens on hover (like reference bg-black/20 -> 10) */
}


#tv .container {
    position: relative;
    z-index: 1;
}


/* Reservation Section Updates */
#reservation-cta {
    background-color: var(--dark-brown);
    /* Standard Dark Brown Base */
    background-image: url('../img/menu_top.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 250px auto;
    /* Decoration size */
    color: white;
    /* Ensure text is white */
    position: relative;
    z-index: 2;
}

#reservation-cta h2 {
    color: var(--sand-beige);
    /* Title Color */
}

#reservation-cta p {
    color: #f1f1f1;
}

/* TV Section - Gradient Overlay for Smooth Transition */
#tv::after {
    content: '';
    position: absolute;
    top: -1px;
    /* Slightly overlap to avoid gap lines */
    left: 0;
    width: 100%;
    height: 15rem;
    /* Sufficient height for smooth fade */
    background: linear-gradient(to bottom, var(--dark-brown) 0%, transparent 100%);
    z-index: 10;
    /* Above background image/blur but below container content */
    pointer-events: none;
}

/* Bottom Gradient for TV Section */
.section-bottom-gradient {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 15rem;
    /* Fade from transparent (TV) to dark (About) */
    background: linear-gradient(to bottom, transparent 0%, #0f2e2e 100%);
    z-index: 10;
    pointer-events: none;
}

/* Menu Section */
/* TV Section - Image Background (fv01.jpg) */
#tv {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/fv01.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

#tv h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#tv span,
#tv li {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#tv .glass-card {
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark glass for image bg */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

#tv .container {
    position: relative;
    z-index: 20;
}

/* Recommend Section - Video Background via HTML */
#recommend {
    background: transparent;
    color: white;
    position: relative;
    padding-bottom: 6rem;
}

#recommend .section-title h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#recommend .section-title p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Menu Section */
#menu {
    /* Alternating Side Images: Left, Right, Left */
    background-image: url('../img/menu_left.png'), url('../img/menu_rg.png'), url('../img/menu_left.png'), linear-gradient(135deg, #f8e7d6 0%, #faeee5 50%, #e7c7a6 100%);
    background-position: left -50px top 5%, right -50px center, left -50px bottom 5%, center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: 600px auto, 600px auto, 600px auto, cover;
    position: relative;
    z-index: 50;
}

@media (max-width: 768px) {
    #menu {
        background-size: 300px auto, 300px auto, 300px auto, cover;
        background-position: left -20px top 5%, right -20px center, left -20px bottom 5%, center;
    }
}

/* About Section - Botanical Background + Decoration (faint) */
#about,
#notes {
    background-color: #0f2e2e;
    /* Deep Teal Fallback */
    background-image: url('../img/bg_about_bali.svg');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    /* Large decoration */
    color: white;
    /* Base text white */
    padding-bottom: 8rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}



/* Decoration Image via Pseudo-element for Opacity Control */
#about::before,
#notes::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 600px;
    height: 100%;
    background: url('../img/menu_rg.png') no-repeat top right;
    background-size: contain;
    opacity: 0.2;
    /* Make it faint */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {

    #about::before,
    #notes::before {
        width: 300px;
        right: -50px;
    }
}

#about .section-title h2,
#notes .section-title h2 {
    color: #ffffff;
    /* Adjusted to White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#about .section-title p,
#notes .section-title p {
    color: #ffffff;
    /* Pure white for subtitle */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#about p,
#about span,
#about li,
#about div,
#notes p,
#notes span,
#notes li,
#notes h3,
#notes h4 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Service Section Decorations */
#service {
    background-color: var(--primary-beige, #fcf9f2);
    background-image: url('../img/menu_top.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 300px auto;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    #service {
        background-size: 150px auto;
        background-position: top 0 right 0;
        /* separated menu_bt */
    }
}

/* Q&A Section - Dark Theme like Reservation */
#qa {
    background-color: var(--dark-brown);
    /* Image moved to pseudo-element for opacity control */
    color: white;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Ensure pseudo-element stays contained */
}

#qa::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    /* Approximate height based on width ratio or use auto */
    height: 100%;
    /* To cover if needed, but we want top right corner */
    background-image: url('../img/menu_top.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 250px auto;
    opacity: 0.3;
    /* Make it thinner/lighter */
    pointer-events: none;
    z-index: -1;
}

#qa .section-title h2 {
    color: var(--sand-beige);
}

#qa .section-title p {
    color: white;
}

/* Override utility classes for Q&A items to fit dark theme */
#qa .bg-white {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

#qa .border-onzs-dark {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

#qa button {
    color: white !important;
}

#qa button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#qa .bg-\[\#f9f9f9\] {
    background-color: transparent !important;
    color: white !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

#qa .qa-icon {
    color: var(--sand-beige);
}

/* Background Video Styling for Recommend & Flow */
.bg-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Slight transparency to blend or soften */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

#recommend .video-overlay {
    background: rgb(203 203 203 / 50%);
}

#flow .video-overlay {
    background: #3b2a1eab;
}

#flow .section-title h2 {
    color: white !important;
}

/* Campaign Top Gradient for Smooth Transition from Recommend */
#campaign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15rem;
    /* Sufficient height for smooth fade */
    background: linear-gradient(to bottom, #3b2a1e 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Service English Title Animation */
.service-eng-title {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-eng-title.is-active {
    opacity: 1;
}

.service-eng-title .char {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s linear;
}

/* Payment Section Decoration */
/* Payment background moved to pseudo-element for opacity control */

/* Access Section Background */
#access {
    background-image: url('../img/access_bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Notes Content Box Text Color Revert */
#notes .notes-content-box,
#notes .notes-content-box p,
#notes .notes-content-box li,
#notes .notes-content-box h4,
#notes .notes-content-box span {
    color: #333333 !important;
    text-shadow: none !important;
}

/* Access Title White */
#access .section-title h2,
#access .section-title p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}


/* Ensure stacking context for pseudo-elements */
#reservation-cta,
#payment {
    position: relative;
    z-index: 10;
    background-image: none !important;
}

/* Reservation Background Image (Faint) */
#reservation-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-image: url('../img/menu_top.png');
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 400px auto;
    opacity: 0.6 !important;
    /* Thinner than Q&A (0.3) */
    pointer-events: none;
    z-index: -1;
    /* Behind text */
}

/* Payment Background Image (Faint) */
#payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background-image: url('../img/menu_left.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: 400px auto;
    opacity: 0.6 !important;
    /* Thinner */
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {

    #reservation-cta::before,
    #payment::before {
        width: 220px;
        background-size: 220px auto;
    }
}