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

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

/* Subtle gradient on hero image overlay */
.hero-img-overlay {
  position: relative;
}
.hero-img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 80, 45, 0.08) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Subtle hover lift for cards */
.reveal {
  will-change: transform, opacity;
}

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

/* Header shadow on scroll */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
  background: #c3d9c3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #96be96;
}
