/* Custom styles for South Alabama Outdoors */

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

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(254, 252, 248, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar-scrolled .nav-text-color {
    color: #1c1917 !important;
}

.navbar-scrolled .nav-text-subtle {
    color: #78716c !important;
}

/* Hero text colors (light on dark overlay) */
.hero-mode .nav-text-color {
    color: #ffffff !important;
}

.hero-mode .nav-text-subtle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-mode .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
}

/* Default state: always visible (no JS required) */
.reveal {
    opacity: 1;
    transform: none;
}

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

/* Star rating hover */
.star {
    transition: transform 0.2s ease;
}

.star:hover {
    transform: scale(1.2);
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Button focus styles */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #d45030;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #f9ddd4;
    color: #6c261c;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c23d22;
}
