/* Custom Styles & High-Legibility Background Imagery for La Jolla Drain Pros */

/* Smooth scroll behavior & Mobile Friendly Layout Rules */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: 76px;
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }
}

/* Hero Section with High-Quality Background Image & Clean Gradient Mask */
.hero-bg {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.82) 50%, rgba(240, 249, 255, 0.86) 100%),
    url('https://images.unsplash.com/photo-1607472586893-edb57bdc0e39?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Signs Section with Soft Light Background Image */
.signs-bg {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 50%, rgba(241, 245, 249, 0.92) 100%),
    url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero - Emergency Drain Cleaning (Plumbing Fixture / Rapid Repair) */
.emer-hero-bg {
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(110deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.80) 50%, rgba(239, 246, 255, 0.75) 100%),
    url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Hero - Clogged Drain Removal (Modern Clean Sink / Bathroom Drain) */
.clog-hero-bg {
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(110deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.80) 50%, rgba(240, 249, 255, 0.75) 100%),
    url('https://images.unsplash.com/photo-1507089947368-19c1da9775ae?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Hero - Hydro Jetting (High-Pressure Mechanical Piping & Water Systems) */
.jetting-hero-bg {
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(110deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.80) 50%, rgba(240, 249, 255, 0.75) 100%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Hero - Video Camera Inspection (Diagnostic Scopes / Technical Pipe Probe) */
.camera-hero-bg {
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(110deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.80) 50%, rgba(240, 249, 255, 0.75) 100%),
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Mid-Page Highlight - Real Situations / Tools (Licensed Technician & Professional Plumbing Equipment) */
.plumbing-mid-bg {
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.80) 50%, rgba(240, 249, 255, 0.78) 100%),
    url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark Bottom Section - High-Contrast Heavy Duty Plumbing */
.dark-contrast-section {
  position: relative;
  background-color: #0c1c2e;
  background-image: 
    linear-gradient(135deg, rgba(11, 25, 44, 0.90) 0%, rgba(8, 47, 73, 0.86) 50%, rgba(11, 25, 44, 0.92) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Glassmorphism subtle effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Smooth modal popup animation */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-scaleUp {
  animation: scaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom scrollbar for modern feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Active header state when scrolled */
.header-scrolled {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
}

/* Infinite continuous moving gallery (Marquee ticker) */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.gallery-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}
