/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #9cc59f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6fa372;
}

/* Hero image parallax-like fixed background on large screens */
#hero {
    scroll-behavior: smooth;
}

/* Ensure all links are underlined on focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4d8252;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background-color: #c5dfc9;
    color: #1f3523;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background-color: rgba(250, 250, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Print styles */
@media print {
    header, footer, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        text-decoration: underline;
        color: #000;
    }
}
