/* Custom styles for Fairview Small Engines */

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

/* Scroll reveal base - always visible, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar styles */
.nav-text {
    color: #102a43;
}

.nav-text-secondary {
    color: #486581;
}

.navbar-scrolled .nav-text {
    color: #102a43;
}

.navbar-scrolled .nav-text-secondary {
    color: #627d98;
}

/* Mobile menu button animation */
.menu-line {
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
}

/* Subtle gradient backgrounds */
.bg-navy-gradient {
    background: linear-gradient(135deg, #102a43 0%, #243b53 100%);
}

/* Gold accent gradient */
.gold-gradient {
    background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
}

/* Image hover zoom */
img {
    transition: transform 0.4s ease;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #9fb3c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #627d98;
}

/* Selection color */
::selection {
    background: #fde047;
    color: #102a43;
}
