/* Custom styles for Masonic Lodge No 105 AF & AM */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: rgba(22, 101, 52, 0.15);
  color: #052e16;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Nav transition states */
nav.scrolled #nav-logo {
  color: #15803d;
}

nav.scrolled #nav-brand,
nav.scrolled #nav-subbrand {
  color: #15803d;
}

nav.scrolled .md\\:flex a {
  color: #15803d;
}

/* Image hover smoothness */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #166534;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  section {
    page-break-inside: avoid;
  }
}
