/* =====================================================================
   Hunebed Media / pagina-stijlen voor Klantcases & Klantcase-detail
   Aanvullend op het gedeelde design-systeem (styles.css).
   ===================================================================== */

@keyframes driftPattern { from { background-position: 0 0; } to { background-position: 120px 120px; } }

/* ============================ KLANTCASES ============================= */

/* ---- Filterbalk ---- */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  position: sticky;
  top: 78px;
  z-index: 10;
  padding: 14px 0;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #DAD7CE;
  background: #fff;
  color: var(--ink);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter-btn__count { font-size: 12px; opacity: .7; }
.filter-btn.is-active {
  background: var(--orange);
  color: #1A1A1A;
  border-color: var(--orange);
}

/* ---- Case-grid + kaarten ---- */
.case-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.kc-card {
  display: block;
  background: #fff;
  border: 1px solid #E7E5DE;
  border-radius: 22px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.kc-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 56px rgba(22,23,28,.14);
  border-color: #fff;
}
.kc-card.is-hidden { display: none; }
.kc-card__media {
  position: relative;
  height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.kc-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 14px);
}
.kc-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15,46,55,.55);
  backdrop-filter: blur(6px);
  font-family: var(--f-body);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.kc-card__metric {
  position: relative;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.kc-card__body { padding: 24px 24px 26px; }
.kc-card__body .h3 { margin: 0 0 4px; font-size: 21px; color: var(--ink); }
.kc-card__type { font-size: 13.5px; color: #82848C; margin-bottom: 16px; }
.kc-card__summary { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }
.kc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
}

/* ========================= KLANTCASE-DETAIL ========================= */

/* ---- Hero met groot projectbeeld ---- */
.case-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, #15323b 0%, #1c4350 35%, #222222 85%);
  padding: 160px 0 0;
}
.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 24px);
  animation: driftPattern 18s linear infinite;
  pointer-events: none;
}
.case-hero__inner { position: relative; z-index: 2; }
.case-hero .h1 { max-width: 920px; font-size: clamp(38px, 5.8vw, 78px); line-height: 1.03; }
.case-hero__lead {
  max-width: 620px;
  margin: 26px 0 50px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
  color: #C3D0D4;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.case-tag {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 600;
  color: #C3D0D4;
}
.case-tag--primary {
  background: rgba(255,108,0,.16);
  border-color: rgba(255,108,0,.35);
  color: var(--orange);
}
.case-hero__media {
  position: relative;
  z-index: 2;
  height: clamp(300px, 46vh, 480px);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 70% 10%, rgba(255,108,0,.4), transparent 55%),
    radial-gradient(120% 120% at 15% 90%, rgba(32,150,180,.45), #1a2429);
  box-shadow: 0 -10px 60px rgba(0,0,0,.3);
}
.case-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 18px);
}

/* ---- Metrics ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line-1);
  padding-bottom: clamp(50px, 7vh, 80px);
}
.metric__value {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1;
}
.metric__label { margin-top: 10px; font-size: 14.5px; color: #9FA2AC; line-height: 1.45; }

/* ---- Uitdaging / aanpak / resultaat ---- */
.case-body {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
  margin-top: clamp(50px, 7vh, 80px);
}
.case-body__aside { position: sticky; top: 110px; align-self: start; }
.case-body__aside .h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.case-blocks { display: flex; flex-direction: column; gap: 38px; }
.case-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-block__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.case-block__head h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .005em;
  color: var(--text);
}
.case-block p {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}

/* ---- Highlights ---- */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight-card {
  background: #fff;
  border: 1px solid #E7E5DE;
  border-radius: 18px;
  padding: 30px 28px 32px;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(22,23,28,.12); }
.highlight-card__icon { font-size: 30px; margin-bottom: 16px; }
.highlight-card h3 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .005em;
  color: var(--ink);
}
.highlight-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }

/* ---- Klantverhaal / review ---- */
.case-quote { position: relative; overflow: hidden; }
.case-quote__inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; }
.case-quote__mark {
  font-family: var(--f-display);
  font-size: 90px;
  line-height: .6;
  color: var(--orange);
  opacity: .5;
  margin-bottom: 10px;
}
.case-quote__text {
  margin: 0 auto;
  max-width: 820px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: .005em;
  color: var(--text);
}
.case-quote__author { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.case-quote__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex: none;
}
.case-quote__name { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--text); }
.case-quote__role { font-size: 14px; color: #9FA2AC; }
.case-quote__stars { margin-left: 8px; color: var(--amber); font-size: 17px; letter-spacing: 2px; }

/* ---- Volgende case ---- */
.next-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, #2C2C2C, #252b2e);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  padding: 36px 40px;
  transition: border-color .3s ease, transform .3s ease;
}
.next-case:hover { border-color: var(--line-3); transform: translateY(-3px); }
.next-case__label {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #9FA2AC;
  margin-bottom: 8px;
}
.next-case__title { font-family: var(--f-display); font-size: clamp(22px, 3vw, 32px); color: var(--text); }
.next-case__metric { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--teal-light); }

/* CTA-band staat nu als gedeelde component .cta-band in styles.css */

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
  .case-filter-grid { grid-template-columns: repeat(2, 1fr); }
  .case-filters { position: static; top: auto; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: 1fr; gap: 40px; }
  .case-body__aside { position: static; top: auto; }
}
@media (max-width: 620px) {
  .case-filter-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
}
