/* Pristine Pool Care - Custom Styles */

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

/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.92) 0%, rgba(8, 145, 178, 0.88) 100%);
}

/* Water shimmer animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.water-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* Fade in on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Card hover effects */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* CTA pulse animation */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.cta-pulse {
  position: relative;
}

.cta-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: inherit;
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

/* Star rating */
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
}

/* Sticky header */
.nav-scrolled {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}

/* Breadcrumb separator */
.breadcrumb-sep::after {
  content: '/';
  margin: 0 0.5rem;
  color: #94a3b8;
}

/* Blog card image overlay */
.blog-card-img {
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
  transform: scale(1.05);
}

/* Testimonial cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 4rem;
  color: rgba(8, 145, 178, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Phone number highlight */
.phone-link {
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: #0891b2;
}

/* Service area badge */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #1e40af;
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  nav, footer, .cta-pulse, .mobile-menu {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  a {
    text-decoration: underline;
  }
}
