/* =================================================================
   Elway Footer — White Background Redesign
   Mobile-first. Breakpoints: 769px (tablet), 1025px (desktop)
   ================================================================= */

/* --- Footer wrapper --- */
.ew-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 48px 16px 0;
}

.ew-footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Four-column layout --- */
.ew-footer-columns {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ew-footer-col-logo {
  flex: 0 0 auto;
}

.ew-footer-col h3 {
  font-size: 18px;
  font-weight: 500;
  color: #101828;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

/* --- Footer logo --- */
.ew-footer-logo {
  display: block;
}

.ew-footer-logo img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* --- Items with icons --- */
.ew-footer-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ew-footer-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent, #2563eb);
}

.ew-footer-item-text {
  font-size: 16px;
  line-height: 24px;
  color: #364153;
}

.ew-footer-item-text .ew-footer-name {
  color: #101828;
}

.ew-footer-item-text a {
  color: #364153;
  text-decoration: none;
}

.ew-footer-item-text a:hover {
  color: var(--accent, #2563eb);
}

/* --- Hours sub-values (indented under icon) --- */
.ew-footer-hours-value {
  font-size: 16px;
  line-height: 24px;
  color: #364153;
  margin: 0 0 12px;
  padding-left: 28px;
}

/* --- Copyright bar --- */
.ew-footer-copyright {
  border-top: 1px solid #e5e7eb;
  margin-top: 32px;
  padding: 32px 0;
  text-align: center;
}

.ew-footer-copyright p {
  font-size: 16px;
  color: #4a5565;
  margin: 0;
}

/* --- Brand bar (sticky carousel) --- */
.footer-bottom-bar-wrap {
  background-color: #111;
  overflow: hidden;
}

.footer-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background-color: #111;
  box-sizing: border-box;
  z-index: 10;
}

.footer-bottom-bar.docked {
  position: relative;
  left: auto;
  right: auto;
}

/* Scrollable track — centering via flex-grow spacers, not justify-content
   (justify-content: center causes unreachable left overflow) */
.brand-bar-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 12px 16px;
}

.brand-bar-track::before,
.brand-bar-track::after {
  content: '';
  flex: 1 0 0px;
}

.brand-bar-track::-webkit-scrollbar {
  display: none;
}

/* Arrow buttons */
.brand-bar-arrow {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 100%;
  border: none;
  background: linear-gradient(to right, #111 60%, transparent);
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.brand-bar-arrow-right {
  background: linear-gradient(to left, #111 60%, transparent);
}

.brand-bar-arrow:hover {
  color: #fff;
}

/* OEM links */
.oem {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: center;
  flex-shrink: 0;
}

.oem:hover {
  color: var(--accent, #006883);
}

img.oemimg {
  height: 24px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}

/* --- Legal bar --- */
.footer-bottom-line {
  color: #666;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 12px 16px;
  margin: 0;
  background-color: #fff;
  font-size: 13px;
}

.footer-bottom-line a,
.footer-last-part {
  color: #666;
  text-decoration: none;
}

.footer-bottom-line a:hover {
  color: var(--accent, #006883);
}

/* --- Socials --- */
.ew-footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.ew-footer-socials a {
  color: #364153;
  font-size: 20px;
}

.ew-footer-socials a:hover {
  color: var(--accent, #2563eb);
}

/* =================================================================
   TABLET (769px+)
   ================================================================= */
@media (min-width: 769px) {
  .ew-footer-columns {
    flex-direction: row;
    gap: 2rem;
  }

  .ew-footer-col {
    flex: 1;
  }

  .brand-bar-track {
    gap: 2rem;
  }

  .brand-bar-arrow {
    width: 36px;
    font-size: 28px;
  }

  .footer-bottom-line {
    gap: 24px;
  }

  .oem {
    font-size: 16px;
  }

  img.oemimg {
    height: 28px;
    max-width: 140px;
  }
}

/* =================================================================
   DESKTOP (1025px+)
   ================================================================= */
@media (min-width: 1025px) {
  .brand-bar-track {
    gap: 4rem;
  }

  .brand-bar-arrow {
    width: 44px;
    font-size: 32px;
  }

  .oem {
    font-size: 18px;
  }

  img.oemimg {
    height: 32px;
    max-width: 160px;
  }
}

/* --- Brand side tabs (mobile: horizontal under nav / desktop: vertical left column) --- */

/* Hidden on mobile — desktop vertical column only */
.brand-side-tabs {
  display: none;
}
.brand-side-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-height: 110px;
  padding: 16px 0;
  background: #1a1a1a;
  text-decoration: none;
  border-radius: 0 5px 5px 0;
  transition: opacity 0.2s ease;
  overflow: visible;
}
.brand-side-tab:hover { opacity: 0.85; }

/* Palette colors — must come after base .brand-side-tab to override background */
.brand-side-tab--c1 { background: #006883; }
.brand-side-tab--c2 { background: #192B3B; }
.brand-side-tab--c3 { background: #8BA7C7; }
.brand-side-tab--c3 .brand-side-tab__name,
.brand-side-tab--c3 .brand-side-tab__sub-link { color: #192B3B; }
.brand-side-tab__name {
  writing-mode: horizontal-tb;
  transform: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.9;
  font-family: sans-serif;
}
.brand-side-tab__sub { display: none !important; }

/* Desktop: vertical right column */
@media (min-width: 1200px) {
  .brand-side-tabs {
    display: flex;
    position: fixed;
    top: 200px;
    right: 0;
    left: auto;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
  }
  .brand-side-tab {
    border-radius: 5px 0 0 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .brand-side-tab:hover {
    opacity: 1;
    transform: translateX(-4px);
    box-shadow: -3px 0 12px rgba(0,0,0,0.45);
  }
  .brand-side-tab__name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    letter-spacing: 0.09em;
    opacity: 0.88;
    transition: opacity 0.2s ease;
  }
  .brand-side-tab:hover .brand-side-tab__name { opacity: 1; }
}

.brand-side-tab__sub-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.88;
  transition: background 0.15s ease, opacity 0.15s ease;
  font-family: sans-serif;
}
.brand-side-tab__sub-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.12);
}

/* =================================================================
   TWO-STORE CONTACT (NOCO Powersports + Interstate Honda)
   Renders the Contact column as two color-edged cards side-by-side
   when a secondary phone is configured for the host.
   ================================================================= */
.ew-footer-stores {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.ew-footer-store {
  padding-left: 12px;
  border-left: 3px solid currentColor;
}

.ew-footer-store--noco {
  color: var(--accent, #006883);
}

.ew-footer-store--secondary {
  color: var(--secondary-phone-color, #cc0000);
}

.ew-footer-store-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: inherit;
  line-height: 1.25;
}

.ew-footer-store-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
}

.ew-footer-store-phone svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.ew-footer-store-phone:hover {
  opacity: 0.85;
}
