/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #242424;
  font-size: 0.98;
  font-family: manrope, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.site-content {
  padding: 0;
}

.site-header {
  width: 100%;
}

.header-stripe {
  width: 100%;
  height: 33px;
  overflow: hidden;
}

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

.header-container {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 80px;
  padding: 0 2.5vw;
  gap: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 9999;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #000;
  display: block;
  border-radius: 2px;
}

/* Mobile Nav Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -250px;
  height: 100vh;
  width: 250px;
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 10000;
  transition: left 0.3s ease;
}

.mobile-nav.show {
  left: 0;
}

.mobile-nav a {
  padding: 10px 0;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1.1em;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.menu-overlay.show {
  display: block;
}

.navbar {
  display: block;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.nav-links a:hover {
  color: #3284C2;
}

.nav-links a:active {
  color: #1b5e92;
}

.header-spacer {
  height: 1px;
  margin-top: 30px;
  margin-bottom: 40px;
  background-color: #E1E1E1;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.intro-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding: 6px 0 40px 40px;
  max-width: 100%;
  margin: auto;
  flex-wrap: wrap;
}

.intro-left,
.intro-right {
  flex: 1 1 45%;
  min-width: 300px;
  margin-top: 16px;
}

.intro-left h2,
.intro-right h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: 700;
  margin-top: 0;
}

.intro-left p,
.intro-right p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.logo-separator {
  margin: 20px 0;
  border: 0;
  height: 1px;
  background: #ddd;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.logo-row img {
  height: 32px;
}

.state-image img {
  max-width: 160px;
  height: auto;
}

.intro-text {
  max-width: 500px;
}

.vertical-separator {
  width: 1px;
  background-color: #ddd;
  height: auto;
  align-self: stretch;
}


.footer-contact {
  margin-top: 60px;
  padding: 20px 2.5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-location-container,
.find-us-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-social {
  height: 32px;
}

.copyright-container {
  text-align: center;
  padding: 10px 0;
  background-color: #f5f5f5;
}

.copyright {
  font-size: 14px;
  color: #666;
}

#cardGrid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-grid-background {
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  justify-content: center;
}


.manufacturer-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  height: 100%;
}



.card-grid-wrapper {
  max-width: 1400px;   /* Wider container */
  padding: 0 20px;     /* Reduce side padding */
  margin: 0 auto;      /* Center it */
}


.category-headline {
  width: 100%;
  font-size: 1.3em;
  font-weight: bold;
  color: #000;
  margin-bottom: 0;
  text-align: left;
}

.divider-line {
  width: 100%;
  height: 1px;
  background-color: #E1E1E1;
  margin-bottom: 20px;
}

.manufacturer-logo-container {
  text-align: center;
}

.manufacturer-logo {
  width: auto;
  height: 61px;
  object-fit: contain;
  margin-bottom: 15px;
}

.manufacturer-info-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.manufacturer-products {
  font-size: 0.95em;
  margin-bottom: 10px;
  min-height: 68px;
}

.spacer-line {
  height: 1px;
  background-color: #E1E1E1;
  margin-bottom: 10px;
}

.territory-freight-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.freight-icon-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.icon-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85em;
}

.icon-group img {
  height: 20px;
}

.flex-spacer {
  flex-grow: 1;
}

.card-btn-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-btn-link {
  flex: 1;
  text-align: center;
  background-color: #0071BC;
  color: white;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.card-btn-link:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

.category-header-wrapper {
  display: flex;
  align-items: center;         /* ensures vertical centering */
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 0 2.5vw;
  min-height: 50px;            /* gives the row enough height to center items */
}

.category-header-wrapper h2 {
  margin: 0;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1.2;            /* slightly looser than 1, helps with visual alignment */
  display: flex;
  align-items: center;         /* centers the heading text vertically */
}

.desktop-filter-buttons {
  display: flex;
  align-items: center;         /* vertically center buttons */
  gap: 10px;
  margin: 0;
  padding: 0;
}

.filter-btn {
  padding: 8px 14px;
  margin: 0;
  font-size: 0.95rem;
  background-color: #e5e5e5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;         /* ensures button text is vertically centered */
  height: 42px;                /* match height across buttons if needed */
}


.filter-btn:hover {
  background-color: #ccc;
}

.filter-btn.active {
  background-color: #007BFF;
  color: #fff;
}

.lighting-headline {
  padding-left: 1.3vw;
}



.scroll-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: background 0.3s;
}

.scroll-hint:hover {
  background: #f0f0f0;
}

.scroll-hint svg {
  width: 24px;
  height: 24px;
}

.hero-carousel {
  max-width: 100%;
  margin: 40px auto 0 auto;
  padding: 0;
  overflow: hidden;
}

.carousel-track img {
  flex: 0 0 auto;
  width: auto;
  height: 320px;
  max-height: 35vh;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: none;
}

