/* ---------------------------
   Footer (modern, fits your current HTML)
---------------------------- */

.site-footer {
  margin-top: 44px;
  padding: 58px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--cardBg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
}

/* subtle glow layer */
.site-footer::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(6, 182, 212, 0.12),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(168, 85, 247, 0.1),
      transparent 58%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(34, 197, 94, 0.08),
      transparent 55%
    );
  pointer-events: none;
  z-index: 0;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 10px 0 22px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.92;
}

.footer-col p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 56ch;
}

.footer-col a {
  display: block;
  padding: 8px 0;
  color: var(--muted);

  text-decoration: none;
  transition:
    transform 0.15s ease,
    color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

/* Social (your current HTML uses .footer-social) */
.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--glass2) 70%, transparent);
  color: var(--text);

  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    transform 0.18s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--glass2);
  border-color: color-mix(in srgb, var(--border) 70%, rgba(6, 182, 212, 0.25));
}

/* Optional: tiny divider dot style if you ever want it
.footer-social a::before { ... }
*/

/* Responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Back to top button (keep visible + modern) */
.to-top {
  background: var(--glass2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  border-radius: 999px;
}

.footer-bottom p {
  line-height: 1.4; /* stable baseline */
}
.footer-social a {
  line-height: 1; /* prevents extra vertical “jump” inside pills */
}

/* ---------------------------
   Footer Brand / Logo
---------------------------- */

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

.footer-logo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  padding: 8px;

  border: 1px solid var(--border);
  background: var(--glass2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  display: grid;
  place-items: center;

  box-shadow: var(--shadow2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
