/* The shared footer follows the page gutters and keeps its height content-led. */
.site-footer {
  --footer-text: #eeeeee;
  --footer-muted: #b3b3b3;
  --footer-line: #444546;
  padding: 52px var(--gutter) 24px;
  color: var(--footer-text);
  background: var(--ink);
  scroll-margin-top: 100px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(200px, 1fr) minmax(160px, .7fr);
  gap: 48px;
  padding-bottom: 40px;
}

.footer-identity { min-width: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}
.footer-brand img { flex: none; filter: brightness(0) invert(1); }
.footer-brand-mark { width: 104px; height: 50px; }
.footer-brand-name { display: grid; gap: 6px; }
.footer-brand-name img { width: 114px; height: 22px; }
.footer-brand-name > span { font-size: 14px; line-height: 18px; font-style: italic; }
.footer-address {
  margin-top: 20px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 21px;
  font-style: normal;
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact-link { gap: 12px; font-size: 16px; line-height: 24px; font-weight: 500; }
.footer-contact-link img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-phone { color: var(--footer-muted); font-size: 14px; line-height: 20px; }

.footer-heading {
  margin: 0 0 14px;
  color: var(--footer-muted);
  font: 600 12px/18px var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.footer-nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-nav a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  max-width: 100%;
  padding-block: 6px;
  font-size: 16px;
  line-height: 24px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 32px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 18px;
}
.footer-copyright { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal a,
.footer-legal button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  font: inherit;
  text-align: left;
}
.footer-company-details { grid-column: 1 / -1; margin: 0; text-wrap: pretty; }
.footer-company-details span { padding-inline: 4px; }
.site-footer a,
.site-footer button { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-footer :is(a, button):focus-visible { outline-color: var(--footer-text); outline-offset: 4px; }

@media (hover: hover) and (pointer: fine) {
  .site-footer a:not(.footer-brand):hover,
  .site-footer button:hover { color: white; text-decoration-line: underline; }
}

@media (max-width: 1024px) {
  .site-footer { padding-top: 40px; }
  .footer-main { grid-template-columns: minmax(250px, 1.5fr) minmax(160px, 1fr) minmax(100px, .7fr); gap: 28px; padding-bottom: 32px; }
  .footer-brand { gap: 8px; }
  .footer-brand-mark { width: 88px; height: 42.3px; }
  .footer-brand-name img { width: 98px; height: 18.8px; }
  .footer-nav a { font-size: 14px; line-height: 22px; min-height: 44px; }
  .footer-contact { gap: 0 20px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 4px; }
  .footer-legal { grid-row: 1; }
}

@media (max-width: 700px) {
  .site-footer { padding-top: 32px; padding-bottom: 24px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; padding-bottom: 24px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-brand { min-height: 44px; }
  .footer-address { margin-top: 16px; }
  .footer-contact { margin-top: 8px; gap: 0 24px; }
  .footer-heading { margin-bottom: 8px; font-size: 11px; line-height: 16px; }
  .footer-nav a { font-size: 14px; line-height: 20px; }
  .footer-bottom { padding-top: 12px; gap: 8px; }
  .footer-legal { column-gap: 20px; }
  .footer-company-details span { padding-inline: 2px; }
}
