/* Module 9 — Brand page (BMW) — built on styleguide.css */

.brand-wrap { background: var(--snow); }
.bw { width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Crumbs */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  padding: 24px 0 16px;
  font-family: 'Inter'; font-size: 13px; color: var(--grey);
}
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--voltage); }
.crumbs .sep { color: var(--grey-light); }
.crumbs .cur { color: var(--midnight); }

/* ============= HERO ============= */
.bw-hero {
  position: relative;
  padding: 16px 0 88px;
  overflow: hidden;
}
.bw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 560px;
}
.bw-hero-left { display: flex; flex-direction: column; }
.bw-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  font-family: 'Inter'; font-weight: 600; font-size: 13px;
  color: var(--voltage); text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px;
  background: var(--mint);
  border-radius: 999px;
  margin-bottom: 28px;
}
.bw-hero-h1 {
  font-family: 'Manrope'; font-weight: 800; font-size: 80px; line-height: 84px;
  letter-spacing: -0.03em; color: var(--midnight); margin: 0;
}
.bw-hero-h1 .accent { color: var(--voltage); }
.bw-hero-sub {
  font-family: 'Inter'; font-size: 19px; line-height: 30px;
  color: var(--grey);
  margin: 28px 0 40px;
  max-width: 540px;
}
.bw-hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-bottom: 40px;
}
.bw-hero-stat-num {
  font-family: 'Manrope'; font-weight: 800; font-size: 40px; line-height: 1;
  color: var(--midnight); letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
}
.bw-hero-stat-cap {
  font-family: 'Inter'; font-size: 13px; line-height: 18px; color: var(--grey);
  margin-top: 10px;
}
.bw-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.bw-hero-art {
  position: relative;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, #2c4a66 0%, #0F2A3D 60%, #08192a 100%);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 32px;
}
.bw-hero-art::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 60px, rgba(255,255,255,0.06) 60px 120px);
  pointer-events: none;
}
.bw-hero-art-logo {
  position: absolute; top: 32px; right: 32px;
  width: 96px; height: 96px;
  opacity: 0.92;
}
.bw-hero-art-tag {
  position: relative;
  font-family: 'Manrope'; font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.bw-hero-art-line {
  position: absolute;
  left: 32px; right: 32px; bottom: 80px;
  font-family: 'Manrope'; font-weight: 800; font-size: 32px;
  color: rgba(255,255,255,0.95); letter-spacing: -0.015em;
}
.bw-hero-art-line span { color: var(--voltage); }

/* ============= STRIP: countries we import from ============= */
.bw-strip {
  background: var(--mist);
  padding: 32px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.bw-strip-row {
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap;
}
.bw-strip-label {
  font-family: 'Inter'; font-weight: 600; font-size: 13px;
  color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em;
}
.bw-strip-flags {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.bw-strip-flag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope'; font-weight: 600; font-size: 16px;
  color: var(--midnight);
}
.bw-strip-flag .flag-em {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.bw-strip-flag .flag-cap {
  font-family: 'Inter'; font-weight: 400; font-size: 12px; color: var(--grey);
  margin-left: 4px;
}

/* ============= SECTION header ============= */
.bw-sec {
  padding: 96px 0;
}
.bw-sec.alt { background: var(--mist); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.bw-sec.dark { background: var(--midnight); }
.bw-sec.dark .bw-sec-title, .bw-sec.dark .bw-sec-eyebrow { color: var(--snow); }
.bw-sec.dark .bw-sec-eyebrow { color: var(--voltage); }
.bw-sec.dark .bw-sec-lead { color: rgba(255,255,255,0.7); }

.bw-sec-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.bw-sec-eyebrow {
  font-family: 'Inter'; font-weight: 600; font-size: 13px;
  color: var(--voltage); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.bw-sec-title {
  font-family: 'Manrope'; font-weight: 700; font-size: 48px; line-height: 56px;
  letter-spacing: -0.025em; color: var(--midnight); margin: 0;
}
.bw-sec-lead {
  font-family: 'Inter'; font-size: 17px; line-height: 28px; color: var(--grey);
  max-width: 480px;
}

/* ============= MODELS GRID ============= */
.bw-models-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--stone);
  flex-wrap: wrap;
}
.bw-models-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Manrope'; font-weight: 600; font-size: 14px;
  background: transparent; color: var(--graphite); border: 1px solid var(--stone);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.bw-models-tab.active { background: var(--midnight); color: var(--snow); border-color: var(--midnight); }
.bw-models-tab .count { color: var(--grey-light); font-size: 12px; font-weight: 500; }
.bw-models-tab.active .count { color: rgba(255,255,255,0.5); }

.bw-models-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.bw-model-card {
  background: var(--snow); border: 1px solid var(--stone);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.bw-model-card:hover { transform: translateY(-2px); border-color: var(--midnight); box-shadow: var(--shadow-pop); }
.bw-model-img {
  position: relative; height: 180px;
  background:
    linear-gradient(180deg, rgba(15,42,61,0.04), rgba(15,42,61,0)),
    repeating-linear-gradient(135deg, #DCE3E8 0 12px, #E5EBEF 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.bw-model-img-tag {
  font-family: 'Inter'; font-weight: 500; font-size: 10px;
  color: var(--grey); letter-spacing: 0.08em; text-transform: uppercase;
}
.bw-model-img .body-type {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(15,42,61,0.85); color: var(--snow);
  font-family: 'Inter'; font-weight: 500; font-size: 11px;
  backdrop-filter: blur(4px);
}
.bw-model-img .ev-tag {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--mint); color: #00876C;
  font-family: 'Inter'; font-weight: 600; font-size: 11px;
  display: inline-flex; align-items: center; gap: 4px;
}
.bw-model-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bw-model-name {
  font-family: 'Manrope'; font-weight: 700; font-size: 22px; line-height: 28px;
  color: var(--midnight); margin: 0; letter-spacing: -0.01em;
}
.bw-model-tagline {
  font-family: 'Inter'; font-size: 13px; line-height: 20px; color: var(--grey);
}
.bw-model-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stone);
}
.bw-model-from {
  font-family: 'Inter'; font-size: 11px; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bw-model-price {
  font-family: 'Inter'; font-weight: 700; font-size: 18px;
  color: var(--midnight); font-feature-settings: 'tnum' 1;
}
.bw-model-stock {
  font-family: 'Inter'; font-size: 12px; color: var(--success);
  margin-top: 2px; display: flex; align-items: center; gap: 5px;
}
.bw-model-stock::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}

/* ============= STORY (history) ============= */
.bw-story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
.bw-story-text p {
  font-family: 'Inter'; font-size: 16px; line-height: 28px; color: var(--graphite);
  margin: 0 0 18px;
}
.bw-story-text p:first-child::first-letter {
  float: left;
  font-family: 'Manrope'; font-weight: 800; font-size: 64px; line-height: 56px;
  margin: 6px 12px 0 0; color: var(--midnight);
}
.bw-story-pull {
  margin: 24px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--voltage);
  background: var(--mint);
  font-family: 'Manrope'; font-weight: 600; font-size: 18px; line-height: 28px;
  color: var(--midnight); border-radius: 0 12px 12px 0;
}

.bw-timeline {
  position: relative;
  padding: 4px 0 4px 28px;
}
.bw-timeline::before {
  content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px;
  width: 2px; background: var(--stone);
}
.bw-timeline-item {
  position: relative; padding-bottom: 28px;
}
.bw-timeline-item:last-child { padding-bottom: 0; }
.bw-timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--snow); border: 2px solid var(--voltage);
}
.bw-timeline-year {
  font-family: 'Manrope'; font-weight: 800; font-size: 22px;
  color: var(--midnight); letter-spacing: -0.01em;
}
.bw-timeline-text {
  font-family: 'Inter'; font-size: 14px; line-height: 22px; color: var(--grey);
  margin-top: 4px;
}

