/**
 * Techno Throne – Trusted by Shopify Brands section
 * Logo grid with grayscale → color on hover, responsive, SaaS-style spacing
 */

.trusted-by {
  padding: 4rem 1.5rem;
  background: #fff;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .trusted-by {
    padding: 5rem 2rem;
  }
}

.trusted-by__inner {
  max-width: 1024px;
  margin: 0 auto;
}

.trusted-by__header {
  text-align: center;
  margin-bottom: 3rem;
}

.trusted-by__title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
  .trusted-by__title {
    font-size: 2.25rem;
  }
}

.trusted-by__subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.trusted-by__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  .trusted-by__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .trusted-by__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
  }
}

.trusted-by__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trusted-by__link:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Logo image: grayscale by default, color on hover */
.trusted-by__link img {
  max-width: 100%;
  max-height: 2.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.trusted-by__link:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* Brand name (when no logo): muted by default, full color on hover */
.trusted-by__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.trusted-by__link:hover .trusted-by__name {
  color: #0f172a;
}

.trusted-by__footer {
  text-align: center;
}

.trusted-by__footer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
