@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

.rgym-showcase,
.rgym-showcase * { box-sizing: border-box; }

.rgym-showcase {
  /* Buitenruimte blijft bewust leeg: regel breedte, padding en uitlijning in Elementor. */
  --rgym-green: #00603f;
  --rgym-green-btn: #005f3e;
  --rgym-green-btn-hover: #005537;
  --rgym-green-soft: #66c582;
  --rgym-white: #ffffff;
  --rgym-empty-bg: #f3f3f3;
  --rgym-empty-text: #111111;
  --rgym-device-w: 700px;
  --rgym-slide-x: 470px;
  --rgym-enter-x: 390px;
  width: min(100%, 1700px);
  max-width: 1700px;
  margin: 0;
  padding: 0;
  font-family: 'Syne', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rgym-green) !important;
  background-color: transparent !important;
}

/* Isoleer alle tekst- en interactieve kleuren van de actieve WordPress/Elementor-kleuren. */
.rgym-showcase :is(h1, h2, h3, h4, h5, h6, p, a, button, span, strong) {
  font-family: inherit;
  color: var(--rgym-green) !important;
}

.rgym-showcase a,
.rgym-showcase a:visited,
.rgym-showcase a:hover,
.rgym-showcase a:focus,
.rgym-showcase a:active {
  text-decoration: none !important;
}

.rgym-showcase__layout {
  display: grid;
  grid-template-columns: 545px minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
  overflow: visible;
}

.rgym-showcase__intro {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px 0 8px 22px;
}

.rgym-showcase__heading {
  margin: 0 0 18px;
  max-width: 520px;
  color: var(--rgym-green) !important;
  font-size: 58px;
  line-height: .92;
  letter-spacing: -.052em;
  font-weight: 700;
}

.rgym-showcase__lead {
  margin: 0;
  max-width: 440px;
  color: var(--rgym-green) !important;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 500;
}

.rgym-showcase__logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 52px;
}

.rgym-showcase__logos img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 120px;
  object-fit: contain;
}

.rgym-showcase__logos img:nth-child(2) { height: 47px; max-width: 82px; }
.rgym-showcase__logos img:nth-child(3) { height: 36px; max-width: 150px; }

.rgym-showcase__actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.rgym-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.028em;
  text-decoration: none !important;
}


.rgym-btn--outline {
  color: var(--rgym-green) !important;
  background-color: transparent !important;
  border: 2px solid var(--rgym-green) !important;
}

.rgym-btn--solid {
  color: var(--rgym-green) !important;
  background-color: var(--rgym-green-soft) !important;
  border: 2px solid var(--rgym-green-soft) !important;
}

.rgym-apparaten-slider {
  min-width: 0;
  align-self: end;
  padding-bottom: 0;
  overflow: visible;
}

.rgym-slider-card {
  position: relative;
  width: 100%;
  height: 585px;
  overflow: visible;
  border-radius: 0;
  background-color: transparent !important;
  isolation: isolate;
}

.rgym-slider-copy {
  position: absolute;
  z-index: 8;
  left: 34px;
  top: 38px;
  width: 360px;
  max-width: 360px;
  min-height: 190px;
  color: var(--rgym-green) !important;
  overflow: hidden;
  pointer-events: none;
}

.rgym-slider-title {
  margin: 0 0 24px;
  color: var(--rgym-green) !important;
  font-size: 31px;
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 700;
}

.rgym-slider-text {
  margin: 0;
  width: 100%;
  max-width: 315px;
  max-height: 120px;
  overflow: hidden;
  color: var(--rgym-green) !important;
  font-size: 16px;
  line-height: 1.08;
  letter-spacing: -.032em;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
}

.rgym-slider-title,
.rgym-slider-text {
  transition: opacity 240ms ease, transform 240ms ease, filter 240ms ease;
}

.rgym-slider-copy.is-changing .rgym-slider-title,
.rgym-slider-copy.is-changing .rgym-slider-text {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  filter: blur(3px);
}

