/* ==========================================================================
   Clients page — clients.css
   ========================================================================== */

/* ── Page header ─────────────────────────────────────────────────── */
.cl-page-header {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, var(--navy-60) 0%, var(--navy-50) 100%);
  position: relative;
  overflow: hidden;
}
.cl-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 85% 50%, rgba(176,32,40,.15) 0%, transparent 65%);
  pointer-events: none;
}
.cl-page-header .breadcrumb { margin-bottom: 24px; }
.cl-page-header .breadcrumb a,
.cl-page-header .breadcrumb span,
.cl-page-header .breadcrumb i { color: rgba(255,255,255,.55); }
.cl-page-header .breadcrumb a:hover { color: var(--white); }
.cl-page-header h1 {
  font: 700 clamp(2rem, 4vw, 2.875rem)/1.15 var(--font-sans);
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 0;
}

/* ── Intro section ───────────────────────────────────────────────── */
.cl-intro-section {
  padding: 80px 0;
  background: var(--white);
}
.cl-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cl-intro-text h2 {
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.cl-intro-text p {
  font: 400 15px/1.75 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0 0 14px;
}

/* ── CEO quote ───────────────────────────────────────────────────── */
.cl-ceo-quote {
  background: linear-gradient(135deg, var(--navy-60) 0%, var(--navy-50) 100%);
  border-radius: 20px;
  padding: 36px 36px 28px;
  margin: 0;
  color: var(--white);
  position: relative;
}
.cl-ceo-quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 28px;
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,.15);
  font-family: Georgia, serif;
  pointer-events: none;
}
.cl-ceo-quote p {
  font: 400 16px/1.75 var(--font-sans);
  color: rgba(255,255,255,.9);
  margin: 15px 0 28px;
  position: relative;
}
.cl-ceo-quote footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.cl-ceo-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.cl-ceo-quote strong { display: block; font-size: 14px; color: var(--white); }
.cl-ceo-quote span   { font-size: 12px; color: rgba(255,255,255,.65); }

/* ── Video sections ──────────────────────────────────────────────── */
.cl-videos-section {
  padding: 80px 0;
  background: var(--white);
}
.cl-videos-section--alt {
  background: #F9FAFB;
}
.cl-videos-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-minimal);
}
.cl-videos-head h2 {
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.cl-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cl-video-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-minimal);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.cl-video-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  border-color: var(--red-30);
  transform: translateY(-3px);
}
.cl-videos-section--alt .cl-video-item { background: var(--white); }
.cl-video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--grey-110);
  flex-shrink: 0;
}
.cl-video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.cl-video-caption {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-minimal);
}
.cl-video-caption h4 {
  font: 600 18px/1.4 var(--font-sans);
  color: var(--fg-primary);
  margin: 0 0 4px;
}
.cl-video-caption p {
  font: 400 12px/1.6 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0;
}

/* ── Client logo wall ────────────────────────────────────────────── */
.cl-wall-section {
  padding: 80px 0;
  background: #F9FAFB;
}
.cl-wall-head { margin-bottom: 40px; }
.cl-wall-head h2 {
  font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

/* 5-per-row logo grid — matches staging.serosoft.com design */
.cl-logo-row-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cl-logo-item {
  border: 1px solid var(--border-minimal);
  border-radius: 12px;
  background: var(--grey-10);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.cl-logo-item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: var(--red-30);
  transform: translateY(-3px);
}
/* Institution name — matches staging.serosoft.com */
.cl-logo-item .clc-name {
  font: 600 13px/1.4 var(--font-sans);
  color: var(--fg-secondary);
  text-align: center;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border-minimal);
  background: var(--grey-10);
  flex-shrink: 0;
}

