/* Isotopon Duotone Section — frontend CSS with per-section overrides */

.two-tone-anim {
  position: relative;
  min-height: var(--ids-h-desktop);
}

/* responsive min-heights */
@media (max-width: 1024px) {
  .two-tone-anim { min-height: var(--ids-h-tablet); }
}
@media (max-width: 767px) {
  .two-tone-anim { min-height: var(--ids-h-mobile); }
}

/* pseudo-element background block */
.two-tone-anim::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  height: var(--ids-h-desktop);
  width: 0;
  opacity: 0;

  /* Hard split using duplicated stops at --ids-split */
  background: linear-gradient(var(--ids-direction, to right),
    var(--ids-color1, #f3ece9) 0,
    var(--ids-color1, #f3ece9) var(--ids-split, 50%),
    var(--ids-color2, #ffffff) var(--ids-split, 50%),
    var(--ids-color2, #ffffff) 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;

  z-index: 0;
  pointer-events: none;
  transition:
    width var(--ids-duration, 900ms) ease-out,
    opacity var(--ids-duration, 900ms) ease-out;
}

@media (max-width: 1024px) {
  .two-tone-anim::before { height: var(--ids-h-tablet); }
}
@media (max-width: 767px) {
  .two-tone-anim::before { height: var(--ids-h-mobile); }
}

/* default RTL origin (set on body class) */
.ids-default-rtl .two-tone-anim::before {
  left: auto; right: 0;
}

/* per-element RTL override */
.two-tone-anim.ids-rtl::before { left: auto; right: 0; }

/* content above background */
.two-tone-anim > .elementor-container,
.two-tone-anim > .e-con-inner,
.two-tone-anim > .elementor-widget-wrap,
.two-tone-anim > .elementor-container > .elementor-column,
.two-tone-anim > .e-con-inner > .e-con {
  position: relative;
  z-index: 1;
}

/* visible state */
.two-tone-anim.is-inview::before {
  width: 100%;
  opacity: 1;
}

/* Element-level OFF state (disabled on device) */
.two-tone-anim.ids-off-el::before { display: none; }
.two-tone-anim.ids-off-el { min-height: 0; }

/* prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .two-tone-anim::before {
    transition: opacity 0.001s linear;
    width: 100%;
  }
}
