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

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4a8a4a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(74, 138, 74, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f4;
}
::-webkit-scrollbar-thumb {
  background: #b8d8b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8fc08f;
}

/* Selection color */
::selection {
  background: #dcecdc;
  color: #2d552d;
}

/* Navbar height */
header nav {
  height: 72px;
}

/* Ensure hero images have proper aspect ratios on all screens */
@media (max-width: 1023px) {
  .lg\:aspect-\[3\/4\] {
    aspect-ratio: 4/5;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Print styles */
@media print {
  header, footer, #contact form, .faq-content {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    text-decoration: underline;
  }
}
