/* ============================================================
   IQInstrument Brands Page Styles (Light Theme)
   ============================================================ */

/* ---------- Hero (photo background overlay stays dark) ---------- */
#brands-hero {
  min-height: 55vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.brands-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../brands/header.jpg");
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.brands-hero-bg.loaded {
  transform: scale(1);
}
.brands-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 13, 26, 0.92) 0%,
    rgba(9, 24, 48, 0.78) 50%,
    rgba(12, 45, 92, 0.5) 100%
  );
}
.brands-hero-overlay-teal {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(1, 33, 105, 0.08) 0%,
    transparent 55%
  );
}
.brands-hero-content {
  position: relative;
  z-index: 1;
}
.brands-hero-content .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.25rem;
}
.brands-hero-content .breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.brands-hero-content .breadcrumb-nav a:hover {
  color: #012169;
}
.brands-hero-content .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
}
.brands-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.brands-hero-title span {
  background: linear-gradient(135deg, #012169, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brands-hero-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 0;
}
.hero-brand-counter {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.hero-brand-counter .hc-item {
  text-align: center;
}
.hero-brand-counter .hc-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.hero-brand-counter .hc-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ---------- Filter / Search Bar ---------- */
#brands-filter {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem 0;
  position: sticky;
  top: 66px;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.filter-search-wrap {
  position: relative;
}
.filter-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 23, 42, 0.35);
  font-size: 0.9rem;
  pointer-events: none;
}
.brands-search-input {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  color: #0f172a;
  font-size: 0.88rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  font-family: "Inter", sans-serif;
}
.brands-search-input::placeholder {
  color: rgba(15, 23, 42, 0.35);
}
.brands-search-input:focus {
  border-color: rgba(1, 33, 105, 0.4);
  background: rgba(1, 33, 105, 0.03);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
}
.filter-tab:hover {
  border-color: rgba(1, 33, 105, 0.3);
  color: #012169;
}
.filter-tab.active {
  background: rgba(1, 33, 105, 0.1);
  border-color: rgba(1, 33, 105, 0.35);
  color: #012169;
}
.results-count {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.4);
  white-space: nowrap;
  align-self: center;
}
.results-count span {
  color: #012169;
  font-weight: 700;
}

/* ---------- Brands Grid ---------- */
#brands-grid {
  padding: 4rem 0 6rem;
  background: #f8fafc;
  min-height: 60vh;
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.view-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #012169;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.view-all-link:hover {
  gap: 10px;
  color: #012169;
}

/* Brand card */
.brand-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(1, 33, 105, 0.3);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(1, 33, 105, 0.1);
}
.brand-logo-wrap {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
.brand-logo-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(1, 33, 105, 0.4),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.brand-card:hover .brand-logo-wrap::after {
  opacity: 1;
}
.brand-logo-wrap img {
  max-width: 140px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(15%);
  transition:
    filter 0.3s,
    transform 0.3s;
}
.brand-card:hover .brand-logo-wrap img {
  filter: grayscale(0%);
  transform: scale(1.05);
}
.brand-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.brand-card-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.brand-card-cat {
  font-size: 0.72rem;
  color: #012169;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.brand-card-desc {
  font-size: 0.78rem;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.75rem;
}
.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.brand-card-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.brand-card:hover .brand-card-btn {
  color: #012169;
  gap: 8px;
}
.brand-card-products {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.3);
  font-weight: 500;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 4rem 1rem;
  display: none;
}
.no-results i {
  font-size: 3rem;
  color: rgba(15, 23, 42, 0.1);
  margin-bottom: 1rem;
}
.no-results h5 {
  color: rgba(15, 23, 42, 0.4);
  font-size: 1rem;
  font-weight: 600;
}
.no-results p {
  color: rgba(15, 23, 42, 0.25);
  font-size: 0.85rem;
}

/* Grid item hidden state */
.brand-col.hidden {
  display: none !important;
}

/* ---------- CTA ---------- */
#brands-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 50%, #fef6f0 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
#brands-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 20% 50%,
    rgba(1, 33, 105, 0.08) 0%,
    transparent 55%
  );
}
#brands-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 85% 50%,
    rgba(200, 16, 46, 0.06) 0%,
    transparent 50%
  );
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  #brands-filter {
    position: static;
  }
  .brands-hero-title {
    font-size: 1.9rem;
  }
  .hero-brand-counter {
    gap: 1.2rem;
  }
  .filter-tabs {
    gap: 6px;
  }
}
