/* Custom styles for Woods Appliance Services */

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

/* Scroll reveal base - progressive enhancement, content visible without JS */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS is enabled, hide elements before scroll and reveal them */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 14, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 58, 40, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.375rem;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #d4a853 0%, #e8c076 50%, #b8923f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #070e0a;
}

::-webkit-scrollbar-thumb {
    background: #1a3a28;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0d1f14 inset !important;
    -webkit-text-fill-color: #f5f0e8 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.hero-float-1 { animation: float 4s ease-in-out infinite; }
.hero-float-2 { animation: float-delayed 5s ease-in-out infinite; }
.hero-float-3 { animation: float 4.5s ease-in-out infinite 0.5s; }
.hero-float-4 { animation: float-delayed 5.5s ease-in-out infinite 1s; }

/* Subtle pulse for gold accent */
@keyframes gold-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0e8;
}
