/* ============================================================
   OUR CLIENTS
   ------------------------------------------------------------
   Both views are in the page; the script shows one. Breakpoints
   from the handoff: logo grid 6 ≥1100, 4 ≥760, 3 ≥480, 2 below.
   ============================================================ */

.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-wash);
  border-radius: 99px;
  padding: 7px 16px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.cl-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.cl-h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.7px;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.cl-h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -1px;
}
.cl-lead { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.66; color: var(--ink-body); margin: 0; }

/* ---------- hero ---------- */

.cl-top {
  background: linear-gradient(135deg, #F2F7FC 0%, #FFFFFF 46%, #FDF6E8 100%);
  border-bottom: 1px solid var(--border);
}
.cl-top__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(44px, 5.6vw, 84px) clamp(16px, 3.5vw, 36px) clamp(32px, 4vw, 48px);
}
.cl-intro { max-width: 720px; margin-bottom: clamp(26px, 3.2vw, 38px); }

.cl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cl-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.cl-stat__v { font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1; letter-spacing: -1px; }
.cl-stat__l { font-size: 14.5px; font-weight: 600; color: var(--ink-body); margin-top: 8px; }

/* ---------- controls ---------- */

/*
 * Sticky below the header rather than at the top of the viewport, or it
 * would slide underneath it. The header is 92px on desktop and 76px once
 * the mobile bar takes over.
 */
.cl-bar {
  position: sticky;
  top: 92px;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(20, 35, 47, .06);
}
.cl-bar__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3.5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.cl-toggle {
  display: inline-flex;
  background: var(--surface-shell);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  flex: none;
}
.cl-toggle__btn {
  font-family: inherit;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-radius: 99px;
  padding: 9px 16px;
  min-height: 40px;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.cl-toggle__btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 35, 47, .12); }

.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chips[hidden] { display: none; }
.cl-chip {
  font-family: inherit;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 99px;
  padding: 9px 14px;
  min-height: 40px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.cl-chip:hover { border-color: var(--brand); color: var(--brand); }
.cl-chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-navy-primary); }
.cl-chip__n { font-weight: 600; opacity: .85; }   /* .75 put it at 4.15 on the brand blue */

/* ---------- groups ---------- */

.cl-list { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.cl-list__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) clamp(16px, 3.5vw, 36px) clamp(48px, 6vw, 88px);
}

.cl-group { margin-bottom: clamp(30px, 3.6vw, 48px); }
.cl-group:last-child { margin-bottom: 0; }
.cl-group[hidden] { display: none; }
.cl-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cl-group__tile {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-group__text { min-width: 0; }
.cl-group__name { font-size: clamp(19px, 2vw, 23px); font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.5px; }
.cl-group__sub {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-group__rule { flex: 1; height: 1px; background: var(--border); min-width: 20px; }
.cl-group__count {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 13px;
}

.cl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

.cl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px 16px;
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
.cl-card--link { transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease; }
.cl-card--link:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(20, 35, 47, .06), 0 18px 40px rgba(4, 100, 173, .16);
}
/* A fixed box, so a tall mark and a wide one sit on the same baseline. */
.cl-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  margin-bottom: 12px;
}
.cl-card__logo img { max-width: 90%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.cl-card__name { font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.cl-card__place { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.cl-card__case { font-size: 12.5px; font-weight: 700; color: var(--brand); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .cl-card--link { transition: none; }
  .cl-card--link:hover { transform: none; }
}

/* ---------- testimonials ---------- */

.cl-quotes { background: var(--surface); border-bottom: 1px solid var(--border); }
.cl-quotes__inner { max-width: 980px; margin: 0 auto; padding: clamp(44px, 5.4vw, 80px) clamp(16px, 3.5vw, 36px); }
.cl-quotes__head { text-align: center; margin-bottom: clamp(22px, 2.8vw, 32px); }

.cl-slider {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 1px 2px rgba(20, 35, 47, .04), 0 8px 22px rgba(20, 35, 47, .07);
}
/*
 * The stage is sized to the slide in it, by script, and animates between
 * sizes. A fixed floor was the first attempt -- 340px so the card would not
 * jump between a 46-character quote and a 240-character one -- but a short
 * testimonial then sat in a large empty box, which is worse than a card that
 * changes size smoothly. With no script the height is simply auto.
 */
.cl-slider__stage { display: flex; transition: height 260ms ease; }
@media (prefers-reduced-motion: reduce) {
  .cl-slider__stage { transition: none; }
}
.cl-slide { display: flex; flex-direction: column; width: 100%; }
.cl-slide[hidden] { display: none; }
.cl-slide__mark { color: var(--brand-pale); flex: none; margin-bottom: 10px; }
/*
 * Not stretched. The stage keeps a floor so the card does not resize as
 * quotes change length, but making the quote fill that floor pushed the
 * attribution to the bottom and left a hole in the middle of every short
 * testimonial. The words sit under each other; the spare room falls below.
 */
.cl-slide__quote { margin: 0 0 20px; }
.cl-slide__quote p {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.62;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.cl-slide__more {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cl-slide__more:hover { color: var(--brand-dark); }

.cl-slide__by { display: flex; align-items: center; gap: 14px; }
.cl-slide__logo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.cl-slide__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cl-slide__name { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.cl-slide__role { display: block; font-size: 14px; color: var(--ink-muted); margin-top: 2px; }

.cl-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/*
 * The arrows sit on the sides, level with the quote, rather than in the row
 * at the bottom. Reading several testimonials meant moving the pointer down
 * to the button, back up to read, and down again; on the sides it stays
 * where it already is. The dots keep the bottom row to themselves.
 */
.cl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 35, 47, .10);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
  z-index: 1;
}
.cl-arrow:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
.cl-slider [data-slide-prev] { left: 10px; }
.cl-slider [data-slide-next] { right: 10px; }

/*
 * The arrows overlay the card, so the slide keeps clear of them. Without
 * this a long quote runs under the button and the last word of a line is
 * unreadable.
 */
.cl-slide { padding: 0 52px; }

.cl-dots { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
.cl-dot:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }

/* A 9px dot in a row of them is under the 24px target floor, so a near miss
   selects the neighbouring testimonial. The button carries the target and the
   dot is drawn inside it; nothing about the design changes. */
.cl-dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 99px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cl-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--border-strong);
  transition: width 200ms ease, background 200ms ease;
}
.cl-dot[aria-current="true"] { width: 41px; }   /* 26px dot + the 7px gap either side */
.cl-dot[aria-current="true"]::before { width: 26px; background: var(--brand); }

/* ---------- breakpoints ---------- */

@media (max-width: 1100px) {
  .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  /* The mobile header is shorter, so the bar sits higher. */
  .cl-bar { top: 76px; }
}

@media (max-width: 760px) {
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-stats { grid-template-columns: 1fr; }
  /* No room beside the quote at this width, so they return to the row. */
  .cl-slide { padding: 0; }
  .cl-arrow { position: static; transform: none; }
  .cl-slider [data-slide-prev],
  .cl-slider [data-slide-next] { left: auto; right: auto; }
}

@media (max-width: 480px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-group__sub { display: none; }
}
