/* Azalea-Masonic Lodge 898 F & Am — Custom Styles */

/* Base resets and utilities */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(59, 15, 92, 0.97) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(148, 63, 188, 0.15);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Form focus styles */
input:focus,
textarea:focus {
  outline: none;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* Smooth transitions for interactive elements */
a, button {
  transition: all 0.2s ease;
}

/* Card hover effects */
.card-shadow {
  box-shadow: 0 4px 24px rgba(111, 31, 168, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-shadow:hover {
  box-shadow: 0 8px 40px rgba(111, 31, 168, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Selection color */
::selection {
  background: rgba(168, 77, 255, 0.2);
  color: #3b0f5c;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #a84dff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333e6;
}
