/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #064e3b;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Hero animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-eyebrow ~ h1 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-eyebrow ~ h1 ~ p {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-eyebrow ~ h1 ~ p ~ div {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Scroll reveal - progressive enhancement via prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .service-card:nth-child(1) { transition-delay: 0.05s; }
  .service-card:nth-child(2) { transition-delay: 0.1s; }
  .service-card:nth-child(3) { transition-delay: 0.15s; }
  .service-card:nth-child(4) { transition-delay: 0.2s; }
  .service-card:nth-child(5) { transition-delay: 0.25s; }
  .service-card:nth-child(6) { transition-delay: 0.3s; }
}

/* Mobile menu */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* Nav scroll state */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

/* Selection color */
::selection {
  background: #059669;
  color: #fefdf8;
}
