/* Custom styles for Procrafters Drywall Service */

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

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

/* Floating card animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 5s;
}

/* Scroll reveal base — always visible by default for accessibility */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Progressive enhancement: add hidden state only when JS runs and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Reduced motion: disable animations entirely */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }
  .scroll-reveal {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
