/* Page footer styles */
footer.vha-footer {
  align-self: end;
  display: flex;
  flex-direction: column;
}

footer.vha-footer * {
  margin: 0;
  padding: 0;
}

div.vha-footer-upper-section-container {
  background-color: var(--vha-lt-gray);
  width: 100vw;
}

div.vha-footer-upper-section {
  max-width: var(--vha-content-width);
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 12fr));
  align-items: center;
  gap: 32px;
}

div.vha-footer-social-links {
  grid-column: span 3 / span 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

div.vha-footer-social-links p {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 18px;
}

div.vha-footer-social-links a {
  display: flex;
}

div.vha-footer-social-links svg {
  width: 48px;
  height: 48px;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 250ms;
  transform-origin: center;
  fill: var(--vha-blue) !important;
}

div.vha-footer-social-links svg:hover {
  transform: scale(1.1);
}

div.vha-footer-logo {
  grid-column: span 6 / span 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

div.vha-footer-logo * {
  font-size: 16px;
}

div.vha-footer-logo a {
  display: flex;
}

div.vha-footer-logo img {
  max-width: 200px;
  height: auto;
}

div.vha-footer-contact {
  grid-column: span 3 / span 3;
  display: flex;
  justify-content: flex-end;
}

div.vha-footer-lower-section-container {
  background-color: var(--vha-md-gray);
  width: 100%;
}

div.vha-footer-lower-section {
  max-width: var(--vha-content-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: center;
}

div.vha-footer-lower-section * {
  list-style-type: none;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
}

div.vha-footer-links-menu ul#menu-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

div.vha-footer-links-menu ul#menu-footer-links a {
  background-image: linear-gradient(transparent, transparent), linear-gradient(black, black);
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  border-bottom-width: 0;
  transition: background-size 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

div.vha-footer-links-menu ul#menu-footer-links a:hover {
  background-size: 100% 2px
}

div.vha-footer-links-menu li,
div.vha-footer-links-menu li * {
  white-space: nowrap;
}

div.vha-footer-links-menu li:not(:nth-last-child(2)):not(.vha-footer-menu-break)::after {
  content: "•";
  display: inline-block;
  transform: translateY(-1px);
  color: #111;
  padding: 0 8px;
}

p.vha-footer-secondary-footer-text {
  display: none;
}

li.vha-footer-menu-break {
  display: none;
}

@media screen and (max-width: 899px) {
  div.vha-footer-upper-section {
    display: flex;
    flex-direction: column;
  }

  div.vha-footer-social-links {
    justify-content: center;
  }

  div.vha-footer-logo {
    display: none;
  }

  div.vha-footer-contact {
    justify-content: center;
  }

  a.vha-footer-contact-button {
    transform: translateY(-4px);
  }

  p.vha-footer-secondary-footer-text {
    display: flex;
    justify-content: center;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
  }
}

@media screen and (max-width: 679px) {
  div.vha-footer-links-menu li:nth-child(3)::after {
    display: none !important;
  }

  div.vha-footer-links-menu li:nth-child(4) {
    display: block;
    width: 100%;
    height: 4px;
  }
}

@media screen and (max-width: 419px) {
  div.vha-footer-links-menu li:nth-child(5)::after {
    display: none !important;
  }

  div.vha-footer-links-menu li:nth-child(6) {
    display: block;
    width: 100%;
    height: 4px;
  }
}

div.vha-footer-newsletter .newsletter-signup {
  background-color: var(--vha-lt-gray);
  padding: 32px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.vha-footer-newsletter .newsletter-signup form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  width: 100%;
}

div.vha-footer-newsletter .newsletter-signup input[type="email"] {
  flex: 1 1 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 0;
  font-size: inherit;
  height: 40px;
  padding: 0 8px;
  margin: 0;
}

section.newsletter-signup button {
  margin-bottom: 0 !important;
}

div.vha-footer-newsletter .newsletter-signup label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 599px) {
  div.vha-footer-newsletter .newsletter-signup form {
    flex-wrap: wrap;
    gap: 16px;
  }

  div.vha-footer-newsletter .newsletter-signup input[type="email"],
  div.vha-footer-newsletter .newsletter-signup button {
    width: 100%;
  }
}

@media (max-width: 447px) {
  div.vha-footer-newsletter .newsletter-signup {
    padding: 32px 16px;
  }
}
