/**
 * Section: Our Brands
 */

.section-our-brands {
  position: relative;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  color: var(--color-black);
}

.brands-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brands-background__panel--copy {
  background: var(--color-lime);
}

.brands-background__panel--image {
  position: relative;
  background: var(--color-lime);
  overflow: hidden;
}

.brands-background__panel--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brands-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.brands-row {
  min-height: 720px;
}

.brands-card-cell,
.brands-info-cell {
  min-width: 0;
  padding: 0;
}

.brands-info-cell {
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-right: clamp(32px, 6vw, 92px);
  padding-bottom: 96px;
}

.brands-card-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 96px;
  padding-left: clamp(24px, 4vw, 72px);
}

.brands-info {
  width: 100%;
  max-width: 560px;
}

.brands-title {
  margin: 0 0 48px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-display);
  color: var(--color-black);
}

.brands-description {
  max-width: 460px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--color-black);
}

.brands-description > :first-child {
  margin-top: 0;
}

.brands-description > :last-child {
  margin-bottom: 0;
}

.brands-carousel {
  width: min(100%, 560px);
}

.brands-glass-card {
  width: 100%;
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(44px);
  -webkit-backdrop-filter: blur(44px);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-card);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.brands-carousel__viewport {
  overflow: hidden;
}

.brands-carousel__track {
  display: flex;
  align-items: stretch;
  touch-action: pan-y pinch-zoom;
}

.brands-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
}

.brands-carousel__slide.self-stretch {
  align-self: stretch;
}

.brands-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 0;
  min-width: 0;
  min-height: 390px;
  align-content: stretch;
}

.brands-grid--align-top {
  align-content: start;
}

.brand-logo {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo svg {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  filter: brightness(0.5);
  transition: filter 0.25s ease;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.brand-logo-link:hover svg {
  filter: brightness(0.75);
}

.brands-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: -16px;
  position: relative;
  z-index: 2;
}

.brands-carousel__dot {
  width: 11px;
  height: 11px;
  display: block;
  padding: 0;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.brands-carousel__dot span {
  display: none;
}

.brands-carousel__dot:hover,
.brands-carousel__dot:focus-visible,
.brands-carousel__dot.is-selected {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 5px 18px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.brands-carousel__dot.is-selected {
  background: var(--color-white);
}

@media screen and (max-width: 1199px) {
  .section-our-brands {
    min-height: 640px;
  }

  .brands-row {
    min-height: 640px;
  }

  .brands-grid {
    min-height: 350px;
    grid-auto-rows: minmax(104px, 1fr);
  }
}

@media screen and (max-width: 799px) {
  .section-our-brands,
  .brands-row {
    min-height: 0;
  }

  .brands-background {
    display: none;
  }

  .brands-container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .brands-row {
    display: block;
    margin-right: 0;
    margin-left: 0;
  }

  .brands-info-cell {
    min-height: 0;
    padding: 72px 18px;
    background: var(--color-lime);
  }

  .brands-card-cell {
    min-height: 0;
    padding: 72px 18px;
    background: var(--color-lime);
    position: relative;
    overflow: hidden;
  }

  .brands-card-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--brands-mobile-image);
    background-size: cover;
    background-position: center;
  }

  .brands-card-cell > * {
    position: relative;
    z-index: 1;
  }

  .brands-info {
    max-width: 100%;
  }
  .brand-logo {
    max-height: 90px;
  }
}

@media screen and (max-width: 479px) {
  .brands-info-cell {
    padding: 56px 18px;
  }

  .brands-card-cell {
    padding: 56px 18px;
  }

  .brands-title {
    margin-bottom: 32px;
  }

  .brands-grid {
    min-height: 300px;
    grid-auto-rows: minmax(96px, 1fr);
    gap: 0px;
  }

  .brand-logo svg {
    max-width: 150px;
  }
}
