/* Custom styles for Guiding Star Lodge */

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(2, 44, 34, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animations */
#mobile-menu.open {
  display: block;
  animation: slideDown 0.25s ease;
}

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

#mobile-toggle.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}
#mobile-toggle.active #bar2 {
  opacity: 0;
}
#mobile-toggle.active #bar3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Mobile nav links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #059669;
  color: #FDF9F3;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
}
