/* ═══════════════════════════════════════════
   Ph F&A Suburban Lodge No. 213 — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(250, 248, 246, 0.95) !important;
  box-shadow: 0 1px 20px rgba(156, 28, 52, 0.08);
}

/* ── Mobile menu ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(156, 28, 52, 0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:last-child {
  border-bottom: none;
}
.mobile-link:hover {
  color: #9c1c34;
  padding-left: 0.5rem;
}

/* ── Floating animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ── Scroll reveal (below-fold only, progressive enhancement) ── */
@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; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f6;
}
::-webkit-scrollbar-thumb {
  background: #d9c4b0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b92640;
}
