/**
 * @file
 * Footer, content-below band and back-to-top button.
 */
.site-footer {
  color: #d8d1c1;
  background: var(--hh-navy);
  --c-heading: var(--hh-cream);
  --c-text-muted: #a9a59b;
  --c-link: var(--hh-cream);
  --c-link-hover: var(--hh-green);
  --c-focus: var(--hh-green);
  --c-raised: var(--hh-navy-soft);
  --c-border: rgb(255 244 221 / 14%);
}

.site-footer__top {
  padding-top: 2.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem);
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.site-footer__logo picture:first-child {
  width: 3.75rem;
}

.site-footer__logo picture:last-child {
  width: 12.5rem;
}

.site-footer__name {
  color: var(--hh-cream);
  font-size: 1.5rem;
  font-weight: 850;
}

.site-footer__tagline {
  max-width: 26rem;
  font-size: 0.95rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .block__title {
  color: var(--hh-tan);
}

.site-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col li + li {
  margin-top: 0.45rem;
}

.site-footer__bottom {
  color: #a9a59b;
  background: var(--hh-navy-deep);
  font-size: var(--fs-sm);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}

.site-footer__bottom-inner > * {
  margin: 0;
}

.site-footer__legal .mono {
  color: var(--hh-green);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-below {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

/* Back to top: a green button with a navy arrow. */
.back-to-top {
  position: fixed;
  z-index: 40;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  background: var(--hh-green);
  border: 2px solid var(--hh-navy);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--hh-russet);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.15s ease;
}

.back-to-top::before {
  width: 1.3rem;
  height: 1.3rem;
  content: "";
  background: var(--hh-navy);
  -webkit-mask: url(../images/icons/arrow-up.svg) center / contain no-repeat;
  mask: url(../images/icons/arrow-up.svg) center / contain no-repeat;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 4px 6px 0 var(--hh-russet);
}

.js .back-to-top:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}
