/* Custom styles beyond Tailwind */

:root {
    --color-forest-50: #f0f7f0;
    --color-forest-900: #0c2a0c;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation transition states */
.nav-scrolled {
    background-color: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-scrolled .nav-subtext {
    color: #1a5c1a !important;
}

.nav-scrolled .nav-link {
    color: #1a5c1a !important;
}

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

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

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4fa84f;
}

/* Mobile nav link hover */
.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dcefdc;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Service card image hover */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Ensure proper text contrast on all backgrounds */
.text-forest-600 {
    color: #1a5c1a;
}

.text-forest-700 {
    color: #134513;
}

.text-forest-800 {
    color: #0f350f;
}

.text-forest-900 {
    color: #0c2a0c;
}

/* Smooth image loading */
img {
    loading: lazy;
}
