/**
 * Footer CSS
 * Mobile-Nav Pattern Slug: <!-- wp:pattern {"slug":"so/mobile-nav"} /-->
 **/

/* 
 Logo Carousel
 */
@keyframes infiniteScroll {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

.footer__carousel__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  max-width: 100vw;
  padding: 32px 0px;
}

.footer__carousel-content {
  margin-top: 0;
  max-width: unset !important;
  align-items: center;
  overflow: hidden;
  gap: 0;
}

.footer__carousel__track {
  max-width: unset !important;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  animation: infiniteScroll 70s linear infinite;
}

.footer__carousel__image {
  padding: 0 16px;
  object-fit: contain;
}

.footer__carousel__image img {
  object-fit: contain;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: .4;
}

/* 
 Nav links
 */
.footer__main-nav ul li a {
  font-size: 20px;
  transition: all 200ms ease-in-out;
}

.footer__secondary-nav ul li a {
  transition: all 200ms ease-in-out;
}

.footer__main-nav ul li a:hover,
.footer__secondary-nav ul li a:hover {
  color: #bac1ff !important;
}

.footer__secondary-nav {
  width: 100%;
}

.footer__secondary-nav li {
  width: 100%;
  justify-content: space-between;
}

.footer__secondary-nav li .wp-block-navigation-submenu__toggle {
  width: 16px;
  height: 16px;
}

.footer__cta-button a::after,
.footer__cta-button a::before {
  display: none !important;
}

/* Submenu Styles  */
.footer__secondary-nav .wp-block-navigation__submenu-container {
  width: 100% !important;
}

/* 
 Social Links
 */
footer .wp-block-social-links {
  flex-wrap: wrap;
}

footer .wp-block-social-link {
  display: flex !important;
  justify-content: center;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

footer .wp-block-social-links .wp-social-link svg {
  width: 30px;
  height: 30px;
}

footer .wp-block-social-links li {
  transition: all 200ms ease-in-out;
}

/* Hide desktop nav on mobile */
.footer__main-nav-container__desktop {
  display: none !important;
}

/* 
 Footer Secondary Nav (Mobile)
 */
.footer-secondary-nav__list ul {
  margin-top: 16px;
}

.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.2s ease,
    opacity 0.2s ease;
}

.accordion-collapse ul {
  max-height: none !important;
}

.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header .menu-toggle svg {
  transition: transform 0.3s ease;
}

/* 
 Footer Copyright nav  
 */
.footer__copyright-nav ul li a {
  transition: all 200ms ease-in-out;
}

.footer__copyright-nav ul li a:hover {
  color: #fff !important;
}

.footer__copyright-nav ul li a {
  font-size: var(--wp--preset--font-size--xs-body);
}

/* Mobile Edge Case  */
@media all and (min-width: 321px) {
  .footer__cta-button a::after {
    display: inline-block !important;
  }
}

/* 
 Tablet+ Styles
*/
@media all and (min-width: 768px) {

  /* Desktop Nav display on desktop  */
  .footer__main-nav-container__desktop {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 48px !important;
  }

  /* Mobile Nav hide on desktop  */
  .footer__main-nav-container {
    display: none !important;
  }

  .footer__primary-nav__desktop,
  .footer__secondary-nav {
    flex: 1 0 320px;
  }

  /* Hide Mobile Nav on Tablet+  */
  .footer-secondary-nav--mobile {
    display: none !important;
  }

  .footer__cta-container,
  .footer__main-nav-container,
  .footer__socials-container {
    margin-top: 72px !important;
  }

  .footer__cta-container {
    padding: 32px 48px !important;
    display: flex;
    gap: 48px;
    flex-direction: row;
  }

  .footer__wrapper {
    padding-bottom: 72px !important;
    padding-top: 72px !important;
  }
}

/* 
 Desktop+ Styles
*/
@media all and (min-width: 1024px) {
  .footer__carousel__wrapper {
    padding: 48px 24px;
  }

  .logo__logo-image {
    border-right: 2px solid #7783ea;
    padding-right: 32px !important;
    margin: 0 !important;
  }

  .footer__logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer__logo-container p {
    margin: 0 !important;
    padding-left: 32px;
  }

  .footer__cta-text p:last-of-type {
    margin-top: 0 !important;
  }

  .footer__cta-button {
    width: 274px !important;
  }

  .footer__primary-nav__desktop,
  .footer__secondary-nav {
    flex: 1 0 0px;
  }

  .footer__copyright-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}