/* Custom styles — overrides and enhancements beyond Tailwind */

/* Subtle gradient on body */
body {
  background-image: linear-gradient(180deg, #fafaf9 0%, #fff7ed 50%, #fff5f0 100%);
  background-attachment: fixed;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #f06030;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fafaf9;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Hero image parallax-like subtle float on load */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-float {
  animation: float 4s ease-in-out infinite;
}

/* Nav blur fallback */
@supports not (backdrop-filter: blur(12px)) {
  #navbar {
    background-color: rgba(250, 250, 249, 0.97);
  }
}

/* Selection color */
::selection {
  background-color: #ffd0b4;
  color: #7a200c;
}

/* Card image zoom helper */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

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