/* ==========================================================================
   12. FOOTER & BACK-TO-TOP
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: var(--sp-6) var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: var(--sp-2);
  background: var(--white);
  border-radius: 12px;
  padding: 8px 16px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9375rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--accent-500); }

.footer-social { display: flex; gap: 10px; margin-top: var(--sp-3); }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links { display: flex; gap: var(--sp-3); }
.footer-legal-links a:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--blue-600); }
.back-to-top svg { width: 20px; height: 20px; }
