/* Custom styles for JM Plumbing Company */

html {
  scroll-behavior: smooth;
}

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

/* Subtle gradient background for the hero overlay area */
#top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #f2fbf7, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Service card hover glow */
.group:hover .w-12 {
  box-shadow: 0 0 20px rgba(95, 211, 154, 0.3);
}

/* Form input focus ring animation */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(95, 211, 154, 0.15);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f2fbf7;
}
::-webkit-scrollbar-thumb {
  background: #bdefd6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8ce3b8;
}

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

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  header, #contact-form, iframe {
    display: none;
  }
  body {
    color: #0f1a3d;
    background: white;
  }
}