.cl-logo-item .clc-logo-wrap {
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--white);
}
.cl-logo-item .clc-img {
  max-width: 80%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 1100px) {
  .cl-logo-row-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .cl-logo-row-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cl-logo-row-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .cl-logo-row-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── Client lightbox ─────────────────────────────────────────────── */
.cl-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cl-lb-in .2s ease;
}
@keyframes cl-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cl-lb-overlay[hidden] { display: none; }
.cl-lb-inner {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  max-width: 1320px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  max-height: 92vh;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  animation: cl-lb-up .25s ease;
}
@keyframes cl-lb-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cl-lb-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--grey-20);
  min-height: 320px;
}
.cl-lb-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-lb-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.cl-lb-logo-wrap {
  display: flex;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-minimal);
}
.cl-lb-logo { max-height: 80px; max-width: 220px; width: auto; object-fit: contain; display: block; }
.cl-lb-title {
  font: 700 20px/1.3 var(--font-sans);
  color: var(--fg-primary);
  margin: 0;
}
.cl-lb-caption {
  display: inline-flex;
  font: 600 12px/1.5 var(--font-sans);
  color: var(--red-50);
  background: var(--red-10);
  border: 1px solid var(--red-20);
  border-radius: 999px;
  padding: 5px 14px;
  align-self: flex-start;
  margin: 0;
}
.cl-lb-description {
  font: 400 14px/1.75 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0;
  flex: 1;
}
.cl-lb-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: none;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background .15s;
}
.cl-lb-close:hover { background: rgba(0,0,0,.8); }

/* ── Reviews section ─────────────────────────────────────────────── */
.cl-reviews-section {
  padding: 80px 0;
  background: var(--white);
}
.cl-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.cl-reviews-head h2 {
  font: 700 clamp(1.375rem, 2.5vw, 1.75rem)/1.2 var(--font-sans);
  color: var(--fg-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.cl-review-sources { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--border-minimal);
  border-radius: var(--radius-pill);
  font: 600 12px/1 var(--font-sans);
  color: var(--fg-secondary);
  background: var(--white);
}
.cl-review-badge i { font-size: 14px; color: #f59e0b; }
.cl-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cl-review-card {
  background: var(--white);
  border: 1px solid var(--border-minimal);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.cl-review-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-color: var(--red-30);
  transform: translateY(-3px);
}
.cl-review-card--featured {
  background: linear-gradient(135deg, var(--navy-60) 0%, var(--navy-50) 100%);
  border-color: transparent;
}
.cl-review-card--featured:hover { border-color: transparent; }
.cl-review-stars { display: flex; gap: 3px; }
.cl-review-stars i { font-size: 16px; color: #f59e0b; }
.cl-review-card--featured .cl-review-stars i { color: #fcd34d; }
.cl-review-title {
  font: 600 14px/1.45 var(--font-sans);
  color: var(--fg-primary);
  margin: 0;
}
.cl-review-card--featured .cl-review-title { color: var(--white); }
.cl-review-body {
  font: 400 13px/1.7 var(--font-sans);
  color: var(--fg-secondary);
  margin: 0;
  flex: 1;
}
.cl-review-card--featured .cl-review-body { color: rgba(255,255,255,.75); }
.cl-reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-minimal);
  margin-top: auto;
}
.cl-review-card--featured .cl-reviewer { border-top-color: rgba(255,255,255,.15); }
.cl-reviewer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red-10);
  color: var(--red-50);
  font: 700 12px/36px var(--font-sans);
  text-align: center;
  flex-shrink: 0;
}
.cl-review-card--featured .cl-reviewer-avatar { background: rgba(255,255,255,.15); color: var(--white); }
.cl-reviewer strong { display: block; font-size: 13px; color: var(--fg-primary); }
.cl-reviewer span   { font-size: 11px; color: var(--fg-tertiary); }
.cl-review-card--featured .cl-reviewer strong { color: var(--white); }
.cl-review-card--featured .cl-reviewer span   { color: rgba(255,255,255,.55); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cl-reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-videos-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .cl-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .cl-lb-inner   { grid-template-columns: 1fr; }
  .cl-lb-photo-wrap { min-height: 200px; max-height: 220px; }
  .cl-lb-info    { padding: 24px 20px; }
}
@media (max-width: 700px) {
  .cl-reviews-head    { flex-direction: column; align-items: flex-start; }
  .cl-reviews-grid    { grid-template-columns: 1fr; }
  .cl-videos-grid     { grid-template-columns: 1fr; }
  .cl-wall-section    { padding: 52px 0; }
  .cl-intro-section   { padding: 52px 0; }
  .cl-reviews-section { padding: 52px 0; }
  .cl-videos-section  { padding: 52px 0; }
}
@media (max-width: 480px) {
  .cl-page-header { padding: 40px 0 32px; }
  .cl-ceo-quote   { padding: 28px 24px 22px; }
}