/* Make track scroll smoother and loopable */
.carousel-track {
  display: flex;
  animation: scrollLeft 50s linear infinite;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.mobile-nav-logo {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.mobile-nav-logo img {
  max-width: 160px;
  height: auto;
  display: inline-block;
}

.mobile-nav a {
  display: inline-block;
  margin: 10px 0;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit; /* ✅ inherit your site's theme */
}

  .social-map {
    height: 36px;
    color: #242424;
  }

  .accordion-wrapper {
  margin: 0 auto;
  padding: 0 2.5vw;
}

.accordion {
  border: none;
  margin-bottom: 20px;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  font-size: 1.2rem;
  padding: 16px;
  background: #3284C2;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.accordion[open] .accordion-header {
  background: #1f5a8c;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 2.5vw;
  margin-left: auto;
  margin-right: auto;
}

.page-section-heading {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0;
}

/* Sort dropdown */
.sort-dropdown {
  position: relative;
  border: 1px solid #c0c0c0;
  border-radius: 0;
}

.sort-toggle-btn {
  background: #f0f0f0;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  
  border-radius: 0;
}

.sort-dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border: 1px solid #c0c0c0;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  z-index: 1000;
  min-width: 160px;
}

.sort-dropdown-menu a {
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  display: block;
  
  border-radius: 0;
}

.sort-dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/* Show on button hover or JS toggle */
.sort-dropdown.open .sort-dropdown-menu {
  display: flex;
}

.sticky-sort {
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: rgb(255, 255, 255);
  padding: 16px 2.5vw;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.07); /* optional subtle shadow */
}


/* ===== Catalog Modal ===== */
.catalog-modal { 
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}
.catalog-modal.show { display: flex; }
.catalog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.catalog-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: calc(100% - 40px);
  padding: 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  font-family: inherit;
  margin: auto;
}
.catalog-modal__title { margin: 0 0 12px 0; font-size: 1.25rem; }
.catalog-modal__links { display: grid; gap: 10px; margin-top: 10px; }
.catalog-modal__link {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; padding: 12px 14px; border: 1px solid #e3e3e3; border-radius: 6px;
  color: #222;
}
.catalog-modal__link:hover { background: #f7f7f7; border-color: #d6d6d6; }
.catalog-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 22px; cursor: pointer; line-height: 1;
}
@media (max-width: 480px) {
  .catalog-modal__dialog { margin: 6vh auto; padding: 18px; }
}




@keyframes scrollLeft {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }


@media (max-width: 1199px) {

  main {
    padding: 0 5vw;
  }

  .navbar {
    display: none;
  }
  .header-container {
    justify-content: center;
  }

  .header-spacer {
    margin-bottom: 40px;
  }
  .intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    text-align: center;
  }

  .intro-left,
  .intro-right {
    width: 100%;
    max-width: 700px;
    margin: 0;
    text-align: left;
  }

  .intro-left h2,
  .intro-right h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .intro-left p,
  .intro-right p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .logo-row {
    justify-content: left;
    gap: 20px;
  }

    .logo-row img {
      max-height: 32px;
  }

  .vertical-separator {
    display: none;
  }

  .intro-right {
    flex-direction: column !important;
    gap: 20px !important;
    display: flex !important;
    align-items: left;
    margin-right: none;
    margin-left: none;
  }

  .intro-text {
    width: 100%;
    max-width: unset;
  }
.territory-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;     /* <-- this allows children to fill full width */
  margin-top: 20px;
  width: 100%;
}


.territory-buttons .filter-btn {
  width: 100%;
  max-width: 100%;          /* <-- ensures no upper bound */
  padding: 21px 20px;
  font-size: 1rem;
  text-align: center;
  justify-content: center;
  background-color: #3284C2;
  color: white;
  box-sizing: border-box;
}


  .state-image {
    display: none;
  }  .hamburger {
    display: flex;
    order: 1;
  }

  .logo {
    order: 2;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex: 1;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
  }

  .footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin: 10px auto;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 700px;
    padding: 64px 5vw 0 5vw;
  }

  .footer-location-container,
  .find-us-container {
    width: auto;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .find-us-container {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 0;
    height: 32px;
  }

  .contact-social {
    height: 32px;
    padding-right: 4px;
    display: inline-block;
  }

  .copyright-container {
    text-align: center;
    padding: 20px 5vw;
    font-size: 0.9rem;
  }

.carousel-wrapper {
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  animation: scrollLeft 100s linear infinite;
  gap: 5px;
  pointer-events: none;
  width: fit-content;
    width: max-content;
}
.carousel-track img {
  width: 100%;
  max-width: 700px;
  height: auto;
  max-height: none;               /* ← Remove height restriction */
  aspect-ratio: 16 / 9;           /* ← Ensures a consistent visible size */
  object-fit: cover;
  flex-shrink: 0;
}

.content-spacer {
  display: none;
}


@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* this assumes two full image sets */
}



.card-grid-wrapper {
  padding: 0 5vw;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
  padding-bottom: 40px;
}

.manufacturer-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.manufacturer-logo {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}


}@media (min-width: 1200px) and (max-width: 1300px) {
  .intro-section {
    flex-wrap: nowrap;
    gap: 30px; /* reduce spacing if needed */
    padding: 30px 20px;
  }

  .intro-left,
  .intro-right {
    flex: 1 1 50%;
    max-width: 50%;
    margin: 0;
  }

  .vertical-separator {
    display: block;
  }
}
