/* Custom styles complementing Tailwind */

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
  background: #3d633d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #315031;
}

/* Selection color */
::selection {
  background: rgba(31, 50, 32, 0.2);
  color: #1f3220;
}

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

/* 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;
  }
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Print styles */
@media print {
  nav, #backToTop, .mobile-menu {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .hero-text-shadow {
    text-shadow: none;
  }
}

/* Custom focus for form elements */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 1px #3d633d;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Better text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
