/* Custom styles for Billingsley House Moving and Demolition */

html {
  scroll-behavior: smooth;
}

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

/* Navbar scroll shadow */
#nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

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

/* Fallback: always visible if JS is disabled or reduced motion preferred */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* If JS doesn't run, ensure reveals are visible */
.no-js .reveal,
.js-disabled .reveal {
  opacity: 1;
  transform: none;
}

/* Button hover effects */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Selection color */
::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}

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

/* Smooth image loading */
img {
  loading: lazy;
}

/* 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;
}

/* Hero section */
#top {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Gallery hover */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Print styles */
@media print {
  header, #contact, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  #nav {
    position: relative;
    box-shadow: none;
  }
}
