/*
==================================================================
CLIENTS PAGE
Page-scoped styles for clients.html (hero + industry-filtered
client logo directory). Reuses the shared tokens from style.css
(brand orange only, glassmorphism, flat colour washes).
==================================================================
*/

/* ---------- Page shell ---------- */
.tt-cl-page {
  position: relative;
  padding: calc(var(--tt-header-height, 96px) + var(--tt-fold-gap)) 0 var(--tt-section-space);
}

.tt-cl-page::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.tt-cl-container {
  position: relative;
  z-index: 1;
}

/* ==================================================================
   1. HERO — peach card with copy left, photo + years badge right
   ================================================================== */
.tt-cl-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
  background:
    #FBD9B8;
}

/* Sized via `--g` in `min(<px>, <vw>)` rather than fixed px, and offsets given
   as a fraction of `--g`, so the blob keeps its proportions and its bleed past
   the hero edge on a 375px viewport instead of reading as a hard circle
   (pitfall 10). `min()` resolves to the original px value at desktop. */
.tt-cl-hero-glow {
  position: absolute;
  width: var(--g);
  height: var(--g);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.tt-cl-hero-glow-a {
  --g: min(420px, 70vw);
  top: calc(var(--g) * -0.43); left: 12%;
  background: none;
}
.tt-cl-hero-glow-b {
  --g: min(380px, 64vw);
  bottom: calc(var(--g) * -0.45); left: calc(var(--g) * -0.24);
  background: none;
}

.tt-cl-hero-row {
  position: relative;
  z-index: 1;
  align-items: center;
}

/* --- Eyebrow pill: solid orange chip inside a white capsule --- */
.tt-cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.3rem 1.1rem 0.3rem 0.3rem;
  box-shadow: var(--tt-shadow-sm);
  margin-bottom: 1.35rem;
}
.tt-cl-eyebrow-chip {
  display: inline-block;
  background: var(--tt-gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 0.35rem 1.05rem;
}
.tt-cl-eyebrow-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tt-dark);
}

.tt-cl-hero-title {
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-weight: 800;
  font-size: var(--tt-fs-h1);
  line-height: 1.1;
  color: var(--tt-dark);
  margin-bottom: 1.1rem;
}
/* The orange word in the hero heading. It was "2000+" (hence .tt-cl-count)
   until 2026-09-14, when the heading became "Trusted by Leading Businesses
   Worldwide" and the accent moved onto a word rather than a figure -
   .tt-cl-title-accent is the honest name for that. .tt-cl-count is kept
   alongside it so putting the number back is a markup change only. Neither
   is read by JS; this is colour, not a counter. */
.tt-cl-hero-title .tt-cl-count,
.tt-cl-hero-title .tt-cl-title-accent {
  color: var(--tt-primary);
}
.tt-cl-hero-title .tt-cl-title-light {
  display: block;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tt-cl-hero-copy {
  font-size: var(--tt-fs-body-lg);
  line-height: 1.7;
  color: var(--tt-muted);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.tt-cl-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tt-gradient-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  box-shadow: 0 12px 26px -10px rgba(var(--tt-primary-rgb), 0.75);
  transition: var(--tt-transition-standard);
}
.tt-cl-hero-cta:hover,
.tt-cl-hero-cta:focus-visible {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -10px rgba(var(--tt-primary-rgb), 0.8);
}

/* --- Right visual --- */
.tt-cl-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  /* MUST be center (or any value other than the default `stretch`). A flex
     item with `height: auto` is stretched to the line's cross size, and that
     stretch BEATS the image's `aspect-ratio` - the photo then grows to
     whatever height the row happens to be and drags the whole hero with it. */
  align-items: center;
}
.tt-cl-hero-img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  /* Belt and braces: even if a future flex/grid parent reintroduces a stretch,
     the image opts itself out and keeps its ratio. Do not use a fixed px
     height here - the <=991px breakpoint re-ratios this to 4/3 at 440px. */
  align-self: center;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 55px -22px rgba(0, 0, 0, 0.4);
}

