/* Custom styles for SP Plumbing & Heating */

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

/* Navbar scroll effect */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

/* Hero animations */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.hero-image {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section header animation */
.section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service card hover */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial card animation */
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About section animation */
.about-image {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* Subtle gradient text effect for hero */
.text-plum-500 {
  background: linear-gradient(135deg, #5B2C6F 0%, #a866a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f0f7;
}

::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a2459;
}
