/* Custom styles for Abernathy Roofing - Hollister */

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

/* Mobile menu animations */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@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);
  }

  .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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar shadow on scroll */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(30, 33, 39, 0.08);
}

/* Selection color */
::selection {
  background-color: #ff5c2e;
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9fa4b0;
}

/* Service card hover lift */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Form focus ring animation */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Mobile link hover effect */
.mobile-link {
  transition: all 0.2s ease;
}
</style>
