/* Alvo Marketing – kun til /cases. Fælles komponenter ligger i site.css. */

/* ---------- Aktiv side i navigation ---------- */
.nav-list a[aria-current],
.nav-mobile ul a[aria-current],
.site-footer a[aria-current] {
  text-decoration-line: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ---------- Kompakt hero ---------- */
.hero--compact {
  padding: clamp(28px, 5.5vw, 72px);
}
.hero--compact h1 {
  max-width: 16em;
  font-size: clamp(38px, 4.8vw, 58px); /* samme minimum som forsidens H1 */
  line-height: 1.08;
}
.hero--compact .hero-text { margin-top: 24px; }
.hero--compact .btn-primary { margin-top: 32px; }

/* ---------- Caseoversigt ---------- */
.work {
  padding-bottom: clamp(64px, 8vw, 112px);
}

.work-media {
  aspect-ratio: 16 / 10;
  background: var(--line);
}
/* Rigtige screenshots: fyld feltet, behold toppen af siden synlig */
.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.work-service {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-client {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.work-title {
  margin: 0;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.work-text {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
}
.work-action {
  margin-top: auto;
  padding-top: 28px;
}

/* LMK Service: fremhævet case i fuld bredde */
.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-box);
  background: var(--lime);
  color: var(--navy);
}
.work-feature .work-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(20, 38, 56, 0.1);
}
.work-feature .work-body {
  display: flex;
  flex-direction: column;
}
.work-feature .work-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.work-feature .work-text { font-size: clamp(17px, 1.4vw, 19px); }
.work-feature :focus-visible { outline-color: var(--navy); }

.work-figure {
  padding: 0 0.14em;
  border-radius: 3px;
  background: var(--navy);
  color: var(--lime);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.btn-work-dark {
  font-size: 15px;
  padding: 11px 18px;
  background: var(--navy);
  color: var(--cream);
}
.btn-work-dark:not(:disabled):hover { background: #22394F; }

/* De øvrige cases: screenshot øverst, mørkeblå tekstområde nedenunder */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-grid > li { min-width: 0; }

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.work-card .work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}
.work-card .work-service { color: rgba(247, 244, 237, 0.78); }
.work-card :focus-visible { outline-color: var(--lime); }

/* Tablet: én kolonne, når to bliver for smalle */
@media (max-width: 899px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Mobil: LMK-billedet over teksten */
@media (max-width: 767px) {
  .work-feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 560px) {
  .work-card .work-body { padding: 24px; }
  .work-title { font-size: 23px; }
  .work-action { padding-top: 24px; }
  .hero--compact .hero-text { margin-top: 20px; }
  .hero--compact .btn-primary { margin-top: 28px; }
}
