/* Custom styles for Batesville Lodge F&AM #668 */

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

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

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

::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #115e59;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* Navigation transitions */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

/* Hover effects for cards */
.group:hover .group-hover\\:bg-teal-600 {
    background-color: #0d9488;
}

.group:hover .group-hover\\:text-white {
    color: #ffffff;
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #navbar,
    .scroll-reveal,
    button,
    input,
    textarea {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-teal-700 {
        background-color: ButtonText;
    }
    
    .text-teal-700 {
        color: ButtonText;
    }
}

/* Loading state for form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Image loading placeholder */
img {
    background-color: #e2e8f0;
}

/* Selection color */
::selection {
    background-color: #0f766e;
    color: #ffffff;
}

/* Custom focus ring */
:focus-ring-teal {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Animation delays for staggered reveals */
.scroll-reveal:nth-child(1) {
    transition-delay: 0ms;
}

.scroll-reveal:nth-child(2) {
    transition-delay: 100ms;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 200ms;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 300ms;
}
