/* Devon Heat Pumps - Custom Styles */

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

/* Top bar */
.top-bar {
  background-color: #0f172a;
}

/* Navigation */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.8) 100%);
}

/* Service cards */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card .icon-wrap {
  transition: background-color 0.3s ease;
}

.service-card:hover .icon-wrap {
  background-color: #e00b79;
}

.service-card:hover .icon-wrap svg {
  color: white;
}

/* Stats counter animation */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Testimonial carousel */
.testimonial-track {
  transition: transform 0.5s ease;
}

/* CTA section gradient */
.cta-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

.mobile-menu.open {
  max-height: 500px;
}

/* Button hover effects */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 11, 121, 0.4);
}

.btn-outline {
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: white;
  color: #0f172a;
}

/* Why choose us icons */
.feature-icon {
  transition: transform 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
}

/* Footer links */
.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  padding-left: 4px;
  color: #e00b79;
}

/* Scroll fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Hero background image */
.hero-bg {
  background-image: url('../images/hero_1.png');
  background-size: cover;
  background-position: 70% center;
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 75% center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
}
