/* ============================================================
   ULTRA-PREMIUM LOGO STRIP (APPLE / SWISS CAPSULE DESIGN)
   ============================================================ */

.brand-band {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 100px auto !important;
  padding: 0 20px !important; /* Safe padding for mobile */
  position: relative;
}

/* The Premium Capsule (Strip) */
.logo-strip {
  background: rgba(0, 0, 0, 0.02) !important; /* Extremely subtle, clean gray fill */
  border: 1px solid rgba(0, 0, 0, 0.04) !important; /* Hairline border */
  border-radius: 24px !important; /* Smooth Apple-like corners */
  padding: 40px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Dark mode adjustment for the capsule */
[data-theme="dark"] .logo-strip {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Title */
.brand-band .cap {
  margin-bottom: 32px !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--muted) !important;
  text-align: center !important;
}

/* The Track - Single Line, Perfectly Balanced */
.logo-marquee {
  width: 100% !important;
  overflow: hidden !important; /* Clean containment */
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.logo-track {
  display: flex !important;
  flex-wrap: nowrap !important; /* Forced single line */
  align-items: center !important;
  justify-content: center !important; /* Elegant centered spacing */
  width: 100% !important;
  gap: 60px !important; /* Acceptable, balanced gap */
  overflow-x: auto !important; /* Horizontal scroll if it overflows */
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 8px !important; /* Space for hidden scrollbar */
  animation: none !important; /* Ensure old marquee is dead */
  
  /* Hide scrollbar for a flawless look */
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
.logo-track::-webkit-scrollbar {
  display: none !important;
}

/* The Logos */
.lm {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important; /* Prevent squishing */
}

.lm img {
  height: 32px !important; /* Perfectly equal heights */
  max-width: 180px !important; 
  object-fit: contain !important;
  
  /* Solid opacity, perfect grayscale */
  filter: grayscale(100%) opacity(1) !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* The Mercedes Text Logo */
.mercedes-logo-text {
  font-family: Baskerville, "Playfair Display", "Times New Roman", serif !important;
  font-size: 21px !important;
  line-height: 32px !important; /* Match image height exactly */
  font-style: italic !important;
  color: var(--text) !important;
  opacity: 1 !important;
  filter: grayscale(100%) !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
}

/* Hover Effects (The Magic) */
.lm:hover img {
  filter: grayscale(0%) opacity(1) !important;
}
.lm:hover .mercedes-logo-text {
  filter: grayscale(0%) !important;
}

/* Mobile responsive scaling */
@media (max-width: 860px) {
  .logo-strip {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }
  .logo-track {
    gap: 32px !important;
    justify-content: flex-start !important; /* Allow scroll from left edge */
  }
  .lm img {
    height: 28px !important; /* Slightly smaller for mobile */
  }
  .mercedes-logo-text {
    font-size: 16px !important;
  }
  .brand-band .cap {
    font-size: 11px !important;
    margin-bottom: 24px !important;
  }
}
