/* ── VR CTA ── */
.vr-cta {
  width: calc(100% - 2.5rem);
  padding-block: 2.5rem;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .vr-cta {
    padding-block: 5rem;
  }
}

.vr-cta__wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.vr-cta__container {
  position: relative;
  min-height: 27.25rem; /* 436px — exact Figma frame-hoogte */
  height: fit-content;
  background: var(--color-bg-darkest);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1rem;
  align-items: center;
  padding-left: 4rem; /* 64px — Figma text container x */
}

/* Badge */
.vr-cta__badge {
  align-self: flex-start;
  background: var(--color-bg-dark);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem; /* 6px 12px */
  font-size: var(--font-size-sm); /* 14px */
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.286; /* 18/14 */
}

/* Content — left column */
.vr-cta__content {
  padding-block: 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 1 / 6;
}

.vr-cta__text-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}

.vr-cta__title {
  margin: 1.125rem 0 0;
  font-size: var(--font-size-h2); /* 32px */
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 1.167; /* 35/30 */
}

.vr-cta__description {
  margin: 0;
  font-size: var(--font-size-h4); /* 20px */
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--line-height-relaxed);
}

.vr-cta__btn {
  margin-block-start: 1.5rem;
}

/* Media — ThingLink iframe in cirkelclip (Figma: x=706, y=-155, w=728, h=728) */
.vr-cta__media {
  position: absolute;
  left: 52.7%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;    /* 728 / 1340 */
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.vr-cta__iframe,
.vr-cta__image {
  width: 80%;
  height: 80%;
  border: none;
  display: block;
  object-fit: cover;
  margin-left: 0%;
  margin-top: 15%;
}

@media (max-width: 75rem) {
  .vr-cta__iframe,
  .vr-cta__image {
    margin-top: 8%;
  }
}

@media ( max-width: 64rem ) {
  .vr-cta__media {
    width: 75%;
  }

  .vr-cta__iframe,
  .vr-cta__image {
    margin-top: 0;
    scale: 1.5;
  }
}

@media (max-width: 48rem) {

  .vr-cta__container {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem 0;
  }

  .vr-cta__description {
    font-size: var(--font-size-base);
  }

  .vr-cta__content {
    width: 100%;
    grid-column: 1 / -1;
    padding-block: 0;
  }

  .vr-cta__btn {
    width: 100%;
    text-align: center;
  }

  .vr-cta__media {
    grid-column: 1 / -1;
    position: relative;
    left: auto;
    top: auto;
    transform: translateY(0);
    width: 150%;
    margin-left: -25%;
    margin-bottom: -75%;
    margin-top: 1.5rem;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    border-radius: 50rem;
  }

  .vr-cta__media iframe {
    max-height: 40rem;
    margin-block-start: -5%;
    margin-left: 0;
  }
}

@media (max-width: 40rem) {
  .vr-cta__media iframe { 
    max-height: 40rem;
    margin-block-start: -20%;
  }
}

/* @media (max-width: 25rem) {
  .vr-cta__media iframe {
    margin-block-start: -20%;
  }
} */

/* ── VR CTA: media-trigger (placeholder afbeelding + play-icon) ── */
.vr-cta__media-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Cirkel gepositioneerd op het visuele midden van het zichtbare deel van de clip-circle.
   De media-div start op 52.7% van de container en is 60% breed → zichtbaar portie = 47.3%.
   Visueel centrum binnen de div = 47.3% / 2 / 60% ≈ 39% van links. */
.vr-cta__play-icon {
  position: absolute;
  left: 39%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-white);
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: none;

  @media (max-width: 48rem) {
    left: 50%;
    top: 30%;
  }
}

.vr-cta__play-icon .icon {
  margin-left: 0.15em; /* optisch centreren van play-driehoek */
}

.vr-cta__media-trigger:hover .vr-cta__play-icon {
  background: var(--color-secondary-dark);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ── VR CTA: dialog popup ── */
.vr-cta-dialog {
  width: min(95vw, var(--container-max-width, 90rem));
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--color-white, #fff);
  color: var(--color-text-heading);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
}

.vr-cta-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.vr-cta-dialog__inner {
  display: flex;
  flex-direction: column;
}

.vr-cta-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

.vr-cta-dialog__title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-heading);
}

.vr-cta-dialog__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.vr-cta-dialog__fullscreen .icon--compress {
  display: none;
}

.vr-cta-dialog.is-fullscreen .vr-cta-dialog__fullscreen .icon--expand {
  display: none;
}

.vr-cta-dialog.is-fullscreen .vr-cta-dialog__fullscreen .icon--compress {
  display: block;
}

.vr-cta-dialog.is-fullscreen {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0;
}

.vr-cta-dialog.is-fullscreen .vr-cta-dialog__inner {
  height: 100%;
}

.vr-cta-dialog.is-fullscreen .vr-cta-dialog__body {
  flex: 1;
  min-height: 0;
}

.vr-cta-dialog.is-fullscreen .vr-cta-dialog__iframe {
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
}

.vr-cta-dialog__fullscreen,
.vr-cta-dialog__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.5);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.vr-cta-dialog__fullscreen:hover,
.vr-cta-dialog__close:hover {
  color: var(--color-text-heading);
}

.vr-cta-dialog__body {
  line-height: 0;
}

.vr-cta-dialog__iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
