/* ============================================================
   OLANDER MEDIA — Case Study Stylesheet
   Shared across all individual case study pages.
   Requires styles.css to be loaded first (provides CSS vars,
   nav, footer, and font imports).
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Back Link ──────────────────────────────────────────────── */
.cs-back {
  display: block;
  margin-bottom: 3.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--citron);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.cs-back:hover { opacity: 1; }
.cs-back::before { content: '←'; font-size: 1rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.cs-hero {
  background: var(--midnight);
  color: #fff;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25, 61, 69, 0.88);
  z-index: 0;
}

.cs-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.cs-hero__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--citron);
  margin-bottom: 1.25rem;
}

.cs-hero__client {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--citron);
  margin-bottom: 0.875rem;
}

.cs-hero__headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 820px;
  font-family: 'Roboto', Arial, sans-serif;
}

.cs-hero__category {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.cs-stats {
  background: #112222;
  padding: 3rem 2rem;
}

.cs-stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cs-stat {
  text-align: center;
}

.cs-stat__number {
  display: block;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800;
  color: var(--citron);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: 'Roboto', Arial, sans-serif;
}

.cs-stat__label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── Body wrapper ───────────────────────────────────────────── */
/* White background, full-width — content width controlled per section */
.cs-body {
  background: #fff;
  padding: 4rem 0;
}

/* Inner content width matches site container */
.cs-body .cs-section {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 3.5rem;
}

.cs-section__heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.cs-section__title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}

.cs-section p {
  font-size: 1rem;
  color: #2a3a3a;
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ── Fade-up for cs-sections ────────────────────────────────── */
.cs-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.cs-section.cs-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Challenges ─────────────────────────────────────────────── */
.cs-challenges {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cs-challenge {
  border-left: 3px solid var(--citron);
  padding-left: 1.25rem;
}

.cs-challenge__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 0.375rem;
}

.cs-challenge p {
  font-size: 0.95rem;
  color: #3a4a4a;
  margin: 0;
}

/* ── Results List ───────────────────────────────────────────── */
.cs-results {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0;
}

.cs-results li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--midnight);
  line-height: 1.5;
}

.cs-results li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--orange);
}

/* ── Image Gallery ──────────────────────────────────────────── */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.cs-gallery--wide img {
  height: 280px;
}

/* ── Quote ──────────────────────────────────────────────────── */
.cs-quote {
  background: var(--midnight);
  padding: 4rem 2rem;
}

.cs-quote__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cs-quote blockquote {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  font-style: italic;
  color: #fff;
  line-height: 1.6;
  position: relative;
  padding-left: 1.75rem;
  border-left: 4px solid var(--citron);
  margin-bottom: 1.75rem;
  max-width: 820px;
}

.cs-quote__attribution {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--citron);
  letter-spacing: 0.06em;
}

.cs-quote__title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cs-body .cs-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cs-stats { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cs-stats__inner { grid-template-columns: 1fr; gap: 2rem; }
  .cs-quote { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cs-gallery { grid-template-columns: 1fr; }
}
