/* Case study branded layout — SSG Logistics source structure, LogiBrisk theme */

.cs-ssg {
  --orange: var(--orange-cta);
  --orange2: var(--orange-hover);
  --orange-lt: var(--orange-light);
  --orange-mid: var(--cs-accent-mid);
  --char: var(--blue-primary);
  --char2: var(--blue-secondary);
  --char3: #05122e;
  --silver: var(--bg-light-alt);
  --silver2: var(--cs-accent-light);
  --silver3: var(--border);
  --white: var(--bg-white);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --light: var(--cs-label);
  --border: #D6DCE5;
  --radius: 10px;
  --font-head: var(--font-heading);
  --font-serif: var(--font-heading);
  --navbar-offset: var(--cs-navbar-offset);
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-white);
  font-size: var(--text-base);
  line-height: 1.7;
  padding-top: var(--navbar-offset);
}

.cs-ssg *,
.cs-ssg *::before,
.cs-ssg *::after {
  box-sizing: border-box;
}

.cs-ssg a {
  color: inherit;
  text-decoration: none;
}

/* ── CLIENTS MARQUEE ── */
.cs-ssg .clients-bar {
  background: var(--silver);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.cs-ssg .clients-track {
  display: inline-flex;
  gap: 0;
  animation: cs-ssg-slide 30s linear infinite;
}

@keyframes cs-ssg-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cs-ssg .c-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cs-ssg .c-sep {
  color: var(--silver3);
  font-size: var(--text-base);
}

/* ── PAGE ── */
.cs-ssg .page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.cs-ssg .section {
  padding: 68px 0;
}

.cs-ssg .section + .section {
  padding-top: 0;
}

.cs-ssg .divider {
  height: 1px;
  background: var(--border);
}

.cs-ssg .sec-title {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--char);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cs-ssg .sec-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.8;
  max-width: 660px;
}

/* ── SERVICES ROW ── */
.cs-ssg .services-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ssg .svc {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--white);
  transition: background 0.2s;
}

.cs-ssg .svc:last-child {
  border-right: none;
}

.cs-ssg .svc:hover {
  background: var(--orange-lt);
}

.cs-ssg .svc-icon {
  font-size: var(--text-2xl);
  margin-bottom: 10px;
  display: block;
}

.cs-ssg .svc-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--char);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ── PROFILE TABLE ── */
.cs-ssg .profile-table {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.cs-ssg .pt-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1px solid var(--border);
}

.cs-ssg .pt-row:last-child {
  border-bottom: none;
}

.cs-ssg .pt-key {
  padding: 16px 22px;
  background: var(--silver);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.cs-ssg .pt-val {
  padding: 16px 22px;
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

/* ── INDUSTRY STRIP ── */
.cs-ssg .industry-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.cs-ssg .ind-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--white);
}

.cs-ssg .ind-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.cs-ssg .ind-text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--char);
  line-height: 1.4;
}

.cs-ssg .ind-sub {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 2px;
}

/* ── CHALLENGE ── */
.cs-ssg .challenge-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
  margin-top: 40px;
}

.cs-ssg .challenge-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.cs-ssg .pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cs-ssg .pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.65;
}

.cs-ssg .pain-item:first-child {
  border-top: 1px solid var(--border);
}

.cs-ssg .pain-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--orange-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  flex-shrink: 0;
  margin-top: 0;
}

.cs-ssg .stat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 78px;
}

.cs-ssg .sc-card {
  border-radius: var(--radius);
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.cs-ssg .sc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
}

.cs-ssg .sc-val {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.cs-ssg .sc-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.cs-ssg .sc-note {
  font-size: var(--text-xs);
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── SOLUTION ── */
.cs-ssg .sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cs-ssg .sol-card {
  border-radius: var(--radius);
  padding: 24px;
}

.cs-ssg .sol-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-ssg .sol-tag::after {
  content: '';
  flex: 1;
  max-width: 20px;
  height: 1px;
  background: rgba(225, 109, 16, 0.35);
}

.cs-ssg .sol-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-ssg .sol-body {
  font-size: var(--text-xs);
  line-height: 1.65;
}

/* ── INTEGRATIONS ── */
.cs-ssg .int-label {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 6px;
}

.cs-ssg .int-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cs-ssg .int-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.cs-ssg .int-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── FEATURES ── */
.cs-ssg .feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.cs-ssg .feat {
  padding: 20px 20px 20px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  transition: box-shadow 0.2s;
}

.cs-ssg .feat:hover {
  box-shadow: var(--shadow-card-hover);
}

.cs-ssg .feat-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--char);
  margin-bottom: 5px;
}

.cs-ssg .feat-body {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

/* ── RESULTS — silver bg ── */
.cs-ssg .results-bg {
  padding: 72px 0;
}

.cs-ssg .metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.cs-ssg .m-card {
  background: var(--white);
  padding: 32px 22px;
  text-align: center;
}

.cs-ssg .m-val {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.cs-ssg .m-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.cs-ssg .m-card.highlight {
  background: var(--orange);
}

.cs-ssg .m-card.highlight .m-val {
  color: #fff;
}

.cs-ssg .m-card.highlight .m-label {
  color: var(--cs-hero-tag);
}

.cs-ssg .outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.cs-ssg .oc-card {
  padding: 20px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.cs-ssg .oc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-sm);
}

.cs-ssg .oc-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.cs-ssg .oc-text strong {
  color: var(--char);
  font-weight: 600;
}

/* ── LEADERSHIP SECTION ── */
.cs-ssg .leadership-bg {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.cs-ssg .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.cs-ssg .tm-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  background: var(--silver);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cs-ssg .tm-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-card-hover);
}

.cs-ssg .tm-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
}

.cs-ssg .tm-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--char);
  margin-bottom: 4px;
}

.cs-ssg .tm-role {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .cs-ssg .hero-inner,
  .cs-ssg .challenge-layout,
  .cs-ssg .sol-grid,
  .cs-ssg .feat-grid,
  .cs-ssg .metric-row,
  .cs-ssg .outcome-grid,
  .cs-ssg .team-grid,
  .cs-ssg .industry-strip,
  .cs-ssg .services-row {
    grid-template-columns: 1fr 1fr;
  }

  .cs-ssg .hero-inner {
    padding: 48px 24px 0;
    grid-template-columns: 1fr;
  }

  .cs-ssg .hero-right {
    border-left: none;
    padding-left: 0;
    padding-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 8px;
  }

  .cs-ssg .page {
    padding: 0 24px;
  }
  .cs-ssg .stat-col {
    position: static;
  }

  .cs-ssg .services-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cs-ssg .pt-row {
    grid-template-columns: 1fr;
  }

  .cs-ssg .pt-key {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .cs-ssg .sol-grid,
  .cs-ssg .feat-grid,
  .cs-ssg .metric-row,
  .cs-ssg .outcome-grid,
  .cs-ssg .team-grid,
  .cs-ssg .industry-strip,
  .cs-ssg .services-row,
  .cs-ssg .hl-grid {
    grid-template-columns: 1fr;
  }
}
