/* Custom styles for Illinois Appraisal */

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-scrolled .nav-logo-text {
    color: #0f172a !important;
}

.nav-scrolled a:not(.bg-teal-600):not(.text-white) {
    color: #334155 !important;
}

.nav-scrolled a:not(.bg-teal-600):not(.text-white):hover {
    color: #0d9488 !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Subtle gradient for hero overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

#hero > .absolute {
    z-index: 2;
}

#hero > .relative {
    z-index: 3;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #134e4a;
}

/* Mobile menu button active state */
#mobile-menu-btn:active {
    background-color: #f1f5f9;
}

/* Card hover tilt effect */
@media (prefers-reduced-motion: no-preference) {
    .group:hover {
        transform: translateY(-4px);
    }
}
