/* ==========================================================================
   VehicleSev brand directory and brand profiles (uses directory.css components)
   ========================================================================== */

/* ---------- Brand grid + card ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); }
.bgrid--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1024px) { .bgrid--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bgrid, .bgrid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }

.bcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.bcard:hover { border-color: rgba(163, 255, 18, 0.45); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.bcard:focus-within { border-color: var(--c-accent); }
.bcard__logo {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; padding: var(--s-5);
  background: radial-gradient(ellipse at 50% 120%, rgba(163, 255, 18, 0.08), transparent 60%), var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.bcard__img { max-width: 70%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.bcard__monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border: 1px solid var(--c-border-strong); border-radius: 50%;
  color: var(--c-text); font-family: var(--f-heading); font-weight: 700; font-size: 22px; letter-spacing: 0.02em;
}
.bcard__body { display: flex; flex-direction: column; gap: 4px; padding: var(--s-3) var(--s-4) var(--s-4); }
.bcard__name { font-size: 17px; line-height: 1.3; }
.bcard__link { color: inherit; text-decoration: none; }
.bcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bcard__link:hover { color: var(--c-accent); }
.bcard__link:focus-visible { outline: none; }
.bcard__link:focus-visible::after { outline: 2px solid var(--c-accent); outline-offset: -2px; border-radius: var(--r-sm); }
.bcard__meta, .bcard__models { font-size: 13px; line-height: 1.45; }
.bcard__models { color: var(--c-text); font-weight: 600; }

/* ---------- Directory filter bar + A–Z ---------- */
.listing--brands { display: flex; flex-direction: column; gap: var(--s-5); }
.brandbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: end; }
.brandbar__field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.brandbar__field label { color: var(--c-text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brandbar input, .brandbar select {
  width: 100%; min-height: 48px; padding: var(--s-2) var(--s-3);
  background: var(--c-bg); border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  color: var(--c-text); font: 400 15px/1.4 var(--f-body);
}
.brandbar input:focus-visible, .brandbar select:focus-visible { border-color: var(--c-accent); outline-offset: 0; }
.brandbar .filters__actions { grid-column: 1 / -1; position: static; padding: 0; background: none; }
@media (max-width: 1024px) { .brandbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brandbar__field--search { grid-column: 1 / -1; } }
@media (max-width: 767px)  { .brandbar { grid-template-columns: 1fr; } }

.az ul { display: flex; flex-wrap: wrap; gap: 4px; }
.az a, .az span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 var(--s-2);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.az a { color: var(--c-text); background: var(--c-card); transition: border-color var(--t-fast), color var(--t-fast); }
.az a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.az a[aria-current] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }
.az span { color: var(--c-text-muted); opacity: 0.4; }

.bgroup { display: flex; flex-direction: column; gap: var(--s-3); }
.bgroup + .bgroup { margin-top: var(--s-5); }
.bgroup__letter { color: var(--c-accent); font-size: 24px; padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-border); }

/* ---------- Brand profile ---------- */
.brand-hero { display: grid; background: var(--c-surface); border-bottom: 1px solid var(--c-border); overflow: hidden; }
.brand-hero > * { grid-area: 1 / 1; }
.brand-hero__cover { width: 100%; height: 100%; min-height: 360px; object-fit: cover; opacity: 0.55; }
.brand-hero--cover::after { content: ""; grid-area: 1 / 1; background: linear-gradient(90deg, rgba(7, 19, 28, 0.92) 0%, rgba(7, 19, 28, 0.5) 60%, rgba(7, 19, 28, 0.2) 100%); }
.brand-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s-5); padding-block: var(--s-8) var(--s-7); }
.brand-hero__id { display: flex; align-items: center; gap: var(--s-6); }
.brand-hero__id .eyebrow { margin-bottom: var(--s-2); }
.brand-hero__id .lead { margin-top: var(--s-3); max-width: 640px; }
.brand-hero__logo {
  flex: 0 0 140px; height: 140px;
  display: flex; align-items: center; justify-content: center; padding: var(--s-5);
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-sm);
}
.brand-hero__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.brand-hero__logo .bcard__monogram { width: 88px; height: 88px; font-size: 32px; }
@media (max-width: 767px) {
  .brand-hero__id { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .brand-hero__logo { flex-basis: auto; width: 96px; height: 96px; padding: var(--s-3); }
  .brand-hero__logo .bcard__monogram { width: 64px; height: 64px; font-size: 22px; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-sm); overflow: hidden; }
.facts > div { padding: var(--s-4) var(--s-5); background: var(--c-card); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; color: var(--c-text); font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.facts__na { color: var(--c-text-muted); font-weight: 500; font-size: 15px; }
.facts__wide { grid-column: 1 / -1; }
@media (max-width: 1024px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .facts { grid-template-columns: 1fr; } }

.taglinks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.taglinks a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 4px var(--s-3);
  border: 1px solid var(--c-border-strong); border-radius: var(--r-sm);
  color: var(--c-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.taglinks a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.taglinks span { color: var(--c-text-muted); font-weight: 500; }

.brand-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s-8); }
.brand-about .entry-content { margin-top: var(--s-4); }

.source-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: 14px; }
