/* Custom styles for Cooley Timber Company */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(168, 68, 135, 0.08);
}

.navbar-scrolled .nav-text {
    color: #501e3e !important;
}

.navbar-scrolled .nav-link {
    color: #501e3e !important;
}

.navbar-transparent .nav-text {
    color: #501e3e !important;
}

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

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

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

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

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

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

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a84487;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #ebbdd7;
    color: #501e3e;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Ensure hero content is always visible */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex,
#hero .grid {
    opacity: 1 !important;
    transform: none !important;
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
