/* ========================================
   Morning Glory Lodge #354 PHA
   Custom Styles — Emerald & Cream Editorial
   ======================================== */

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

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

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

/* Hero blobs animation */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 25px) scale(1.03); }
  66% { transform: translate(15px, -15px) scale(0.97); }
}

@keyframes float-fast {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 20px) scale(1.04); }
}

.hero-blob {
  animation: float-slow 20s ease-in-out infinite;
}

.blob-1 {
  animation-delay: 0s;
}

.blob-2 {
  animation: float-medium 16s ease-in-out infinite;
  animation-delay: -4s;
}

.blob-3 {
  animation: float-fast 12s ease-in-out infinite;
  animation-delay: -2s;
}

/* Scroll reveal — progressive enhancement */
/* Default state: visible (no JS required) */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  /* Stagger children */
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(5, 46, 22, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-transparent {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

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

/* Focus styles */
:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* Image placeholder fallback */
img {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
}

/* Print styles */
@media print {
  nav, #contact-form, button {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
