/* ====================================================
   Back to Top button - shared by all five pages
   Fixed bottom-right; hidden until the page is scrolled.
   ==================================================== */
.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9990; /* above page content, below the gallery lightbox (10040+) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: #25221d;
  background: var(--accent-secondary-color);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s, background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s, background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top i {
  display: block;
  color: inherit;
  transition: transform 0.3s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #cdbf92;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.back-to-top:hover i,
.back-to-top:focus-visible i {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media only screen and (max-width: 767px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}

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

  .back-to-top {
    transform: none;
  }
}
