/* Shared floating contact shortcut for public pages (except contact.html). */
.floating-contact {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 98;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-sizing: border-box;
    background: #171717;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
    text-decoration: none;
    line-height: 1;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.floating-contact::before {
    font-size: 20px;
}

.floating-contact:hover {
    background: #2b2b2b;
    color: #fff;
    box-shadow: 0 7px 19px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transform: translateY(-2px);
}

.floating-contact:focus {
    color: #fff;
    text-decoration: none;
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #171717, 0 7px 19px rgba(0, 0, 0, 0.3);
}

.floating-contact:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
}

.floating-contact:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px #171717, 0 7px 19px rgba(0, 0, 0, 0.3);
}

/* Keep the shortcut out of the way while the full-screen mobile menu is open. */
html.showNav .floating-contact,
body.showNav .floating-contact {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .floating-contact {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
    }

    .floating-contact::before {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contact {
        transition: none;
    }
}
