/* Custom styles for N Laubach Enterprises */

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for scroll-reveal elements (visible without JS) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

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

/* Button hover lift effect */
button, a {
    transition: all 0.3s ease;
}

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

/* Selection color */
::selection {
    background-color: #c9952e;
    color: #0a1628;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: #0a1628 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form input focus animation */
input:focus,
textarea:focus,
select:focus {
    border-color: #c9952e;
    box-shadow: 0 0 0 3px rgba(201, 149, 46, 0.1);
}

/* Service card hover */
.group:hover .group-hover\:bg-gold-400 {
    background-color: #d4a843;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}
