/* ============================================
   CASE STUDY — shared styles
   Inherits variables from style.css
   ============================================ */

/* ── PROGRESS BAR ── */
.cs-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── BACK LINK ── */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text) !important;
  letter-spacing: 0.04em;
}

.cs-back:hover {
  color: var(--title) !important;
}

/* ── HEADER ── */
.cs-header {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--bg2);
}

.cs-category {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.cs-title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--title);
  line-height: 1.1;
  margin-bottom: 24px;
}

.cs-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 40px;
}

.cs-meta {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.6;
}

.cs-meta-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--title);
}

/* ── RESULT BANNER ── */
.cs-result-banner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--bg2);
  border-radius: 4px;
  padding: 36px 40px;
  margin-bottom: 40px;
}

.cs-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cs-kpi-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--title);
  line-height: 1;
}

.cs-kpi-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 160px;
}

.cs-kpi-divider {
  width: 1px;
  background: var(--bg2);
  border-right: 1px solid rgba(47,38,34,0.15);
  align-self: stretch;
  flex-shrink: 0;
}

.cs-kpi-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 12px;
}

.cs-kpi-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.cs-header-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── VISUALS ── */
.cs-visuals {
  padding: 64px 0;
  background: var(--bg2);
  border-bottom: 1px solid rgba(47,38,34,0.08);
}

.cs-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

.cs-gallery-main {
  border-radius: 4px;
  overflow: hidden;
}

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

.cs-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* ── SECTION ── */
.cs-section {
  padding: 80px 0;
}

.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.cs-section-label {
  position: sticky;
  top: 80px;
}

.cs-section-label h2 {
  margin-top: 12px;
}

.cs-section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.cs-section-header h2 {
  margin-bottom: 16px;
}

.cs-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.cs-section-body p {
  margin-bottom: 18px;
  line-height: 1.75;
}

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

/* ── CARDS ── */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-card {
  background: var(--white);
  border: 1px solid var(--bg2);
  border-radius: 4px;
  padding: 32px 28px;
}

.cs-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74,90,106,0.08);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.cs-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 12px;
  line-height: 1.3;
}

.cs-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.cs-decision {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  padding: 16px;
  background: var(--bg2);
  border-radius: 3px;
  border-left: 2px solid var(--accent);
}

/* ── TIMELINE ── */
.cs-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding-bottom: 48px;
  position: relative;
}

.cs-step:last-child {
  padding-bottom: 0;
}

.cs-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--title);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cs-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 8px;
  width: 1px;
  background: var(--bg2);
}

.cs-step-content {
  padding-top: 8px;
}

.cs-step-period {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.cs-step-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 8px;
}

.cs-step-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}

.cs-deliverable {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(74,90,106,0.08);
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── DESIGN GALLERY ── */
.cs-design-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cs-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--bg2);
}

.cs-gallery-caption h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 8px;
}

.cs-gallery-caption p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ── KPI GRID ── */
.cs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg2);
  border: 1px solid var(--bg2);
  border-radius: 4px;
  overflow: hidden;
}

.cs-kpi-card {
  background: var(--white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cs-kpi-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.cs-kpi-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--title);
}

.cs-kpi-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ── TECH STACK ── */
.cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cs-tech h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title);
  margin-bottom: 12px;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(74,90,106,0.1);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.cs-tech p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ── PRINCIPLES ── */
.cs-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.cs-principle {
  border-top: 2px solid var(--title);
  padding-top: 24px;
}

.cs-principle-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--bg2);
  margin-bottom: 12px;
  line-height: 1;
}

.cs-principle h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 12px;
  line-height: 1.3;
}

.cs-principle p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ── TAKEAWAY ── */
.cs-takeaway {
  display: flex;
  gap: 24px;
  background: var(--title);
  color: var(--white);
  padding: 40px;
  border-radius: 4px;
  align-items: flex-start;
}

.cs-takeaway-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cs-takeaway h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.cs-takeaway p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(250,247,244,0.8);
}

/* ── AMELIO ── */
.cs-amelio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cs-amelio-item {
  padding: 28px;
  border: 1px solid var(--bg2);
  border-radius: 4px;
  background: var(--white);
}

.cs-amelio-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--title);
  margin-bottom: 12px;
}

.cs-amelio-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ── RESULTS GRID (LYK) ── */
.cs-vs-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  justify-content: center;
}

.cs-vs-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid var(--bg2);
  background: var(--white);
}

.cs-vs-card.cs-vs-resultat {
  background: var(--title);
  border-color: var(--title);
}

.cs-vs-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.cs-vs-resultat .cs-vs-label {
  color: rgba(250,247,244,0.6);
}

.cs-vs-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--title);
  line-height: 1;
  margin-bottom: 8px;
}

.cs-vs-resultat .cs-vs-number {
  color: var(--white);
}

.cs-vs-sub {
  font-size: 13px;
  color: var(--text);
}

.cs-vs-resultat .cs-vs-sub {
  color: rgba(250,247,244,0.6);
}

.cs-vs-arrow {
  font-size: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg2);
  border: 1px solid var(--bg2);
  border-radius: 4px;
  overflow: hidden;
}

.cs-result-item {
  background: var(--white);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.cs-result-icon {
  font-size: 22px;
}

.cs-result-stat {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--title);
}

.cs-result-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ── CTA SECTION ── */
.cs-cta {
  background: var(--bg2);
  padding: 80px 0;
  text-align: center;
}

.cs-cta .label {
  display: block;
  margin-bottom: 12px;
}

.cs-cta h2 {
  max-width: 600px;
  margin: 0 auto 16px;
}

.cs-cta > .container > p {
  color: var(--text);
  margin-bottom: 48px;
}

.cs-cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: left;
}

.cs-cta-card {
  background: var(--white);
  border: 1px solid rgba(47,38,34,0.1);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-cta-card--accent {
  background: var(--title);
  border-color: var(--title);
}

.cs-cta-card--accent h3,
.cs-cta-card--accent p {
  color: var(--white) !important;
}

.cs-cta-card--accent p {
  opacity: 0.75;
}

.cs-cta-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cs-cta-card--accent .cs-cta-badge {
  color: rgba(250,247,244,0.6);
}

.cs-cta-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--title);
}

.cs-cta-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  flex: 1;
}

.cs-cta-guarantee {
  font-size: 13px;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cs-title { font-size: 44px; }
  .cs-cards { grid-template-columns: 1fr; }
  .cs-principles { grid-template-columns: 1fr; }
  .cs-tech-grid { grid-template-columns: 1fr; }
  .cs-amelio { grid-template-columns: 1fr; }
  .cs-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-results-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-two-col { grid-template-columns: 1fr; gap: 32px; }
  .cs-section-label { position: static; }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-result-banner { flex-direction: column; gap: 24px; }
  .cs-kpi-divider { width: 100%; height: 1px; }
}

@media (max-width: 640px) {
  .cs-header { padding: 60px 0 48px; }
  .cs-title { font-size: 36px; }
  .cs-meta { gap: 24px; }
  .cs-design-gallery { grid-template-columns: 1fr; }
  .cs-cta-cards { grid-template-columns: 1fr; }
  .cs-vs-grid { flex-direction: column; }
  .cs-kpi-number { font-size: 36px; }
  .cs-result-banner { padding: 24px; }
}