/* Years-of-excellence badge, overlapping the photo's bottom-left corner */
.tt-cl-years {
  position: absolute;
  right: -0.5rem;
  bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--tt-glass-blur);
  -webkit-backdrop-filter: var(--tt-glass-blur);
  border: 1px solid var(--tt-glass-border);
  border-radius: 18px;
  padding: 0.85rem 1.4rem;
  box-shadow: var(--tt-glass-shadow);
  text-align: center;
}
.tt-cl-years-num {
  display: block;
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-weight: 800;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1;
  color: var(--tt-dark);
}
.tt-cl-years-num sup {
  color: var(--tt-primary);
  font-size: 0.6em;
  top: -0.35em;
}
.tt-cl-years-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tt-muted);
}

/* ==================================================================
   2. DIRECTORY — sidebar filters + logo grid inside a soft panel
   ================================================================== */
.tt-cl-directory {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  background: rgba(249, 250, 251, 0.92);
  border: 1px solid rgba(var(--tt-dark-rgb), 0.05);
}

/* ONE COLUMN since 2026-09-15. This was `minmax(0, 300px) minmax(0, 1fr)` —
   a 300px industry rail beside the grid. The filter was removed, so the grid
   is the whole width; the element is kept as a grid container (rather than
   unwrapped in the markup) so restoring the rail is one value here. */
.tt-cl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  align-items: start;
}

/* ---------- Sidebar — ORPHANED 2026-09-15 ----------
   Nothing on the site carries .tt-cl-filters / .tt-cl-cat-* any more. The rules
   are kept rather than deleted, the same "keep it on disk" pattern as .tt-hp-toc
   and the archived webinar modal: restoring the filter then costs no CSS work.
   They match nothing, so they cost only their bytes. */
.tt-cl-filters {
  position: sticky;
  /* Header height + breathing room, so the rail never hides under the navbar. */
  top: calc(var(--tt-header-height, 96px) + 1rem);
  background: #fff;
  border: 1px solid var(--tt-border);
  border-radius: 22px;
  padding: 1.25rem 0.85rem;
  box-shadow: var(--tt-shadow-md);
}

.tt-cl-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level row (All + each industry group) */
.tt-cl-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-family: var(--tt-font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tt-dark);
  text-align: left;
  cursor: pointer;
  transition: var(--tt-transition-fast);
}
.tt-cl-cat-btn:hover {
  background: rgba(var(--tt-primary-rgb), 0.07);
}
.tt-cl-cat-btn.is-active {
  background: rgba(var(--tt-primary-rgb), 0.1);
  color: var(--tt-primary);
}
.tt-cl-cat-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  font-size: 1.05rem;
  color: var(--tt-primary);
  text-align: center;
}
.tt-cl-cat-label {
  flex: 1 1 auto;
  min-width: 0;
  /* Some industry names are long ("Banking & Financial Services"); let them
     wrap inside the row rather than push the count off the edge. */
  overflow-wrap: anywhere;
}

/* Logo count per industry, right-aligned in the row. */
.tt-cl-cat-count {
  flex: 0 0 auto;
  min-width: 1.9rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--tt-dark-rgb), 0.06);
  color: var(--tt-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.tt-cl-cat-btn.is-active .tt-cl-cat-count {
  background: rgba(var(--tt-primary-rgb), 0.16);
  color: var(--tt-primary);
}

/* ---------- Results ---------- */
.tt-cl-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0.25rem 1rem;
}
.tt-cl-results-title {
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-size: var(--tt-fs-h4);
  font-weight: 700;
  color: var(--tt-dark);
  margin: 0;
}
.tt-cl-results-count {
  font-size: var(--tt-fs-body-sm);
  font-weight: 600;
  color: var(--tt-muted);
}

.tt-cl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.15rem);
}

.tt-cl-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1.1rem;
  background: var(--tt-glass-bg-soft);
  backdrop-filter: var(--tt-glass-blur);
  -webkit-backdrop-filter: var(--tt-glass-blur);
  border: 1px solid var(--tt-glass-border);
  border-radius: 18px;
  box-shadow: var(--tt-glass-shadow);
  transition: var(--tt-transition-standard);
}
.tt-cl-card:hover {
  border-color: rgba(var(--tt-primary-rgb), 0.38);
  box-shadow: 0 14px 30px -6px rgba(var(--tt-primary-rgb), 0.22), var(--tt-shadow-md);
  transform: translateY(-5px);
}
/* A FIXED box every logo is fitted into, rather than max-width/max-height.

   With max-* the rendered size depended on each file's own aspect ratio, so a
   3.95:1 wordmark and a 1.6:1 stacked lockup came out at very different optical
   weights in identical tiles. A fixed box + object-fit: contain gives every
   logo the same footprint and scales it down to fit - which is what makes a
   mixed-source logo wall look deliberate.

   Box ratio is 1 : 0.68, i.e. 171 x 116 CSS px at the widest desktop. Export
   new logos on a canvas of that ratio (e.g. 500 x 340, transparent, mark
   inside a ~88% safe area) and they land at a consistent size automatically. */
