/* float.css — floating WhatsApp + Back to Top buttons (native, no deps)
 * Shared by all 115 pages. z-index 900 keeps it below the image lightbox (9999).
 */
#floatStack {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: calc(clamp(16px, 2vw, 28px) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 900;
  pointer-events: none; /* container is click-through; buttons re-enable */
}

.float-btn {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--sh-md, 0 8px 24px rgba(0, 0, 0, .16));
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease,
              visibility .22s ease, background-color .22s ease, bottom .22s ease;
}
.float-btn svg { width: 26px; height: 26px; display: block; fill: currentColor; }
.float-btn:hover { transform: translateY(-3px); box-shadow: var(--sh-lg, 0 14px 34px rgba(0, 0, 0, .22)); }
.float-btn:active { transform: translateY(-1px); }
.float-btn:focus-visible { outline: 3px solid var(--blue, #0071e3); outline-offset: 3px; }

/* WhatsApp — brand green, white glyph, one restrained accent */
.float-btn--wa { background: #25D366; color: #fff; }
.float-btn--wa:hover { background: #20bd5b; }

/* Back to top — quiet dark glass circle, hidden until scrolled */
.float-btn--top {
  background: rgba(29, 29, 31, .88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.float-btn--top svg { width: 22px; height: 22px; }
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.float-btn--top.is-visible:hover { transform: translateY(-3px); }

/* Hide entirely while the image lightbox is open (avoids a faint green ghost
   showing through its 92%-opaque scrim). No lightbox file is modified. */
#floatStack.float-stack--hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* On small screens, lift above any bottom CTA / form so submit stays usable */
#floatStack.float-stack--lift {
  bottom: calc(clamp(16px, 2vw, 28px) + 68px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
  #floatStack {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  #floatStack.float-stack--lift {
    bottom: calc(14px + 60px + env(safe-area-inset-bottom, 0px));
  }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 22px; height: 22px; }
  .float-btn--top svg { width: 19px; height: 19px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  #floatStack { gap: 8px; }
  .float-btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #floatStack, .float-btn { transition: none; }
  .float-btn--top { transform: none; }
  .float-btn--top.is-visible { transform: none; }
  html { scroll-behavior: auto; }
}
