/**
 * DAVIZ Solutions · Individual Case Study Template Styling
 * Luxury glassmorphic theme matching index.html and power-bi.html
 */

.cs-page {
  background-color: var(--bg-primary, #040810);
  color: var(--text-primary, #ffffff);
  min-height: 100vh;
  padding-top: 84px;
}

.cs-container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

/* ────────────────────────────────────────────
   1. HERO BANNER
──────────────────────────────────────────── */
.cs-hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 80% 20%, rgba(36, 46, 237, 0.15) 0%, rgba(4, 8, 16, 0.98) 70%);
}

.cs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.cs-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cs-breadcrumbs a:hover {
  color: #ffbd23;
}

.cs-breadcrumbs span {
  color: rgba(255, 255, 255, 0.3);
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 960px) {
  .cs-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.cs-hero-copy {
  display: flex;
  flex-direction: column;
}

.cs-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cs-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(255, 189, 35, 0.12);
  border: 1px solid rgba(255, 189, 35, 0.4);
  border-radius: 999px;
  color: #ffbd23;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-industry-badge {
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
}

.cs-hero-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 18px;
}

.cs-hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 28px;
}

.cs-meta-strip {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cs-meta-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffbd23;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.cs-meta-item strong {
  font-size: 0.9375rem;
  color: #ffffff;
  font-weight: 600;
}

.cs-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(36, 46, 237, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
}

.cs-hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 35, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 189, 35, 0.12);
  background: #080f1e;
}

.cs-hero-visual img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ────────────────────────────────────────────
   2. PROOF METRICS GRID
──────────────────────────────────────────── */
.cs-metrics-section {
  padding: clamp(36px, 4vw, 56px) 0;
  background: rgba(8, 14, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

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

@media (max-width: 480px) {
  .cs-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.cs-metric-card {
  padding: 24px;
  border-radius: 12px;
  background: rgba(15, 25, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cs-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 189, 35, 0.35);
}

.cs-metric-value {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.cs-metric-value[data-tone="gold"] { color: #ffbd23; }
.cs-metric-value[data-tone="blue"] { color: #60a5fa; }
.cs-metric-value[data-tone="green"] { color: #34d399; }
.cs-metric-value[data-tone="white"] { color: #ffffff; }

.cs-metric-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ────────────────────────────────────────────
   3. CONTENT SECTIONS
──────────────────────────────────────────── */
.cs-body-section {
  padding: clamp(54px, 7vw, 90px) 0;
}

.cs-body-section--alt {
  background: rgba(6, 11, 20, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.cs-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffbd23;
  margin-bottom: 10px;
}

.cs-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 750;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
}

/* Challenge & Solution Layout */
.cs-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

@media (max-width: 860px) {
  .cs-split-layout {
    grid-template-columns: 1fr;
  }
}

.cs-bullet-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-bullet-list li {
  position: relative;
  padding-left: 28px;
  color: #cbd5e1;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cs-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: #ffbd23;
  font-size: 1.1rem;
}

/* 3-Step Architecture Flow */
.cs-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .cs-steps-grid {
    grid-template-columns: 1fr;
  }
}

.cs-step-card {
  background: rgba(12, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cs-step-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffbd23;
  line-height: 1;
  margin-bottom: 14px;
}

.cs-step-card h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0 0 10px;
  font-weight: 700;
}

.cs-step-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* Secondary Visual Card */
.cs-secondary-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #060d19;
}

.cs-secondary-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonial Block */
.cs-quote-box {
  background: linear-gradient(135deg, rgba(15, 25, 44, 0.9) 0%, rgba(8, 14, 26, 0.95) 100%);
  border: 1px solid rgba(255, 189, 35, 0.3);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  margin-top: 48px;
  position: relative;
}

.cs-quote-box blockquote {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: #f1f5f9;
  font-style: italic;
  margin: 0 0 20px;
}

.cs-quote-author strong {
  display: block;
  font-size: 0.9375rem;
  color: #ffbd23;
}

.cs-quote-author span {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Other Case Studies Rail */
.cs-nav-rail {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-rail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.cs-rail-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cs-rail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.cs-rail-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.cs-rail-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cs-rail-card:hover .cs-rail-card-img img {
  transform: scale(1.04);
}

.cs-rail-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.cs-rail-card-body h4 {
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 750;
}

.cs-rail-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cs-rail-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 9999px;
  background: #242eed;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(36, 46, 237, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cs-rail-card:hover .cs-rail-card-btn {
  background: #1923db;
  transform: translateY(-1px);
}