/* ============= GEOGRAPHY (where do we import) ============= */
.bw-geo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.bw-geo-card {
  background: var(--snow);
  border: 1px solid var(--stone);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.bw-geo-card:hover { border-color: var(--midnight); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.bw-geo-card.featured { background: var(--midnight); color: var(--snow); border-color: transparent; }
.bw-geo-card.featured .bw-geo-name,
.bw-geo-card.featured .bw-geo-flag-name { color: var(--snow); }
.bw-geo-card.featured .bw-geo-detail-key { color: rgba(255,255,255,0.5); }
.bw-geo-card.featured .bw-geo-detail-val { color: var(--snow); }
.bw-geo-card.featured .bw-geo-cta { color: var(--voltage); }

.bw-geo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bw-geo-flag-name { display: flex; align-items: center; gap: 12px; }
.bw-geo-flag { font-size: 32px; }
.bw-geo-name { font-family: 'Manrope'; font-weight: 700; font-size: 22px; color: var(--midnight); }
.bw-geo-rank {
  font-family: 'Manrope'; font-weight: 800; font-size: 12px;
  letter-spacing: 0.08em; color: var(--grey-light);
  padding: 4px 10px; border: 1px solid var(--stone); border-radius: 999px;
}
.bw-geo-card.featured .bw-geo-rank { color: var(--voltage); border-color: rgba(0,200,150,0.4); }
.bw-geo-tagline { font-family: 'Inter'; font-size: 14px; line-height: 22px; color: var(--grey); }
.bw-geo-card.featured .bw-geo-tagline { color: rgba(255,255,255,0.7); }
.bw-geo-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  padding: 16px 0; border-top: 1px solid var(--stone);
}
.bw-geo-card.featured .bw-geo-detail { border-color: rgba(255,255,255,0.1); }
.bw-geo-detail-row { display: flex; flex-direction: column; gap: 2px; }
.bw-geo-detail-key { font-family: 'Inter'; font-size: 11px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }
.bw-geo-detail-val { font-family: 'Manrope'; font-weight: 700; font-size: 16px; color: var(--midnight); font-feature-settings: 'tnum' 1; }
.bw-geo-cta {
  font-family: 'Manrope'; font-weight: 600; font-size: 14px; color: var(--midnight);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============= WHY BMW ============= */
.bw-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.bw-why-card {
  padding: 28px;
  background: var(--snow);
  border: 1px solid var(--stone);
  border-radius: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.bw-why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  color: #00876C;
}
.bw-why-title { font-family: 'Manrope'; font-weight: 700; font-size: 18px; line-height: 24px; color: var(--midnight); }
.bw-why-text { font-family: 'Inter'; font-size: 14px; line-height: 22px; color: var(--grey); }

/* ============= COMPARE TABLE ============= */
.bw-compare {
  background: var(--snow);
  border: 1px solid var(--stone);
  border-radius: 20px;
  overflow: hidden;
}
.bw-compare table { width: 100%; border-collapse: collapse; }
.bw-compare th, .bw-compare td {
  padding: 18px 24px;
  text-align: left;
  font-family: 'Inter'; font-size: 14px;
  border-bottom: 1px solid var(--stone);
}
.bw-compare thead th {
  background: var(--mist);
  font-family: 'Manrope'; font-weight: 700; font-size: 13px; color: var(--midnight);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bw-compare tbody tr:last-child td { border-bottom: none; }
.bw-compare td:first-child {
  font-family: 'Manrope'; font-weight: 600; color: var(--midnight); width: 32%;
}
.bw-compare .check-cell { color: var(--success); }
.bw-compare .x-cell { color: var(--alert); }
.bw-compare .neutral { color: var(--grey); }
.bw-compare .highlight { background: rgba(0,200,150,0.04); }

/* ============= FAQ ============= */
.bw-faq { display: flex; flex-direction: column; gap: 0; max-width: 920px; margin: 0 auto; }
.bw-faq-item { border-bottom: 1px solid var(--stone); }
.bw-faq-item:first-child { border-top: 1px solid var(--stone); }
.bw-faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; gap: 24px; text-align: left;
  font-family: 'Manrope'; font-weight: 600; font-size: 19px; line-height: 28px;
  color: var(--midnight);
}
.bw-faq-q:hover { color: var(--voltage); }
.bw-faq-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--mist);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--midnight);
  transition: transform 0.2s ease, background 0.2s ease;
}
.bw-faq-item.open .bw-faq-icon { background: var(--midnight); color: var(--voltage); transform: rotate(45deg); }
.bw-faq-a {
  padding: 0 0 24px 0;
  font-family: 'Inter'; font-size: 15px; line-height: 26px; color: var(--grey);
  max-width: 760px;
}

