#layout-footer {
  --footer-union-band-height: 232px;
  --footer-image-height: calc(1085px - var(--footer-union-band-height));
  width: 100%;
  min-height: 1085px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
}

#layout-footer .container {
  width: min(100%, 1281px);
  max-width: none;
  min-height: calc(1085px - var(--footer-union-band-height));
  margin: 0 auto;
  padding: 22px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 2;
  background: transparent;
}

#layout-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--footer-union-band-height);
  z-index: 0;
  /* height: auto; */
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.86) 13%, rgba(255, 255, 255, 0) 30%, rgba(55, 55, 55, 0.58) 60%, rgba(55, 55, 55, 0.9) 78%, #373737 100%),
    url("/images/footer_image_bg.jpg") center bottom / 100% 100% no-repeat;
}

.footer-intro {
  width: min(100%, 732px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  width: 160px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.footer-intro h2 {
  margin: 0;
  color: #2590A1;
  text-align: center;
  font-family: "Roboto Serif", serif;
  font-size: 44px;
  font-style: normal;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -2px;
}

.footer-intro p {
  max-width: 730px;
  margin: 0;
  color: #3C4141;
  text-align: center;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.footer-columns {
  margin-top: 35px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) minmax(230px, 1fr) minmax(250px, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

#layout-footer h4 {
  margin: 0 0 20px;
  color: #545859;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

#layout-footer .download h4,
#layout-footer .join-ministry h4 {
  color: #101112;
  font-family: Roboto, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
}

.footer-menu,
.download,
.join-ministry {
  min-width: 0;
}

.footer-links,
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links ul {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  padding-left: 16px;
}

.footer-links a {
  color: #101112;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.footer-links .footer-muted-link {
  color: #545859;
  line-height: normal;
}

#layout-footer .footer-links ul a {
  color: #000;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #2590A1;
}

.footer-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-demo-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.footer-enterprise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-enterprise img {
  width: 13px;
  height: 13px;
}

.footer-download {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  width: 152px;
  height: 50px;
  text-decoration: none;
}

.store-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-join-button {
  display: flex;
  padding: 14px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  min-height: 48px;
}

.footer-join-button .cta-arrow {
  display: inline-flex;
  align-items: center;
}

.footer-join-button .cta-arrow img {
  width: 10px;
  height: 10px;
}

.footer-bottom {
  margin-top: auto;
  min-height: 222px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.footer-union {
  width: 100%;
  height: var(--footer-union-band-height);
  flex: 0 0 var(--footer-union-band-height);
  padding-top: 75px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #373737;
}

.footer-union img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
  padding-bottom: 18px;
}

.socialmedia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.socialmedia h4 {
  margin: 0;
  color: #fff !important;
  text-align: center;
  font-family: Roboto, sans-serif;
  font-size: 22px !important;
  font-style: normal;
  font-weight: 600 !important;
  line-height: 120%;
}

.social-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-menu a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.social-menu img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.social-menu a:hover,
.social-menu a:focus-visible {
  opacity: 0.82;
}

.copyright {
  margin: 0;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-align: center;
}

.copyright a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media screen and (max-width: 1024px) {
  #layout-footer {
    --footer-union-band-height: calc(93px + 10.9375vw);
  }

  #layout-footer,
  #layout-footer .container {
    min-height: 0;
  }

  #layout-footer .container {
    padding: 28px 24px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .footer-bottom {
    min-height: 360px;
  }
}

