/* ==========================================================
   GLOBAL BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(244, 240, 231, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--deep-blue, #0B3558);
  color: var(--warm-ivory, #F4F0E7);
  box-shadow: 0 16px 38px rgba(11, 53, 88, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity .3s ease,
    visibility .3s ease,
    transform .3s ease,
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--acid-lime, #C8F000);
  color: var(--ink-black, #111514);
  border-color: transparent;
  transform: translateY(-4px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--electric-cyan, #20C7D9);
  outline-offset: 4px;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
