/* ═══════════════════════════════════════════════════
   CASE STUDY TEMPLATE STYLES
   Reusable across all Solutions case studies
   ═══════════════════════════════════════════════════ */

/* ─── Meta Bar (hero bottom) ─── */
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs-meta__label {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white-dim);
}
.cs-meta__value {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-white);
}

/* ─── Hero Image ─── */
.cs-hero-img {
  background: var(--light-100);
  padding: 0;
  margin-top: -1px;
}
.cs-hero-img .container {
  padding-top: 0;
  padding-bottom: 0;
}
.cs-hero-img__placeholder {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}
.cs-hero-img__placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Main + Sidebar Layout ─── */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}
.cs-layout__main {
  max-width: 680px;
}
.cs-lead {
  font-size: var(--font-lg);
  line-height: var(--line-relaxed);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  font-weight: var(--weight-medium);
}
.cs-layout__main p {
  color: var(--text-dark-muted);
  line-height: var(--line-relaxed);
  margin-bottom: var(--space-md);
}

/* ─── Sidebar Cards ─── */
.cs-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: 100px;
}
.cs-sidebar-card {
  padding: var(--space-xl);
  background: var(--light-200);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
}
.cs-sidebar-card h4 {
  font-size: var(--font-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-primary);
  margin-bottom: var(--space-md);
}
.cs-sidebar-card p {
  font-size: var(--font-sm);
  color: var(--text-dark-muted);
  line-height: var(--line-relaxed);
}

/* ─── Section Titles ─── */
.cs-section-title {
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

/* ─── Body Content ─── */
.cs-body p {
  color: var(--text-dark-muted);
  line-height: var(--line-relaxed);
  margin-bottom: var(--space-lg);
  font-size: var(--font-base);
}
.section--dark .cs-body p {
  color: var(--text-white-muted);
}
.cs-body p:last-child {
  margin-bottom: 0;
}

/* ─── Pull Quotes ─── */
.cs-quote {
  margin: var(--space-xl) 0;
  padding: var(--space-xl) var(--space-2xl);
  border-left: 3px solid var(--blue-primary);
  background: rgba(0, 54, 250, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.section--gray .cs-quote {
  background: rgba(0, 54, 250, 0.04);
}
.cs-quote p {
  font-size: var(--font-md);
  font-style: italic;
  line-height: var(--line-relaxed);
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}
.cs-quote cite {
  font-size: var(--font-sm);
  font-style: normal;
  font-weight: var(--weight-semibold);
  color: var(--blue-primary);
}

/* ─── Photo Galleries ─── */
.cs-gallery {
  display: grid;
  gap: var(--space-md);
}
.cs-gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}
.cs-gallery--4 {
  grid-template-columns: repeat(4, 1fr);
}
.cs-gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cs-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* ─── Image Placeholders ─── */
.cs-img-placeholder {
  background: var(--light-200);
  border: 1px dashed var(--light-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: var(--space-lg);
}
.cs-img-placeholder span {
  font-size: var(--font-xs);
  color: var(--text-dark-dim);
  text-align: center;
}
.section--dark .cs-img-placeholder {
  background: var(--dark-600);
  border-color: var(--dark-border);
}
.section--dark .cs-img-placeholder span {
  color: var(--text-white-dim);
}

/* ─── Products Used Grid ─── */
.cs-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.cs-product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  transition: border-color var(--duration-normal);
}
.cs-product-card:hover {
  border-color: rgba(255,255,255,0.15);
}
.cs-product-card__img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.cs-product-card__img--wide {
  max-height: 120px;
  max-width: 100%;
}
.cs-product-card__info {
  text-align: center;
}
.cs-product-card__info h4 {
  font-size: var(--font-md);
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
}
.cs-product-card__info p {
  font-size: var(--font-sm);
  color: var(--text-white-muted);
}

/* ─── Map Section ─── */
.cs-map-placeholder {
  margin: var(--space-xl) 0;
}
.cs-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--light-200);
  border-radius: var(--radius-md);
}
.cs-map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-xs);
  color: var(--text-dark-muted);
}
.cs-map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cs-map-legend__dot--blue {
  background: var(--blue-primary);
}
.cs-map-legend__dot--cyan {
  background: #00E5CC;
}
.cs-map-legend__line {
  width: 20px;
  height: 2px;
}
.cs-map-legend__line--solid {
  background: var(--blue-primary);
}
.cs-map-legend__line--dashed {
  background: repeating-linear-gradient(90deg, #00E5CC 0, #00E5CC 4px, transparent 4px, transparent 7px);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cs-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .cs-layout__sidebar {
    position: static;
  }
  .cs-products-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .cs-gallery--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-meta {
    gap: var(--space-lg);
  }
}
@media (max-width: 600px) {
  .cs-gallery--3 {
    grid-template-columns: 1fr;
  }
  .cs-gallery--4 {
    grid-template-columns: 1fr;
  }
  .cs-quote {
    padding: var(--space-lg);
  }
}
