/* Custom styles beyond Tailwind */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a3023;
}

/* Selection color */
::selection {
    background: #c5a065;
    color: #0f1c15;
}

/* Hero parallax-like effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .hero-img {
        will-change: transform;
    }
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 48, 35, 0.08);
}

/* Image hover zoom with overflow hidden */
.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c5a065;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form input transitions */
input, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Button hover lift effect */
button, a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
