/* ==========================================================================
   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);
}

/* 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) {
  .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) {
  .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;
  }
}
