/* ==========================================================================
   PRODUCTS BAND – Horizontal strip below the navbar
   Adapted from omsquare.co-new industries band (layout.css)
   Static background #253858, no dynamic colour swap
   ========================================================================== */

/* ── Band container ── */
#products-band {
  position: fixed;
  top: 90px; /* height of the qsquare desktop navbar */
  left: 0;
  right: 0;
  z-index: 1020; /* below navbar (bootstrap default 1030 for fixed-top) */
  background: #253858;
  transition: top 0.25s ease;
}

/* ── Inner flex row ── */
.products-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  padding: 0 40px;
}

/* ── Individual item wrapper ── */
.prod-band-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* ── Link styling ── */
.prod-band-link {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.prod-band-link:hover,
.prod-band-link:focus {
  color: #ffffff;
  background: #738AAF;
  text-decoration: none;
}

/* ── Custom tooltip on hover (text set via data-tooltip attribute) ── */
.prod-band-item::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 1050;
}

.prod-band-item:hover::after {
  opacity: 1;
}

.prod-band-link.active {
  color: #ffffff;
  background: #738AAF;
}

/* ── Beta pill badge ── */
.band-beta-badge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 10px;
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #F59E0B;
  border: 1.5px solid #F59E0B;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Body padding when band is present ── */
body.qs-has-products-band {
  padding-top: 132px !important; /* 90px navbar + 42px band */
}

/* ── Medium screens (992px – 1199px) ── */
@media (min-width: 992px) and (max-width: 1199px) {
  .products-band-inner {
    padding: 0 20px;
    gap: 0;
  }

  .prod-band-link {
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* ── Hide band on mobile / tablet ── */
@media (max-width: 991.98px) {
  #products-band {
    display: none;
  }

  /* Revert to navbar-only padding */
  body.qs-has-products-band {
    padding-top: 85px !important;
  }
}
