/* Case study template — scoped to .cs-page. Brand tokens from the OW palette. */

.cs-page {
  overflow-x: hidden;
  --ow-primary-blue: #006495;
  --ow-bright-blue: #057bb2;
  --ow-sky-blue: #0493d5;
  --ow-steel-blue: #6c899b;
  --ow-dark-charcoal: #3b3d3b;
  --ow-medium-gray: #636972;
  --ow-light-gray: #d5d8d9;
  --ow-near-white: #efefef;
  --ow-white: #ffffff;
  --cs-serif: "Cardo", Georgia, "Times New Roman", serif;
  --cs-ui: "Archivo Narrow", "Arial Narrow", sans-serif;
  --cs-data: "PT Sans Narrow", "Arial Narrow", sans-serif;
  --cs-max: 960px;
  background: var(--ow-white);
  color: var(--ow-dark-charcoal);
}

body:has(.cs-page) {
  background: var(--ow-white, #ffffff);
}

body:has(.cs-page) nav.is-scrolled {
  background: rgba(11, 17, 33, 0.94);
}

.cs-wrap {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 20px;
}

.cs-section {
  padding: 64px 0;
}

.cs-section__title {
  font-family: var(--cs-serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ow-primary-blue);
  margin: 0 0 1.25rem;
}

.cs-prose {
  max-width: 42em;
}

.cs-prose p {
  font-family: var(--cs-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ow-dark-charcoal);
  margin: 0 0 1.15rem;
}

.cs-prose p:last-child {
  margin-bottom: 0;
}

.cs-subhead {
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 18px;
  color: var(--ow-primary-blue);
  margin: 2rem 0 0.75rem;
}

/* Dark strip so the fixed white-text nav stays readable on light pages (index). */
.cs-topbar {
  height: 80px;
  background: #0b1121;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.cs-hero {
  position: relative;
  min-height: 480px;
  height: 480px;
  overflow: hidden;
  color: var(--ow-white);
}

.cs-hero__media,
.cs-hero__media picture,
.cs-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-hero__media img {
  object-fit: cover;
}

.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

.cs-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  padding: 0 0 40px;
}

