/* ==========================================================================
   FOOTER.CSS
   Four-column footer + bottom bar. Identical on every page — only
   category/link hrefs and the current-year value differ (year is set
   by main.js so it never goes stale).
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy-800-solid);
  color: var(--color-text-on-dark-muted);
}

.site-footer__top {
  padding-block: var(--space-7);
}

/* Mobile-first: default is a single stacked column; responsive.css
   grows this to 2 columns at Tablet and the full 4-column layout at
   Laptop/Desktop. */
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

/* Footer brand: the logo image only (the name, "Technology Enterprises" and the category
   list were removed). The white backing keeps the navy artwork readable on the dark footer;
   it sits flush left and is not stretched. Header and drawer branding are separate rules. */
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}
.site-footer__logo .site-logo__mark img {
  display: block;
  height: 44px;
  width: auto;
}

.site-footer__brand .site-footer__about {
  margin-top: var(--space-5);
  line-height: 1.65;
}

.site-footer__about {
  margin-top: var(--space-4);
  font-size: var(--fs-body-sm);
  color: var(--color-text-on-dark-muted);
}

.site-footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--overlay-white-08);
  color: var(--color-white);
  transition: background-color var(--transition-fast);
}
.site-footer__socials a:hover {
  background-color: var(--color-teal-500);
}
.site-footer__socials a i {
  font-size: 15px;
}

.site-footer__heading {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.site-footer__links li + li {
  margin-top: var(--space-3);
}

.site-footer__links a {
  font-size: var(--fs-body-sm);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}
.site-footer__links a:hover {
  color: var(--color-white);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-body-sm);
}
/* The address, phone and (long) email sit in flex rows. A flex item will
   not shrink below its longest unbreakable run, so a long email address
   could not wrap and pushed the footer column wider than the screen. */
.site-footer__contact li > :not(svg):not(i) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.site-footer__links a,
.site-footer__about {
  overflow-wrap: anywhere;
}
.site-footer__contact li + li {
  margin-top: var(--space-4);
}
.site-footer__contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-teal-500);
  margin-top: 2px;
}
.site-footer__contact i {
  flex-shrink: 0;
  font-size: 16px;
  width: 18px;
  color: var(--color-teal-500);
  margin-top: 3px;
}

.site-footer__bottom {
  border-top: 1px solid var(--overlay-white-12);
  padding-block: var(--space-4);
}

/* Mobile-first: stacked and centered by default; responsive.css
   switches to a row layout at Tablet+. */
.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
}

/* Developer credit — third footer section, below the copyright / legal row.
   Typography, colour and hover follow the legal links; no underline,
   background or animation. Content-sized: 20px above and below (plus the
   phone safe-area inset at the bottom). No space is reserved for the floating
   buttons — while one would cover footer text it is eased out of the way by
   js/floating-avoid.js (opted in via data-float-avoid on the footer). */
.site-footer__credit-bar {
  border-top: 1px solid var(--overlay-white-12);
  padding-top: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

/* Mobile-first: stacked and centred; responsive.css switches to a row at Tablet+. */
.site-footer__credit-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-1);
  font-size: var(--fs-label);
}

.site-footer__credit {
  margin: 0;
  color: var(--color-text-on-dark-muted);
}
.site-footer__credit a,
.site-footer__credit-cta {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}
.site-footer__credit a:hover,
.site-footer__credit-cta:hover {
  color: var(--color-white);
}
.site-footer__credit a:focus-visible,
.site-footer__credit-cta:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 3px;
  border-radius: 2px;
  color: var(--color-white);
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
}

.site-footer__bottom-links a {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}
.site-footer__bottom-links a:hover {
  color: var(--color-white);
}
