/* ==========================================================================
   Footer styles — the ONLY place footer CSS lives.
   Pairs with _partials/footer.html (the only place the footer markup lives).
   Rule order below is load-bearing, do not reorder:
     - footer a    must stay BEFORE  the max-width:600px override
     - .foot-grid  must stay BEFORE  the 800px and 560px media queries
   Loaded AFTER base.css in every page (it uses base.css custom properties).
   ========================================================================== */

footer {
  background: #00131e;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 20px 32px;
  font-size: 15px;
}
.foot-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 800px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
footer h4,
footer .fh {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
footer a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 4px 0;
}
footer a:hover {
  color: var(--cyan);
}
.foot-bottom {
  max-width: 1120px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.contact-footer {
  margin-top: 14px;
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  /* align-items centres the two blocks; on a flex container text-align alone
     would not move them. */
  .foot-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
}

/* a11y patch 2026-07-10: lifts the bottom bar to AA contrast on the navy. */
.foot-bottom {
  color: rgba(255, 255, 255, 0.62) !important;
}

/* F-46 touch targets. block, not inline-block: inline-block makes the column
   links shrink-to-fit and run together on one line at mobile widths. */
@media (max-width: 600px) {
  footer a {
    display: block;
    padding: 4px 0;
  }
}

/* Outranks both `footer a` rules on specificity, so their padding cannot reopen the gap under the logo. */
footer a.foot-logo {
  padding: 0;
  width: fit-content;
}
footer a.foot-logo:hover {
  opacity: 0.8;
}