/* ============= CTA banner ============= */
.bw-cta-banner {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,200,150,0.18) 0%, transparent 50%),
    var(--midnight);
  border-radius: 24px;
  padding: 64px 72px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
  align-items: center;
  position: relative; overflow: hidden;
}
.bw-cta-h {
  font-family: 'Manrope'; font-weight: 700; font-size: 40px; line-height: 48px;
  letter-spacing: -0.02em; color: var(--snow); margin: 0 0 16px;
}
.bw-cta-h .accent { color: var(--voltage); }
.bw-cta-sub {
  font-family: 'Inter'; font-size: 16px; line-height: 26px; color: rgba(255,255,255,0.7);
  margin: 0 0 28px; max-width: 480px;
}
.bw-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bw-cta-form {
  background: var(--snow);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.bw-cta-form .form-title {
  font-family: 'Manrope'; font-weight: 700; font-size: 18px; color: var(--midnight); margin-bottom: 6px;
}

/* ============= INTERNAL LINKS BLOCK (SEO) ============= */
.bw-links-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px;
}
.bw-links-col h5 {
  font-family: 'Manrope'; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--midnight);
  margin: 0 0 16px;
}
.bw-links-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bw-links-col a {
  font-family: 'Inter'; font-size: 14px; color: var(--graphite);
  text-decoration: none;
}
.bw-links-col a:hover { color: var(--voltage); }
.bw-links-col a .arr { color: var(--grey-light); margin-left: 4px; }
