/* Custom styles for PRS Plumber Visalia */

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

/* Navigation scroll effect */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-text {
  color: #0f172a;
}

.nav-scrolled .nav-link {
  color: #475569;
}

.nav-transparent .nav-link {
  color: #475569;
}

/* Hero image animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Fade-in animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-up.visible.delay-100 { transition-delay: 100ms; }
.fade-in-up.visible.delay-200 { transition-delay: 200ms; }
.fade-in-up.visible.delay-300 { transition-delay: 300ms; }
.fade-in-up.visible.delay-400 { transition-delay: 400ms; }
.fade-in-up.visible.delay-500 { transition-delay: 500ms; }

/* Service card hover effect */
.group:hover .group-hover\:translate-y-1 {
  transform: translateY(-4px);
}

/* Mobile menu transitions */
#mobileMenu {
  transition: transform 0.3s ease;
}

/* Body lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

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

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

/* Print styles */
@media print {
  nav, #contact, .cta-banner {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
