/* ============================================================
   WHAT OUR CLIENTS SAY — one review on navy.
   The statement runs large on the left; the credit (stars, client,
   place, source) sits to the right behind a rule. On small screens
   the credit drops underneath.
   ============================================================ */

.clients {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 55% 70% at 12% 20%, rgba(46, 101, 184, 0.28) 0%, rgba(46, 101, 184, 0) 70%),
    var(--navy);
  color: var(--white);
  overflow-x: clip;   /* the credit starts 1.5rem to the right before it slides in; without this it poked past the screen edge and let iPhone swipe the page sideways */
}
/* Straight after Why us (Mark, 2026-10-20: the review backs up the claims).
   Both are navy, so drop the top glow and most of the top padding and the
   two read as one block. */
.why + .clients {
  margin-top: -1px;
  padding-top: 0;
  background:
    radial-gradient(ellipse 55% 70% at 88% 80%, rgba(46, 101, 184, 0.22) 0%, rgba(46, 101, 184, 0) 70%),
    var(--navy);
}

.clients-label {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.clients-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
  align-items: center;
  gap: 3.5rem;
  margin: 0;
}

.clients-quote { margin: 0; }
.clients-quote p {
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.clients-quote p::before { content: "\201C"; }
.clients-quote p::after  { content: "\201D"; }

.clients-credit {
  display: grid;
  gap: 0.35rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(255, 255, 255, 0.22);
}
/* Google's own star yellow, the one off-palette colour here */
.clients-stars { display: flex; gap: 0.2rem; margin-bottom: 0.6rem; color: #fbbc04; }
.clients-stars svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
/* Reviewer: his Google profile picture is the default letter circle, so it is
   drawn here in the same colour instead of using an image */
.clients-person { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.35rem; }
.clients-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #5c6bc0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
}
.clients-name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--white); }
.clients-company { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.clients-place { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.clients-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--light-blue);
}
.clients-source img { flex: none; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--white); box-sizing: content-box; }

@media (max-width: 900px) {
  .clients { padding: 80px 0; }
  .clients-review { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .clients-credit { padding-left: 1.25rem; }
}

/* --- Straight after the pinned Why section: rise into the empty space under
   the claims (js/why.js measures it as --why-pull) --- */
.why.is-live + .clients {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--why-pull, 0px) * -1);
}

/* --- Reveal (js/clients.js adds .is-anim, then .is-in when it comes into view):
   heading, quote and credit rise in one after another, then the stars pop in --- */
.clients.is-anim .clients-label,
.clients.is-anim .clients-quote,
.clients.is-anim .clients-credit {
  opacity: 0;
  translate: 0 1.75rem;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(.2, .8, .2, 1);
}
.clients.is-anim .clients-credit { translate: 1.5rem 0; }
.clients.is-anim .clients-quote  { transition-delay: 0.15s; }
.clients.is-anim .clients-credit { transition-delay: 0.35s; }
.clients.is-anim .clients-stars svg { opacity: 0; scale: 0.4; transition: opacity 0.3s ease, scale 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.clients.is-anim .clients-stars svg:nth-child(1) { transition-delay: 0.6s; }
.clients.is-anim .clients-stars svg:nth-child(2) { transition-delay: 0.7s; }
.clients.is-anim .clients-stars svg:nth-child(3) { transition-delay: 0.8s; }
.clients.is-anim .clients-stars svg:nth-child(4) { transition-delay: 0.9s; }
.clients.is-anim .clients-stars svg:nth-child(5) { transition-delay: 1s; }
.clients.is-anim.is-in .clients-label,
.clients.is-anim.is-in .clients-quote,
.clients.is-anim.is-in .clients-credit { opacity: 1; translate: none; }
.clients.is-anim.is-in .clients-stars svg { opacity: 1; scale: 1; }
