/*  custom-one */

/* --- LENIS SMOOTH SCROLL GLOBALS --- */
/* Prevents double-scrollbars and ensures buttery smooth scrolling */
html.lenis, html.lenis body {
  height: auto;
  width: 100%; /* FIX: Changed from 100vw to 100% to remove horizontal scrollbar */
  overflow-x: hidden;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
/* ---------------------------------- */

/* ==================================================
   CINEMATIC VIDEO SCROLL
   ================================================== */
.cinematic-scroll-section.elementor-element {
    position: relative;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: none !important;
    width: 100% !important;
}

/* Desktop Height: 100vh (Full Screen) */
@media (min-width: 768px) {
    .cinematic-scroll-section.elementor-element {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
}

/* Mobile Height: Dynamic between 465px and 600px */
@media (max-width: 767px) {
    .cinematic-scroll-section.elementor-element {
        height: 75vh !important;
        min-height: 465px !important;
        max-height: 600px !important;
    }
}

/* ONLY the widget wrapper gets animated by GSAP */
.cinematic-scroll-section .elementor-widget-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform-origin: center center !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cinematic-scroll-section .e-hosted-video,
.cinematic-scroll-section .elementor-wrapper {
    width: 100% !important;
    height: 100% !important;
}

/* The actual video stays stable and untouched */
.cinematic-scroll-section .elementor-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform-origin: center center !important;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ==================================================
   HERO PARALLAX (.cc-hero-parallax)
   ================================================== */
/* 1. Main Hero Wrapper */
.cc-hero-parallax {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* 2. Target Elementor's built-in Background Video Container */
.cc-hero-parallax .elementor-background-video-container {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  z-index: 0 !important;
  overflow: hidden !important;
}

/* Ensure the text and buttons sit above the background */
.cc-hero-parallax .elementor-widget {
  position: relative;
  z-index: 10;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Force the Discover More inner container to the absolute bottom */
.cc-hero-parallax .elementor-element-8a671cc {
  position: absolute !important;
  bottom: 30px !important; 
  left: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
}

/* Ensure the actual <video> element fills our overscanned container cleanly */
.cc-hero-parallax .elementor-background-video-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 3. Keep Content on top */
.cc-hero-parallax > .elementor-widget-wrap,
.cc-hero-parallax > .e-con-inner,
.cc-hero-parallax > .elementor-widget {
  position: relative;
  z-index: 2;
}

/* ==================================================
   AKANEYA GALLERY
   ================================================== */
@media (min-width: 1537px) {
  .akaneya-gallery-section > .e-con-child:nth-child(2) {
    margin-top: -60px !important; /* Pulls the middle column UP */
  }
}

/* Only apply the layout and parallax offsets above 880px */
@media (min-width: 768px) {
  /* 1. Static vertical offset for the middle column */
  .akaneya-gallery-section > .e-con-child:nth-child(2) {
    margin-top: -30px !important; 
  }

  /* 2. Setup the image widget wrapper */
  .akaneya-gallery-section .elementor-widget-image {
    overflow: hidden !important;
    width: 100%;
    border-radius: 4px; /* Cinematic soft corners */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* 3. Scale the inner image so it doesn't show edges when moving */
  .akaneya-gallery-section .elementor-widget-image img {
    width: 100% !important;
    object-fit: cover !important;
    transform: scale(1.05); /* Slight zoom */
  }
}

/* Fallback for mobile */
@media (max-width: 767px) {
  .akaneya-gallery-section > .e-con-child {
    margin-top: 0 !important;
  }
  .akaneya-gallery-section .elementor-widget-image {
    transform: none !important; 
    aspect-ratio: 4 / 3; 
  }
}

/* ==================================================
   ICON HOVER (CUSTOM ICON HOVER)
   ================================================== */
.custom-icon-hover .elementor-widget-container {
  display: inline-block;
}

.custom-icon-hover .elementor-icon-box-wrapper {
  position: relative;
  padding-bottom: 6px; 
}

.custom-icon-hover .elementor-icon-box-icon {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-icon-hover:hover .elementor-icon-box-icon {
  transform: translateX(15px);
}

.custom-icon-hover .elementor-icon-box-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px; 
  background-color: #f8c559; 
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
}

.custom-icon-hover:hover .elementor-icon-box-wrapper::after {
  width: calc(100% + 15px);
}

/* ==================================================
   MENU HOVER IMAGES (POPUP)
   ================================================== */
.menu-images {
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden !important; 
}

.elementor-location-popup,
.dialog-widget-content,
.menu-images {
  -ms-overflow-style: none !important; 
  scrollbar-width: none !important; 
}
.elementor-location-popup::-webkit-scrollbar,
.dialog-widget-content::-webkit-scrollbar,
.menu-images::-webkit-scrollbar {
  display: none !important; 
}

.menu-images > .elementor-element {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0; 
  visibility: hidden;
}

.menu-images > .elementor-element.active {
  opacity: 1;
  visibility: visible;
}

/* ==================================================
   DRAGON ANIMATION
   ================================================== */
.elementor-element-67b766a {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 286px !important;
  max-width: none !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: flex-end;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: none !important;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) !important;
  transform-origin: left center !important;
  will-change: transform !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform: translateZ(0);
}

.elementor-element-67b766a .elementor-widget-container {
  width: 100% !important;
  height: 318px !important;
}

.elementor-element-67b766a img {
  display: block !important;
  width: 100% !important;
  height: 286px !important;
  max-width: none !important;
  object-fit: fill !important;
}

.elementor-element-67b766a.is-stretched {
  transform: scaleX(1.8) !important;
}

@media (max-width: 1537px) and (min-width: 767px) {
  .elementor-element-67b766a img {
    height: 230px !important;
  }
}

@media (max-width: 767px) {
  .elementor-element-67b766a {
    display: none !important;
  }
}

/* ==================================================
   BUDDHA HERO PARALLAX
   ================================================== */
.buddha-hero-parallax {
    position: relative;
    perspective: 100vh;
}

.buddha-hero-parallax .elementor-widget {
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes heroBgZoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.buddha-hero-parallax>.elementor-background-overlay,
.buddha-hero-parallax>.elementor-background-video-container {
    animation: heroBgZoomIn 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- ADDITION: STANDALONE IMAGE PARALLAX GPU ACCELERATION --- */
.buddha-image-parallax {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ==================================================
   TEXT REVEAL ANIMATION (CSS DRIVEN)
   ================================================== */
/* 1. Global Mask */
.buddha-bar-text-reveal .buddha-bar-line-mask {
    display: block !important;
    overflow: hidden !important;
    vertical-align: top;
    padding-bottom: 0.15em;
}

/* 2. Menu and Icon List Mask Fix (Fixes Layout) */
.buddha-bar-text-reveal .hfe-menu-item .buddha-bar-line-mask,
.buddha-bar-text-reveal .elementor-icon-list-item .buddha-bar-line-mask {
    display: inline-block !important; 
    padding-bottom: 0 !important;
}

/* 3. Global Line */
.buddha-bar-text-reveal .buddha-bar-line-mask .line {
    display: block;
    transform: translateY(110%);
    will-change: transform;
    opacity: 0; 
}

/* 4. Menu and Icon List Line Fix (Fixes Layout without overriding Elementor) */
.buddha-bar-text-reveal .hfe-menu-item .line {
    display: inline-block !important;
}
.buddha-bar-text-reveal .elementor-icon-list-item .line {
    display: inline-flex !important;
    align-items: center;
}

/* 5. Reveal Animation (Triggers everything!) */
.buddha-bar-text-reveal.is-visible .buddha-bar-line-mask .line {
    opacity: 1;
    animation: buddhaRevealSlow 1.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
}

@keyframes buddhaRevealSlow {
    0% { transform: translateY(110%); }
    100% { transform: translateY(0); }
}

/* Added inside injectParallaxCSS() */
@media screen and (max-width: 879px) {
    .buddha-text-parallax {
        position: relative;
    }
}
/* Force Elementor Links to use the selected color instead of default Blue */
.buddha-bar-text-reveal a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Fix: Force ONLY the HFE Nav Menu wrappers to inherit Elementor Typography and Colors natively */
.buddha-bar-text-reveal .hfe-menu-item .buddha-bar-line-mask,
.buddha-bar-text-reveal .hfe-menu-item .line {
    color: #FFFDF7 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    font-style: inherit !important;
}

/* ONLY the Reserve a Table button */
.button-hover-animation {
    position: relative !important;
    z-index: 99 !important; /* Dropped from 999 so it slides under the header */
}

.button-hover-animation .elementor-button {
    position: relative !important;
    z-index: 100 !important; /* Dropped from 1000 */
    cursor: pointer !important;
}



/* =========================================
   CUSTOM MENU HOVER CLASS (buddha-menu-hover)
   ========================================= */

/* 1. Force the anchor and mask to act as inline elements */
.buddha-menu-hover .menu-item > a.hfe-menu-item,
.buddha-menu-hover .menu-item > a.hfe-menu-item .buddha-bar-line-mask {
    position: relative;
    display: inline-block !important;
}

/* 2. Fix inner line width & remove JS delay */
.buddha-menu-hover .menu-item > a.hfe-menu-item .line {
    display: inline-block !important;
    width: auto !important;
    transition: color 0.35s ease !important; 
    transition-delay: 0s !important;
}

/* 3. Gold Color (Triggered on the list item for stability) */
.buddha-menu-hover .menu-item:hover > a.hfe-menu-item .line,
.buddha-menu-hover .menu-item > a.hfe-menu-item:focus .line,
.buddha-menu-hover .menu-item > a.hfe-menu-item:active .line {
    color: #f8c559 !important;
}

/* 4. Underline (Animates back to the left smoothly) */
.buddha-menu-hover .menu-item > a.hfe-menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px; 
    background: #f8c559 !important;
    opacity: 1 !important; /* PREVENTS ELEMENTOR FROM INSTANTLY HIDING IT */
    visibility: visible !important; /* PREVENTS INSTANT HIDING */
    transform: scaleX(0);
    transform-origin: left center !important; 
    transition: transform 0.35s ease !important; /* Forces it to animate back */
    pointer-events: none;
}

.buddha-menu-hover .menu-item:hover > a.hfe-menu-item::after,
.buddha-menu-hover .menu-item > a.hfe-menu-item:focus::after,
.buddha-menu-hover .menu-item > a.hfe-menu-item:active::after {
    transform: scaleX(1);
}





/* =========================================
   CUSTOM LINK HOVER CLASS (buddha-link-hover)
   For standard Text Editor / Paragraph Links
   ========================================= */

/* 1. Ensure links sit properly */
.buddha-link-hover a {
    position: relative;
    display: inline-block;
    transition: color 0.35s ease !important;
    transition-delay: 0s !important; /* Prevents staggered JS delays */
}

/* 2. Gold Hover Color */
.buddha-link-hover a:hover,
.buddha-link-hover a:focus,
.buddha-link-hover a:active {
    color: #f8c559 !important;
}

/* 3. The Classic Underline (Animates back to the left) */
.buddha-link-hover a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px; 
    width: 100%;
    height: 1px;
    background: #f8c559 !important;
    transform: scaleX(0);
    transform-origin: left center; /* Kept on the left so it shrinks back */
    transition: transform 0.35s ease;
    pointer-events: none;
}

.buddha-link-hover a:hover::after,
.buddha-link-hover a:focus::after,
.buddha-link-hover a:active::after {
    transform: scaleX(1);
    /* Removed the changing transform-origin so it behaves like the footer menu */
}




/* =========================================
   CUSTOM SOCIAL HOVER CLASS (buddha-social-hover)
   For Elementor Icon Lists (Instagram, Facebook, etc.)
   ========================================= */

/* 1. Force the anchor and mask to act as inline elements */
.buddha-social-hover .elementor-icon-list-item > a,
.buddha-social-hover .elementor-icon-list-item > a .buddha-bar-line-mask {
    position: relative;
    display: inline-block !important;
}

/* 2. Fix inner line width & use inline-flex to perfectly align Icon + Text */
.buddha-social-hover .elementor-icon-list-item > a .line {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    transition: color 0.35s ease !important; 
    transition-delay: 0s !important;
}

/* 3. Gold Color for Text (Targeting Elementor's specific text span directly) */
.buddha-social-hover .elementor-icon-list-item > a .line,
.buddha-social-hover .elementor-icon-list-item > a .elementor-icon-list-text {
    transition: color 0.35s ease !important;
    transition-delay: 0s !important;
}

.buddha-social-hover .elementor-icon-list-item:hover > a .line,
.buddha-social-hover .elementor-icon-list-item:hover > a .elementor-icon-list-text,
.buddha-social-hover .elementor-icon-list-item > a:focus .line,
.buddha-social-hover .elementor-icon-list-item > a:focus .elementor-icon-list-text,
.buddha-social-hover .elementor-icon-list-item > a:active .line,
.buddha-social-hover .elementor-icon-list-item > a:active .elementor-icon-list-text {
    color: #f8c559 !important;
}


/* 4. Smooth transition for the SVG fill */
.buddha-social-hover .elementor-icon-list-item > a svg,
.buddha-social-hover .elementor-icon-list-item > a svg path {
    transition: fill 0.35s ease !important;
}

/* Change the SVG fill color to Gold on hover */
.buddha-social-hover .elementor-icon-list-item:hover > a svg,
.buddha-social-hover .elementor-icon-list-item:hover > a svg path,
.buddha-social-hover .elementor-icon-list-item > a:focus svg path,
.buddha-social-hover .elementor-icon-list-item > a:active svg path {
    fill: #f8c559 !important;
}

/* 5. Underline (Animates back to the left smoothly) */
.buddha-social-hover .elementor-icon-list-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px; /* Adjust if the line sits too close to the icon */
    width: 100%;
    height: 1px; 
    background: #f8c559 !important;
    opacity: 1 !important; 
    visibility: visible !important; 
    transform: scaleX(0);
    transform-origin: left center !important; 
    transition: transform 0.35s ease !important; 
    pointer-events: none;
}

.buddha-social-hover .elementor-icon-list-item:hover > a::after,
.buddha-social-hover .elementor-icon-list-item > a:focus::after,
.buddha-social-hover .elementor-icon-list-item > a:active::after {
    transform: scaleX(1);
}




/* 1. Establish the fixed visual clipping boundary on the widget itself */
.bb-image-hover-zoom {
    overflow: hidden !important; 
    position: relative;
}

/* Handle the anchor tag wrapping the image to prevent gaps */
.bb-image-hover-zoom a {
    display: block;
    overflow: hidden;
    position: relative;
    line-height: 0; 
}

/* 2. Target the image for smooth transition */
.bb-image-hover-zoom img {
    transition: transform 0.5s ease, opacity 0.5s ease;
    object-fit: cover;
    object-position: center;
    /* Prevent image from distorting or creating gaps */
    display: block;
    width: 100%;
    /* Keep original scale initially */
    transform: scale(1);
    will-change: transform;
}

/* 3. Apply hover zoom effect */
@media (hover: hover) and (pointer: fine) {
    /* Trigger zoom when hovering anywhere on the image widget */
    .bb-image-hover-zoom:hover img {
        transform: scale(1.15);
        opacity: 0.95; /* Subtle opacity adjustment */
    }
}

/* 4. Accessibility: Disable animation for users preferring reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bb-image-hover-zoom img {
        transition: none;
    }
    .bb-image-hover-zoom:hover img {
        transform: scale(1);
        opacity: 1;
    }
}
