/* ============================================================
   brands.css â€” Brand Partners page styles
   ============================================================ */


/* Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:      #D30100;
  --red-dark: #A50000;
  --dark:     #0E0E0E;
  --marine:   #0A2540;
  --bone:     #F4F1EC;
  --amber:    #FEBD59;
  --g4:       #6E7479;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: clip;
}


/* Hero
   ------------------------------------------------------------ */
.page-hero {
  background: var(--marine);
  padding: 55px 28px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(211, 1, 0, .18) 0%, transparent 65%);
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--amber);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.hero-badge {
  display: inline-flex;
  background: rgba(254, 189, 89, .15);
  border: 1px solid rgba(254, 189, 89, .4);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
}

h1 span {
  color: var(--amber);
}

.hero-subtitle {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}


/* Hero Stats
   ------------------------------------------------------------ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 36px;
  width: fit-content;
}

.hero-stat {
  text-align: left;
  padding: 0 36px 0 0;
  border-right: 1px solid rgba(255, 255, 255, .1);
  margin-right: 36px;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
}


/* Page Body
   ------------------------------------------------------------ */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}


/* Section Header
   ------------------------------------------------------------ */
.brand-section {
  margin-bottom: 72px;
}

.brand-section--last {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(211, 1, 0, .25);
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.section-header-subtitle {
  font-size: 13px;
  color: var(--g4);
  margin-top: 2px;
}


/* Brand Grid
   ------------------------------------------------------------ */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
}


/* Brand Card
   ------------------------------------------------------------ */
.brand-card {
  height: 100%;
  background: var(--bone);
  border: 1.5px solid rgba(10, 37, 64, .07);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

.brand-card:hover {
  box-shadow: 0 8px 32px rgba(211, 1, 0, .1);
  border-color: rgba(211, 1, 0, .2);
  transform: translateY(-2px);
}

.brand-logo-area {
  height: 52px;
  display: flex;
  align-items: center;
}

.brand-logo {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(5%);
}

.brand-fallback {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--marine);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--marine);
}

.brand-origin {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--g4);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand-desc {
  font-size: 12.5px;
  color: var(--g4);
  line-height: 1.65;
  flex: 1;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.brand-tag {
  padding: 3px 8px;
  background: #fff;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--marine);
  border: 1px solid rgba(10, 37, 64, .12);
}


/* Model Lineup (per-brand, from scripts/models-data.js)
   ------------------------------------------------------------ */
.brand-models {
  margin-top: 4px;
  border-top: 1px solid rgba(10, 37, 64, .1);
  padding-top: 12px;
}

.bm-details {
  font-size: 12px;
}

.bm-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}
.bm-details > summary::-webkit-details-marker { display: none; }

.bm-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--marine);
}

.bm-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: .04em;
  margin-right: auto;
}

.bm-caret {
  color: var(--g4);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.bm-details[open] .bm-caret { transform: rotate(180deg); }

.bm-details > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.bm-chip {
  padding: 4px 9px;
  background: #fff;
  border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--marine);
  text-decoration: none;
  border: 1px solid rgba(10, 37, 64, .12);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.bm-chip:hover {
  color: var(--red);
  border-color: rgba(211, 1, 0, .35);
  background: rgba(211, 1, 0, .04);
  transform: translateY(-1px);
}
.bm-chip:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}


/* Divider
   ------------------------------------------------------------ */
.divider {
  height: 1px;
  background: rgba(10, 37, 64, .07);
  margin-bottom: 72px;
}


/* Note Card
   ------------------------------------------------------------ */
.note-card {
  background: rgba(211, 1, 0, .04);
  border: 1.5px dashed rgba(211, 1, 0, .18);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.note-card p {
  font-size: 13px;
  color: var(--g4);
  line-height: 1.65;
  margin: 0;
}

.note-card a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}


/* CTA Band
   ------------------------------------------------------------ */
.cta-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.cta-band {
  background: var(--red);
  border-radius: 14px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(255, 255, 255, .07) 0%, transparent 60%);
}

.cta-band h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
}

.cta-band p {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  position: relative;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: #fff;
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: opacity .2s;
}

.btn-action:hover {
  opacity: .88;
}


/* Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  /* Stats become a 2x2 grid (matches About / Services). */
  .hero-stats { grid-template-columns: repeat(2, auto); }
}

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

@media (max-width: 480px) {
  .brand-grid { grid-template-columns: 1fr; }
  .cta-band   { flex-direction: column; }
  .hero-stat { padding: 0 20px 0 0; margin-right: 20px; }
  .hero-stat:nth-child(2n) { border-right: none; margin-right: 0; padding-right: 0; }
}
