/* =========================================================
   ADVENTURE ALLEVEGNE - CASE
========================================================= */

/* =========================================================
   GENERELT
========================================================= */

.case-container {
  width: min(1240px, 84%);
  margin: 0 auto;
}

.case-section {
  width: 100%;
  padding: 85px 0;
}

.case-section--white {
  background: var(--background);
}

.case-section--cream {
  background: var(--surface);
}

/* =========================================================
   FÆLLES TYPOGRAFI
========================================================= */

.case-eyebrow {
  margin-bottom: 14px;

  color: var(--accent);

  font-family: var(--font-primary);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);

  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
}

.case-section-number {
  margin-bottom: 12px;

  color: var(--accent);

  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;

  line-height: 1;
}

.case-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.case-heading h2 {
  margin-bottom: 18px;

  color: var(--text);

  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  font-weight: 700;

  line-height: 1.05;
  letter-spacing: -0.045em;
}

.case-heading > p:last-child {
  color: var(--text-soft);

  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================================
   HERO
========================================================= */

.case-hero {
  padding: 60px 0 80px;

  background: var(--background);
}

.case-hero__grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  align-items: center;

  gap: 65px;
}

.case-hero__content {
  width: 100%;
}

.case-back {
  display: inline-flex;
  align-items: center;

  margin-bottom: 50px;

  color: var(--text-soft);

  font-size: 0.88rem;
  font-weight: 500;

  text-decoration: none;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.case-back:hover {
  color: var(--accent);

  transform: translateX(-4px);
}

.case-hero h1 {
  margin-bottom: 24px;

  color: var(--text);

  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 6vw, 6.4rem);
  font-weight: 700;

  line-height: 0.92;
  letter-spacing: -0.06em;
}

.case-hero__intro {
  max-width: 500px;

  margin-bottom: 25px;

  color: var(--text-soft);

  font-size: 1.03rem;
  line-height: 1.75;
}

/* =========================================================
   HERO - TAGS
========================================================= */

.case-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin: 0 0 28px;
  padding: 0;

  list-style: none;
}

.case-tags li {
  padding: 8px 13px;

  background: #eef3f8;

  color: var(--text);

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;
}

/* =========================================================
   HERO - KNAPPER
========================================================= */

.case-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 25px;
}

.case-button {
  text-decoration: none;
}

.case-button--primary {
  display: inline-flex;
  align-items: center;

  padding: 14px 23px;

  background: var(--accent);

  color: #ffffff;

  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 600;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.case-button--primary:hover {
  background: var(--accent-dark);

  transform: translateY(-2px);
}

.case-button--secondary {
  position: relative;

  color: var(--text);

  font-size: 0.9rem;
  font-weight: 600;
}

.case-button--secondary::after {
  content: "";

  position: absolute;

  right: 0;
  bottom: -5px;
  left: 0;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0.35);
  transform-origin: left;

  transition: transform 0.25s ease;
}

.case-button--secondary:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   HERO - MOCKUP
========================================================= */

.case-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.case-hero__visual img {
  display: block;

  width: 100%;
  max-width: 720px;
  height: auto;

  object-fit: contain;
}

/* =========================================================
   UDFORDRING + LØSNING + MIN ROLLE
========================================================= */

.challenge-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 50px;
}

.challenge-item {
  position: relative;

  min-width: 0;
}

/* Lodret skillelinje mellem kolonnerne */

.challenge-item:not(:last-child) {
  padding-right: 45px;

  border-right: 1px solid var(--border);
}

.challenge-item h2 {
  margin-bottom: 18px;

  color: var(--text);

  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  font-weight: 700;

  line-height: 1.08;
  letter-spacing: -0.04em;
}

.challenge-item > p:last-child {
  margin: 0;

  color: var(--text-soft);

  font-size: 1rem;
  line-height: 1.75;
}

/* =========================================================
   PROCESSEN
========================================================= */

.process-cards {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 28px;

  margin-top: 10px;
}

