/* ==========================================================================
   Homepage Sections — Hero Carousel, Brand Strip, OEM Checkerboard, Map
   ========================================================================== */

/* 1. Hero Slideshow (.home-slideshow) */
.home-slideshow {
  position: relative;
  width: 100%;
  background: var(--color-black);
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  aspect-ratio: 1920 / 800;
  max-height: 680px;
  min-height: 360px;
  background: #090909;
}

.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-disclaimer-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(15, 22, 34, 0.88);
  color: var(--color-white);
  border: none;
  padding: 10px 18px;
  font-size: 0.82rem;
  cursor: pointer;
  z-index: 6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-disclaimer-btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 54px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.82);
  color: var(--color-gold);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 8;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.active {
  background: var(--color-gold);
  transform: scale(1.25);
}

/* 2. Brand Showcase Strip (.section-logos) */
.section-logos {
  padding: 46px 24px 36px;
  background: var(--color-white);
}

.logos-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.logo-tile {
  border: 1px solid var(--color-border);
  margin-left: -1px;
  padding: 42px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  min-height: 175px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-tile:first-child {
  margin-left: 0;
  border-radius: 10px 0 0 10px;
}

.logo-tile:last-child {
  border-radius: 0 10px 10px 0;
}

.logo-tile:hover {
  background-color: #fafafa;
  box-shadow: inset 0 -3px 0 var(--color-gold);
  z-index: 2;
}

.logo-tile img {
  max-height: 82px;
  max-width: 135px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo-tile:hover img {
  transform: scale(1.06);
}

/* 2b. Featured Like-New BBA Showcase (.section-featured-bba) */
.section-featured-bba {
  background: #f7f6f3;
  padding: 56px 24px 62px;
  border-top: 1px solid #e9e6df;
  border-bottom: 1px solid #e9e6df;
}

.bba-showcase-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.bba-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.bba-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
  background: var(--color-gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.bba-showcase-head h2 {
  font-size: 1.72rem;
  color: #111111;
  margin: 0 0 8px;
}

.bba-showcase-head p {
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

.bba-brand-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bba-pill-link {
  padding: 8px 16px;
  border: 1px solid #d4cfc4;
  border-radius: 999px;
  background: var(--color-white);
  color: #111111;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bba-pill-link:hover {
  border-color: var(--color-gold);
  background: #111111;
  color: var(--color-gold);
}

.bba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bba-card {
  background: var(--color-white);
  border: 1px solid #e6e2da;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bba-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09);
}

.bba-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #ececec;
  overflow: hidden;
}

.bba-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.bba-card:hover .bba-card-media img {
  transform: scale(1.03);
}

.bba-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-gold);
  color: #000000;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.bba-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bba-card-make {
  font-size: 0.78rem;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bba-card-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: #111111;
  text-decoration: none;
  margin-bottom: 6px;
  line-height: 1.35;
}

.bba-card-title:hover {
  color: #8c7648;
}

.bba-card-meta {
  font-size: 0.8rem;
  color: #5a4b2c;
  font-weight: 600;
  margin-bottom: 8px;
}

.bba-card-desc {
  font-size: 0.84rem;
  color: #555555;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.bba-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.bba-card-price {
  display: flex;
  flex-direction: column;
}

.bba-price-val {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: #000000;
  line-height: 1.1;
}

.bba-price-note {
  font-size: 0.72rem;
  color: #8c7648;
  font-weight: 600;
  margin-top: 3px;
}

/* 3. OEM Editorial Checkerboard (.section-oemcontent) */
.section-oemcontent {
  background: var(--color-white);
  padding: 20px 0 40px;
  overflow: hidden;
}

.oem-row {
  max-width: var(--container-max);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 580px;
}

.oem-text-col {
  padding: 50px 64px;
  max-width: 680px;
  margin: 0 auto;
}

.oem-text-col h1,
.oem-text-col h2 {
  font-size: 1.78rem;
  color: #111111;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-gold);
}

.oem-text-col p {
  font-size: 0.96rem;
  line-height: 1.72;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.oem-text-col .btn-gold {
  margin-top: 10px;
  padding: 13px 26px;
  font-size: 0.92rem;
}

.oem-img-col {
  height: 100%;
  min-height: 580px;
  overflow: hidden;
}

.oem-img-col img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.oem-row:hover .oem-img-col img {
  transform: scale(1.02);
}

.oem-row.img-right .oem-img-col {
  border-radius: 10px 0 0 10px;
}

.oem-row.img-left .oem-img-col {
  border-radius: 0 10px 10px 0;
}

/* Scroll-reveal animation (always visible, subtle motion polish when entering) */
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* 4. Map & Get Directions (.section-map) */
.section-map {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 60px 56px;
  background: var(--color-white);
}

.map-frame-wrap {
  width: 100%;
  height: 440px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid #dddddd;
  border-bottom: none;
  background: #e9ecef;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions-bar {
  background-color: #4d4d4d;
  color: var(--color-white);
  border-radius: 0 0 10px 10px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.directions-bar h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-white);
}

.directions-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.directions-form input {
  width: 280px;
  max-width: 75vw;
  padding: 12px 20px;
  border-radius: 2em;
  border: none;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.9rem;
}

.directions-form input:focus {
  outline: 2px solid var(--color-gold);
}

.directions-form button {
  padding: 12px 26px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .bba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-tile:first-child,
  .logo-tile:last-child {
    border-radius: 0;
  }
  .oem-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .oem-row.img-left .oem-img-col {
    order: 2;
  }
  .oem-row .oem-img-col,
  .oem-row .oem-img-col img {
    min-height: 360px;
    border-radius: 0 !important;
  }
  .oem-text-col {
    padding: 36px 24px;
  }
  .section-map {
    padding: 12px 20px 40px;
  }
}

@media (max-width: 640px) {
  .bba-grid {
    grid-template-columns: 1fr;
  }
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-slide {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
  .hero-arrow {
    width: 36px;
    height: 40px;
    font-size: 1.1rem;
  }
}
