/* Custom styles and overrides */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
  background: #2d542d;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a6b3a;
}

/* Selection color */
::selection {
  background: rgba(45, 84, 45, 0.15);
  color: #1a1a1a;
}

/* Image loading placeholder */
img {
  background-color: #ebe8de;
}

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

/* Navbar solid background on scroll */
#navbar.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 84, 45, 0.08);
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .stat-card,
  img,
  .reveal {
    transition: none;
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
