/* Custom styles for AB Construction & Remodeling */

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

/* Scroll reveal base - content visible by default */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal when animated - only apply if JS adds class */
.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobileMenu.open {
  max-height: 400px;
  padding: 0 0;
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Remove default focus outlines, add custom */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js-enabled .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  img, .group-hover\:scale-105 {
    transition: none;
  }
  .transform, a, button {
    transition: none;
  }
}