.tt-cl-card img {
  width: 100%;
  height: 68%;
  object-fit: contain;
  object-position: center;
}

.tt-cl-empty {
  display: none;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--tt-muted);
  font-size: var(--tt-fs-body);
}
.tt-cl-empty.is-visible { display: block; }
.tt-cl-empty i {
  display: block;
  font-size: 1.75rem;
  color: rgba(var(--tt-primary-rgb), 0.55);
  margin-bottom: 0.6rem;
}

/* ==================================================================
   3. CLOSING CTA
   ================================================================== */
.tt-cl-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 3.25rem);
  text-align: center;
  background:
    var(--tt-gradient-dark);
}
.tt-cl-cta-title {
  font-family: var(--tt-font-poppins, var(--tt-font-primary));
  font-weight: 800;
  font-size: var(--tt-fs-h2);
  color: #fff;
  margin-bottom: 0.85rem;
}
.tt-cl-cta-copy {
  font-size: var(--tt-fs-body-lg);
  color: rgba(255, 255, 255, 0.78);
  max-width: 44rem;
  margin: 0 auto 1.9rem;
}
.tt-cl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.tt-cl-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: var(--tt-transition-standard);
}
.tt-cl-cta-ghost:hover,
.tt-cl-cta-ghost:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* ==================================================================
   4. RESPONSIVE
   ================================================================== */
@media (max-width: 1199.98px) {
  .tt-cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .tt-cl-hero-visual { margin-top: 2.25rem; }
  .tt-cl-hero-img { max-width: 440px; aspect-ratio: 4 / 3; }
  .tt-cl-years { right: 0.5rem; bottom: -1rem; }

  /* .tt-cl-layout is one column at every width now; the override that used to
     collapse the rail here is gone with it. */
  .tt-cl-filters { position: static; }
}

@media (max-width: 575.98px) {
  .tt-cl-hero { border-radius: 20px; }
  .tt-cl-directory, .tt-cl-cta { border-radius: 20px; }
  .tt-cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-cl-eyebrow { gap: 0.5rem; padding-right: 0.85rem; }
  .tt-cl-eyebrow-text { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-cl-card,
  .tt-cl-hero-cta,
  .tt-cl-cta-ghost { transition: none; }
  .tt-cl-card:hover { transform: none; }
}

/* ==================================================================
   SIDEBAR AS A SCROLLING INDUSTRY LIST
   38 industries do not fit beside the grid, so the rail scrolls
   independently while staying stuck below the header.
   ================================================================== */
.tt-cl-filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0.75rem 0.6rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--tt-border);
}
.tt-cl-filters-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tt-muted);
}

.tt-cl-filter-list {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tt-cl-cat-btn { font-size: 0.92rem; padding: 0.55rem 0.75rem; }

/* ==================================================================
   PAGINATION
   Every logo is in the markup, but only one page is ever visible.
   A hidden card's lazy <img> never enters the viewport, so it is
   never fetched - see assets/js/clients.js.
   ================================================================== */
.tt-cl-card[hidden] { display: none !important; }

.tt-cl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
}
.tt-cl-pgbtn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-family: var(--tt-font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tt-dark);
  cursor: pointer;
  transition: var(--tt-transition-fast);
}
.tt-cl-pgbtn:hover:not(:disabled) {
  border-color: rgba(var(--tt-primary-rgb), 0.45);
  color: var(--tt-primary);
}
.tt-cl-pgbtn.is-active {
  background: var(--tt-gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(var(--tt-primary-rgb), 0.75);
}
.tt-cl-pgbtn:disabled { opacity: 0.4; cursor: default; }
.tt-cl-pgbtn-nav { font-size: 0.78rem; }
.tt-cl-pgbtn-gap { padding: 0 0.15rem; color: var(--tt-muted); }

@media (max-width: 991.98px) {
  .tt-cl-filter-list { max-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-cl-pgbtn { transition: none; }
}
