/* Back to Top Button Styles - Shared across all pages */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #E8652D;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(232, 101, 45, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #D84315;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 101, 45, 0.5);
}

.back-to-top:focus,
.back-to-top:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Mobile responsive sizing */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Progressive enhancement for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .back-to-top::before,
    .back-to-top::after {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
    }
}
