.site-footer {
  background: #f5f5f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 56px 20px 48px;
  text-align: center;
}

.site-footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "tagline nav contact"
    "copyright nav contact";
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 14px;
  align-items: start;
}

.footer-brand {
  grid-area: tagline;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand-logo {
  width: clamp(120px, 12vw, 160px);
  height: auto;
  display: block;
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.78);
  letter-spacing: 0.25px;
  text-align: left;
}

.footer-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  gap: 10px;
  margin-top: 0;
}

.footer-nav a {
  color: var(--text-black);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-black);
  text-decoration: none;
  border-color: rgba(0, 0, 0, 0.45);
}

.footer-contact {
  grid-area: contact;
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  justify-self: end;
  flex-wrap: wrap;
  margin-top: 0;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-black);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  background: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-contact a:hover {
  border-color: rgba(0, 0, 0, 0.32);
  background: #fdfdfd;
  transform: translateY(-1px);
}

.footer-contact a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-radius: 4px;
}

.email-footer,
.linkedin-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: filter var(--transition-normal), opacity var(--transition-normal);
}

.linkedin-logo {
  filter: brightness(0);
}

.footer-copyright {
  grid-area: copyright;
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  text-align: left;
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tagline"
      "nav"
      "contact"
      "copyright";
    gap: 14px;
  }

  .footer-tagline,
  .footer-copyright {
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    align-items: center;
    width: auto;
    gap: 10px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-contact a {
    min-width: 130px;
  }

  .footer-contact {
    justify-self: center;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .footer-contact a {
    width: calc(50% - 8px);
  }
}
