/* Custom styles for Parker Landscape Management */

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

/* Header scroll state */
#site-header.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 60, 42, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Mobile menu active state */
#mobile-menu.active {
  display: block;
}

/* Hamburger animation */
#mobile-toggle.active .line1 {
  transform: rotate(45deg) translate(4px, 4px);
}
#mobile-toggle.active .line2 {
  opacity: 0;
}
#mobile-toggle.active .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Intersection observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom selection color */
::selection {
  background: #3a6b45;
  color: white;
}

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

/* Remove default focus for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Subtle pattern for hero section */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(74, 130, 86, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(74, 130, 86, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #eae6dc 0%, #d8d2c4 100%);
}

/* Service card hover lift */
.group:hover {
  transform: translateY(-2px);
}

.group {
  transition: transform 0.3s ease;
}

/* Mobile link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(26, 60, 42, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}
