/* Custom styles for Firehouse Fence LLC */

:root {
    --color-charcoal-950: #0a0a09;
    --color-charcoal-900: #1c1c1a;
    --color-charcoal-800: #2a2a28;
    --color-charcoal-700: #3f3f3c;
    --color-charcoal-500: #51504d;
    --color-charcoal-400: #73726e;
    --color-charcoal-300: #a8a7a4;
    --color-charcoal-200: #d4d4d2;
    --color-coral-500: #e8634a;
    --color-coral-600: #d14e38;
    --color-gold-400: #e8c46a;
    --color-gold-500: #c9a84c;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal base — content always visible, animation is progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 10, 9, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Gold shimmer animation for hero gradient */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle glow for coral elements */
@keyframes soft-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(232, 99, 74, 0.15); }
    50% { box-shadow: 0 0 40px rgba(232, 99, 74, 0.3); }
}

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

::-webkit-scrollbar-track {
    background: #0a0a09;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #51504d;
}

/* Selection color */
::selection {
    background: rgba(232, 99, 74, 0.3);
    color: #f7f7f6;
}

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

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

/* Select dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2373726e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

/* Subtle card hover border glow */
.group:hover .group-hover\:border-coral-500\/40 {
    border-color: rgba(232, 99, 74, 0.4);
}

/* Ensure all images have smooth rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
