
/* ==========================================
   BRIGHT DIAMONDS - FOOTER
========================================== */

/* MAIN FOOTER */

.site-footer {
    width: 100%;
    padding: var(--footer-padding) 0;
    background: var(--footer-background);
    color: var(--footer-text);
}

/* FOOTER CONTENT */

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* COPYRIGHT */

.footer-copyright {
    margin: 0;
    color: var(--footer-text);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

/* DEVELOPER CREDIT */

.footer-credit {
    margin: 0;
    color: var(--footer-text);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

.footer-credit a {
    color: var(--footer-text);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--footer-border);

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--footer-text);
    border-bottom-color: var(--footer-text);
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
========================================== */

.floating-whatsapp {
    position: fixed;
    left: var(--floating-button-offset);
    bottom: var(--floating-button-offset);
    z-index: 1050;

    display: flex;
    align-items: center;
    justify-content: center;

    width: var(--floating-button-size);
    height: var(--floating-button-size);

    border-radius: 50%;
    background: var(--floating-whatsapp-background);
    color: var(--floating-whatsapp-color);

    font-size: 29px;
    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(37, 211, 102, 0.3);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    color: var(--floating-whatsapp-color);
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.4);
}

/* ==========================================
   BACK TO TOP BUTTON
========================================== */

.floating-back-to-top {
    position: fixed;
    right: var(--floating-button-offset);
    bottom: var(--floating-button-offset);
    z-index: 1050;

    display: flex;
    align-items: center;
    justify-content: center;

    width: var(--floating-button-size);
    height: var(--floating-button-size);

    padding: 0;
    border: none;
    border-radius: 50%;

    background: var(--floating-top-background);
    color: var(--floating-top-color);

    font-size: 20px;
    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

/* SHOW WHEN SCROLLED */

.floating-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-back-to-top:hover {
    background: var(--header-primary-dark, var(--primary-color));
    transform: translateY(-5px);
}

/* KEYBOARD ACCESSIBILITY */

.floating-whatsapp:focus-visible,
.floating-back-to-top:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .site-footer {
        padding: 20px 0;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 7px;
    }

    .footer-copyright,
    .footer-credit {
        font-size: 11px;
    }

    .floating-whatsapp,
    .floating-back-to-top {
        width: 48px;
        height: 48px;
        bottom: 18px;
    }

    .floating-whatsapp {
        left: 18px;
        font-size: 26px;
    }

    .floating-back-to-top {
        right: 18px;
        font-size: 18px;
    }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .floating-whatsapp,
    .floating-back-to-top,
    .footer-credit a {
        transition: none;
    }
}
