/* Custom styles beyond Tailwind */
html {
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
  background: #87A878;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2D5A3D;
}

/* Burger animation */
.burger-active .burger-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-active .burger-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Header shadow on scroll */
.header-scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* Phone input */
input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #2D5A3D;
  outline-offset: 2px;
}

/* Hero section - first child animations auto-play */
#hero .animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  animation: slideUp 0.8s ease-out;
}

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