/* Brands Section - Homepage */
.brands-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #faf8fc 0%, #ffffff 50%, #f6f2ff 100%);
  position: relative;
  overflow: hidden;
}

.brands-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(209, 13, 209, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(155, 46, 143, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.brands-section-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  z-index: 1;
}

.brands-section-title {
  font-size: 42px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, #d10dd1 0%, #9b2e8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brands-section-intro {
  font-size: 18px;
  color: #666666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.brand-card-home {
  background: linear-gradient(180deg, #ffffff 0%, #fdf9ff 100%);
  border-radius: 20px;
  padding: 40px 28px;
  border: 2px solid #f0e8f5;
  box-shadow: 0 6px 20px rgba(209, 13, 209, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.brand-card-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d10dd1 0%, #9b2e8f 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.brand-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(209, 13, 209, 0.2),
              0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #d10dd1;
}

.brand-card-home:hover::before {
  transform: scaleX(1);
}

.brand-card-home-logo {
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-card-home-logo img {
  max-width: 140px;
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.brand-card-home:hover .brand-card-home-logo img {
  transform: scale(1.05);
}

.brand-card-home-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.brand-card-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid #d10dd1;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #d10dd1 0%, #9b2e8f 100%);
  text-decoration: none;
  margin-top: auto;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(209, 13, 209, 0.25);
}

@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .brand-card-home-logo {
    height: 100px;
  }

  .brand-card-home-logo img {
    max-width: 120px;
    max-height: 80px;
  }
}

@media (max-width: 1023px) {
  .brands-section {
    padding: 70px 0;
  }

  .brands-section-title {
    font-size: 36px;
  }

  .brands-section-intro {
    font-size: 16px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .brand-card-home {
    padding: 32px 24px;
  }

  .brand-card-home-logo {
    height: 90px;
    margin-bottom: 20px;
  }

  .brand-card-home-logo img {
    max-width: 110px;
    max-height: 70px;
  }

  .brand-card-home-description {
    font-size: 13px;
    min-height: 70px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .brands-section {
    padding: 60px 0;
  }

  .brands-section-header {
    margin-bottom: 50px;
  }

  .brands-section-title {
    font-size: 28px;
  }

  .brands-section-intro {
    font-size: 15px;
    padding: 0 15px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-card-home {
    padding: 28px 20px;
  }

  .brand-card-home-logo {
    height: 80px;
    margin-bottom: 18px;
  }

  .brand-card-home-logo img {
    max-width: 100px;
    max-height: 60px;
  }

  .brand-card-home-description {
    font-size: 13px;
    min-height: 60px;
    margin-bottom: 20px;
  }

  .brand-card-home-button {
    padding: 9px 22px;
    font-size: 12px;
  }
}
