/* public/css/case-studies.css — Case Studies section styles */

/* ---- HERO ---- */
.cs-hero {
  padding: 120px 2rem 60px;
  background: var(--nav-bg);
  text-align: center;
}
.cs-hero .cs-container {
  max-width: 760px;
}
.cs-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}
.cs-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cs-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

/* ---- LAYOUT ---- */
.cs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- INDEX ---- */
.cs-index-wrap {
  padding: 64px 2rem 80px;
}

/* ---- FILTER CHIPS ---- */
.cs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.cs-chip {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cs-chip:hover {
  border-color: var(--accent-blue);
  color: var(--text);
}
.cs-chip-active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}
.cs-chip-active:hover {
  background: var(--accent-blue-dark);
  color: #ffffff;
}
.cs-chip-reset {
  font-style: italic;
  color: var(--text-muted);
  border-style: dashed;
  background: transparent;
}

/* ---- CARD GRID ---- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cs-grid { grid-template-columns: 1fr; }
}

.cs-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
a.cs-card:hover { border-color: var(--accent-blue); background: var(--bg-alt); }

.cs-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.cs-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.cs-card-area {
  font-weight: 500;
  color: var(--accent-blue);
}
.cs-card-divider { color: var(--divider); padding: 0 0.4rem; }
.cs-card-outcome {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin: 0.25rem 0 0;
  line-height: 1.4;
}
.cs-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---- EMPTY CARDS (placeholder slots) ---- */
.cs-card-empty {
  background: transparent;
  border: 1px dashed var(--divider);
  cursor: default;
  position: relative;
}
.cs-card-empty-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}
.cs-card-empty-title { color: var(--text-muted); }
.cs-card-empty-slot {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---- ZERO-MATCH EMPTY STATE ---- */
.cs-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed var(--divider);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ---- DISCLAIMER ---- */
.cs-disclaimer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.cs-disclaimer strong { color: var(--text); }

/* ---- ARTICLE DETAIL ---- */
.cs-article-wrap {
  padding-top: 56px; /* nav offset */
}
.cs-article-header {
  background: var(--nav-bg);
  padding: 64px 2rem 48px;
}
.cs-article-header .cs-container {
  max-width: 760px;
  margin: 0 auto;
}
.cs-breadcrumb {
  margin-bottom: 1.5rem;
}
.cs-breadcrumb a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.cs-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.cs-article-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  max-width: 720px;
}
.cs-article-subline {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.cs-article-subline .cs-card-area { color: rgba(255,255,255,0.85); }
.cs-article-outcome {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  max-width: 60ch;
}
.cs-article-headline {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0.25rem 0 0.75rem;
  max-width: 60ch;
  line-height: 1.35;
}

.cs-article-body {
  padding: 48px 2rem 40px;
  max-width: 760px;
  margin: 0 auto;
}
.cs-article-hero {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.cs-article-body h1,
.cs-article-body h2,
.cs-article-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2em 0 0.75em;
}
.cs-article-body h2 { font-size: 1.5rem; }
.cs-article-body h3 { font-size: 1.15rem; }
.cs-article-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25em;
}
.cs-article-body ul,
.cs-article-body ol {
  margin: 0 0 1.25em 1.5em;
  line-height: 1.7;
}
.cs-article-body li { margin-bottom: 0.4em; }
.cs-article-body a {
  color: var(--accent-blue);
  text-decoration: underline;
}
.cs-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5em 0;
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-style: italic;
}

.cs-article-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 60px;
  border-top: 1px solid var(--divider);
  padding-top: 2rem;
}
.cs-back-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.cs-back-btn:hover { text-decoration: underline; }

/* ---- 404 ---- */
.cs-404 {
  padding: 160px 2rem 80px;
  text-align: center;
}
.cs-404-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.cs-404-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.cs-cta-link {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: none;
}
.cs-cta-link:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .cs-hero { padding: 100px 1.25rem 48px; }
  .cs-index-wrap,
  .cs-article-body,
  .cs-article-footer,
  .cs-404 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cs-article-header { padding: 48px 1.25rem 36px; }
  .cs-card { padding: 1.5rem 1.25rem; }
}