.rgym-slider-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.rgym-slider-img {
  position: absolute;
  top: 48%;
  right: 10px;
  width: var(--rgym-device-w);
  max-height: 710px;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.rgym-slider-img.is-current {
  z-index: 5;
  opacity: 1;
  filter: grayscale(1) contrast(1.04) saturate(.9);
  transform: translate3d(0, -50%, 0);
}

.rgym-slider-img.is-prev-ghost {
  z-index: 3;
  opacity: .16;
  filter: blur(5px) grayscale(1) saturate(0) contrast(.95);
  transform: translate3d(calc(var(--rgym-slide-x) * -1), -50%, 0) scale(.78);
}

.rgym-slider-img.is-next-ghost {
  z-index: 3;
  opacity: .07;
  filter: blur(7px) grayscale(1) saturate(0) contrast(.95);
  transform: translate3d(var(--rgym-slide-x), -50%, 0) scale(.78);
}

.rgym-slider-img.is-enter-next {
  z-index: 6;
  opacity: 0;
  filter: blur(18px) grayscale(1) saturate(0);
  transform: translate3d(var(--rgym-enter-x), -50%, 0);
  animation: rgymEnterNext 900ms cubic-bezier(.16,.84,.18,1) forwards;
}

.rgym-slider-img.is-enter-prev {
  z-index: 6;
  opacity: .18;
  filter: blur(9px) grayscale(1) saturate(0);
  transform: translate3d(calc(var(--rgym-slide-x) * -1), -50%, 0);
  animation: rgymEnterPrev 900ms cubic-bezier(.16,.84,.18,1) forwards;
}

.rgym-slider-img.is-leave-next {
  z-index: 4;
  animation: rgymLeaveNext 760ms cubic-bezier(.28,.04,.18,1) forwards;
}

.rgym-slider-img.is-leave-prev {
  z-index: 4;
  animation: rgymLeavePrev 760ms cubic-bezier(.28,.04,.18,1) forwards;
}

@keyframes rgymEnterNext {
  0% {
    opacity: 0;
    filter: blur(18px) grayscale(1) saturate(0);
    transform: translate3d(var(--rgym-enter-x), -50%, 0);
  }
  72% {
    opacity: 1;
    filter: blur(2px) grayscale(1) saturate(.55);
    transform: translate3d(-10px, -50%, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0) grayscale(1) contrast(1.04) saturate(.9);
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes rgymEnterPrev {
  0% {
    opacity: .16;
    filter: blur(9px) grayscale(1) saturate(0);
    transform: translate3d(calc(var(--rgym-slide-x) * -1), -50%, 0) scale(.78);
  }
  72% {
    opacity: 1;
    filter: blur(2px) grayscale(1) saturate(.55);
    transform: translate3d(10px, -50%, 0) scale(1);
  }
  100% {
    opacity: 1;
    filter: blur(0) grayscale(1) contrast(1.04) saturate(.9);
    transform: translate3d(0, -50%, 0) scale(1);
  }
}

@keyframes rgymLeaveNext {
  0% {
    opacity: 1;
    filter: blur(0) grayscale(1);
    transform: translate3d(0, -50%, 0) scale(1);
  }
  100% {
    opacity: .16;
    filter: blur(6px) grayscale(1) saturate(0);
    transform: translate3d(calc(var(--rgym-slide-x) * -1), -50%, 0) scale(.78);
  }
}

@keyframes rgymLeavePrev {
  0% {
    opacity: 1;
    filter: blur(0) grayscale(1);
    transform: translate3d(0, -50%, 0);
  }
  100% {
    opacity: 0;
    filter: blur(14px) grayscale(1) saturate(0);
    transform: translate3d(var(--rgym-enter-x), -50%, 0);
  }
}

.rgym-showcase .rgym-slider-arrow {
  color: var(--rgym-white) !important;
}

.rgym-slider-arrow {
  position: absolute;
  z-index: 12;
  top: 63%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: var(--rgym-green-btn) !important;
  color: var(--rgym-white) !important;
  cursor: pointer;
  transform: translate3d(0, -50%, 0);
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.rgym-slider-arrow:hover {
  transform: translate3d(0, -50%, 0) scale(1.045);
  background-color: var(--rgym-green-btn-hover) !important;
}

.rgym-showcase .rgym-btn:focus-visible,
.rgym-showcase .rgym-slider-arrow:focus-visible {
  outline: 2px solid var(--rgym-green) !important;
  outline-offset: 3px;
}

.rgym-slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rgym-slider-prev { left: 364px; }
.rgym-slider-next { right: 12px; }

.rgym-slider-empty {
  padding: 18px 20px;
  border-radius: 10px;
  background-color: var(--rgym-empty-bg) !important;
  color: var(--rgym-empty-text) !important;
}

@media (max-width: 1500px) {
  .rgym-showcase { --rgym-device-w: 610px; --rgym-slide-x: 400px; --rgym-enter-x: 340px; }
  .rgym-showcase__layout { grid-template-columns: 500px minmax(0, 1fr); gap: 42px; }
  .rgym-showcase__heading { font-size: 52px; }
  .rgym-slider-card { height: 530px; }
  .rgym-slider-copy { left: 24px; top: 36px; width: 355px; }
  .rgym-slider-title { font-size: 28px; }
  .rgym-slider-text { font-size: 16px; max-width: 310px; }
  .rgym-slider-img { max-height: 640px; }
  .rgym-slider-img.is-current { right: 0; }
  .rgym-slider-img.is-prev-ghost { right: 0; }
  .rgym-slider-prev { left: 335px; }
}

@media (max-width: 1180px) {
  .rgym-showcase__layout { grid-template-columns: 1fr; gap: 34px; }
  .rgym-showcase__intro { min-height: 0; padding: 10px 0 0; }
  .rgym-showcase__actions { margin-top: 34px; }
}

@media (max-width: 760px) {
  .rgym-showcase { --rgym-device-w: 92vw; --rgym-slide-x: 52vw; --rgym-enter-x: 48vw; }
  .rgym-showcase__heading { font-size: 42px; }
  .rgym-showcase__lead { font-size: 16px; }
  .rgym-showcase__logos { gap: 16px; margin-top: 30px; }
  .rgym-showcase__logos img { max-width: 92px; height: 30px; }
  .rgym-showcase__actions { gap: 14px; }
  .rgym-btn { width: 138px; height: 44px; font-size: 14px; }
  .rgym-slider-card { height: 700px; }
  .rgym-slider-copy { left: 20px; top: 24px; width: calc(100% - 40px); max-width: 340px; min-height: 210px; }
  .rgym-slider-title { font-size: 28px; margin-bottom: 18px; }
  .rgym-slider-text { max-width: 310px; max-height: 128px; font-size: 16px; line-height: 1.07; -webkit-line-clamp: 7; }
  .rgym-slider-img,
  .rgym-slider-img.is-current {
    right: 50%;
    top: 66%;
    max-height: 370px;
    transform: translate3d(50%, -50%, 0);
  }
  .rgym-slider-img.is-prev-ghost {
    right: 50%;
    top: 67%;
    transform: translate3d(calc(50% - var(--rgym-slide-x)), -50%, 0) scale(.72);
  }
  .rgym-slider-arrow {
    top: auto;
    bottom: 18px;
    width: 36px;
    height: 36px;
    transform: none;
  }
  .rgym-slider-arrow:hover { transform: scale(1.045); }
  .rgym-slider-arrow svg { width: 18px; height: 18px; }
  .rgym-slider-prev { left: 18px; }
  .rgym-slider-next { right: 18px; }
}


/* v1.4.8: mobile-stable animatie.
   Op telefoon blijft het apparaat altijd op hetzelfde midden-anker.
   Geen slide naar buiten, geen terugloop, geen transform-snap. */
@media (max-width: 760px) {
  .rgym-slider-card {
    height: 680px;
  }

  .rgym-slider-stage {
    overflow: visible;
  }

  .rgym-slider-img {
    right: 50% !important;
    left: auto !important;
    top: 66% !important;
    width: min(88vw, 500px) !important;
    max-height: 380px !important;
    transform-origin: center center !important;
    will-change: opacity, filter, transform;
  }

  .rgym-slider-img.is-current {
    right: 50% !important;
    opacity: 1;
    transform: translate3d(50%, -50%, 0) !important;
    filter: grayscale(1) contrast(1.04) saturate(.9);
  }

  .rgym-slider-img.is-prev-ghost,
  .rgym-slider-img.is-next-ghost {
    display: none !important;
  }

  .rgym-slider-img.is-enter-next,
  .rgym-slider-img.is-enter-prev {
    right: 50% !important;
    opacity: 0;
    transform: translate3d(50%, -50%, 0) !important;
    filter: blur(16px) grayscale(1) saturate(0);
    animation: rgymMobileCenterEnter 720ms cubic-bezier(.22,.72,.18,1) forwards !important;
  }

  .rgym-slider-img.is-leave-next,
  .rgym-slider-img.is-leave-prev {
    right: 50% !important;
    animation: rgymMobileCenterLeave 620ms cubic-bezier(.32,.02,.22,1) forwards !important;
  }
}

@keyframes rgymMobileCenterEnter {
  0% {
    opacity: 0;
    filter: blur(18px) grayscale(1) saturate(0);
    transform: translate3d(50%, -50%, 0) !important;
  }
  100% {
    opacity: 1;
    filter: blur(0) grayscale(1) contrast(1.04) saturate(.9);
    transform: translate3d(50%, -50%, 0) !important;
  }
}

@keyframes rgymMobileCenterLeave {
  0% {
    opacity: 1;
    filter: blur(0) grayscale(1);
    transform: translate3d(50%, -50%, 0) !important;
  }
  100% {
    opacity: 0;
    filter: blur(12px) grayscale(1) saturate(0);
    transform: translate3d(50%, -50%, 0) !important;
  }
}

