/* ----------[FOOTER STYLES]--------*/

/* Footer Email Form Styles */
#footer-email-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  width: 100%;
  max-width: 365px;
}

#footer-email-wrapper .email-field {
  flex: 1;
  background-color: transparent;
  border: none;
  font-family: var(--bodyFont);
  font-weight: 300;
  margin: 0;
}

#footer-email-wrapper .email-field::placeholder {
  color: var(--black);
  font-weight: 300;
}

#footer-email-wrapper .wpcf7-submit.black-arrow {
  width: 42px;
  height: 42px;
  padding-right: 0;
  background-color: transparent;
  background-image: url("../img/white-on-black-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  text-indent: -9999px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

#footer-email-wrapper .wpcf7-spinner {
  display: none;
}

footer .wpcf7 input[type="checkbox"],
footer .wpcf7-checkbox input[type="checkbox"],
footer span.wpcf7-list-item input[type="checkbox"] {
  background-color: var(--floral-white);
}

#footer-cols {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#footer-col-1 {
  max-width: 550px;
  flex: 1;
}

#footer-col-2 {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 76px;
  margin-left: auto;
}

#footer-logo {
  font-size: 35px;
  font-weight: 500;
  line-height: 35px;
  letter-spacing: 10.5px;
}

#footer-menu-wrapper {
  width: fit-content;
  display: inline-block;
}

#footer-social-container {
  width: fit-content;
  display: inline-block;
  margin-right: 40px;
}

#footer-social-links .social-links-container .social-link:hover .social-icon {
  transform: scale(1.05);
  filter: brightness(0) saturate(100%) invert(16%) sepia(89%) saturate(1547%)
    hue-rotate(188deg) brightness(95%) contrast(101%);
}

#footer-menu-wrapper .custom-menu {
  padding: 0;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#footer-menu-wrapper .custom-menu li {
  margin: 0;
  height: 27px;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

#footer-menu-wrapper .custom-menu li a {
  color: var(--black);
  font-size: 20px;
  line-height: 27px;
  padding: 0;
  transition: color 0.3s ease;
}

#footer-menu-wrapper .custom-menu li a:hover {
  color: var(--nu-blue);
}

#footer-headline {
  color: var(--jasper);
  font-weight: 400;
  font-size: 12vw;
  line-height: 1em;
  height: 100%;
}

#footer-credits-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

#footer-credits-row a {
  color: var(--black);
  transition: color 0.3s ease;
}

#footer-credits-row a:hover {
  color: var(--nu-blue);
}

/* Lilly logo - fix Safari SVG rendering */
#lilly-grant-blurb .et_pb_main_blurb_image,
#lilly-grant-blurb .et_pb_image_wrap,
#lilly-grant-blurb img {
  width: 44px !important;
  height: 44px !important;
}

/* Copyright text styling */
.copyright-text {
  font-size: var(--copyFontSmall);
  color: var(--black);
  line-height: 1em;
}

/* ----------[FOOTER MEDIA QUERIES]--------*/

/* Desktop Styles */
@media (min-width: 768px) {
  #footer-email-wrapper {
    padding: 2px 5px 2px 24px;
  }

  #footer-email-wrapper .email-field {
    font-size: var(--copyFontLarge);
    padding: 11px 10px 11px 0;
  }

  #footer-email-wrapper .email-field::placeholder {
    font-size: var(--copyFontLarge);
  }
}

/* Mobile Styles */
@media (max-width: 767px) {
  #footer-email-wrapper {
    padding: 2px 5px 2px 18px;
  }

  #footer-email-wrapper .email-field {
    font-size: var(--copyFontSmall);
    padding: 9px 8px 9px 0;
  }

  #footer-email-wrapper .email-field::placeholder {
    font-size: var(--copyFontSmall);
  }

  #footer-cols {
    flex-direction: column;
    gap: 40px;
  }

  #footer-col-1 {
    max-width: 100%;
  }

  #footer-col-2 {
    justify-content: space-between;
  }

  #footer-headline {
    font-size: 21vw;
  }

  #footer-credits-row {
    flex-direction: column;
    gap: 15px;
  }

  #lilly-grant-blurb {
    margin-bottom: 12px;
  }

  /* Reorder credits row items on mobile - Privacy Policy last */
  #footer-credits-row > *:nth-child(1) {
    order: 1;
  }

  #footer-credits-row > *:nth-child(2) {
    order: 4; /* Privacy Policy moves to last */
  }

  #footer-credits-row > *:nth-child(3) {
    order: 2;
  }

  #footer-credits-row > *:nth-child(4) {
    order: 3;
  }
}

/* Large Desktop Styles */
@media (min-width: 1576px) and (max-width: 1719px) {
  #footer-headline {
    font-size: 11vw;
  }
}
@media (min-width: 1720px) {
  #footer-headline {
    font-size: 10vw;
  }
}
