/* ======================================================
   FOOTER
   ====================================================== */

.site-footer {
  font-family: "Fraunces", serif;
  position: relative;
  z-index: 2000 !important; /* Force higher than sidebar (1000) */
  border-top: 1px solid var(--hairline);
  margin-top: 0;
  background-color: var(--surface) !important; /* Explicitly use the page surface color */
  padding: 1rem 4vw;
  color: var(--muted-2);
  font-size: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

/* Mobile: smaller sizes but maintain >44px touch targets */
@media (max-width: 768px) {
  .site-footer {
    font-size: 1rem;
    padding: 0.75rem 3vw;
  }

  .site-footer p {
    font-size: 0.9rem;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-socials {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-socials a {
    min-width: 44px;
    min-height: 44px;
  }

  .footer-socials a svg {
    width: 20px;
    height: 20px;
  }

  /* Mobile touch feedback */
  .footer-socials a:active {
    transform: scale(0.95) translateY(-1px);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }
}

.footer-socials a {
  color: var(--ink);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure adequate touch target size */
  min-width: 48px; /* Minimum 44px touch target, using 48px for comfort */
  min-height: 48px;
  padding: 0rem; /* Add padding for better touch area */
}

/* Mobile touch feedback */
@media (max-width: 768px) {
  .footer-socials a:active {
    transform: scale(0.95) translateY(-1px);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }
}

.footer-socials a:hover {
  color: var(--accent, #d04b36);
  transform: translateY(-2px);
}

.site-footer p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0;
  text-align: right;
}
