/* Brands Slider Styles */
.brands-section {
  /* Slightly off background for the entire brands section (title, subtitle, slider) */
  --cz-brand-bg: rgba(0,0,0,0.03);
  --cz-brand-border: var(--bs-border-color-translucent);
  --cz-brand-hover-bg: var(--bs-body-tertiary);
  background-color: var(--cz-brand-bg);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brands-swiper {
  overflow: hidden;
  padding: 0.5rem 0;
}

.brands-swiper .swiper-wrapper {
  align-items: stretch;
}

.brands-swiper .swiper-slide {
  height: auto !important;
  padding: 0.25rem;
}

.brands-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.brand-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover {
  background-color: var(--cz-brand-hover-bg) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.brand-link:active {
  transform: translateY(0);
}

.brand-logo {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.brand-link:hover .brand-logo {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.brand-placeholder {
  background-color: var(--cz-brand-bg);
  min-height: 120px;
}


@media (max-width: 767px) {
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .brands-slide {
    min-height: 100px;
  }

  .brand-logo {
    max-height: 60px !important;
  }
}

/* Contact section scroll offset */
#contact-us-section {
  scroll-margin-top: 100px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .brands-section {
    /* lighter tint on dark mode to stand out slightly from background */
    --cz-brand-bg: rgba(255,255,255,0.03);
    --cz-brand-hover-bg: var(--bs-body-secondary);
    background-color: var(--cz-brand-bg);
  }

  .brand-link:hover {
    filter: brightness(1.1);
  }
}

/* Pagination customization for brands */
.brands-swiper .swiper-pagination-bullet {
  background-color: var(--bs-secondary-bg);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.brands-swiper .swiper-pagination-bullet-active {
  background-color: var(--bs-primary);
  opacity: 1;
}
