/* Custom overrides and enhancements beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Navigation active state */
.nav-link-active {
  color: #ff6b3f;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Scroll reveal base - content is visible by default (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.animate {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.animate.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle image hover */
img {
  transition: transform 0.5s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ff6b3f;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Selection color */
::selection {
  background: #ff6b3f;
  color: #1f1f1f;
}

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