.site-footer {
  background-color: var(--nv-blue);
  color: var(--nv-white);
}

.footer-main {
  padding-bottom: var(--space-md);
}

.footer-nav-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.footer-heading {
  font-weight: 700;
  color: var(--nv-white);
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-widget li {
  margin-bottom: var(--space-xs);
}
.footer-widget a {
  color: var(--nv-white);
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word;
}
.footer-widget a:hover {
  color: var(--nv-orange-light);
}

.footer-mobile-social {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-mobile-social .footer-heading {
  margin: 0;
  padding: var(--space-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  text-align: center;
}
.footer-mobile-social .footer-heading::after {
  content: "+";
  color: var(--nv-orange);
}
.footer-mobile-social[aria-expanded="true"] .footer-heading::after {
  content: "-";
}
.footer-mobile-social .footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-md);
}
.footer-mobile-social[aria-expanded="true"] .footer-social {
  max-height: 200px;
  opacity: 1;
  padding: 0 var(--space-md) var(--space-sm);
}
.footer-mobile-social .footer-social a {
  color: var(--nv-white);
  transition: color 0.3s ease;
}
.footer-mobile-social .footer-social a:hover {
  color: var(--nv-orange-light);
}

.footer-mobile-accordion {
  display: none;
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-acc-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-acc-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--nv-white);
  text-align: center;
}

.footer-acc-title {
  font-weight: 700;
  color: var(--nv-white);
  justify-self: center;
  margin: 0;
}

.footer-acc-icon {
  color: var(--nv-orange);
}

.footer-acc-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-md) var(--space-sm);
}

.footer-acc-items p {
  margin: 0 0 var(--space-xs) 0;
}
.footer-acc-items p:last-child {
  margin-bottom: 0;
}
.footer-acc-items a {
  color: var(--nv-white);
  text-decoration: none;
}
.footer-acc-items a:hover {
  color: var(--nv-orange-light);
}

.footer-locations {
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  margin: var(--space-sm) 0 var(--space-md) 0;
  background: var(--nv-blue);
  color: var(--nv-white);
}
.footer-locations .footer-heading {
  text-align: center;
}
.locations-accordion {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  align-items: start;
}
.location-group {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--nv-blue);
  display: flex;
  flex-direction: column;
}
.location-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--nv-white);
  gap: var(--space-xs);
  transition: background 0.3s ease;
  text-align: center;
}
.location-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.location-toggle .state-link {
  color: var(--nv-white);
  text-decoration: none;
}
.location-toggle .state-link:hover {
  color: var(--nv-orange-light);
}
.location-toggle .toggle-icon {
  color: var(--nv-orange);
}
.location-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 var(--space-sm);
}
.location-toggle[aria-expanded="true"] + .location-cities {
  opacity: 1;
  padding: 0 var(--space-sm) var(--space-md);
  max-height: 1000px !important;
}
.location-cities .city-link {
  display: block;
  color: var(--nv-white);
  text-decoration: none;
}
.location-cities .city-link:hover {
  color: var(--nv-orange-light);
}

.mobile-locations-wrap {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-locations-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--nv-white);
  text-align: center;
}
.mobile-locations-toggle .footer-heading {
  font-weight: 700;
  justify-self: center;
  margin: 0;
}
.mobile-locations-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-sm) var(--space-sm);
}
.mobile-locations-panel .footer-locations {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.mobile-locations-panel .footer-locations .footer-heading {
  display: none;
}

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: var(--nv-white);
}

.scroll-to-top {
  position: fixed;
  bottom: var(--space-5xl);
  right: var(--space-md);
  width: var(--space-lg);
  height: var(--space-lg);
  background-color: var(--nv-orange);
  color: var(--nv-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10%);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background-color: var(--nv-orange-light);
}

@media (max-width: 1024px) {
  .scroll-to-top {
    bottom: calc(96px + var(--space-lg) + env(safe-area-inset-bottom, 0px));
	z-index: 900;
	right: calc(var(--space-md) - 2px);
  }
}

@media (max-width: 900px) {
  .footer-nav-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .locations-accordion {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

@media (min-width: 901px) {
  .footer-nav-widgets .footer-social {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: var(--space-sm) var(--space-md);
    justify-content: center;
    justify-items: center;
    width: max-content;
    margin: 0 auto;
  }

  .footer-nav-widgets .footer-social > * {
    line-height: 1;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-nav-widgets {
    display: none;
  }
  .footer-mobile-accordion {
    display: block;
    order: 1;
  }
  .footer-mobile-social {
    display: block;
    order: 2;
  }
  .mobile-locations-wrap {
    display: block;
    order: 3;
  }
  .footer-bottom {
    order: 99;
  }
  .footer-locations-desktop {
    display: none;
  }
  .locations-accordion {
    grid-template-columns: 1fr;
  }
  .site-footer .container {
    display: flex;
    flex-direction: column;
  }
	
  .footer-mobile-social {
    display: none !important;
  }

  .footer-acc-group-social { order: 2; }
  .footer-acc-panel .footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
  }
  .footer-acc-panel .footer-social a {
    color: var(--nv-white);
    transition: color 0.3s ease;
  }
  .footer-acc-panel .footer-social a:hover {
    color: var(--nv-orange-light);
  }
}