/* Hyper Endurance Fitness | shared footer, one design on every page
   ====================================================================
   Desktop QA m5. Linked last, right before </head>, on all 19 pages.
   The footer markup carries only hf-footer classes, so the old per page
   rules (.foot-*, .footer-*, .site-footer, .site-legal, .wrap, .shell)
   no longer match it. The element rules that still reach it (footer,
   footer nav, footer a, footer p, footer nav a) are outranked here by
   class specificity, and every property they set is restated.
   Design reference: the home page footer.
   ==================================================================== */

footer.hf-footer {
  --hf-bg: #08090a;
  --hf-line: rgba(255, 255, 255, 0.08);
  --hf-line-strong: rgba(255, 255, 255, 0.16);
  --hf-rule: rgba(127, 127, 127, 0.18);
  --hf-text: #b4b7ba;
  --hf-fog: #9a9ea0;
  --hf-dim: #8e9297;
  --hf-bright: #f2f2f3;
  --hf-gold: #c9a35a;
  --hf-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hf-link: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 56px 0 48px;
  border: 0;
  border-top: 1px solid var(--hf-line);
  background: var(--hf-bg);
  color: var(--hf-fog);
  font-family: var(--hf-ui);
  text-align: left;
  opacity: 1;
}

.hf-footer .hf-footer__in {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.hf-footer p {
  margin: 0;
  max-width: none;
  font-family: var(--hf-ui);
}

/* Brand row: wordmark and name on the left, strapline on the right */
.hf-footer .hf-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.hf-footer .hf-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--hf-ui);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.13em;
  color: var(--hf-fog);
}
.hf-footer .hf-footer__brand img {
  display: block;
  width: auto;
  height: 18px;
  flex: none;
}
.hf-footer .hf-footer__tag {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--hf-fog);
}

/* Page links: one row on desktop */
.hf-footer .hf-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0 30px;
  width: auto;
  max-width: none;
  margin: 30px 0 0;
  padding: 0;
  text-align: left;
}
.hf-footer .hf-footer__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--hf-link);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  color: var(--hf-text);
  transition: color 0.2s ease;
}
.hf-footer .hf-footer__nav a[aria-current="page"] {
  color: var(--hf-bright);
}

/* Brand lines */
.hf-footer .hf-footer__meta {
  margin: 22px 0 0;
}
.hf-footer .hf-footer__loc,
.hf-footer .hf-footer__contact {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--hf-dim);
}
.hf-footer .hf-footer__contact {
  margin-top: 4px;
}
.hf-footer .hf-footer__contact a {
  display: inline;
  min-height: 0;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--hf-line-strong);
  font-family: var(--hf-ui);
  font-size: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  color: var(--hf-text);
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Small print row */
.hf-footer .hf-footer__legal {
  margin: 34px 0 0;
  padding: 18px 0 56px;
  border-top: 1px solid var(--hf-rule);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--hf-dim);
  opacity: 1;
}
.hf-footer .hf-footer__legal p {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--hf-dim);
}
.hf-footer .hf-footer__legal a {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  font-family: var(--hf-ui);
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hf-footer .hf-footer__nav a:hover,
  .hf-footer .hf-footer__contact a:hover,
  .hf-footer .hf-footer__legal a:hover { color: var(--hf-gold); }
  .hf-footer .hf-footer__contact a:hover { border-color: currentColor; }
}
.hf-footer a:focus-visible {
  outline: 2px solid var(--hf-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Tablets and phones: the footer stacks and centres, and every link is a
   44px tap target. The old hit area pseudo element is not needed. */
@media (max-width: 1023.98px) {
  footer.hf-footer { padding: 48px 0 40px; text-align: center; }
  .hf-footer .hf-footer__top {
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
  }
  .hf-footer .hf-footer__brand { justify-content: center; flex-wrap: wrap; text-align: center; }
  .hf-footer .hf-footer__tag { text-align: center; }
  .hf-footer .hf-footer__nav {
    display: block;
    margin: 22px auto 0;
    text-align: center;
    text-wrap: balance;
  }
  .hf-footer .hf-footer__nav a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    vertical-align: top;
  }
  .hf-footer .hf-footer__nav a::before,
  .hf-footer .hf-footer__contact a::before { content: none; display: none; }
  .hf-footer .hf-footer__meta { margin-top: 18px; }
  .hf-footer .hf-footer__loc,
  .hf-footer .hf-footer__contact { text-align: center; }
  .hf-footer .hf-footer__contact { margin-top: 0; }
  .hf-footer .hf-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: var(--hf-line-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
  .hf-footer .hf-footer__legal {
    margin-top: 26px;
    padding-top: 20px;
    text-align: center;
  }
  .hf-footer .hf-footer__legal p { text-wrap: pretty; }
  .hf-footer .hf-footer__legal p + p {
    margin: 8px 0 0;
    text-wrap: balance;
  }
  .hf-footer .hf-footer__legal p + p { line-height: 44px; }
  /* inline, so each comma stays with its link; the padding makes the
     44px tap area without moving the text */
  .hf-footer .hf-footer__legal p + p a {
    display: inline;
    padding: 15px 0;
    line-height: inherit;
  }
}

/* Phones: tighter side padding; the links keep the centred, balanced
   wrap (rows of two or three, never one link on its own) */
@media (max-width: 599.98px) {
  .hf-footer .hf-footer__in { padding: 0 22px; }
  .hf-footer .hf-footer__nav { max-width: 340px; }
  .hf-footer .hf-footer__nav a { padding: 0 11px; }
}
@media (max-width: 400px) {
  .hf-footer .hf-footer__in { padding: 0 18px; }
  .hf-footer .hf-footer__nav a { padding: 0 9px; font-size: 12.5px; }
}

/* Room for the floating language pill and chat launcher at page end */
@media (max-width: 760px) {
  footer.hf-footer { padding-bottom: 96px; }
}
