.ebmnt1-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--ebmnt1-background-footer);
  overflow: hidden;
}

.ebmnt1-footer__texture {
  opacity: var(--ebmnt1-opacity-footer-texture);
}

.ebmnt1-footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  width: var(--ebmnt1-layout-inner-width);
  max-width: var(--ebmnt1-layout-inner-max-width);
  margin-inline: auto;
  background-color: var(--ebmnt1-background-footer-inner);
  text-align: center;
}

/* Spacing of the dark block lives on this wrapper, not on the master/inner containers */
.ebmnt1-footer__columns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  padding-block: 4rem 3rem;
}

.ebmnt1-footer__column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ebmnt1-footer__logo {
  color: var(--ebmnt1-text-footer-logo);
}

.ebmnt1-footer__text {
  max-width: 24rem;
  padding-block: 1.5rem 1.0625rem;
  color: var(--ebmnt1-text-footer-body);
}

.ebmnt1-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.ebmnt1-footer__social {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--ebmnt1-border-footer-social);
  border-radius: var(--ebmnt1-radius-circle);
  color: var(--ebmnt1-icon-footer-social);
  transition: all var(--ebmnt1-duration-button) ease;
}

.ebmnt1-footer__social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-footer-social-hover);
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--ebmnt1-duration-button) ease;
}

.ebmnt1-footer__social:hover {
  border-color: var(--ebmnt1-border-footer-social-hover);
}

.ebmnt1-footer__social:hover::before {
  opacity: 1;
  transform: scale(1);
}

.ebmnt1-footer__social .ebmnt1-icon {
  font-size: 1rem;
}

.ebmnt1-footer__heading {
  margin-block-end: 2rem;
  color: var(--ebmnt1-text-footer-heading);
  font-size: var(--ebmnt1-font-size-footer-title);
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: 1.4;
}

.ebmnt1-footer__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ebmnt1-footer__list > li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ebmnt1-footer__link {
  color: var(--ebmnt1-text-footer-link);
  transition: color var(--ebmnt1-duration-button) ease;
}

.ebmnt1-footer__link:hover {
  color: var(--ebmnt1-text-footer-link-hover);
}

.ebmnt1-footer__link-icon {
  font-size: 1.25rem;
  color: var(--ebmnt1-icon-footer-link);
}

.ebmnt1-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ebmnt1-border-footer-contact-icon);
  border-radius: var(--ebmnt1-radius-circle);
  color: var(--ebmnt1-icon-footer-contact);
  transition: all var(--ebmnt1-duration-button) ease;
}

.ebmnt1-footer__list > li:hover .ebmnt1-footer__contact-icon {
  border-color: var(--ebmnt1-border-footer-social-hover);
  background-color: var(--ebmnt1-background-footer-social-hover);
}

.ebmnt1-footer__contact-icon .ebmnt1-icon {
  font-size: 1rem;
}

.ebmnt1-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding-block: 1.75rem;
  border-top: 1px solid var(--ebmnt1-border-footer-bottom);
  color: var(--ebmnt1-text-footer-copyright);
}

.ebmnt1-footer__copyright-link {
  color: var(--ebmnt1-text-footer-copyright-link);
}

.ebmnt1-footer__bottom-menu {
  display: flex;
  gap: 1.25rem;
}

.ebmnt1-footer__bottom-link {
  color: var(--ebmnt1-text-footer-link);
  transition: color var(--ebmnt1-duration-button) ease;
}

.ebmnt1-footer__bottom-link:hover {
  color: var(--ebmnt1-text-footer-link-hover);
}

/* Credit line */
.ebmnt1-footer__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding-block: 0.5rem 2rem;
}

.ebmnt1-footer__credit-label {
  color: var(--ebmnt1-text-footer-copyright);
  font-size: var(--ebmnt1-font-size-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 3D signature badge: extruded face that tilts toward the pointer, with a hand-drawn stroke underneath */
.ebmnt1-signature {
  --ebmnt1-tilt-x: 0deg;
  --ebmnt1-tilt-y: 0deg;
  position: relative;
  display: inline-block;
  perspective: 700px;
}

.ebmnt1-signature__shadow {
  position: absolute;
  inset-inline: 8%;
  inset-block-end: -0.625rem;
  height: 0.75rem;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-signature-shadow);
  filter: blur(8px);
  transition: all var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard);
}

.ebmnt1-signature__face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  padding: 0.625rem 1rem 0.625rem 0.625rem;
  border: 1px solid var(--ebmnt1-border-signature);
  border-radius: var(--ebmnt1-radius-signature);
  background-image: var(--ebmnt1-background-signature-face);
  color: var(--ebmnt1-text-signature);
  box-shadow: var(--ebmnt1-shadow-signature-extrusion);
  transform: rotateX(var(--ebmnt1-tilt-x)) rotateY(var(--ebmnt1-tilt-y));
  transform-style: preserve-3d;
  transition: transform var(--ebmnt1-duration-medium) var(--ebmnt1-easing-standard), box-shadow var(--ebmnt1-duration-medium) ease;
}

/* Glossy highlight on the top edge */
.ebmnt1-signature__face::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--ebmnt1-background-signature-gloss);
  pointer-events: none;
}

.ebmnt1-signature__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ebmnt1-radius-signature-logo);
  background-color: var(--ebmnt1-background-signature-logo);
  color: var(--ebmnt1-icon-signature-logo);
  transform: translateZ(1.5rem);
  box-shadow: var(--ebmnt1-shadow-signature-logo);
}

.ebmnt1-signature__text {
  font-size: var(--ebmnt1-font-size-signature);
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: 1.4;
  transform: translateZ(1rem);
}

/* Signature-like underline stroke that draws itself */
.ebmnt1-signature__stroke {
  position: absolute;
  inset-inline: 6%;
  inset-block-end: -0.375rem;
  height: 3px;
  border-radius: var(--ebmnt1-radius-pill);
  background-image: var(--ebmnt1-background-signature-stroke);
  transform: scaleX(0);
  transform-origin: right center;
  animation: ebmnt1-signature-draw 4s ease-in-out infinite;
}

@keyframes ebmnt1-signature-draw {
  0% {
    transform: scaleX(0);
  }

  35%,
  70% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
    transform-origin: left center;
  }
}

.ebmnt1-signature:hover .ebmnt1-signature__face {
  box-shadow: var(--ebmnt1-shadow-signature-extrusion-hover);
}

.ebmnt1-signature:hover .ebmnt1-signature__shadow {
  inset-inline: 14%;
  opacity: 0.7;
}
@media (min-width: 768px) {
  .ebmnt1-footer__columns {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    text-align: start;
  }

  .ebmnt1-footer__column {
    align-items: flex-start;
    flex: 1 1 40%;
  }

  .ebmnt1-footer__list {
    align-items: flex-start;
  }

  .ebmnt1-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .ebmnt1-footer__columns {
    flex-wrap: nowrap;
    gap: 3rem;
    padding-block: 7rem 6.25rem;
  }

  .ebmnt1-footer__column {
    flex: 1 1 0;
  }

  .ebmnt1-footer__column--brand {
    flex: 1.5 1 0;
    padding-inline-end: 3.125rem;
  }
}
