/* FAQ — zelfde opbouw als Voor wie / Over */

.faq-page {
  background: var(--cream);
}

.faq-main {
  min-width: 0;
  overflow: visible;
}

.faq-content {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 36px max(4vw, 28px) 110px calc(var(--sidebar-width) + 36px);
  --faq-cream-w: 65vw;
  --faq-cream-edge: var(--faq-cream-w);
  --faq-photo-w: clamp(680px, 56vw, 1100px);
  --faq-photo-top: -52px;
}

@media (min-width: 1200px) {
  .faq-content {
    --faq-photo-w: max(
      calc(100vw - var(--faq-cream-w) - max(4vw, 28px) + min(10vw, 260px)),
      760px
    );
  }
}

@media (min-width: 1600px) {
  .faq-content {
    --faq-photo-w: max(
      calc(100vw - var(--faq-cream-w) - max(4vw, 28px) + min(14vw, 380px)),
      920px
    );
  }
}

@media (min-width: 2000px) {
  .faq-content {
    --faq-photo-w: max(
      calc(100vw - var(--faq-cream-w) - max(4vw, 28px) + min(18vw, 520px)),
      1080px
    );
  }
}

.faq-media {
  position: absolute;
  top: var(--faq-photo-top);
  right: 0;
  z-index: 0;
  width: var(--faq-photo-w);
  aspect-ratio: 2009 / 1346;
  margin: 0;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.faq-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.faq-media--masked {
  -webkit-mask-image: url("/assets/images/afbeelding.png");
  mask-image: url("/assets/images/afbeelding.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
}

.faq-kicker {
  position: relative;
  z-index: 2;
  max-width: 18ch;
  margin: 112px 0 14px;
  color: var(--coral);
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
}

.faq-subheading {
  position: relative;
  z-index: 2;
  margin: 0 0 16px;
  max-width: 11em;
  color: var(--charcoal);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.faq-textband {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: var(--faq-cream-w);
  max-width: none;
  margin: 0 0 0 calc(-1 * (var(--sidebar-width) + 36px));
  padding: 20px 40px 48px calc(var(--sidebar-width) + 36px);
  background: var(--cream);
}

.faq-intro {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  max-width: 42rem;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
}

.faq-intro:last-of-type {
  margin-bottom: 0;
}

.faq-list {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 28px 0 0;
  padding: 0;
}

.faq-item {
  margin: 0;
  border-top: 1px solid rgba(240, 101, 79, .35);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(240, 101, 79, .35);
}

.faq-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  cursor: pointer;
  color: var(--charcoal);
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__question {
  flex: 1 1 auto;
  font-family: var(--heading-font);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--coral);
  color: var(--coral);
  background: transparent;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__panel {
  padding: 0 44px 20px 0;
  color: var(--charcoal);
}

.faq-item__panel p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

.faq-item__panel p:last-child {
  margin-bottom: 0;
}

.faq-cta {
  position: absolute;
  left: var(--faq-cream-edge);
  top: calc(
    var(--faq-photo-top)
    + (var(--faq-photo-w) * 1346 / 2009)
    + 12px
  );
  right: auto;
  bottom: auto;
  z-index: 3;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
  width: 170px;
  min-height: 220px;
  padding: 18px 16px 14px;
  color: var(--sand) !important;
  background: var(--coral);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  text-transform: uppercase;
}

.faq-cta__label {
  max-width: 10.5em;
}

.faq-cta__arrow {
  align-self: flex-end;
  font-size: 22px;
  line-height: 1;
}

.faq-cta:hover,
.faq-cta:focus-visible {
  color: var(--sand) !important;
  filter: brightness(1.05);
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .faq-content {
    --faq-photo-w: min(52vw, 660px);
    --faq-photo-top: -40px;
  }
}

@media (max-width: 900px) {
  .faq-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 96px 24px 72px;
  }

  .faq-media {
    position: relative;
    top: auto;
    right: auto;
    order: 1;
    z-index: 0;
    width: min(100%, 620px);
    margin-right: -24px;
    margin-left: auto;
  }

  .faq-kicker {
    order: 2;
    max-width: none;
    margin-top: 0;
  }

  .faq-subheading {
    order: 3;
  }

  .faq-textband {
    order: 4;
    width: 100%;
    margin-left: 0;
    padding: 18px 18px 28px;
  }

  .faq-cta {
    position: relative;
    left: auto;
    top: auto;
    order: 5;
    align-self: flex-end;
  }
}

@media (max-width: 620px) {
  .faq-content {
    padding: 96px 16px 64px;
  }

  .faq-media {
    margin-right: -16px;
  }

  .faq-textband {
    padding: 14px 14px 22px;
  }

  .faq-item__panel {
    padding-right: 0;
  }

  .faq-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__icon::before,
  .faq-item__icon::after {
    transition: none;
  }
}
