/* Floating CTA shared by the homepage and facility pages: a bottom bar at every width.
   (Side tabs were tried, but page content runs to ~1400px and they covered it.) */

.floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.floating-cta.is-visible {
    transform: translateY(0);
}

.floating-cta a {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 320px;
    padding: 14px 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.floating-cta a:hover,
.floating-cta a:focus-visible {
    filter: brightness(1.08);
}

.floating-cta-tel {
    background: #fff;
    color: var(--color-primary) !important;
}

.floating-cta-visit {
    background: var(--color-primary);
}

.floating-cta-recruit,
.floating-cta-doc {
    background: var(--color-secondary);
}

/* Room for the bar so it never covers the end of the footer */
body.has-floating-cta footer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

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