/* Warner Digital Marketing — case detail page styles
   Shared by all pages under /cases/. Loaded after shared.css. */

/* Detail hero (breadcrumb + section head live here) */
.case-detail {
  padding: 110px 0 110px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.case-detail::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(166, 214, 31, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(166, 214, 31, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.case-detail > .wrap { position: relative; }

.case-detail .section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: end;
}
.case-detail .section-head .label-col .section-label { margin-bottom: 16px; display: block; }
.case-detail .section-head .label-col .label-num {
  font-family: var(--display); font-size: 48px;
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--fg); line-height: 0.9;
  display: block; margin-bottom: 6px;
}
.case-detail .section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
}
.case-detail .case-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 40px;
  max-width: 72ch;
}

/* Body: image + narrative */
.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.case-body image-slot,
.case-body .case-visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.5);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.case-body .case-visual {
  display: grid; place-items: center;
  background: #FFFFFF;
}
.case-body .case-visual img { max-width: 60%; max-height: 60%; object-fit: contain; }
.case-narrative { display: flex; flex-direction: column; gap: 24px; }
.case-narrative .nar-block {
  background: rgba(20, 32, 56, 0.4);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.case-narrative .nar-block:hover { border-color: var(--accent); background: rgba(166, 214, 31, 0.05); }
.case-narrative h4 {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-text); font-weight: 500;
  margin-bottom: 12px;
}
.case-narrative p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 0; }
.case-narrative p + p { margin-top: 10px; }

/* KPI cards */
.case-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.case-kpi {
  background: rgba(20, 32, 56, 0.4);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}
.case-kpi::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(166, 214, 31, 0) 70%);
}
.case-kpi .k-num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 8px;
}
.case-kpi .k-lbl {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-3);
  line-height: 1.4;
}

/* Quote block */
.case-quote {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 36px;
  padding: 28px 32px;
  background: rgba(20, 32, 56, 0.4);
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
}
.case-quote blockquote {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4; font-weight: 400;
  letter-spacing: -0.01em; color: var(--fg);
  margin: 0;
}
.case-quote blockquote::before { content: "\201C"; color: var(--accent-text); font-size: 1.2em; margin-right: 4px; }
.case-quote blockquote::after  { content: "\201D"; color: var(--accent-text); font-size: 1.2em; margin-left: 2px; }
.case-quote .who {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; color: var(--fg-3);
  letter-spacing: 0.1em; line-height: 1.8;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.case-quote .who strong { color: var(--fg); font-weight: 500; display: block; font-size: 11px; }

/* Responsive */
@media (max-width: 1024px) {
  .case-detail .section-head {
    grid-template-columns: 1fr; gap: 24px; align-items: start; margin-bottom: 32px;
  }
  .case-body { grid-template-columns: 1fr; gap: 32px; }
  .case-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .case-detail { padding: 56px 0 64px; }
  .case-detail .section-head .label-col .label-num { font-size: 36px; }
  .case-kpis { grid-template-columns: 1fr 1fr; }
  .case-quote { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .case-quote .who { border-left: none; border-top: 2px solid var(--accent); padding-left: 0; padding-top: 14px; }
}
