/* Custom styles for Sons of David Masonic Lodge #24 */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3fa;
}
::-webkit-scrollbar-thumb {
  background: #c8a44e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b08d32;
}

/* Selection color */
::selection {
  background: #c8a44e;
  color: #0a1628;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8a44e;
  outline-offset: 2px;
}

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

/* Fade-in animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Gold gradient text utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #edcf5c 0%, #c8a44e 50%, #b08d32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

/* Navbar glass effect on scroll */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* Card tilt effect on hover */
.card-tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-tilt:hover {
  transform: translateY(-4px);
}
