/* Base styles and custom properties */
:root {
    --color-forest-50: #f0f5f0;
    --color-forest-100: #dce8dc;
    --color-forest-200: #b8d1b8;
    --color-forest-300: #8fb88f;
    --color-forest-400: #6a9a6a;
    --color-forest-500: #4a7a4a;
    --color-forest-600: #3d633d;
    --color-forest-700: #304d30;
    --color-forest-800: #253a25;
    --color-forest-900: #1a291a;
    --color-forest-950: #0f170f;
    --color-cream-50: #faf9f6;
    --color-cream-100: #f5f3ee;
    --color-cream-200: #ece8df;
}

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

/* Selection color */
::selection {
    background-color: #304d30;
    color: #f5f3ee;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f3ee;
}
::-webkit-scrollbar-thumb {
    background: #b8d1b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a9a6a;
}

/* Hero reveal animations - ONLY below the fold content gets animated */
.hero-reveal {
    /* Default state is visible - progressive enhancement */
}

@media (prefers-reduced-motion: no-preference) {
    .hero-reveal {
        will-change: transform, opacity;
    }
}

/* Scroll reveal for below-fold sections */
.reveal-section {
    /* Default: always visible */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Navbar transitions */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(48, 77, 48, 0.1);
}

/* Mobile menu */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile nav links */
.mobile-nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: #3d633d;
    transform: scale(1.02);
}

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-bottom-color: #8fb88f !important;
}

/* Button hover effects */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image lazy load placeholder */
img {
    background-color: #ece8df;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-section {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #1a291a;
        background: white;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #304d30;
    outline-offset: 2px;
}

/* Smooth image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\\:translate-y-\\[-2px] {
    transform: translateY(-2px);
}
