/* Custom styles for Padre's Place */

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

/* Hide scrollbar for gallery */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Nav scroll state */
#nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.3s ease;
}

#mobileMenu:not(.hidden) {
  opacity: 1;
}

#mobileMenu.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Scroll reveal animations — progressive enhancement only */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

  .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; }
}

/* Floating card animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-slow 5s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-card-3 {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Subtle gradient text */
.gradient-text {
  background: linear-gradient(135deg, #2d61a0, #3a9478);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover glow */
.glow-hover:hover {
  box-shadow: 0 0 40px rgba(95, 184, 152, 0.15);
}

/* Button focus visible */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #5fb898;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Selection color */
::selection {
  background-color: #c3e9d8;
  color: #0a1829;
}
