/* Custom styles for Daniels Lawn Care Services */

html {
  scroll-behavior: smooth;
}

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

/* Hero floating card delays for staggered effect */
.float-1 { animation-delay: 0s; }
.float-2 { animation-delay: 0.5s; }
.float-3 { animation-delay: 1s; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Service card hover */
.service-card {
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 44, 34, 0.12);
}

/* CTA card hover */
.cta-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(2, 44, 34, 0.2);
}

/* Smooth focus for accessibility */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Selection color */
::selection {
  background-color: #a7f3d0;
  color: #064e3b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fefdf8;
}

::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* Navigation shadow on scroll */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(2, 44, 34, 0.1);
}
