/* Final CTA — “behind the stage” mosaik + copy */
.final-cta {
  --fc-accent: #d92323;
  --fc-ink: #0a0a0a;
  --fc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--fc-accent);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(3rem, 7vw, 5.5rem);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 90% 70% at 100% 0%,
      rgba(217, 35, 35, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 0% 100%,
      rgba(217, 35, 35, 0.05) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, #ffffff 0%, #fafafa 45%, #f5f5f5 100%);
  pointer-events: none;
  z-index: 0;
}

.final-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .final-cta__inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 2.75rem);
  }

  .final-cta__copy {
    max-width: none;
    width: 100%;
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .final-cta__subline {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .final-cta__actions {
    justify-content: center;
    width: 100%;
  }
}

/* —— Copy —— */
.final-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.final-cta__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fc-accent);
  text-shadow: none;
}

.final-cta__subline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.9vw, 1.1875rem);
  font-weight: 500;
  font-style: normal;
  color: rgba(217, 35, 35, 0.92);
  line-height: 1.55;
  max-width: 40rem;
  margin: 0;
  margin-top: -0.75rem;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

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

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

.final-cta__btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--fc-accent);
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid var(--fc-accent);
  transition: background 0.25s var(--fc-ease), color 0.25s var(--fc-ease),
    border-color 0.25s var(--fc-ease), transform 0.2s var(--fc-ease),
    box-shadow 0.25s ease;
  box-shadow: 0 8px 28px rgba(217, 35, 35, 0.35);
}

.final-cta__btn:hover,
.final-cta__btn:focus-visible {
  background: #c41e1e;
  border-color: #c41e1e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(217, 35, 35, 0.4);
}

.final-cta__btn:focus-visible {
  outline: 2px solid var(--fc-accent);
  outline-offset: 3px;
}

/* —— BTS mosaik: ét højt + tre stakket (som oprindeligt) —— */
.final-cta__mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  /* minmax(0,1fr): højre rækker matcher venstre kolonnes samlede højde */
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  /*
    Fast højde — ellers vokser 1fr-rækker med billedernes intrinsic højde,
    og min-height alene ændrer ikke den synlige højde.
  */
  box-sizing: border-box;
  min-height: 0;
  height: clamp(330px, 54vw, 570px);
  max-height: clamp(330px, 54vw, 570px);
  align-items: stretch;
  align-self: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.final-cta__cell:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / -1;
}

.final-cta__cell:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.final-cta__cell:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.final-cta__cell:nth-child(4) {
  grid-column: 2;
  grid-row: 3;
}

/* Venstre (studie): bund 55 %; vandret mod venstre (58 %) */
.final-cta__cell:nth-child(1) img {
  object-position: 58% 72.5%;
}

/* Holdfoto er bredt — læg fokus på gruppen i det smalle felt */
.final-cta__cell:nth-child(4) img {
  object-position: center 32%;
}

@media (max-width: 900px) {
  .final-cta__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    min-height: 0;
    max-width: 28rem;
    margin-inline: auto;
    align-self: stretch;
  }

  .final-cta__cell:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 285px;
  }

  .final-cta__cell:nth-child(2) {
    grid-column: 1;
    grid-row: auto;
    min-height: 165px;
  }

  .final-cta__cell:nth-child(3) {
    grid-column: 2;
    grid-row: auto;
    min-height: 165px;
  }

  .final-cta__cell:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 192px;
  }
}

.final-cta__cell {
  position: relative;
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ebebeb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateZ(0);
  transition: transform 0.45s var(--fc-ease), box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.final-cta__cell:nth-child(1) {
  animation: final-cta-cell-in-a 0.75s var(--fc-ease) 0.06s both;
}

.final-cta__cell:nth-child(2) {
  animation: final-cta-cell-in-b 0.75s var(--fc-ease) 0.12s both;
}

.final-cta__cell:nth-child(3) {
  animation: final-cta-cell-in-c 0.75s var(--fc-ease) 0.18s both;
}

.final-cta__cell:nth-child(4) {
  animation: final-cta-cell-in-d 0.75s var(--fc-ease) 0.24s both;
}

.final-cta__mosaic:hover .final-cta__cell {
  transform: translateZ(0) scale(1.01);
}

.final-cta__mosaic:hover .final-cta__cell:nth-child(1) {
  transform: translateZ(0) scale(1.02);
}

@keyframes final-cta-cell-in-a {
  from {
    opacity: 0;
    transform: translate(12px, 16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

@keyframes final-cta-cell-in-b {
  from {
    opacity: 0;
    transform: translate(-8px, 10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

@keyframes final-cta-cell-in-c {
  from {
    opacity: 0;
    transform: translate(10px, -8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

@keyframes final-cta-cell-in-d {
  from {
    opacity: 0;
    transform: translate(-10px, 8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

.final-cta__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s var(--fc-ease);
  filter: saturate(0.92) contrast(1.05);
}

.final-cta__cell:hover img,
.final-cta__mosaic:focus-within .final-cta__cell img {
  transform: scale(1.08);
}

.final-cta__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 42%,
    transparent 60%,
    rgba(0, 0, 0, 0.35) 100%
  );
  mix-blend-mode: soft-light;
}

.final-cta__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(217, 35, 35, 0.15);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .final-cta__cell,
  .final-cta__cell img {
    animation: none !important;
    transition: none;
    transform: none !important;
  }

  .final-cta__mosaic:hover .final-cta__cell,
  .final-cta__mosaic:hover .final-cta__cell:nth-child(1) {
    transform: none;
  }

  .final-cta__btn:hover,
  .final-cta__btn:focus-visible {
    transform: none;
  }
}
