/* Custom styles beyond Tailwind */

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

/* Subtle gradient overlay on hero text area */
.hero-bg::before {
  content: '';
  display: block;
}

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

/* Selection color */
::selection {
  background-color: #a8ccaa;
  color: #0f5132;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8faf2;
}
::-webkit-scrollbar-thumb {
  background: #a8ccaa;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #72af7a;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover lift */
.group:hover {
  transform: translateY(-2px);
}

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