/* Custom styles for Gallatin Valley Vision */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #b8d1c0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb89a;
}

/* Selection color */
::selection {
    background: #1B4332;
    color: #FDFBF7;
}

/* Reveal animations - progressive enhancement, only applies when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible if JS is disabled */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Button ripple-like effect on focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #1B4332;
    outline-offset: 2px;
}

/* Subtle hover lift for cards */
.rounded-3xl {
    will-change: transform;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dce8e0 0%, #f0f5f2 100%);
}

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

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

/* Gold accent underline for headings */
.section-label {
    position: relative;
    display: inline-block;
}

/* Ensure all text meets contrast requirements */
.text-forest-200 {
    color: #b8d1c0;
}

.text-forest-300 {
    color: #8fb89a;
}