@media screen and (max-width: 640px) {
  #layout-footer {
    --footer-union-band-height: clamp(86px, 24vw, 120px);
    min-height: 0;
    align-items: stretch;
    background: #fff;
  }

  #layout-footer::before {
    display: none;
  }

  #layout-footer .container {
    width: 100%;
    min-height: 0;
    padding: 28px 10px 0;
  }

  .footer-intro {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 0;
  }

  .footer-logo {
    width: 160px;
    height: 60px;
    margin-bottom: 20px;
  }

  #layout-footer .footer-intro h2 {
    width: 100%;
    text-align: left;
    font-family: "Roboto Serif", serif;
    font-size: 44px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 50px !important;
    letter-spacing: -2px !important;
    margin-bottom: 10px;
  }

  #layout-footer .footer-intro p {
    max-width: none;
    text-align: left;
    color: #3C4141;
    font-family: Roboto, sans-serif;
    font-size: 18px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 28px !important;
  }

  #layout-footer h4,
  #layout-footer .download h4,
  #layout-footer .join-ministry h4 {
    margin: 0;
    font-size: 22px;
    line-height: 120%;
  }

  #layout-footer h4 {
    color: #545859;
    font-weight: 700;
  }

  #layout-footer .download h4,
  #layout-footer .join-ministry h4 {
    color: #101112;
    font-weight: 600;
  }

  .footer-columns {
    margin-top: 45px;
    display: block;
  }

  .footer-menu + .footer-menu {
    margin-top: 11px;
  }

  .download,
  .join-ministry {
    margin-top: 54px;
  }

  .footer-menu h4 {
    display: flex;
    padding: 10px 0;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-bottom: 1px solid #D8DDDD;
  }

  .footer-links {
    gap: 11px;
  }

  .footer-links > li {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 0;
  }

  .footer-menu[aria-label="Quick links"] .footer-links > li:nth-child(2),
  .footer-menu[aria-label="Quick links"] .footer-links > li:nth-child(3) {
    border-bottom: 1px solid #D8DDDD;
  }

  .footer-links ul {
    margin-top: 0;
    gap: 10px;
    padding-left: 14px;
  }

  .footer-links a {
    font-size: 20px;
    line-height: 24px;
  }

  .footer-links .footer-muted-link {
    font-size: 18px;
    line-height: normal;
  }

  #layout-footer .footer-links ul a {
    font-size: 20px;
    line-height: normal;
  }

  .footer-enterprise img {
    width: 10px;
    height: 10px;
  }

  .download h4,
  .join-ministry h4 {
    margin-bottom: 20px !important;
  }

  .footer-download {
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .store-badge {
    width: min(152px, calc((100vw - 40px) / 2));
    height: auto;
    aspect-ratio: 152 / 50;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
  }

  .store-badge img {
    width: 100%;
    height: 100%;
  }

  #layout-footer .join-ministry h4 {
    text-align: center;
  }

  .footer-join-button {
    min-height: 0;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    font-size: 18px;
    line-height: 24px;
  }

  .footer-bottom {
    width: calc(100% + 20px);
    min-height: clamp(330px, 104vw, 420px);
    margin: 40px -10px 0;
    padding: clamp(150px, 44vw, 210px) 12px 42px;
    justify-content: flex-end;
    border-bottom: 0;
    background:
      linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 7%, rgba(255, 255, 255, 0) 22%, rgba(55, 55, 55, 0) 58%, #373737 88%, #373737 100%),
      url("/images/mobile_footer_img_bg.png") center bottom / 100% calc(100% + clamp(300px, 90vw, 430px)) no-repeat
      #373737;
  }

  .footer-union {
    height: var(--footer-union-band-height);
    margin-top: -1px;
    padding-top: clamp(24px, 8vw, 40px);
    border-top: 0;
  }

  .footer-union img {
    height: clamp(52px, 16vw, 78px);
  }

  .socialmedia {
    gap: 24px;
  }

  .socialmedia h4 {
    font-size: 22px !important;
    line-height: 120%;
  }

  .social-menu {
    gap: clamp(12px, 5vw, 20px);
  }

  .social-menu a {
    width: clamp(34px, 10.5vw, 40px);
    height: clamp(34px, 10.5vw, 40px);
  }

  .copyright {
    max-width: 390px;
    font-size: clamp(12px, 3.8vw, 16px);
    line-height: 120%;
  }
}
