/* Site footer (include-footer.php), 2026-10-31. Colors and type are GBB's:
   a neutral black (#222222; the old footer's #2b2e2e leaned green, #252b33
   read as navy, #222427 still read cool) over a navy copyright bar, white
   text, Merriweather Sans labels like the nav. */
.gbb-footer {
  --gbb-footer-navy: #003a70;
  --gbb-footer-deep: #002a52;
  --gbb-footer-charcoal: #222222;
  --gbb-footer-line: rgba(255, 255, 255, .2);
  background: var(--gbb-footer-charcoal);
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
}
.gbb-footer p,
.gbb-footer li,
.gbb-footer strong {
  color: #fff;
}
.gbb-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gbb-footer a:hover,
.gbb-footer a:focus {
  color: #fff;
  text-decoration-thickness: 2px;
}
.gbb-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Side padding sits on the two rows (.gbb-footer-top, .gbb-footer-columns),
   not on .gbb-footer-main, so the line between them runs edge to edge */

/* Top row: logo left, peer review badge right, held to the page's content
   card width (.ppr-white-bg, 1010px) */
.gbb-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  box-sizing: content-box;
  max-width: 1010px;
  margin: 0 auto;
  padding: 40px 40px 32px;
}
.gbb-footer-logo {
  display: block;
}
.gbb-footer-logo img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}
.gbb-footer .gbb-footer-peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid #fff;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
}
.gbb-footer .gbb-footer-peer:hover,
.gbb-footer .gbb-footer-peer:focus {
  background: var(--gbb-footer-deep);
  text-decoration: none;
}
.gbb-footer-peer-title {
  margin-bottom: 4px;
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 700;
}
.gbb-footer-peer-rating {
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gbb-footer-peer-dot {
  margin: 0 6px;
}

/* Columns: four sized to their content and spread edge to edge, two on
   tablets, one centered on phones */
.gbb-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 32px 40px;
  /* Content starts where the header logo starts (gbb-nav.css: logo panel
     33.333% wide, logo up to 384px, 35px from the panel edge) and mirrors
     it on the right; 40px minimum. The top border runs full width. */
  padding: 32px max(40px, calc(33.3333% - 419px)) 48px;
  border-top: 1px solid var(--gbb-footer-line);
}
.gbb-footer-col {
  min-width: 0;
}
.gbb-footer-col h2 {
  margin: 0 0 10px;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.gbb-footer-col p {
  margin: 0 0 12px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}
.gbb-footer-col p:last-child {
  margin-bottom: 0 !important;
}
.gbb-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gbb-footer-col li {
  line-height: 1.6;
  margin-bottom: 6px;
}

/* Fourth column: payment button with the review label and icons centered
   under it; the column sits at the right edge under the badge */
.gbb-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: fit-content;
  gap: 16px;
}
.gbb-footer .gbb-footer-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.gbb-footer .gbb-footer-btn:hover,
.gbb-footer .gbb-footer-btn:focus {
  background: #fff;
  color: var(--gbb-footer-navy);
  text-decoration: none;
}
/* "Leave a Review" label over the icons */
.gbb-footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gbb-footer-review {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gbb-footer-icons {
  display: flex;
  /* the end icons' padding, so their ink lines up with the text edge */
  margin: 0 -13px;
}
.gbb-footer-icons .gbb-nav-icon {
  /* 13px round an 18px icon = 44px tap target (audit 2026-11-23, was 34px) */
  padding: 13px;
  color: #fff;
  text-decoration: none;
}

/* Copyright bar */
.gbb-footer-copyright {
  padding: 18px 40px;
  background: var(--gbb-footer-deep);
  text-align: center;
}
.gbb-footer-copyright p {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.8;
}
.gbb-footer-sep {
  margin: 0 6px;
  opacity: .5;
}
/* The version stamp (.site-version) takes the line's own text style: it was
   11px monospace at 70% opacity until 2026-11-19 (Doug) */

/* Tablet: two columns, payment column at the left of its cell */
@media (max-width: 991px) {
  .gbb-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gbb-footer-actions {
    justify-self: start;
  }
}

/* Phone: one centered column */
@media (max-width: 575px) {
  .gbb-footer-main {
    text-align: center;
  }
  .gbb-footer-top {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
  .gbb-footer-logo img {
    width: 300px;
  }
  .gbb-footer-columns {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 40px;
  }
  .gbb-footer-actions {
    justify-self: center;
  }
  .gbb-footer-copyright {
    padding: 18px 16px;
  }
}
/* Matches the wider content card on the new subpage template (1140px at 1200px+) */
@media (min-width: 1200px) {
  .gbb-nav-page .gbb-footer-top {
    max-width: 1140px;
  }
}
