/* Custom styles supplementing Tailwind */

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

/* Selection color */
::selection {
  background-color: #2c5e2c;
  color: #fdfcfa;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #2c5e2c;
  outline-offset: 2px;
}

/* Subtle grain texture overlay on hero */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

#hero > * {
  position: relative;
  z-index: 2;
}

/* Button press effect */
.cta-btn:active {
  transform: scale(0.97);
}

/* Image lazy load fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Reduced motion */
@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; }
  .reveal { opacity: 1; transform: none; }
}
