/* WHY US */
.why-us {
  --why-red: #dc3231;
  --why-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1rem, 3vw, 1.75rem)
    clamp(2.75rem, 5vw, 4rem);
  background-color: var(--why-red);
  background-image: none;
}

.why-us__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(72rem, 100%);
  margin: 0 auto;
}

/* —— Intro —— */
.why-us__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.why-us__kicker {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.6vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.65rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: why-kicker-in 0.65s var(--why-ease) both;
}

@keyframes why-kicker-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
    letter-spacing: 0.22em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.16em;
  }
}

.why-us__title {
  font-family: var(--font-sans);
  font-size: clamp(1.65rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  max-width: 58rem;
  margin-inline: auto;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  animation: why-title-in 0.7s var(--why-ease) 0.05s both;
}

.why-us__subline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.9vw, 1.1875rem);
  font-weight: 500;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0;
}

@keyframes why-title-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Grid: 3 × 9:16, centreret ~60% bredde; video uden kort-ramme —— */
/* NB: ingen backdrop-filter på forælder til Vimeo — ellers blank iframe i Safari */
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
  align-items: start;
  width: 75%;
  max-width: 54rem; /* ~25% større end tidligere 43.2rem */
  margin-inline: auto;
  box-sizing: border-box;
}

.why-proof-card {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: why-card-in 0.65s var(--why-ease) both;
}

.why-proof-card:nth-child(1) {
  animation-delay: 0.08s;
}

.why-proof-card:nth-child(2) {
  animation-delay: 0.16s;
}

.why-proof-card:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes why-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.why-proof-card:hover .why-proof-card__media {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22),
    0 0 36px rgba(220, 50, 49, 0.22);
}

.why-proof-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  /* Matcher sektionen hvis der er et px-gab — undgår sort “tomrum” */
  background: var(--why-red);
  border: none;
  box-shadow: none;
  isolation: isolate;
  transition: transform 0.45s var(--why-ease), box-shadow 0.45s var(--why-ease);
}

.why-proof-card__media iframe {
  position: absolute;
  /* Skub afspilleren op + ekstra højde: klipper Vimeos sorte top-bjælke og bund-kontroller */
  top: -44px;
  left: 0;
  width: 100%;
  height: calc(100% + 44px + 52px);
  z-index: 1;
  border: 0;
  display: block;
}

@media (max-width: 1024px) {
  .why-us__title {
    font-size: clamp(1.35rem, 5vw, 2.85rem);
    letter-spacing: 0.035em;
  }
}

@media (max-width: 600px) {
  .why-us__title {
    font-size: clamp(1.05rem, 5.5vw, 2.05rem);
    letter-spacing: 0.03em;
  }
}

@media (max-width: 767px) {
  .why-us__grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: min(16.25rem, 92vw);
    margin-inline: auto;
    gap: 1.25rem;
  }

  .why-proof-card {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-us__title,
  .why-proof-card {
    animation: none;
  }

  .why-proof-card__media {
    transition: none;
  }

  .why-proof-card:hover .why-proof-card__media {
    transform: none;
    box-shadow: none;
  }
}
