/* Custom styles for JustDogs */

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

/* Custom selection color */
::selection {
  background-color: #a85588;
  color: #f8f3f7;
}

/* Hero image parallax-like effect on scroll */
#hero img {
  will-change: transform;
}

/* Navbar transition */
#navbar.scrolled {
  background-color: rgba(46, 17, 37, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .font-serif {
  color: #f8f3f7 !important;
}

#navbar.scrolled a:not(.bg-amber-600) {
  color: #e6cddb !important;
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

/* Subtle hover animation for cards */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

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

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

/* Remove default focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu-btn,
  button {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  #hero {
    min-height: auto;
    padding: 2rem 0;
  }
}
