/* ============================================ */
/* CASE DETAIL PAGE STYLES                      */
/* ============================================ */

/* HERO */
.case-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
}
@supports (min-height: 100dvh) {
  .case-hero { min-height: 80dvh; }
}
.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.case-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.7);
  background: var(--dark-green);
}
video.case-hero-img {
  /* Voorkomt witte flicker tussen het laden van metadata en eerste frame */
  background-color: var(--dark-green);
}
.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,24,15,0.95) 0%, rgba(12,24,15,0.4) 50%, transparent 100%);
}
.case-hero .container {
  position: relative;
  z-index: 2;
}
.case-back {
  display: inline-block;
  color: var(--soft-green);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 32px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.case-back:hover {
  opacity: 1;
}
.case-hero-content {
  max-width: 700px;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.case-meta-item {
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.case-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.case-subtitle {
  font-size: 20px;
  color: var(--soft-green);
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
}

/* CONTENT */
.case-content {
  padding: 80px 0;
}
.case-block {
  margin-bottom: 64px;
}
.case-block h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
}
.case-block p {
  font-size: 18px;
  color: var(--soft-green);
  line-height: 1.8;
  font-weight: 300;
  margin: 0 0 20px;
}
.case-block p:last-child {
  margin-bottom: 0;
}
.case-block p strong {
  color: var(--gold);
  font-weight: 600;
}
.case-block p em {
  color: var(--white);
  font-style: italic;
  font-weight: 300;
}
.case-block--compact {
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.case-block ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.case-block ul li {
  font-size: 16px;
  color: var(--soft-green);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-weight: 300;
}
.case-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* VIDEO EMBED (responsive 16:9 iframe) */
.case-video {
  margin-bottom: 48px;
}
.case-video-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(208,223,185,0.08);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Click-to-play thumbnail (lazy iframe load) */
.video-thumb { cursor: pointer; }
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease;
  filter: saturate(0.95) brightness(0.85);
}
.video-thumb:hover img,
.video-thumb:focus-within img {
  transform: scale(1.03);
  filter: saturate(1) brightness(0.95);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border: none;
  background: rgba(7,25,12,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--gold, #F2E2A4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.video-play-btn svg { width: 64px; height: 64px; }
.video-thumb:hover .video-play-btn,
.video-thumb:focus-within .video-play-btn {
  background: var(--gold, #F2E2A4);
  color: var(--dark-green, #0C180F);
  transform: translate(-50%, -50%) scale(1.08);
}
@media (max-width: 767px) {
  .video-play-btn { width: 72px; height: 72px; }
  .video-play-btn svg { width: 48px; height: 48px; }
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(208,223,185,0.3);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FEATURES */
.case-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.case-feature {
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(208,223,185,0.08);
}
.case-feature-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.case-feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.case-feature p {
  font-size: 15px;
  color: var(--soft-green);
  line-height: 1.6;
  font-weight: 300;
}

/* IMAGES */
.case-image-full {
  margin: 72px 0;
  border-radius: 14px;
  overflow: hidden;
}
.case-image-full img {
  width: 100%;
  height: auto;
  display: block;
}
.case-image-caption {
  font-size: 13px;
  color: var(--soft-green);
  opacity: 0.5;
  text-align: center;
  margin-top: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 72px 0;
}
.case-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* TAGS ROW (free-standing, no card-box, replaces scope-tags inside scope-box) */
.case-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 48px;
  padding: 0;
}
.case-tags-row span {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(212,175,100,0.35);
  border-radius: 100px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.case-tags-row span:hover {
  background: rgba(212,175,100,0.08);
  border-color: rgba(212,175,100,0.55);
}

/* LIVE PROJECT CTA (free-standing block above next-case) */
.case-live-cta {
  margin: 96px 0 48px;
  padding: 56px 48px;
  border-top: 1px solid rgba(212,175,100,0.18);
  border-bottom: 1px solid rgba(212,175,100,0.18);
  text-align: center;
}
.case-live-cta__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--soft-green);
  opacity: 0.6;
  margin-bottom: 16px;
}
.case-live-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  transition: gap 0.3s ease;
}
.case-live-cta__link:hover {
  gap: 28px;
}
.case-live-cta__link .arrow {
  font-size: 0.85em;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.case-live-cta__link:hover .arrow {
  transform: translateX(6px);
}

/* RESULTS */
.case-results {
  margin: 96px 0 72px;
  padding: 56px 48px;
  background: rgba(212,175,100,0.04);
  border: 1px solid rgba(212,175,100,0.18);
  border-radius: 16px;
}
.case-results h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 40px;
  text-align: center;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.result-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(208,223,185,0.08);
  min-width: 0;
}
.result-big {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.result-desc {
  font-size: 13px;
  color: var(--soft-green);
  font-weight: 300;
  line-height: 1.45;
}
.case-results__note {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 14px;
  color: var(--soft-green);
  opacity: 0.75;
  font-style: italic;
  line-height: 1.6;
}

/* TESTIMONIAL */
.case-testimonial {
  margin: 64px 0;
  padding: 48px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  border-left: 3px solid var(--gold);
}
.case-testimonial blockquote {
  font-size: 20px;
  color: var(--white);
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 16px;
}
.case-testimonial cite {
  font-size: 14px;
  color: var(--gold);
  font-style: normal;
}

/* SCOPE — minimal credits row only (legacy variant retained for backwards compat) */
.case-scope {
  margin: 48px 0 24px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}
.case-scope h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 24px;
}
.scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.scope-tags span {
  padding: 8px 16px;
  background: rgba(242,226,164,0.08);
  color: var(--soft-green);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid rgba(208,223,185,0.1);
}
.scope-credits {
  padding-top: 0;
  border-top: none;
}
.scope-credits p {
  font-size: 13px;
  color: var(--soft-green);
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

/* NEXT CASE (legacy — kept for cases not yet migrated to .case-nav) */
.case-next {
  padding: 80px 0;
  border-top: 1px solid rgba(208,223,185,0.08);
}
.case-next-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft-green);
  opacity: 0.5;
  margin-bottom: 16px;
}
.case-next-link {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  transition: gap 0.3s ease;
}
.case-next-link:hover {
  gap: 40px;
}
.case-next-link h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}
.case-next-link .btn-arrow {
  font-size: 32px;
  color: var(--gold);
  transition: transform 0.3s ease;
}
.case-next-link:hover .btn-arrow {
  transform: translateX(8px);
}

/* CASE FEATURE BLOCK (CRM, animation, etc — for showing extra deliverables) */
.case-feature-block {
  margin: 96px 0 72px;
  padding: 48px 40px;
  background: rgba(212,175,100,0.04);
  border: 1px solid rgba(212,175,100,0.18);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.case-feature-block--text-only {
  display: block;
}
.case-feature-block__copy {
  min-width: 0;
}
.case-feature-block__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 16px;
}
.case-feature-block h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 18px;
  line-height: 1.2;
}
.case-feature-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--soft-green);
  font-weight: 300;
  margin: 0 0 16px;
  max-width: 600px;
}
.case-feature-block ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-feature-block ul li {
  font-size: 15px;
  color: var(--soft-green);
  padding-left: 24px;
  position: relative;
  font-weight: 300;
  line-height: 1.55;
}
.case-feature-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.case-feature-block__visuals {
  position: relative;
  min-width: 0;
  min-height: 560px;
  align-self: stretch;
}
.case-feature-block__visuals img {
  position: absolute;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(212,175,100,0.22);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.42),
    0 4px 14px rgba(212,175,100,0.08);
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1), box-shadow 0.55s ease;
  background: #0c180f;
}
/* Pipeline (eerste img) — leading top-right, lichte tegen-tilt */
.case-feature-block__visuals img:first-child {
  top: 0;
  right: 0;
  width: 100%;
  height: auto;
  transform: rotate(-1.8deg);
  z-index: 1;
}
/* Heatmap (tweede img) — overlapt linksonder, tilt + naar buiten breken */
.case-feature-block__visuals img:last-child {
  bottom: -32px;
  left: -56px;
  width: 60%;
  height: auto;
  transform: rotate(3.5deg);
  z-index: 2;
}
.case-feature-block__visuals:hover img:first-child {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 6px 18px rgba(212,175,100,0.12);
}
.case-feature-block__visuals:hover img:last-child {
  transform: rotate(0deg) translate(-6px, -6px);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 6px 18px rgba(212,175,100,0.12);
}
@media (max-width: 900px) {
  .case-feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-feature-block__visuals {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .case-feature-block__visuals img,
  .case-feature-block__visuals img:first-child,
  .case-feature-block__visuals img:last-child {
    position: static;
    width: 100%;
    transform: none;
    bottom: auto;
    left: auto;
    right: auto;
  }
}
@media (max-width: 767px) {
  .case-feature-block {
    margin: 56px 0 48px;
    padding: 32px 24px;
  }
}

/* VIDEO GRID — YouTube embeds in 2x2 layout */
.case-videos {
  margin: 72px 0;
}
.case-videos__intro {
  margin-bottom: 32px;
  max-width: 760px;
}
.case-videos__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}
.case-videos__intro h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 14px;
  line-height: 1.2;
}
.case-videos__intro p {
  font-size: 16px;
  color: var(--soft-green);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}
