/* ============================================================
   EtqanShop — Internal pages — brands.css
   All-brands page: featured strip, A-Z jump bar, alphabetised
   grid of brand chips. Reuses .brand-chip / .brand-chip__logo
   from components.css and .breadcrumb / .page-title from
   internal.css. Adds .brand-chip__text for text-as-logo brands.
   ============================================================ */

/* ============================================================
   Featured strip — 4 hero brand cards (larger brand-chip variant)
   ============================================================ */

.br-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 991.98px) {
  .br-featured__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .br-featured__grid { grid-template-columns: 1fr; }
}

.br-featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  min-height: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  text-align: center;
  transition: border-color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base);
}

.br-featured-card:hover,
.br-featured-card:focus-visible {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 2px var(--color-purple), var(--shadow-sm);
  transform: translateY(-2px);
}

.br-featured-card__logo {
  max-height: 80px;
  max-width: 75%;
}

.br-featured-card__tagline {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
  max-width: 24ch;
}

/* ============================================================
   Alphabet jump bar
   ============================================================ */

.br-alphabet-section {
  padding-block: var(--space-lg);
  background: var(--color-bg-alt);
  border-block: 1px solid var(--color-border-soft);
}

.br-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

.br-jump__link,
.br-jump__muted {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  text-decoration: none;
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.br-jump__link {
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
}

.br-jump__link:hover,
.br-jump__link:focus-visible {
  background: var(--color-purple);
  color: var(--color-text-inverse);
  border-color: var(--color-purple-deep);
}

.br-jump__muted {
  color: var(--color-text-faint);
  background: transparent;
  border: 1px dashed var(--color-border-soft);
  cursor: not-allowed;
  opacity: 0.55;
}

/* ============================================================
   Letter headers + brand grid
   ============================================================ */

.br-letter {
  margin: var(--space-2xl) 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-gold-deep);
  scroll-margin-top: var(--space-2xl);
  border-block-end: 2px solid var(--color-gold-line);
  padding-block-end: var(--space-sm);
}

.br-letter:first-of-type { margin-top: 0; }

.br-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  list-style: none;
  margin: 0 0 var(--space-xl);
  padding: 0;
}

@media (max-width: 1199.98px) {
  .br-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767.98px) {
  .br-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
  .br-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Text-as-logo variant — for brands without a local SVG asset.
   Visual height matches .brand-chip__logo (58 px max) so chips
   line up identically whether they hold a logo or a wordmark. */
.brand-chip__text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
  text-align: center;
  line-height: 1.1;
  max-height: 58px;
  min-height: 36px;
  padding-inline: var(--space-xs);
}
