/* Custom styles beyond Tailwind */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(31, 51, 20, 0.08);
}

/* Service card hover */
.service-card {
    border: 1px solid rgba(63, 102, 41, 0.08);
}

/* Gallery item */
.gallery-item {
    cursor: pointer;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
}

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

/* Active nav link */
.nav-link-active {
    color: #3f6629;
}

/* Custom selection */
::selection {
    background: #c6d9b0;
    color: #1f3314;
}

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

/* Fade-in animations for below-fold sections */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery hover effect */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 10, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(63, 102, 41, 0.15);
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}

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

::-webkit-scrollbar-track {
    background: #fefdf8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9dbe78;
}
