/* Homepage footer shared with the login screen. Keep its styles inside the footer. */
footer.home-footer {
  --ehbo-red: #e63946;
  --ehbo-dark: #1d3557;
  --maxw: 1280px;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  background: var(--ehbo-dark);
  color: #fff;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: normal;
  text-rendering: geometricPrecision;
}

.home-footer a {
  color: inherit;
  text-decoration: none;
}

.home-footer a:focus-visible,
.home-footer button:focus-visible {
  outline: 3px solid rgba(230, 57, 70, 0.45);
  outline-offset: 4px;
}

.home-footer .home-shell {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.home-footer .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-footer .home-btn.primary {
  background: var(--ehbo-red);
  color: #fff;
  box-shadow: 0 12px 26px rgba(230, 57, 70, 0.35);
}

.home-footer .home-btn.ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.01);
}

.home-footer .home-btn.outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.home-footer .home-btn:hover {
  transform: translateY(-2px);
}

.home-footer .footer-cta {
  background: var(--ehbo-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0;
}

.home-footer .footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-footer .footer-brand-name,
.home-footer .footer-cta .footer-cta-title {
  font-family: "Plus Jakarta Sans", "Nunito Sans", sans-serif;
}

.home-footer .footer-cta .footer-cta-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.home-footer .footer-cta p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.home-footer .footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-footer .footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, minmax(140px, 0.72fr));
  gap: 46px;
  padding: 64px 0;
}

.home-footer .footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.home-footer .brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(12, 28, 50, 0.16);
  overflow: hidden;
}

.home-footer .brand-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.home-footer .footer-brand-row .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.home-footer .brand-mark--logo::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url('/img/LOGO.png') center / contain no-repeat;
}

.home-footer .footer-brand-name {
  font-weight: 700;
}

.home-footer .footer-brand p {
  max-width: 360px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 14px;
  line-height: 1.68;
}

.home-footer .footer-contact {
  display: grid;
  gap: 10px;
}

.home-footer .footer-contact a,
.home-footer .footer-contact span,
.home-footer .footer-contact small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 13px;
  font-weight: 700;
}

.home-footer .footer-contact a {
  /* The homepage's body link rule makes contact links inherit the footer white. */
  color: #fff;
}

.home-footer .footer-contact a:hover {
  color: #fff;
}

.home-footer .footer-contact small {
  color: rgba(255, 255, 255, 0.24);
  line-height: normal;
}

.home-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.home-footer .footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-footer .footer-socials a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.home-footer .footer-col {
  display: grid;
  align-content: start;
  gap: 11px;
}

.home-footer .footer-col .footer-title {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.36);
  font-family: "Plus Jakarta Sans", "Nunito Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-footer .footer-col a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: color 0.18s ease;
}

.home-footer .footer-col a:hover {
  color: #fff;
}

.home-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 80px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.home-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.home-footer .footer-legal a {
  color: #b8c4d5;
  font-weight: 400;
}

.home-footer .footer-credit {
  display: inline-block;
  margin-top: 18px;
  color: #a8b4c7;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
}

.home-footer .footer-credit:hover,
.home-footer .footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 960px) {
  .home-footer .footer-cta-inner,
  .home-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-footer .home-shell {
    width: min(100% - 32px, var(--maxw));
  }

  .home-footer .home-btn {
    width: 100%;
  }

  .home-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 48px 0;
    gap: 30px;
  }

  .home-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .home-footer .footer-col {
    gap: 10px;
  }

  .home-footer .footer-col .footer-title {
    min-height: 14px;
    margin-bottom: 6px;
  }

  .home-footer .footer-cta {
    padding: 48px 0;
  }

  .home-footer .footer-actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-footer *,
  .home-footer *::before,
  .home-footer *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
