/* Shared footer — AI Solution / AI Vision */

.shared-footer {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(1.5rem, 2.5vw, 2.5rem);
  color: #fff;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.shared-footer a {
  color: inherit;
  text-decoration: none;
}

.shared-footer__nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.shared-footer__nav a {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: 1rem;
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.25s ease, background 0.25s ease;
}

.shared-footer__nav a:first-child {
  padding-left: 0;
}

.shared-footer__nav a:last-child {
  padding-right: 0;
  border-right: 0;
}

.shared-footer__nav a:hover,
.shared-footer__nav a:focus-visible {
  color: #c9ccff;
  background: rgba(255, 255, 255, 0.055);
  outline: 0;
}

.shared-footer__nav i {
  flex: 0 0 auto;
  font-style: normal;
  opacity: 0.54;
}

.shared-footer__meta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono, "SFMono-Regular", Consolas, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.shared-footer__meta nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.shared-footer__meta a {
  transition: color 0.25s ease;
}

.shared-footer__meta a:hover,
.shared-footer__meta a:focus-visible {
  color: #fff;
  outline: 0;
}

.shared-footer__meta p {
  margin: 0;
  text-align: right;
}

@media (max-width: 1100px) {
  .shared-footer__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shared-footer__nav a,
  .shared-footer__nav a:first-child,
  .shared-footer__nav a:last-child {
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .shared-footer__nav a:nth-child(4n) {
    border-right: 0;
  }

  .shared-footer__nav a:last-child {
    border-right: 0;
  }

  .shared-footer__nav a:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .shared-footer {
    padding-top: 2rem;
  }

  .shared-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-footer__nav a,
  .shared-footer__nav a:first-child,
  .shared-footer__nav a:last-child {
    min-height: 4rem;
    padding: 0.85rem 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .shared-footer__nav a:nth-child(2n) {
    border-right: 0;
  }

  .shared-footer__nav a:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .shared-footer__nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .shared-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .shared-footer__meta p {
    text-align: left;
  }
}
