/* Custom styles for R&R Home Warranty Solutions */

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

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

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

/* Pulse effect for CTA buttons */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-pulse-hover:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Custom gradient backgrounds */
.bg-gradient-maroon {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #FFDB58 100%);
}

/* Plan card hover effects */
.plan-card {
  transition: all 0.3s ease;
}

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #FFDB58 100%);
  color: #8B0000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #FFDB58;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Testimonial styles */
.testimonial {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-left: 4px solid #D4AF37;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Form styles */
.form-input {
  border: 2px solid #e2e8f0;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: #D4AF37;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

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

/* Floating elements */
.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Trust badges */
.trust-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Pricing highlight */
.price-highlight {
  position: relative;
}

.price-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, #FFDB58);
}

/* Coverage list animations */
.coverage-item {
  transition: all 0.3s ease;
}

.coverage-item:hover {
  background-color: rgba(212, 175, 55, 0.1);
  padding-left: 1rem;
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Background parallax effects */
.parallax-bg {
  background-attachment: fixed !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Scroll reveal animations */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slideInFromBottom 0.8s ease-out;
}

/* Background overlay effects */
.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

/* Enhanced section transitions */
.section-transition {
  transition: all 0.3s ease-in-out;
}

.section-transition:hover {
  transform: translateY(-2px);
}

/* Floating animation for background elements */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

/* Background texture overlay */
.texture-overlay {
  position: relative;
}

.texture-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20zm0-20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8B0000;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #D4AF37 0%, #FFDB58 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}