/* Custom styles supplementing Tailwind */

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

/* Custom selection color */
::selection {
  background-color: rgba(26, 92, 58, 0.2);
  color: #0F3D26;
}

/* Subtle image hover zoom */
img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Mobile menu animations */
#mobile-menu.open .mobile-link {
  animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger animation */
#menu-toggle.active #bar1 {
  transform: translateY(5px) rotate(45deg);
}
#menu-toggle.active #bar2 {
  opacity: 0;
}
#menu-toggle.active #bar3 {
  transform: translateY(-5px) rotate(-45deg);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1A5C3A;
  outline-offset: 2px;
}

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

/* Navbar background transition on scroll */
nav.scrolled {
  box-shadow: 0 1px 0 rgba(15, 61, 38, 0.08);
}

/* Asymmetric hero image overlap */
@media (min-width: 1024px) {
  .lg\:col-span-5 {
    margin-top: 60px;
  }
}
