/* Custom styles for Windmill Hill Farms */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fef9ee;
}

::-webkit-scrollbar-thumb {
  background: #166534;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Selection color */
::selection {
  background: #166534;
  color: #fef9ee;
}

/* Form focus styles */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

/* Subtle pattern for hero section */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