.cs-hero__eyebrow {
  display: block;
  font-family: var(--cs-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 10px;
}

.cs-hero__title {
  font-family: var(--cs-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ow-white);
  max-width: 680px;
  margin: 0 0 14px;
}

.cs-hero__snapshot {
  font-family: var(--cs-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ── Metrics band ─────────────────────────────────────────────── */

.cs-metrics {
  background: var(--ow-near-white);
  border-top: 3px solid var(--ow-primary-blue);
  padding: 40px 0;
}

.cs-metrics__row {
  display: flex;
  justify-content: space-evenly;
  gap: 24px;
  text-align: center;
}

.cs-metrics__item {
  flex: 1;
  min-width: 0;
}

.cs-metrics__value {
  display: block;
  font-family: var(--cs-data);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: var(--ow-primary-blue);
}

.cs-metrics__label {
  display: block;
  font-family: var(--cs-ui);
  font-size: 14px;
  color: var(--ow-medium-gray);
  margin-top: 8px;
}

/* ── Inline photo ─────────────────────────────────────────────── */

.cs-figure {
  margin: 1.75rem 0 1.5rem;
}

.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-figure figcaption {
  font-family: var(--cs-ui);
  font-size: 13px;
  font-style: italic;
  color: var(--ow-medium-gray);
  margin-top: 8px;
}

/* ── Tables ───────────────────────────────────────────────────── */

.cs-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.cs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.cs-table th,
.cs-table td {
  font-family: var(--cs-data);
  font-size: 15px;
  color: var(--ow-dark-charcoal);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.cs-table thead th {
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ow-white);
  background: var(--ow-primary-blue);
}

.cs-table tbody tr:nth-child(even) {
  background: var(--ow-near-white);
}

.cs-table tbody tr:nth-child(odd) {
  background: var(--ow-white);
}

.cs-table .cs-table__section th {
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ow-white);
  background: var(--ow-steel-blue);
}

.cs-table .cs-table__total td {
  font-weight: 700;
  color: var(--ow-primary-blue);
  background: var(--ow-near-white);
}

.cs-footnote {
  font-family: var(--cs-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ow-medium-gray);
  margin: 0.75rem 0 0;
  max-width: 42em;
}

/* ── Outcome cards ────────────────────────────────────────────── */

.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: 0.5rem;
}

.cs-outcome {
  background: var(--ow-white);
  border: 1px solid var(--ow-light-gray);
  border-left: 3px solid var(--ow-bright-blue);
  padding: 16px;
}

.cs-outcome h3 {
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 16px;
  color: var(--ow-primary-blue);
  margin: 0 0 8px;
}

.cs-outcome p {
  font-family: var(--cs-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ow-dark-charcoal);
  margin: 0;
}

/* ── Client voice ─────────────────────────────────────────────── */

.cs-voice {
  padding: 72px 0;
  background: var(--ow-white);
}

.cs-voice blockquote {
  margin: 0 auto;
  max-width: 640px;
  border-left: 4px solid var(--ow-bright-blue);
  padding: 8px 0 8px 24px;
}

.cs-voice p {
  font-family: var(--cs-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ow-dark-charcoal);
  margin: 0 0 16px;
}

.cs-voice cite {
  display: block;
  font-family: var(--cs-ui);
  font-style: normal;
  font-size: 14px;
  color: var(--ow-medium-gray);
}

/* ── Reframing pull-quote ─────────────────────────────────────── */

.cs-reframe {
  margin: 2rem 0 0;
  max-width: 42em;
  border-left: 4px solid var(--ow-primary-blue);
  padding: 4px 0 4px 20px;
}

.cs-reframe p {
  font-family: var(--cs-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ow-primary-blue);
  margin: 0;
}

/* ── CTA band ─────────────────────────────────────────────────── */

.cs-cta {
  background: var(--ow-primary-blue);
  padding: 64px 20px;
  text-align: center;
  color: var(--ow-white);
}

.cs-cta h2 {
  font-family: var(--cs-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ow-white);
  margin: 0 0 12px;
}

.cs-cta__sub {
  font-family: var(--cs-serif);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

.cs-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--ow-primary-blue);
  background: var(--ow-white);
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cs-cta__btn:hover,
.cs-cta__btn:focus-visible {
  color: var(--ow-bright-blue);
}

.cs-cta__phone {
  display: block;
  margin-top: 16px;
  font-family: var(--cs-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.cs-cta__phone:hover {
  color: var(--ow-white);
}

.cs-tagline {
  text-align: center;
  padding: 24px 20px;
  font-family: var(--cs-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ow-medium-gray);
  margin: 0;
  background: var(--ow-white);
}

/* ── Index ────────────────────────────────────────────────────── */

.cs-index-header {
  padding: 48px 0 24px;
}

.cs-index-header h1 {
  font-family: var(--cs-serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--ow-primary-blue);
  margin: 0 0 12px;
}

.cs-index-header p {
  font-family: var(--cs-serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ow-dark-charcoal);
  margin: 0;
  max-width: 42em;
}

.cs-index-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0 64px;
}

.cs-index-card {
  display: flex;
  background: var(--ow-white);
  border: 1px solid var(--ow-light-gray);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
}

.cs-index-card:hover,
.cs-index-card:focus-visible {
  box-shadow: 0 8px 24px rgba(0, 100, 149, 0.12);
}

.cs-index-card > picture {
  width: 40%;
  flex-shrink: 0;
  display: block;
  min-height: 240px;
}

.cs-index-card__photo {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.cs-index-card__body {
  width: 60%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-index-card__eyebrow {
  font-family: var(--cs-ui);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ow-steel-blue);
  margin: 0 0 8px;
}

.cs-index-card__title {
  font-family: var(--cs-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ow-primary-blue);
  margin: 0 0 10px;
}

.cs-index-card__summary {
  font-family: var(--cs-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ow-dark-charcoal);
  margin: 0 0 16px;
}

.cs-index-card__metric {
  font-family: var(--cs-data);
  font-weight: 700;
  font-size: 28px;
  color: var(--ow-primary-blue);
  margin: 0 0 4px;
}

.cs-index-card__metric-label {
  font-family: var(--cs-ui);
  font-size: 14px;
  color: var(--ow-medium-gray);
  margin: 0 0 16px;
}

.cs-index-card__link {
  font-family: var(--cs-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ow-bright-blue);
}

/* ── Responsive ≤768px ────────────────────────────────────────── */

@media (max-width: 768px) {
  .cs-section {
    padding: 40px 0;
  }

  .cs-prose p {
    font-size: 16px;
  }

  .cs-hero {
    min-height: 360px;
    height: auto;
  }

  .cs-hero__title {
    font-size: 26px;
  }

  .cs-hero__content {
    position: relative;
    padding: 100px 0 24px;
  }

  .cs-metrics__row {
    flex-direction: column;
    gap: 28px;
  }

  .cs-metrics__value {
    font-size: 36px;
  }

  .cs-outcomes {
    grid-template-columns: 1fr;
  }

  .cs-cta {
    padding: 48px 20px;
  }

  .cs-cta h2 {
    font-size: 22px;
  }

  .cs-index-header h1 {
    font-size: 30px;
  }

  .cs-index-card {
    flex-direction: column;
  }

  .cs-index-card > picture {
    width: 100%;
    height: 200px;
    min-height: 200px;
  }

  .cs-index-card__photo {
    width: 100%;
    height: 200px;
    min-height: 200px;
  }

  .cs-index-card__body {
    width: 100%;
    padding: 22px 20px 24px;
  }
}
