/*!
 * Copyright (c) 2026 Tekantis Limited. All rights reserved.
 * Proprietary and confidential. This file and the methods in it are not licensed for copying,
 * modification, reuse or redistribution, in whole or in part, without written permission from
 * Tekantis Limited.
 */

/* ===== Customer stories: /case-studies/ listing and the homepage strip ===== */
.cst-page,
.cst-strip {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text, #0a1a2b);
}

.cst-wrap {
  max-width: var(--maxw, 1200px);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cst-eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue, #0c62a6);
}

.cst-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand-blue, #0c62a6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cst-btn:hover { background: #084a7e; color: #fff; }
.cst-btn svg { flex: none; transition: transform 0.15s; }
.cst-btn:hover svg { transform: translateX(3px); }
.cst-btn--light { background: #fff; color: var(--brand-blue, #0c62a6); }
.cst-btn--light:hover { background: #e6f0f9; color: #084a7e; }
.cst-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.cst-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.cst-wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text, #0a1a2b);
}

/* ----- Listing hero ----- */
.cst-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: #082f52;
  color: #fff;
}
.cst-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/webbanner.png") center/cover no-repeat;
  opacity: 0.16;
}
.cst-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.cst-hero .cst-eyebrow { color: #9fcbf0; }
.cst-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
}
.cst-hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #d6e7f6;
}
.cst-hero-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cst-logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 72px;
  padding: 7px 12px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cst-logo-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.cst-logo-chip-img { display: block; max-height: 30px; max-width: 96px; object-fit: contain; }
.cst-logo-chip .cst-wordmark { font-size: 15px; }

.cst-collage { position: relative; height: 400px; }
.cst-collage-img {
  position: absolute;
  display: block;
  aspect-ratio: 16 / 10;
  box-sizing: border-box;
  object-fit: cover;
  object-position: top left;
  border: 4px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}
