/*
 * Floating "Enquire" button — inc/floating-cta.php
 * Always visible, except over the homepage slider. Sits under the sticky header (9999), mobile menu (10000),
 * enquiry pop-up, lightbox and loader.
 */
.mw-floating-cta {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 999;
    min-height: 48px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    background: var(--fb-green, #495037);
    color: #f3f0e8;
    border: 1px solid #c9c6b8;
    border-radius: 0;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.mw-floating-cta:hover,
.mw-floating-cta:focus-visible {
    background: #3b402c;
    color: #f3f0e8;
}

.mw-floating-cta:focus-visible {
    outline: 2px solid #f3f0e8;
    outline-offset: 3px;
}

/* Homepage, while the hero slider is on screen (js/floating-cta.js) */
.mw-floating-cta.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .mw-floating-cta {
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }
}

/* The mobile menu covers the page, so the button goes with it. */
html.mw-menu-open .mw-floating-cta {
    display: none;
}

/* Room at the very bottom so the button never sits on top of the last
   footer line (address, "Site by Technique"). */
body #colophon.site-footer {
    padding-bottom: 96px;
}

@media (max-width: 768px) {
    .mw-floating-cta {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        min-height: 44px;
        padding: 0 20px;
    }

    body #colophon.site-footer {
        padding-bottom: 80px;
    }
}
