/* ==========================================================================
   SVG COLLAGE BAND — Bento mosaic strip (solid color geometry like hero-mosaic)
   7 cells in a horizontal strip with GSAP float + parallax
   ========================================================================== */

.cr-collage-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  margin-top: -2px;
}

.cr-collage-band__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  height: clamp(70px, 10vw, 120px);
}

.cr-collage-band__cell {
  overflow: hidden;
  will-change: transform;
}

.cr-collage-band__cell svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* First and last cells slightly larger for asymmetry */
.cr-collage-band__cell--1 {
  grid-column: span 1;
}
.cr-collage-band__cell--3 {
  grid-column: span 1;
}

/* ==========================================================================
   TRIPLE BAND — 3 rows stacked: geometry / photos / geometry
   ========================================================================== */

.cr-triple-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 3;
  margin-top: -2px;
}

.cr-triple-band__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  height: clamp(55px, 8vw, 90px);
}

.cr-triple-band__row + .cr-triple-band__row {
  margin-top: 3px;
}

.cr-triple-band__cell {
  overflow: hidden;
  will-change: transform;
}

.cr-triple-band__cell svg {
  width: 100%; height: 100%; display: block;
}

.cr-triple-band__cell--photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.cr-triple-band__cell--badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-teal, #4AAFA0);
}

@media (max-width: 900px) {
  .cr-triple-band__row {
    grid-template-columns: repeat(5, 1fr);
    height: clamp(45px, 8vw, 70px);
  }
  .cr-triple-band__cell:nth-child(6),
  .cr-triple-band__cell:nth-child(7) { display: none; }
}

@media (max-width: 600px) {
  .cr-triple-band__row {
    grid-template-columns: repeat(4, 1fr);
    height: 40px;
    gap: 2px;
  }
  .cr-triple-band__row + .cr-triple-band__row { margin-top: 2px; }
  .cr-triple-band__cell:nth-child(5) { display: none; }
}

@media (max-width: 400px) {
  .cr-triple-band__row {
    grid-template-columns: repeat(3, 1fr);
    height: 35px;
  }
  .cr-triple-band__cell:nth-child(4) { display: none; }
}

/* ── Photo cells (collage-band-photos variant) ── */
.cr-collage-band__cell--photo {
  position: relative;
}
.cr-collage-band__cell--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mini badge cell */
.cr-collage-band__cell--badge-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-teal, #4AAFA0);
}

/* ==========================================================================
   SPINNING BADGE — Reusable rotating text ring around logo
   Used in: header, footer, collage bands, anywhere a logo appears
   ========================================================================== */

.cr-spinning-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cr-spinning-badge__ring {
  width: 100%;
  height: 100%;
  animation: cr-spin-badge 30s linear infinite;
}

.cr-spinning-badge__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.cr-spinning-badge__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

/* Sizes */
.cr-spinning-badge--xs { width: 48px; height: 48px; }
.cr-spinning-badge--xs .cr-spinning-badge__logo img { width: 22px; height: 22px; }

.cr-spinning-badge--sm { width: 80px; height: 80px; }
.cr-spinning-badge--sm .cr-spinning-badge__logo img { width: 36px; height: 36px; }

.cr-spinning-badge--md { width: 120px; height: 120px; }
.cr-spinning-badge--md .cr-spinning-badge__logo img { width: 52px; height: 52px; }

.cr-spinning-badge--lg { width: 180px; height: 180px; }
.cr-spinning-badge--lg .cr-spinning-badge__logo img { width: 80px; height: 80px; }

/* Header: fills available header height */
.cr-spinning-badge--header { width: 64px; height: 64px; flex-shrink: 0; }
.cr-spinning-badge--header .cr-spinning-badge__logo img { width: 30px; height: 30px; border-radius: 50%; }

@keyframes cr-spin-badge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cr-collage-band__grid {
    grid-template-columns: repeat(5, 1fr);
    height: clamp(60px, 10vw, 90px);
  }
  /* Hide last 2 cells on tablet */
  .cr-collage-band__cell--6,
  .cr-collage-band__cell--7 {
    display: none;
  }
}

@media (max-width: 600px) {
  .cr-collage-band__grid {
    grid-template-columns: repeat(4, 1fr);
    height: 55px;
    gap: 2px;
  }
  .cr-collage-band__cell--5 {
    display: none;
  }
}

@media (max-width: 400px) {
  .cr-collage-band__grid {
    grid-template-columns: repeat(3, 1fr);
    height: 45px;
  }
  .cr-collage-band__cell--4 {
    display: none;
  }
}
