/* Custom styles for Freestate Grand Lodge */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #166534;
    color: #fefdf8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle pattern overlay for decorative sections */
.bg-pattern {
    background-image: radial-gradient(circle, rgba(22, 101, 52, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Prevent layout shift on image load */
img {
    content-visibility: auto;
}

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

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

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

/* Print styles */
@media print {
    header,
    #contact,
    .bg-pattern {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
