/* ==========================================================================
   THE BAND («hubfoot»)
   The slim band at the bottom of a page's last screen: the footer's link columns and the call to
   talk. Services lays it along the bottom of its one screen; capabilities and about carry it
   inside their last section. (Markup: build_fa.py, hubfoot().)
   ========================================================================== */

/* ---------- The band: the footer's link columns and the call to talk ---------- */
.hubfoot { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px clamp(28px, 4vw, 72px);
  padding: clamp(12px, 2.1vh, 24px) max(var(--gutter), (100% - 1560px) / 2); color: var(--mist);
  background: radial-gradient(760px 260px at 92% 0%, rgba(78, 114, 184, 0.3), transparent 70%), var(--navy); }
.hubfoot .footer__cols { display: grid; grid-template-columns: none; gap: 2px; padding: 0; }
.hubfoot .footer__brand { display: none; }
/* each column reads as one line: its name, then its links side by side */
.hubfoot .footer__cols > div:not(.footer__brand) { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); align-items: baseline; column-gap: 18px; }
.hubfoot h4 { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.9; color: var(--gray); }
.hubfoot ul { display: flex; flex-wrap: wrap; gap: 0 22px; }
.hubfoot li { margin: 0; font-size: 14px; line-height: 1.9; color: var(--on-navy); }
.hubfoot li a { opacity: 0.86; transition: opacity 0.2s; }
.hubfoot li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.hubfoot__end { display: grid; justify-items: end; gap: 8px; }
.hubfoot__end .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.hubfoot__end small { font-size: 12.5px; color: var(--on-navy-dim); white-space: nowrap; }
/* The button to the next page (its look: fa.css) stands beside the call, the copyright line under both: side
   by side the two are no taller than the call alone, so every screen that carries the band still fits. */
.hubfoot__end:has(.hubfoot__next) { grid-template-columns: auto auto; column-gap: 10px; }
.hubfoot__end:has(.hubfoot__next) small { grid-column: 1 / -1; }
@media (min-width: 900.02px) {
  .hubfoot__end:has(.hubfoot__next) .btn { height: 46px; padding: 0 22px; font-size: 15px; }
}
/* small laptops: the band's lines closer together (the address may take a line of its own) */
@media (min-width: 900.02px) and (max-width: 1279px) {
  .hubfoot { column-gap: 22px; padding-block: 10px; }
  .hubfoot .footer__cols > div:not(.footer__brand) { grid-template-columns: 5.4em minmax(0, 1fr); column-gap: 10px; }
  .hubfoot ul { gap: 0 13px; }
  .hubfoot li { font-size: 12.5px; line-height: 1.75; }
  .hubfoot h4 { font-size: 12px; line-height: 1.75; }
  .hubfoot__end .btn { height: 46px; padding: 0 20px; font-size: 15px; }
  .hubfoot__end small { font-size: 12px; }
  .hubfoot__end:has(.hubfoot__next) .btn { height: 42px; padding: 0 16px; font-size: 14px; gap: 8px; }
}
@media (max-width: 900px) {
  .hubfoot { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 48px var(--gutter) 30px; }
  .hubfoot .footer__cols { gap: 24px; }
  .hubfoot .footer__brand { display: block; }
  .hubfoot .footer__brand img { width: 150px; height: auto; margin-bottom: 12px; }
  .hubfoot .footer__brand p { max-width: 340px; font-size: 15px; color: var(--on-navy); }
  .hubfoot .footer__cols > div:not(.footer__brand) { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .hubfoot ul { gap: 0 20px; }
  .hubfoot li { font-size: 15px; }
  .hubfoot li a { display: inline-block; padding: 4px 0; }
  .hubfoot__end { justify-items: start; gap: 14px; }
}
@media (max-width: 560px) {
  .hubfoot__end, .hubfoot__end .btn { width: 100%; }
  .hubfoot__end .btn { justify-content: center; }
  /* on a phone the two buttons stack, each the full width */
  .hubfoot__end:has(.hubfoot__next) { grid-template-columns: minmax(0, 1fr); }
}

/* the band inside a page's last section (capabilities, about): it bleeds to the section's edges */
.section > .hubfoot, .pillars > .hubfoot { margin: auto calc(-1 * var(--gutter)) calc(-1 * var(--sp, 0px));
  /* inside a section the band's own width is the section's plus the gutters: the same inner width as on services */
  padding-inline: max(var(--gutter), (100% + 2 * var(--gutter) - 1560px) / 2); }
