/* ===== CUSTOM STYLES ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f3ed;
}
::-webkit-scrollbar-thumb {
  background: #85c985;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #286e28;
}

/* Navbar active state */
nav a.active {
  background: #d9eed9;
  color: #1f571f;
}

/* Service card hover glow */
.service-card:hover {
  border-color: #85c985;
  box-shadow: 0 20px 40px rgba(31, 87, 31, 0.1);
}

/* Review card hover */
.review-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

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

/* Scroll reveal animations (below fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-24px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(24px);
  }

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

  /* Staggered delays for grid items */
  .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; }

  .review-card:nth-child(1) { transition-delay: 0.05s; }
  .review-card:nth-child(2) { transition-delay: 0.15s; }
  .review-card:nth-child(3) { transition-delay: 0.25s; }
}

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

/* Selection color */
::selection {
  background: #d9eed9;
  color: #143714;
}
