/* Custom styles for Hometown Established */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #95c5a0;
}

/* Selection color */
::selection {
    background: #c5dfcb;
    color: #11301a;
}

/* Hero parallax feel on scroll */
@media (prefers-reduced-motion: no-preference) {
    .group:hover img {
        transform: scale(1.05);
    }
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 132, 78, 0.08);
}

#navbar.scrolled .font-serif {
    color: #1b4f2a !important;
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Fade-in animation for scroll sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #3d844e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(61, 132, 78, 0.1);
}

/* Subtle gradient for hero text */
.text-gradient {
    background: linear-gradient(135deg, #c5dfcb 0%, #95c5a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
