/* LEON Sticky Sync Section Widget */
.elementor-widget-leon_sticky_sync,
.elementor-widget-leon_sticky_sync > .elementor-widget-container {
  overflow: visible !important;
}

.leon-sticky-sync {
  --leon-sync-column-gap: 72px;
  --leon-sync-visual-width: 45%;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, var(--leon-sync-visual-width)) minmax(0, 1fr);
  gap: var(--leon-sync-column-gap);
  align-items: start;
  position: relative;
  overflow: visible;
}

.leon-sticky-sync.sticky-side-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--leon-sync-visual-width));
}

.leon-sticky-sync.sticky-side-right .leon-sticky-sync-visual-col {
  order: 2;
}

.leon-sticky-sync.sticky-side-right .leon-sticky-sync-content {
  order: 1;
}

.leon-sticky-sync-visual-col {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: visible;
}

.leon-sticky-sync-content {
  min-width: 0;
  box-sizing: border-box;
}

.leon-sticky-sync-visual-sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 110px;
  z-index: 2;
}

.leon-sticky-sync-visual {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border-radius: 36px;
  background: #F7F0E8;
  transform: translateZ(0);
}

.leon-sticky-sync-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .38s ease;
  pointer-events: none;
}

.leon-sticky-sync-bg,
.leon-sticky-sync-frame {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.leon-sticky-sync-video {
  object-fit: cover;
}

.leon-sticky-sync-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  min-width: 100%;
  min-height: 177.78%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.leon-sticky-sync-media.is-active {
  opacity: 1;
  z-index: 2;
}

.leon-sticky-sync.effect-none .leon-sticky-sync-media {
  transition: none;
}

.leon-sticky-sync.effect-fade_scale .leon-sticky-sync-media {
  transform: scale(1.018);
  transition: opacity .38s ease, transform .48s ease;
}

.leon-sticky-sync.effect-fade_scale .leon-sticky-sync-frame iframe {
  transform: translate(-50%, -50%);
}

.leon-sticky-sync.effect-fade_scale .leon-sticky-sync-media.is-active {
  transform: scale(1);
}

.leon-sticky-sync-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

.leon-sticky-sync-item {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .45;
  transition: opacity .24s ease;
}

.leon-sticky-sync-item.is-active {
  opacity: 1;
}

.leon-sticky-sync-eyebrow {
  color: #D9823B;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.leon-sticky-sync-title {
  margin: 0;
  color: #4A3428;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.leon-sticky-sync-description {
  margin-top: 24px;
  color: rgba(74, 52, 40, 0.72);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.75;
}

.leon-sticky-sync-description p {
  margin: 0 0 1em;
}

.leon-sticky-sync-description p:last-child {
  margin-bottom: 0;
}

.leon-sticky-sync-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-top: 34px;
  min-height: 48px;
  padding: 14px 22px;
  border: 0 solid transparent;
  border-radius: 999px;
  background-color: #F6A04D;
  color: #4A3428;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(246, 160, 77, 0.24);
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: .2s;
  transition-timing-function: ease;
}

.leon-sticky-sync-button:hover,
.leon-sticky-sync-button:focus {
  color: #4A3428;
  background-color: #E98E39;
  text-decoration: none;
}

.leon-sticky-sync-button-text {
  display: inline-block;
}

.leon-sticky-sync-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.leon-sticky-sync-button-icon i {
  display: block;
  line-height: 1;
}

.leon-sticky-sync-button-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.leon-sticky-sync-button.icon-before {
  flex-direction: row;
}

.leon-sticky-sync-button.icon-after {
  flex-direction: row;
}

