/* ================================================================
   QUALZY — Case Study Page (shared template)
   ================================================================ */


/* HERO
   ---------------------------------------------------------------- */
.cs-hero {
  background: var(--dk);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Decorative diagonal lines */
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232, 97, 44, 0.04) 0%, transparent 50%),
    linear-gradient(225deg, rgba(232, 97, 44, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.cs-hi {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 48px 80px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* "Customer Story" eyebrow */
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 32px;
}

.cs-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--o);
  border-radius: 50%;
  animation: pu 2s infinite;
}

/* Company name */
.cs-co {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Sector / location tag */
.cs-meta {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* Hero outcome statement */
.cs-hline {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin-bottom: 36px;
  font-weight: 700;
}

/* Hero pull quote */
.cs-hq {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--o);
  border-radius: 0 10px 10px 0;
  padding: 22px 24px;
  max-width: 680px;
  margin-bottom: 44px;
}

.cs-hq p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.cs-hq cite {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

/* Hero CTA buttons */
.cs-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* SNAPSHOT STATS BAR
   ---------------------------------------------------------------- */
.cs-snap {
  background: #fff;
  border-bottom: 1.5px solid var(--rule);
}

.cs-snap-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cs-snap-stat {
  padding: 32px 24px;
  border-right: 1.5px solid var(--rule);
  text-align: center;
}

.cs-snap-stat:last-child { border-right: none; }

.cs-snap-n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--o);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.cs-snap-l {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.4;
}


/* NARRATIVE SECTIONS
   ---------------------------------------------------------------- */
.cs-section {
  border-bottom: 1px solid var(--rule);
}

.cs-section--pale {
  background: var(--op);
}

.cs-section--dark {
  background: var(--dk);
}

/* Two-column grid: text | callout */
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* Text-heavy single column (centered) */
.cs-prose {
  max-width: 680px;
  margin: 0 auto;
}

/* Outcome bullet list */
.cs-results-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-results-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid);
}

.cs-results-list li::before {
  content: '✓';
  color: var(--o);
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Features-used pill grid */
.cs-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cs-feat-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  background: var(--wh);
  border: 1.5px solid var(--rule);
  border-radius: 100px;
  padding: 5px 14px;
}

.cs-section--pale .cs-feat-pill {
  background: #fff;
}


/* CALLOUT BOX (right column)
   ---------------------------------------------------------------- */
.cs-callout {
  background: var(--dk);
  border-radius: 14px;
  padding: 32px;
  color: #fff;
  position: sticky;
  top: 88px; /* below fixed nav */
}

.cs-callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ol);
  margin-bottom: 12px;
}

.cs-callout-stat {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--o);
  line-height: 1;
  margin-bottom: 4px;
}

.cs-callout-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Inline quote inside callout */
.cs-callout blockquote {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.cs-callout blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.cs-callout blockquote cite {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
}


/* FULL-WIDTH PULL QUOTE
   ---------------------------------------------------------------- */
.cs-pq {
  background: var(--dk);
  padding: 80px 80px;
  text-align: center;
}

.cs-pq blockquote {
  max-width: 780px;
  margin: 0 auto;
}

.cs-pq blockquote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 28px;
}

.cs-pq blockquote p span {
  color: var(--o);
}

.cs-pq cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
}


/* PDF DOWNLOAD / HUBSPOT FORM GATE
   ---------------------------------------------------------------- */
.cs-dl {
  background: var(--wh);
  padding: 80px 0;
  border-top: 1.5px solid var(--rule);
}

/* Two-column: copy left, form right */
.cs-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.cs-dl-form {
  background: var(--op);
  border-radius: 12px;
  padding: 32px;
  border: 1.5px solid rgba(232, 97, 44, 0.12);
}

.cs-dl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 16px;
}

.cs-dl-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dk);
  margin-bottom: 14px;
}

.cs-dl-body {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 36px;
}

.cs-dl-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* What's inside checklist */
.cs-dl-inside {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 36px;
}

.cs-dl-inside-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mid);
}

.cs-dl-inside-item::before {
  content: '→';
  color: var(--o);
  font-weight: 700;
  flex-shrink: 0;
}


/* BREADCRUMB
   ---------------------------------------------------------------- */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color var(--t-base);
}

.cs-back:hover { color: var(--o); }


/* DARK SECTION OVERRIDES
   ---------------------------------------------------------------- */
.cs-section--dark .slbl { color: var(--ol); }
.cs-section--dark .stit { color: #fff; }
.cs-section--dark .sbod { color: rgba(255, 255, 255, 0.6); }
.cs-section--dark .cs-results-list li { color: rgba(255, 255, 255, 0.7); }


/* RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .cs-hi { padding: 50px 24px 60px; }

  .cs-snap-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }

  .cs-snap-stat:nth-child(2) { border-right: none; }
  .cs-snap-stat:nth-child(3) { border-top: 1.5px solid var(--rule); }
  .cs-snap-stat:nth-child(4) { border-top: 1.5px solid var(--rule); border-right: none; }

  .cs-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-callout { position: static; }

  .cs-pq { padding: 60px 24px; }
  .cs-dl { padding: 60px 24px; }
  .cs-dl-grid { grid-template-columns: 1fr; gap: 40px; }
}
