/* Custom styles for Central New Hampshire Snowmobile Club */

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

/* Navbar styles */
.navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.navbar.scrolled {
    background: rgba(254, 253, 248, 0.98);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

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

.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Hero section */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(6, 78, 59, 0.7) 0%,
        rgba(6, 78, 59, 0.6) 50%,
        rgba(6, 78, 59, 0.8) 100%
    );
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fefdf8;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: rgba(254, 253, 248, 0.1);
    color: #fefdf8;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid rgba(254, 253, 248, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(254, 253, 248, 0.2);
    border-color: rgba(254, 253, 248, 0.5);
}

/* Trail cards */
.trail-card {
    transform: translateY(0);
}

.trail-card:hover {
    transform: translateY(-4px);
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Success message */
.success-message {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

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