/**
 * Homepage sections — marquee + brands strip.
 */

.marquee-section2 .marquee:hover .marquee-group,
.marquee-section2 .marquee:focus-within .marquee-group {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-section2 .marquee .marquee-group {
    animation: none;
  }
}

/* —— Brands strip (homepage) —— */
.penny-brands-strip {
  padding: 2.5rem 0 3rem;
}

.penny-brands-strip__inner {
  padding: 0 !important;
  border: none !important;
}

.penny-brands-strip__eyebrow {
  display: inline-block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a !important;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 auto 1.75rem !important;
  padding: 0.55rem 1.15rem !important;
  line-height: 1.2 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: #fff;
  border-radius: 999px;
}

.penny-brands-strip__slider {
  padding: 0.35rem 0 0.75rem;
  overflow: visible;
}

.penny-brands-strip__slider .swiper-slide {
  height: auto;
  width: auto;
}

.penny-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 148px;
  min-width: 132px;
  padding: 1rem 0.85rem 0.9rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.penny-brand-card:hover,
.penny-brand-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 145, 77, 0.55);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  outline: none;
}

.penny-brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 88px;
  padding: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f7f8 0%, #efeff1 100%);
  overflow: hidden;
}

.penny-brand-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  transform: none !important;
  transition: transform 0.25s ease;
}

.penny-brand-card:hover .penny-brand-card__logo img,
.penny-brand-card:focus-visible .penny-brand-card__logo img {
  transform: scale(1.04) !important;
  opacity: 1 !important;
}

.penny-brand-card__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.penny-brand-card__name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #222;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.15rem;
}

/* Logo only — fuller media tiles */
.penny-brands-strip--logo .penny-brand-card {
  min-height: 120px;
  min-width: 140px;
  padding: 0.85rem;
  gap: 0;
}

.penny-brands-strip--logo .penny-brand-card__logo {
  height: 100px;
  border-radius: 12px;
  background: linear-gradient(165deg, #fafafa 0%, #f0f1f3 100%);
}

.penny-brands-strip--logo .penny-brand-card__logo img {
  max-height: 84px;
}

/* Name only — typography chips */
.penny-brands-strip--name .penny-brand-card {
  min-height: 72px;
  min-width: 118px;
  padding: 1rem 1.35rem;
  gap: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.penny-brands-strip--name .penny-brand-card__name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.penny-brands-strip--name .penny-brand-card:hover,
.penny-brands-strip--name .penny-brand-card:focus-visible {
  background: #111;
  border-color: #111;
}

.penny-brands-strip--name .penny-brand-card:hover .penny-brand-card__name,
.penny-brands-strip--name .penny-brand-card:focus-visible .penny-brand-card__name {
  color: #fff;
}

/* Both — refined logo + caption */
.penny-brands-strip--both .penny-brand-card {
  min-width: 136px;
}

.penny-brands-strip--both .penny-brand-card__name {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

/* Override legacy absolute hover-swap brand tiles inside this strip */
.penny-brands-strip .brand-box-1,
.penny-brands-strip .brand-img-1 {
  position: static;
  height: auto;
  overflow: visible;
  transform: none;
}

@media (max-width: 767px) {
  .penny-brands-strip {
    padding: 1.75rem 0 2.25rem;
  }

  .penny-brand-card {
    min-height: 132px;
    min-width: 118px;
    padding: 0.85rem 0.7rem 0.75rem;
  }

  .penny-brand-card__logo {
    height: 76px;
  }

  .penny-brand-card__logo img {
    max-height: 60px;
  }

  .penny-brands-strip--logo .penny-brand-card {
    min-height: 108px;
    min-width: 120px;
  }

  .penny-brands-strip--logo .penny-brand-card__logo {
    height: 88px;
  }

  .penny-brands-strip--logo .penny-brand-card__logo img {
    max-height: 72px;
  }

  .penny-brands-strip--name .penny-brand-card {
    min-height: 64px;
    min-width: 104px;
    padding: 0.85rem 1.1rem;
  }

  .penny-brands-strip--name .penny-brand-card__name {
    font-size: 0.78rem;
  }
}
