/* =====================================================================
   BRANDS PAGE (v2). Shared styles: css/site.css
   Pre-redesign version: css/brands-classic.css (classic/brands.html)
   ===================================================================== */

.b-note { max-width: 340px; color: var(--h-on-dark-muted); line-height: 1.6; margin: 0; }

/* partner cards */
.b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.b-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  background: var(--h-ink-2);
  border: 1px solid var(--h-line-dark);
  border-radius: var(--h-radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.b-card:hover { border-color: rgba(255, 230, 0, 0.5); }
/* odd number of brands: the last card spans the row instead of leaving a gap */
.b-grid > .b-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.2fr); }
.b-grid > .b-card:last-child:nth-child(odd) .b-card-media { max-height: 420px; }
.b-card-media { background: #1a1a1a; min-height: 100%; }
.b-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--h-ease); }
.b-card:hover .b-card-media img { transform: scale(1.05); }
.b-card-body { padding: 1.6rem; display: flex; flex-direction: column; }
.b-card-spec { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-accent); }
.b-card h3 { font-family: var(--h-display); font-weight: 700; font-size: 1.9rem; line-height: 0.95; text-transform: uppercase; margin: 0 0 0.75rem; color: #fff; }
.b-card-desc { margin: 0 0 1rem; color: var(--h-on-dark-muted); font-size: 0.92rem; line-height: 1.6; }
.b-card-tags { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.b-card-tags li { font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--h-line-dark); color: rgba(255, 255, 255, 0.85); }
.b-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.b-card-actions .h-btn { min-height: 44px; padding: 0 1.1rem; font-size: 0.75rem; cursor: pointer; }
.b-card-actions .h-btn--outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff; }
.b-card-actions .h-btn--outline:hover { background: #fff; color: #000; }
.b-card-actions .h-btn--dark { background: var(--h-accent); color: #000; border: 0; }
.b-card-actions .h-btn--dark:hover { background: #fff; }

/* vehicle logos (images are colour marks on black squares) */
.b-logos-intro { color: var(--h-text-muted); margin: 0; }
.b-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.b-logo {
  background: #000;
  border-radius: var(--h-radius);
  padding: 1rem 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.35s var(--h-ease);
}
.b-logo:hover { transform: translateY(-4px); }
.b-logo img { width: 72%; height: auto; aspect-ratio: 1; object-fit: contain; filter: grayscale(1) brightness(1.15); transition: filter 0.3s ease; }
.b-logo:hover img { filter: none; }
.b-logo span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* benefits */
.b-benefits-section { background: var(--h-paper-2); }
.b-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.b-benefits li { background: #fff; border-radius: var(--h-radius); padding: 1.9rem 1.6rem; border-top: 3px solid var(--h-accent); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.3); }
.b-ben-num { display: block; font-family: var(--h-display); font-weight: 700; font-size: 2.8rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #000; margin-bottom: 0.9rem; }
.b-benefits h3 { font-family: var(--h-display); font-size: 1.55rem; text-transform: uppercase; margin: 0 0 0.5rem; line-height: 1; }
.b-benefits p { margin: 0; color: var(--h-text-muted); line-height: 1.65; }

/* shop CTA feature list */
.b-cta-feats { list-style: none; margin: 0 auto 2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 720px; }
.b-cta-feats li { font-size: 0.85rem; font-weight: 700; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.35); }

@media (max-width: 1100px) {
  .b-grid { grid-template-columns: 1fr; }
  .b-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .b-card, .b-grid > .b-card:last-child:nth-child(odd) { grid-template-columns: 1fr; }
  .b-grid > .b-card:last-child:nth-child(odd) .b-card-media { max-height: none; }
  .b-card-media { aspect-ratio: 16 / 9; }
  .b-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-benefits { grid-template-columns: 1fr; }
}
