/* =====================================================
   ENKLEANA AESTHETICS
   FLOATING WHATSAPP
   Quiet espresso disc — present, never loud.
===================================================== */

.ea-floating-wa {
    position: fixed;
    /* Clear of home indicator / rounded corners on modern phones */
    right: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-right, 0px));
    bottom: calc(clamp(1rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
    z-index: 90;

    width: 3.25rem;
    height: 3.25rem;

    display: grid;
    place-items: center;

    border: 1px solid rgba(246, 241, 234, 0.18);
    border-radius: 50%;

    background: var(--c-espresso);
    color: var(--c-on-dark);

    box-shadow: 0 8px 24px rgba(33, 23, 19, 0.16);

    transition:
        transform 0.4s var(--ease),
        background-color 0.4s var(--ease),
        opacity 0.4s var(--ease),
        visibility 0.4s var(--ease);
}

.ea-floating-wa:hover {
    background: #3d2e25;
    transform: translateY(-2px);
}

/* Steps aside on phones/tablets while it would cover text,
   a link or a button (main.js). Leaves quickly, returns softly. */
.ea-floating-wa.is-tucked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.92);
    transition-duration: 0.15s;
}

.ea-floating-wa:focus-visible {
    outline: 1px solid var(--c-taupe);
    outline-offset: 4px;
}

.ea-floating-wa__icon {
    display: grid;
    place-items: center;
}

.ea-floating-wa__icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: currentColor;
}

/* Visible text is carried by aria-label on the link. */
.ea-floating-wa__content,
.ea-floating-wa__arrow {
    display: none;
}

@media (max-width: 760px) {

    .ea-floating-wa {
        width: 3rem;
        height: 3rem;
    }

    .ea-floating-wa__icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ea-floating-wa {
        transition: none;
    }
}
