/* Custom styles for Thiel Cabinet Shop */

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

/* Scroll reveal base - visible by default for progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated state applied via JS */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(24px);
}

/* Navbar states */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar transparent over hero */
.navbar-transparent {
    background: transparent;
}

.navbar-transparent .nav-brand-text {
    color: #0f172a;
}

.navbar-transparent .nav-link {
    color: #475569;
}

.navbar-transparent .nav-link:hover {
    color: #0d9488;
}

/* Navbar solid on scroll */
.navbar-solid {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-solid .nav-brand-text {
    color: #0f172a;
}

.navbar-solid .nav-link {
    color: #475569;
}

.navbar-solid .nav-link:hover {
    color: #0d9488;
}

/* Hero text color when overlay is dark */
.hero-dark .nav-brand-text,
.hero-dark .nav-link {
    color: #f8fafc;
}

.hero-dark .nav-link:hover {
    color: #5eead4;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .scroll-reveal.animated {
        opacity: 1;
        transform: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    a, button {
        transition: none;
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
</style>
