/* Riverside Rifles — Custom Styles */

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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection color */
::selection {
    background-color: #166534;
    color: #faf5eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #052e16;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Gold accent utility */
.gold-text {
    color: #c9a84c;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #c9a84c, #e8c96a, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover underline for links */
a.hover-underline {
    position: relative;
}
a.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #c9a84c;
    transition: width 0.3s ease;
}
a.hover-underline:hover::after {
    width: 100%;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #menuBtn, #closeIcon {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .hero-gradient {
        background: #166534 !important;
    }
}
