/* Custom styles for Wingate by Wyndham Stillwater */

:root {
    --forest-950: #0f1a11;
    --forest-900: #1e3222;
    --forest-800: #243d2a;
    --forest-700: #2d4d34;
    --forest-600: #3a6242;
    --forest-500: #4d7f56;
    --forest-400: #6fa076;
    --forest-300: #9cc5a3;
    --forest-200: #c6dfcc;
    --forest-100: #e3efe6;
    --forest-50: #f2f7f4;
    --offwhite-50: #faf9f7;
    --offwhite-100: #f5f3ef;
}

html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations - progressive enhancement */
.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);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .text-forest-900 {
    color: #1e3222 !important;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9cc5a3;
}

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

/* Selection color */
::selection {
    background: #c6dfcc;
    color: #1e3222;
}

/* Image placeholder fallback */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Print styles */
@media print {
    nav, #contactForm, button, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
