/* Custom styles for Service Rite Electric */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6f0;
}
::-webkit-scrollbar-thumb {
    background: #e8d5b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a56e;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 252, 249, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(232, 213, 184, 0.5) !important;
    box-shadow: 0 1px 20px rgba(45, 34, 24, 0.06) !important;
}

/* Scroll indicator animation */
@keyframes scroll-indicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}
.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.mobile-link:hover {
    color: #C05A3C;
    background: rgba(192, 90, 60, 0.05);
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2395723f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .animate-scroll-indicator { animation: none; }
    #mobile-menu { animation: none; }
}

/* Selection color */
::selection {
    background: rgba(192, 90, 60, 0.2);
    color: #1a140e;
}
