/* ============================================================
   OUTBRAND-TEMHOMEPAGE — Brands Section Styles
   All selectors are namespaced to avoid conflicts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- Root Variables ---------- */
#outbrand-temhomepage-section {
  --ob-bg: #f05c62;;
  --ob-surface: #ffffff;
  --ob-card-bg: #f5f5f5;
  --ob-card-border: #ffffff;
  --ob-accent: #ffffff;
  --ob-accent2: #ffffff;
  --ob-text-primary: #ffffff;
  --ob-text-muted: #ffffff;
  /* --ob-font-display:Arial, Helvetica, sans-serif;
  --ob-font-body: Arial, Helvetica, sans-serif; */
  --ob-card-w: 170px;
  --ob-card-h: 130px;
  --ob-gap: 18px;
  --ob-radius: 16px;
  --ob-transition: 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Section Base ---------- */
#outbrand-temhomepage-section {
  position: relative;
  background: var(--ob-bg);
  padding: 90px 0 80px;
  overflow: hidden;
  font-family: var(--ob-font-body);
}

/* Subtle dot-grid background */
.outbrand-temhomepage-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(232,255,71,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Glow blobs */
#outbrand-temhomepage-section::before,
#outbrand-temhomepage-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
#outbrand-temhomepage-section::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,255,71,0.12), transparent 70%);
  top: -120px; left: -100px;
}
#outbrand-temhomepage-section::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.10), transparent 70%);
  bottom: -80px; right: -80px;
}

/* ---------- Container ---------- */
.outbrand-temhomepage-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.outbrand-temhomepage-header {
  text-align: center;
  margin-bottom: 60px;
}

.outbrand-temhomepage-eyebrow {
  display: inline-block;
  font-family: var(--ob-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
  background: #2f3440;
  border: 1px solid rgba(232,255,71,0.2);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.outbrand-temhomepage-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.15;
  color: rgb(255, 255, 255);
  text-align: center;
}

.outbrand-temhomepage-subtitle {
  font-size: 16px;
  color: var(--ob-text-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Track Wrapper ---------- */
.outbrand-temhomepage-track-wrapper {
  position: relative;
}

/* Desktop: CSS grid */
.outbrand-temhomepage-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--ob-gap);
}

/* ---------- Card ---------- */
.outbrand-temhomepage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
  animation: ob-fade-up 0.6s both;
}

.outbrand-temhomepage-card:nth-child(1)  { animation-delay: 0.05s; }
.outbrand-temhomepage-card:nth-child(2)  { animation-delay: 0.10s; }
.outbrand-temhomepage-card:nth-child(3)  { animation-delay: 0.15s; }
.outbrand-temhomepage-card:nth-child(4)  { animation-delay: 0.20s; }
.outbrand-temhomepage-card:nth-child(5)  { animation-delay: 0.25s; }
.outbrand-temhomepage-card:nth-child(6)  { animation-delay: 0.30s; }
.outbrand-temhomepage-card:nth-child(7)  { animation-delay: 0.35s; }
.outbrand-temhomepage-card:nth-child(8)  { animation-delay: 0.40s; }
.outbrand-temhomepage-card:nth-child(9)  { animation-delay: 0.45s; }
.outbrand-temhomepage-card:nth-child(10) { animation-delay: 0.50s; }
.outbrand-temhomepage-card:nth-child(11) { animation-delay: 0.55s; }
.outbrand-temhomepage-card:nth-child(12) { animation-delay: 0.60s; }
.outbrand-temhomepage-card:nth-child(13) { animation-delay: 0.65s; }
.outbrand-temhomepage-card:nth-child(14) { animation-delay: 0.70s; }

@keyframes ob-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.outbrand-temhomepage-card-inner {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ob-card-bg);
  border: 1px solid var(--ob-card-border);
  /* border-radius: var(--ob-radius); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  transition:
    border-color var(--ob-transition),
    background var(--ob-transition),
    transform var(--ob-transition),
    box-shadow var(--ob-transition);
  position: relative;
  overflow: hidden;
}

/* Shine sweep on hover */
.outbrand-temhomepage-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(232,255,71,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.outbrand-temhomepage-card:hover .outbrand-temhomepage-card-inner::after {
  transform: translateX(100%);
}

.outbrand-temhomepage-card:hover .outbrand-temhomepage-card-inner {
  border-color: rgba(232,255,71,0.35);
  /* background: #1a1e26; */
  transform: translateY(-5px);
  /* box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,255,71,0.15); */
}

.outbrand-temhomepage-logo {
  max-width: 100%;
  max-height: auto;
  object-fit: contain;
  /* filter: grayscale(1) brightness(1.5); */
  transition: filter var(--ob-transition), transform var(--ob-transition);
  display: block;
}

.outbrand-temhomepage-card:hover .outbrand-temhomepage-logo {
  filter: grayscale(0) brightness(1);
  transform: scale(1.06);
}

.outbrand-temhomepage-brand-name {
  font-family: var(--ob-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ob-text-muted);
  text-transform: uppercase;
  transition: color var(--ob-transition);
}

.outbrand-temhomepage-card:hover .outbrand-temhomepage-brand-name {
  color: var(--ob-accent);
}

/* ---------- Nav & Dots (mobile only, hidden on desktop) ---------- */
.outbrand-temhomepage-dots,
.outbrand-temhomepage-nav {
  display: none;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .outbrand-temhomepage-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px) → Horizontal Scroll
   ============================================================ */
@media (max-width: 640px) {
  #outbrand-temhomepage-section {
    padding: 60px 0 50px;
  }

  .outbrand-temhomepage-container {
    padding: 0 20px;
  }

  .outbrand-temhomepage-header {
    margin-bottom: 36px;
  }

  /* Switch to horizontal scroll track */
  .outbrand-temhomepage-track-wrapper {
    overflow: hidden;
  }

  .outbrand-temhomepage-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    /* We'll control scroll via JS, hide scrollbar */
    cursor: grab;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .outbrand-temhomepage-track::-webkit-scrollbar {
    display: none;
  }

  .outbrand-temhomepage-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .outbrand-temhomepage-card-inner {
    width: 140px;
    height: 105px;
    padding: 14px;
  }

  /* Show mobile nav */
  .outbrand-temhomepage-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
  }

  .outbrand-temhomepage-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f05c62;
    border: 1px solid white;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ob-transition), border-color var(--ob-transition);
  }

  .outbrand-temhomepage-nav-btn:hover {
    background: rgba(232,255,71,0.1);
    border-color: rgba(232,255,71,0.4);
    color: var(--ob-accent);
  }

  /* Dot indicators */
  .outbrand-temhomepage-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
  }

  .outbrand-temhomepage-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ob-text-muted);
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
  }

  .outbrand-temhomepage-dot.active {
    background: var(--ob-accent);
    width: 20px;
    border-radius: 4px;
  }
}