/* =========================================================
   ABS Global — Our Partners page (clients.html)
   Page-specific styles. Builds on assets/css/style.css
   (hero + breadcrumbs follow the services/about treatment;
   the stats block reuses the global .stats component)
   ========================================================= */

/* ---------- Page hero (partners artwork, crumbs + title + intro) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  overflow: hidden;
  padding: 96px 0 84px;
  background: #0c2540;
  color: #fff;
  text-align: center;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../img/partners/partners-hero.jpg') center / cover no-repeat;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 10, 20, .9) 0%, rgba(2, 10, 20, .74) 100%);
  opacity: .58;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: .002em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(2, 12, 24, .35);
}
.page-hero__sub {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  text-wrap: pretty;
}

/* ---------- Breadcrumbs (matches about/services hero) ---------- */
.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; }
.crumbs__sep { color: rgba(255, 255, 255, .32); display: inline-flex; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Partners grid ---------- */
.cl-section { overflow: hidden; }
.cl-section .section-head { margin-bottom: clamp(28px, 3.6vw, 42px); }

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

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 18px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.partner-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
a.partner-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-200);
  box-shadow: 0 30px 54px -34px rgba(13, 35, 58, .45);
}
a.partner-card:hover::before { transform: scaleX(1); }

.partner-card__logo {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.partner-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
a.partner-card:hover .partner-card__logo img { transform: scale(1.07); }

.partner-card h3 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.cl-more {
  margin: clamp(26px, 3vw, 36px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: center;
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero { padding: 74px 0 66px; }
  .cl-hero { padding: 82px 0 72px; }
  .page-hero__inner { width: calc(100% - 36px); }
  .partner-card { padding: 20px 12px 18px; gap: 12px; }
  .partner-card__logo { width: 84px; height: 84px; border-radius: 14px; }
}
