/* Custom overrides and additional styles */

/* Smooth focus outlines */
*:focus-visible {
  outline: 2px solid #14532d;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: #14532d;
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefdf8;
}
::-webkit-scrollbar-thumb {
  background: #14532d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Prevent content jump on mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure nav doesn't overlap content on scroll */
section[id] {
  scroll-margin-top: 80px;
}

/* Service card accent bar on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #14532d, #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px 24px 0 0;
}
.service-card {
  position: relative;
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* Nav active state */
.nav-link.active {
  color: #14532d;
}
.nav-link.active::after {
  width: 100%;
}

/* Reduce motion for accessibility */
@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; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