.cst-collage-img--1 { width: 66%; left: 0; top: 34px; transform: rotate(-4deg); z-index: 1; }
.cst-collage-img--2 { width: 60%; right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.cst-collage-img--3 { width: 64%; left: 18%; bottom: 0; transform: rotate(-1deg); z-index: 3; }

/* ----- Featured story ----- */
.cst-featured { padding: 56px 0 8px; background: #f4f6f9; }
.cst-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 48px;
  overflow: hidden;
  border-radius: 18px;
  background: #07345c;
  color: #fff;
}
.cst-feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cst-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 52, 92, 0.86);
}
.cst-feature-body,
.cst-feature-media { position: relative; z-index: 1; }
.cst-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cst-feature-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cst-feature-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 100px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
}
.cst-feature-logo-img { display: block; max-height: 38px; max-width: 140px; object-fit: contain; }
.cst-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue, #0c62a6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cst-pill--soft { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cst-feature-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  color: #fff;
}
.cst-feature-quote { margin: 0; }
.cst-feature-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
}
.cst-feature-quote figcaption { margin-top: 10px; font-size: 15px; color: #d6e7f6; }
.cst-feature-quote figcaption strong { color: #fff; }
.cst-feature-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #d6e7f6; }
.cst-feature-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.cst-feature-metric { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; }
.cst-feature-metric strong { font-size: 28px; line-height: 1.1; }
.cst-feature-metric span { font-size: 13px; line-height: 1.4; color: #d6e7f6; }
.cst-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* ----- Browse grid ----- */
.cst-browse { padding: 56px 0 80px; background: #f4f6f9; }
.cst-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.cst-browse-head h2,
.cst-voices h2 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text, #0a1a2b);
}
.cst-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cst-filter {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c9d5e2;
  border-radius: 999px;
  background: #fff;
  color: var(--text, #0a1a2b);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cst-filter:hover { border-color: var(--brand-blue, #0c62a6); }
.cst-filter[aria-pressed="true"] { border-color: var(--brand-blue, #0c62a6); background: var(--brand-blue, #0c62a6); color: #fff; }
.cst-filter span { font-weight: 400; opacity: 0.8; }

.cst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cst-card[hidden] { display: none; }
.cst-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 26, 43, 0.12); }
.cst-card:focus-within { outline: 3px solid var(--brand-blue, #0c62a6); outline-offset: 2px; }
.cst-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eff6; }
.cst-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s;
}
.cst-card:hover .cst-card-media img { transform: scale(1.04); }
.cst-card-logo {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 90px;
  padding: 8px 14px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 26, 43, 0.18);
}
.cst-card-logo-img { display: block; max-height: 32px; max-width: 120px; object-fit: contain; }
.cst-card-logo .cst-wordmark { font-size: 16px; }
.cst-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.cst-card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue, #0c62a6);
}
.cst-card-title { margin: 0; font-size: 19px; line-height: 1.3; }
.cst-card-title a { color: var(--text, #0a1a2b); text-decoration: none; }
.cst-card-title a:focus-visible { outline: none; }
.cst-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cst-card-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 0;
  padding: 12px 0;
  border-top: 1px solid #e0e7ef;
  border-bottom: 1px solid #e0e7ef;
}
.cst-card-metric strong { font-size: 24px; color: var(--brand-blue, #0c62a6); white-space: nowrap; }
.cst-card-metric span { font-size: 13px; line-height: 1.4; color: var(--text-dim, #4a5a6a); }
.cst-card-summary { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim, #4a5a6a); }
.cst-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-blue, #0c62a6);
}
.cst-card-more svg { transition: transform 0.15s; }
.cst-card:hover .cst-card-more svg { transform: translateX(3px); }

/* ----- Customer quotes ----- */
.cst-voices { padding: 72px 0; background: #fff; }
.cst-voices h2 { margin-bottom: 28px; }
.cst-voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cst-voice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 26px;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  background: #f8fafc;
}
.cst-voice-logo { display: flex; align-items: center; height: 40px; }
.cst-voice-logo-img { display: block; max-height: 36px; max-width: 130px; object-fit: contain; }
.cst-voice blockquote {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text, #0a1a2b);
}
.cst-voice figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-dim, #4a5a6a); }
.cst-voice figcaption strong { color: var(--text, #0a1a2b); }
.cst-voice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ----- Closing call to action ----- */
.cst-cta { padding: 56px 0; background: var(--brand-blue, #0c62a6); color: #fff; }
.cst-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cst-cta h2 { margin: 0 0 8px; font-size: 30px; color: #fff; }
.cst-cta p { max-width: 560px; margin: 0; font-size: 17px; line-height: 1.5; color: #d6e7f6; }
.cst-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- Homepage strip ----- */
.cst-strip { padding: 72px 0; background: #f4f6f9; }
.cst-strip .cst-wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.cst-strip-head { text-align: center; }
.cst-strip-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  color: var(--text, #0a1a2b);
}
.cst-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cst-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
  min-height: 170px;
  padding: 22px 14px 18px;
  box-sizing: border-box;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cst-tile:hover { transform: translateY(-3px); border-color: #c9d5e2; box-shadow: 0 14px 30px rgba(10, 26, 43, 0.1); }
.cst-tile-logo { display: flex; align-items: center; justify-content: center; height: 48px; }
.cst-tile-logo-img { display: block; max-height: 46px; max-width: 140px; object-fit: contain; }
.cst-tile-metric { display: flex; flex-direction: column; gap: 2px; }
.cst-tile-metric strong { font-size: 22px; line-height: 1.2; color: var(--brand-blue, #0c62a6); }
.cst-tile-metric span { font-size: 13px; line-height: 1.35; color: var(--text-dim, #4a5a6a); }
.cst-tile-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-blue, #0c62a6); }

.cst-rotator { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 820px; }
/* Slides share one grid cell, so the block keeps the height of the longest quote and nothing below jumps */
.cst-rotator-slides { display: grid; width: 100%; }
.cst-rotator-quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}
.cst-rotator-quote.is-active { visibility: visible; opacity: 1; }
.cst-quote-mark {
  display: block;
  height: 36px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 72px;
  line-height: 1;
  color: var(--brand-blue, #0c62a6);
}
.cst-rotator-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--text, #0a1a2b);
}
.cst-rotator-quote figcaption { font-size: 15px; color: var(--text-dim, #4a5a6a); }
.cst-rotator-quote figcaption strong { color: var(--text, #0a1a2b); }
.cst-rotator-dots { display: flex; gap: 2px; }
.cst-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cst-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b7c6d6;
  transition: width 0.25s, background 0.25s;
}
.cst-dot[aria-pressed="true"] span { width: 28px; background: var(--brand-blue, #0c62a6); }

@media (max-width: 900px) {
  .cst-hero { padding: 48px 0 56px; }
  .cst-hero-inner { grid-template-columns: 1fr; }
  .cst-collage { display: none; }
  .cst-feature { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; }
  .cst-feature-quote blockquote { font-size: 19px; }
  .cst-browse-head h2,
  .cst-voices h2 { font-size: 26px; }
  .cst-grid { grid-template-columns: 1fr; }
  .cst-strip { padding: 56px 0; }
  .cst-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .cst-card,
  .cst-card-media img,
  .cst-tile,
  .cst-logo-chip,
  .cst-rotator-quote,
  .cst-dot span { transition: none; }
}
