/* Floating "call" and "back to top" buttons (public/app.js floatingNav), bottom-right corner of every page: the call
   above the arrow.
   Square like the other small controls of the site, anthracite glass, hairline border, a touch of red on hover. */
.float-nav {
  position: fixed;
  right: clamp(16px, 2.2vw, 32px);
  bottom: calc(clamp(16px, 2.2vw, 32px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: transform .2s ease-out, opacity .35s ease, visibility 0s linear .35s;
}
.float-nav.is-visible { opacity: 1; visibility: visible; transition: transform .2s ease-out, opacity .35s ease, visibility 0s; }
.float-nav-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 2px;
  background: rgb(var(--surface-deep-rgb) / 62%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f3f3f0;
  box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.float-nav-button svg { width: 19px; height: 19px; }
.float-nav-button:hover { border-color: rgb(227 38 48 / 75%); background: rgb(var(--surface-deep-rgb) / 82%); }
.float-nav-button:hover svg { color: #fff; }
.float-nav-button:hover svg { transform: translateY(-2px); }
/* The call: the same glass, a green handset (3/12/2026); on hover a green border and the handset turns white. */
.float-nav-call { color: #34c77b; text-decoration: none; }
.float-nav-call:hover { border-color: rgb(52 199 123 / 75%); }
.float-nav-call:hover svg { transform: rotate(-12deg); }
.float-nav-button svg { transition: transform .25s; }
.float-nav-button:active { transform: scale(.96); }
.float-nav-button:focus-visible { outline: 2px solid #fa5459; outline-offset: 3px; }
@media (max-width: 700px) {
  .float-nav { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .float-nav-button { width: 46px; height: 46px; }
}
@media (hover: none) {
  .float-nav-button:hover { border-color: rgb(255 255 255 / 22%); background: rgb(var(--surface-deep-rgb) / 62%); }
  .float-nav-button:hover svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float-nav, .float-nav.is-visible, .float-nav-button, .float-nav-button svg { transition: none; }
}
