/* Custom styles for Boaz Park & Red Pool */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Base color tokens */
:root {
    --midnight-900: #0a2540;
    --midnight-950: #051524;
    --midnight-50: #f0f6fb;
    --midnight-100: #dce9f5;
    --midnight-200: #b8d4ea;
    --midnight-300: #90b8d6;
    --midnight-600: #1a4a7a;
    --midnight-700: #143a5e;
    --midnight-800: #0e2d4a;
    --mint-300: #7ee8d0;
    --mint-400: #34d4b6;
    --mint-500: #2bb89a;
}

/* Selection color */
::selection {
    background-color: var(--mint-400);
    color: var(--midnight-900);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--midnight-900);
}
::-webkit-scrollbar-thumb {
    background: var(--midnight-700);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-600);
}

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

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

/* When JS is enabled, start elements hidden and animate them in */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Stagger children */
.js-enabled .reveal:nth-child(1) { transition-delay: 0s; }
.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }
.js-enabled .reveal:nth-child(5) { transition-delay: 0.4s; }
.js-enabled .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(5, 21, 36, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-bounce {
        animation: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-bounce,
    footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
