/* Custom styles for Sayers Services */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal with JS enhancement (reduced motion safe) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 248, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-scrolled .logo-text {
    color: rgb(41, 37, 36);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button animation */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Selection color */
::selection {
    background-color: rgb(237, 118, 85);
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(253, 252, 248);
}

::-webkit-scrollbar-thumb {
    background: rgb(217, 190, 138);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(200, 166, 110);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid rgb(224, 82, 50);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .nav-scrolled,
    #back-to-top,
    .scroll-reveal:not(.revealed) {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
}
