/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: #dcefdc;
    color: #1a3a1a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfcfa;
}
::-webkit-scrollbar-thumb {
    background: #bfe1bf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8ec98e;
}

/* Subtle gradient for card backgrounds */
.card-hover {
    background: linear-gradient(135deg, #fdfcfa 0%, #f5f0e8 100%);
}

/* Hero gradient overlay for images */
.hero-img-overlay {
    position: relative;
}
.hero-img-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 26, 0.3) 0%, transparent 50%);
    border-radius: inherit;
}

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