.process-card {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: var(--background);

  border: 1px solid var(--border);
  border-radius: 22px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.process-card img {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 10;

  object-fit: cover;
}

.process-card__content {
  padding: 28px;
}

.process-card span {
  display: block;

  margin-bottom: 16px;

  color: var(--accent);

  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;

  line-height: 1;
}

.process-card h3 {
  margin-bottom: 12px;

  color: var(--text);

  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.process-card p {
  margin: 0;

  color: var(--text-soft);

  font-size: 0.92rem;
  line-height: 1.7;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.zoom-image {
  cursor: zoom-in;

  transition: transform 0.3s ease;
}

.zoom-image:hover {
  transform: scale(1.015);
}

.lightbox {
  position: fixed;

  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 50px;

  background: rgba(20, 18, 17, 0.9);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 99999;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  display: block;

  width: auto;
  height: auto;

  max-width: 90vw;
  max-height: 88vh;

  object-fit: contain;

  border-radius: 12px;

  transform: scale(0.96);

  transition: transform 0.3s ease;
}

.lightbox.show img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;

  top: 25px;
  right: 35px;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 45px;
  height: 45px;

  color: #ffffff;

  font-size: 2.2rem;
  line-height: 1;

  cursor: pointer;

  z-index: 2;
}

/* =========================================================
   UI / UX
========================================================= */

.ux-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 24px;
}

.ux-card {
  min-height: 215px;

  padding: 30px;

  background: var(--background);

  border: 1px solid var(--border);
  border-radius: 22px;
}

.ux-card span {
  display: block;

  margin-bottom: 22px;

  color: var(--accent);

  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;

  line-height: 1;
}

.ux-card h3 {
  margin-bottom: 12px;

  color: var(--text);

  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
}

.ux-card p {
  margin: 0;

  color: var(--text-soft);

  font-size: 0.88rem;
  line-height: 1.7;
}

/* =========================================================
   HVAD JEG LÆRTE
========================================================= */

.learning-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 28px;
}

.learning-grid article {
  display: flex;
  flex-direction: column;

  min-height: 290px;

  padding: 30px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 22px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.learning-grid article:hover {
  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(44, 35, 31, 0.06);
}

.learning-grid span {
  display: block;

  margin-bottom: 20px;

  color: var(--accent);

  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;

  line-height: 1;
}

.learning-grid span::after {
  content: "";

  display: block;

  width: 100%;
  height: 1px;

  margin-top: 22px;

  background: var(--border);
}

.learning-grid h3 {
  margin-bottom: 14px;

  color: var(--text);

  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
}

.learning-grid p {
  margin: 0;

  color: var(--text-soft);

  font-size: 0.88rem;
  line-height: 1.7;
}

/* =========================================================
   KOMPAKTE HEROER
   Kun Spilcaféen og Helt Normal
========================================================= */

.case-hero--compact {
  padding: 45px 0 55px;
}

.case-hero--compact .case-back {
  margin-bottom: 35px;
}

.case-hero--compact .case-hero__visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* SPILCAFÉEN */

.case-hero--spilcafeen .case-hero__visual img {
  max-height: 490px;
}

/* HELT NORMAL */

.case-hero--heltnormal .case-hero__visual img {
  max-height: 500px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {
  .case-hero__grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .case-hero--compact .case-hero__visual img {
    width: auto;
    max-width: 100%;
    max-height: 500px;
  }

  .case-hero__content {
    max-width: 650px;
  }

  .case-hero__visual img {
    max-width: 700px;
  }

  .case-back {
    margin-bottom: 35px;
  }

  /* Udfordring / løsning / rolle */

  .challenge-grid {
    gap: 32px;
  }

  .challenge-item:not(:last-child) {
    padding-right: 30px;
  }

  /* Proces */

  .process-cards {
    gap: 20px;
  }

  /* Læring */

  .learning-grid {
    gap: 20px;
  }
}

/* =========================================================
   MELLEM TABLET OG MOBIL
========================================================= */

@media (max-width: 850px) {
  /* Udfordring / løsning / rolle */

  .challenge-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .challenge-item {
    padding: 35px 0;
  }

  .challenge-item:first-child {
    padding-top: 0;
  }

  .challenge-item:not(:last-child) {
    padding-right: 0;

    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Proces */

  .process-cards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* UI / UX */

  .ux-grid {
    grid-template-columns: 1fr;
  }

  /* Læring */

  .learning-grid {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .learning-grid article {
    min-height: auto;
  }
}

/* =========================================================
   MOBIL
========================================================= */

@media (max-width: 700px) {
  .case-container {
    width: 88%;
  }

  .case-section {
    padding: 65px 0;
  }

  .case-hero {
    padding: 40px 0 65px;
  }

  .case-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  /* Lightbox */

  .lightbox {
    padding: 20px;
  }

  .lightbox img {
    max-width: 95vw;
    max-height: 85vh;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }

  /* Knapper */

  .case-actions {
    gap: 18px;
  }
}
