/* Custom styles — overrides and additions beyond Tailwind */

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

/* Hero image parallax-like effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-image-col img {
        transition: transform 0.1s linear;
    }
}

/* Selection color */
::selection {
    background: rgba(80, 128, 48, 0.2);
    color: #1f3414;
}

/* Focus visible for keyboard nav */
*:focus-visible {
    outline: 2px solid #508030;
    outline-offset: 2px;
}

/* Subtle grain texture overlay on hero */
.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Decorative leaf pattern for sections */
.pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(31, 52, 20, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2330501f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    appearance: none;
}

/* Date input styling */
input[type="date"] {
    color-scheme: light;
}

/* 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;
    }
}

/* Print styles */
@media print {
    .navbar, #mobile-menu, button {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
