/* =========================================================
   CASE STUDY PAGES — shared styles
   Inherits all variables and base from styles.css
   ========================================================= */

.cs-main {
  padding-top: var(--nav-h);
}

/* ── Hero ── */
.cs-hero {
  border-bottom: 1px solid var(--border-2);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(48px, 6vw, 72px);
}

.cs-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cs-hero__img {
  width: 100%;
  height: 340px;
  background-size: cover;
  background-position: center 20%;
  background-color: var(--surface);
  border-radius: 16px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .cs-hero__inner {
    grid-template-columns: 1fr;
  }
  .cs-hero__img {
    height: 260px;
    order: -1;
  }
}

.cs-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
.cs-back:hover { color: var(--text-2); gap: 10px; }

.cs-hero__meta { margin-bottom: 1.2rem; }

.cs-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(242,114,28,0.25);
}

.cs-hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-1);
  margin-bottom: 0.8rem;
}

.cs-hero__desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Stats bar ── */
.cs-stats {
  border-bottom: 1px solid var(--border-2);
  background: var(--surface);
}

.cs-stats__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cs-stat {
  padding: 36px 0;
  border-right: 1px solid var(--border-2);
  padding-right: 40px;
}
.cs-stat:not(:first-child) { padding-left: 40px; }
.cs-stat:last-child { border-right: none; }

.cs-stat__num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 6px;
}

.cs-stat__label {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Body ── */
.cs-body {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.cs-body__inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cs-block__title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.cs-block p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ── Lists ── */
.cs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-list li {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.cs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cs-list--results li {
  color: var(--text-1);
}

.cs-list--results li::before {
  background: #4ade80;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cs-stats__inner { grid-template-columns: 1fr; }
  .cs-stat { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border-2); }
  .cs-stat:not(:first-child) { padding-left: 0; }
  .cs-stat:last-child { border-bottom: none; }
}
