/* Custom styles and overrides */

:root {
    --forest-600: #236d23;
    --forest-700: #1d571d;
    --forest-800: #184518;
}

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

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

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

.nav-scrolled .nav-text-color {
    color: #1a5f3a !important;
}

.nav-scrolled .nav-subtext {
    color: #236d23 !important;
}

.nav-scrolled .nav-link {
    color: #4b5563 !important;
}

.nav-scrolled .nav-link:hover {
    color: #236d23 !important;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: left;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: ensure content is always visible */
@supports not (animation: reveal 0.7s ease) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #236d23;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #85c57e;
}

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

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

/* Button hover effects */
a[href="tel:+12098382278"] {
    text-decoration: none;
}

/* Card hover shadow enhancement */
.group:hover .group-hover\\:bg-forest-600 {
    background-color: rgb(35 109 35);
}

/* Ensure proper contrast on all backgrounds */
.bg-forest-800,
.bg-forest-700,
.bg-forest-600 {
    color: white;
}

.bg-offwhite-50,
.bg-offwhite-100 {
    color: #1f2937;
}

/* Print styles */
@media print {
    nav, footer, #contact-form button, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-800 {
        background: #1a5f3a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
