/* Custom styles for Weston Heating & Air Conditioning */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a2e;
}
::-webkit-scrollbar-thumb {
    background: #581a87;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

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

/* Scroll reveal base styles */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Gold shimmer effect for accents */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse ring for the hero badge */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 168, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

/* Subtle gradient animation for hero background */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-reveal[data-reveal="hidden"] {
        opacity: 1;
        transform: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* Select dropdown styling */
select option {
    background: #1a0a2e;
    color: #f9f5ff;
}