.leon-sticky-sync-mobile-image {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 28px;
  border-radius: 36px;
  background-color: #F7F0E8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


/* The scroll-horizontal stage wrapper must not change the desktop grid. */
.leon-sticky-sync.mobile-scroll-horizontal-sync > .leon-sticky-sync-stage {
  display: contents;
}

@media (max-width: 1024px) {
  .leon-sticky-sync {
    gap: clamp(32px, 5vw, 56px);
  }

  .leon-sticky-sync-visual {
    height: 460px;
  }
}

@media (max-width: 767px) {
  .leon-sticky-sync {
    display: block;
    max-width: 100%;
  }

  /* Legacy mobile stacked layout. */
  .leon-sticky-sync.disable-mobile-sticky:not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) .leon-sticky-sync-visual-col {
    display: none;
  }

  .leon-sticky-sync.disable-mobile-sticky:not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) .leon-sticky-sync-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .leon-sticky-sync.disable-mobile-sticky:not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) .leon-sticky-sync-item {
    min-height: auto !important;
    opacity: 1;
  }

  .leon-sticky-sync.disable-mobile-sticky:not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) .leon-sticky-sync-mobile-image {
    display: block;
  }

  .leon-sticky-sync:not(.disable-mobile-sticky):not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) {
    grid-template-columns: 1fr;
  }

  .leon-sticky-sync:not(.disable-mobile-sticky):not(.mobile-horizontal-sync):not(.mobile-scroll-horizontal-sync) .leon-sticky-sync-visual-sticky {
    position: relative;
    top: auto !important;
    margin-bottom: 32px;
  }

  /* Mobile horizontal swipe mode. The visual remains above while text cards scroll horizontally. */
  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-visual-col {
    display: block;
    width: 100%;
    margin-bottom: 28px;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-visual-sticky {
    position: relative;
    top: auto !important;
    margin-bottom: 0;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    padding-bottom: 8px;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-content::-webkit-scrollbar {
    display: none;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-item {
    flex: 0 0 min(86vw, 560px);
    width: min(86vw, 560px);
    min-height: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    justify-content: flex-start;
    opacity: .5;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-item.is-active {
    opacity: 1;
  }

  .leon-sticky-sync.mobile-horizontal-sync .leon-sticky-sync-mobile-image {
    display: none !important;
  }


  /* Mobile scroll-driven horizontal mode.
   * One native sticky stage contains BOTH the visual and horizontal content.
   * This keeps their spacing locked and lets the browser release the whole
   * stage naturally when the section ends.
   */
  .leon-sticky-sync.mobile-scroll-horizontal-sync {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    --leon-mobile-scroll-x: 0px;
  }

  /* On desktop this wrapper is layout-transparent; on mobile it becomes the
   * single sticky stage. */
  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-stage {
    position: sticky;
    position: -webkit-sticky;
    top: var(--leon-sync-sticky-top, 20px);
    display: block;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    box-sizing: border-box;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-visual-col {
    display: block;
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 18px;
    z-index: 3;
    transform: none;
    will-change: auto;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-visual-sticky {
    position: relative;
    top: auto !important;
    margin-bottom: 0;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-visual {
    max-height: 44svh;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-content {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    gap: 18px;
    overflow: hidden;
    padding-bottom: 8px;
    z-index: 2;
    touch-action: pan-y;
    transform: none;
    will-change: auto;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-item {
    flex: 0 0 min(86vw, 560px);
    width: min(86vw, 560px);
    min-height: auto !important;
    justify-content: flex-start;
    opacity: .5;
    transform: translate3d(var(--leon-mobile-scroll-x, 0px), 0, 0);
    will-change: transform;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-item.is-active {
    opacity: 1;
  }

  .leon-sticky-sync.mobile-scroll-horizontal-sync .leon-sticky-sync-mobile-image {
    display: none !important;
  }

  .leon-sticky-sync-title {
    font-size: clamp(32px, 10vw, 48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leon-sticky-sync-media,
  .leon-sticky-sync-item {
    transition: none !important;
  }
}

.leon-sticky-sync-eyebrow,
.leon-sticky-sync-title,
.leon-sticky-sync-description {
  box-sizing: border-box;
}