.case-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.case-video-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-video-tile__frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(208,223,185,0.08);
}
.case-video-tile__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.case-video-tile__title {
  font-size: 14px;
  color: var(--soft-green);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.case-videos__cta {
  margin-top: 32px;
  text-align: right;
}
.case-videos__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.3s ease;
}
.case-videos__cta a:hover {
  gap: 14px;
}
@media (max-width: 767px) {
  .case-video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* CASE NAVIGATION (prev + next side-by-side, integrated with content) */
.case-nav {
  padding: 72px 0 96px;
  border-top: 1px solid rgba(212,175,100,0.18);
  background: transparent;
}
.case-nav__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.case-nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 32px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.4s ease;
  border-radius: 8px;
}
.case-nav__link:hover {
  background: rgba(212,175,100,0.04);
}
.case-nav__link--prev {
  text-align: left;
  align-items: flex-start;
}
.case-nav__link--next {
  text-align: right;
  align-items: flex-end;
}
.case-nav__divider {
  width: 1px;
  background: rgba(212,175,100,0.18);
  align-self: stretch;
  flex-shrink: 0;
}
.case-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.65;
  font-weight: 600;
}
.case-nav__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--white);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.case-nav__link--prev:hover .case-nav__title {
  transform: translateX(-6px);
}
.case-nav__link--next:hover .case-nav__title {
  transform: translateX(6px);
}
.case-nav__placeholder {
  flex: 1;
  pointer-events: none;
}
@media (max-width: 767px) {
  .case-nav {
    padding: 48px 0 64px;
  }
  .case-nav__inner {
    flex-direction: column;
    gap: 0;
  }
  .case-nav__divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .case-nav__link {
    padding: 24px 16px;
    align-items: flex-start;
    text-align: left;
  }
  .case-nav__link--next {
    align-items: flex-start;
    text-align: left;
  }
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .case-hero {
    min-height: 100vh;
    padding-bottom: 48px;
  }
  @supports (min-height: 100dvh) {
    .case-hero { min-height: 100dvh; }
  }
  .case-title {
    font-size: 36px;
  }
  .case-features {
    grid-template-columns: 1fr;
  }
  .case-image-full {
    margin: 48px 0;
  }
  .case-image-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 48px 0;
  }
  .case-results {
    padding: 32px 20px;
    margin: 64px 0 48px;
  }
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .result-big {
    font-size: 24px;
    letter-spacing: -0.01em;
  }
  .result-card {
    padding: 18px 8px;
  }
  .result-desc {
    font-size: 12px;
  }
  .case-testimonial {
    padding: 24px;
  }
  .case-scope {
    padding: 0;
  }
  .case-tags-row {
    margin: 24px 0 36px;
  }
  .case-tags-row span {
    padding: 8px 14px;
    font-size: 12px;
  }
  .case-live-cta {
    margin: 64px 0 32px;
    padding: 36px 16px;
  }
  .case-meta {
    gap: 12px;
  }
}
