/* Custom Styles for C.H.PLUMBING */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Service Card Enhancements */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section Background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(20, 184, 166, 0.05) 100%);
  z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile CTA Pulse Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Image Loading Optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Lazy Load Blur Effect */
img[loading="lazy"] {
  filter: blur(5px);
  transition: filter 0.3s;
}

img[loading="lazy"].loaded {
  filter: blur(0);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
  outline: 2px solid #14B8A6;
  outline-offset: 2px;
}

/* Prevent Layout Shift */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

/* Mobile Bottom Bar Spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }
}

/* Profile Image Circular Crop */
.profile-image {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 4px solid #14B8A6;
}

/* Hero Background Image Optimization */
#hero .hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Print Styles */
@media print {
  header,
  #mobile-cta {
    display: none;
  }
}
