/* ==========================================================
   Case studies (/customers/) — build on styles.css and feature.css
   ========================================================== */

/* ---------- Cobalt identity ----------
   Same as the Radztech ERP page: cobalt (#1565c0) replaces the site's
   orange on these pages. */

:root {
  --accent: #1565c0;
  --accent-ink: #0d47a1;
  --cobalt-tint: #e3f2fd;
}

/* ---------- Hero ---------- */

.cs-hero {
  background: linear-gradient(160deg, #0a2a5e 0%, #0d47a1 55%, #1565c0 100%);
  color: #fff;
}

.cs-hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.cs-hero .dot {
  background: #90caf9;
}

.cs-hero .muted {
  color: rgba(255, 255, 255, 0.62);
}

.cs-hero .hero__lede {
  color: rgba(255, 255, 255, 0.85);
}

.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.cs-hero__back:hover {
  color: #fff;
}

.cs-hero--index .wf-hero__title {
  max-width: 820px;
}

.cs-hero--index .hero__lede {
  max-width: 640px;
}

/* the "core achievements" card in the hero */

.wins {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}

.wins__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.wins__head b {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.wins__head span {
  font-size: 12.5px;
  color: var(--muted);
}

.wins .checks {
  margin: 20px 0 0;
  gap: 14px;
}

/* ---------- Scale indicators ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.figure {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.figure__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.figure__value {
  margin-top: 14px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.figure__sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Challenge ---------- */

.prose p {
  font-size: 17px;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 18px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.callout {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cobalt-tint);
}

/* ---------- Architecture rows ---------- */

.row__text h3 {
  margin-top: 18px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.row__text > p + p {
  margin-top: 14px;
}

.row__text strong {
  color: var(--ink);
  font-weight: 600;
}

.cs-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cobalt-tint);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
}

.note h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.note p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.note .checks {
  margin: 16px 0 0;
}

/* ---------- Cards (dashboards, impact) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
}

.card h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Photo ---------- */

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot figcaption {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Case cards with a photo (index, "more case studies") ---------- */

.case--photo {
  padding: 0;
  overflow: hidden;
}

.case__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}

.case--photo:hover .case__img {
  transform: scale(1.02);
}

.case__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 32px 32px;
  background: #fff;
  position: relative;
}

.case__body .case__metric {
  margin-top: 20px;
}

.case__body h3 {
  margin-top: 20px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.case__body > p:not(.case__sector):not(.case__metric) {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
  flex: 1;
}

.case__body .tags {
  margin-top: 20px;
}

.case__body .tags li {
  padding: 3px 10px;
  font-size: 12px;
}

.case__body .link {
  margin-top: 24px;
}

.cases--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Footnote ---------- */

.cs-note {
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .figures {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .wins {
    justify-self: center;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }
}

@media (max-width: 880px) {
  .cases--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .figures {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .figure {
    padding: 18px;
  }

  .wins,
  .card {
    padding: 24px;
  }

  .cards {
    margin-top: 40px;
  }

  .case__body {
    padding: 24px;
  }
}
