/* Shared site footer — linked from index.html; @import in landing.css, site-subpage.css, portfolio.css */

.site-footer {
  background: var(--white, #ffffff);
  padding: 80px 0 0;
  border-top: 1px solid var(--neutral-200, #e5e7eb);
}

.site-footer .footer-brand-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.site-footer .footer-brand-link:focus-visible {
  outline: 2px solid var(--brand-blue, #3f75f5);
  outline-offset: 4px;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer .footer-logo-svg {
  height: 50px;
  width: auto;
  display: block;
  align-self: flex-start;
}

.site-footer .footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--neutral-600, #4b5563);
  max-width: 280px;
  margin: 0;
}

.site-footer .footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neutral-400, #9ca3af);
  margin: 0 0 18px;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .footer-links li {
  color: var(--neutral-600, #4b5563);
}

.site-footer .footer-links a {
  font-size: 15px;
  color: var(--neutral-700, #374151);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--brand-blue, #3f75f5);
}

.site-footer .footer-stack-group:not(:last-child) {
  margin-bottom: 24px;
}

.site-footer .footer-bottom {
  border-top: 1px solid var(--neutral-200, #e5e7eb);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .footer-copy {
  font-size: 13px;
  color: var(--neutral-400, #9ca3af);
  margin: 0;
}

.site-footer .footer-legal {
  display: flex;
  gap: 28px;
}

.site-footer .footer-legal a {
  font-size: 13px;
  color: var(--neutral-500, #6b7280);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-legal a:hover {
  color: var(--brand-blue, #3f75f5);
}

@media (max-width: 768px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding: 60px 0 0;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(17, 24, 39, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(63, 117, 245, 0.35);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--brand-blue, #3f75f5);
  outline-offset: 4px;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}
