/* Coleman Concrete — Custom Styles */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8edbc0;
}

/* Navigation transition states */
.nav-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

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

.navbar-scrolled .nav-text {
    color: #0f2140 !important;
}

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

.navbar-scrolled .mobile-link {
    color: #153060 !important;
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Progressive enhancement: only animate when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-out {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide animated state by default (no-JS fallback: content stays visible) */
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.js-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero parallax subtle effect */
#hero {
    will-change: transform;
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.open {
    max-height: 500px;
}

/* Service card hover glow */
.group:hover .group-hover\:bg-mint-400 {
    box-shadow: 0 8px 24px rgba(58, 173, 135, 0.25);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(58, 173, 135, 0.15);
}

/* Print styles */
@media print {
    nav, #contactForm, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-800, .bg-midnight-900 {
        background: #f5f5f5 !important;
    }
}
