
/* ========================================
   Fixed Contact Buttons
======================================== */

#site-contact-buttons {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1050;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Base button */

#site-contact-buttons .contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    width: 58px;
    height: 58px;
    padding: 0 17px;

    overflow: hidden;
    white-space: nowrap;
    border: none;
    border-radius: 50px;

    color: #fff;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

    transition:
        width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* Button icons */

#site-contact-buttons .contact-action i {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;

    width: 24px;
    font-size: 23px;
    line-height: 1;
}

/* Button labels */

#site-contact-buttons .contact-action span {
    display: inline-block;

    max-width: 0;
    overflow: hidden;

    font-size: 14px;
    font-weight: 600;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        max-width 0.48s ease;
}

/* Phone button */

#site-contact-buttons .contact-phone {
    background-color: #302F2B;
}

/* WhatsApp button */

#site-contact-buttons .contact-whatsapp {
    background-color: #25D366;
}

/* Hover effects: mouse / trackpad devices */

@media (hover: hover) and (pointer: fine) {
    #site-contact-buttons .contact-phone:hover {
        width: 220px;
    }

    #site-contact-buttons .contact-whatsapp:hover {
        width: 250px;
    }

    #site-contact-buttons .contact-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
        color: #fff;
    }

    #site-contact-buttons .contact-action:hover span {
        max-width: 190px;
        opacity: 1;
        transition-delay: 0.08s;
    }
}

/* Keyboard accessibility */

#site-contact-buttons .contact-action:focus-visible {
    outline: 3px solid #C79D3B;
    outline-offset: 4px;
}

/* Mobile / touch devices */

@media (max-width: 767px), (hover: none) {
    #site-contact-buttons {
        left: 14px;
        bottom: 18px;
        gap: 10px;
    }

    #site-contact-buttons .contact-action,
    #site-contact-buttons .contact-action:hover {
        width: 52px;
        height: 52px;
        min-width: 52px;
        padding: 0;

        justify-content: center;
        border-radius: 50%;

        transform: none;
        transition: none;
    }

    #site-contact-buttons .contact-action i {
        flex: 0 0 24px;
        font-size: 22px;
    }

    #site-contact-buttons .contact-action span,
    #site-contact-buttons .contact-action:hover span {
        display: none;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    #site-contact-buttons .contact-action,
    #site-contact-buttons .contact-action span {
        transition: none !important;
    }
}
