/* Custom styles for Blairs Organic Tree Farm */

html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-track {
    background: #0F1419;
}

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

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

/* Selection color */
::selection {
    background: #E8634A;
    color: #fff;
}

/* Service cards - visible by default for progressive enhancement */
.service-card {
    opacity: 1;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    img {
        transition: none !important;
    }
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(15, 20, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 74, 86, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal base - hidden by default, JS adds visible state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

/* Hero text shadow for readability on any background */
.hero-text-shadow {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
