/**
 * The Duct Ninjas - Modern Color Scheme & Enhanced Styling
 * Custom theme overrides for a modern, trendy design
 */

/* Brand Colors */
:root {
  --jade: #44af69;
  --imperial-red: #f8333c;
  --orange-web: #fcab10;
  --moonstone: #2b9eb3;
  --pearl: #dbd5b5;

  /* Brand Gradients */
  --gradient-primary: linear-gradient(135deg, var(--jade), var(--moonstone));
  --gradient-secondary: linear-gradient(
    135deg,
    var(--orange-web),
    var(--imperial-red)
  );
  --gradient-accent: linear-gradient(45deg, var(--jade), var(--orange-web));
  --gradient-radial: radial-gradient(circle, var(--jade), var(--moonstone));
}

/* Override accent colors throughout the site */
:root {
  --accent-color: var(--jade) !important;
}

/* Enhanced Logo Text */
.logo-text {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.logo-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.logo-text:hover::before {
  opacity: 0.1;
}

.logo-text:hover {
  transform: scale(1.05) !important;
  text-shadow: 0 5px 15px rgba(68, 175, 105, 0.3) !important;
}

/* Enhanced Detailed Services Section */
.detailed-services {
  background: linear-gradient(135deg, #1b1a1a, #2a2a2a) !important;
  position: relative;
  overflow: hidden;
}

.detailed-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(68, 175, 105, 0.05),
    rgba(43, 158, 179, 0.05)
  );
  pointer-events: none;
}

.detailed-services .section-title h2 {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  position: relative;
  z-index: 1;
}

.service-detail-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  ) !important;
  border: 1px solid rgba(68, 175, 105, 0.2) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(68, 175, 105, 0.1),
    rgba(43, 158, 179, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-detail-card:hover::before {
  opacity: 1;
}

.service-detail-card:hover {
  transform: translateY(-10px) !important;
  border-color: var(--jade) !important;
  box-shadow: 0 20px 40px rgba(68, 175, 105, 0.2) !important;
}

.service-detail-card .service-icon {
  background: var(--gradient-primary) !important;
  transition: all 0.4s ease;
}

.service-detail-card:hover .service-icon {
  transform: scale(1.1) !important;
  box-shadow: 0 10px 30px rgba(68, 175, 105, 0.3);
}

.service-detail-card:hover .service-icon i {
  transform: rotate(360deg);
}

.service-detail-card h3 {
  color: var(--jade) !important;
  position: relative;
  z-index: 1;
}

.service-detail-card .service-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail-card .service-highlights li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 15px;
  background: rgba(68, 175, 105, 0.1);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.service-detail-card .service-highlights li:hover {
  background: rgba(68, 175, 105, 0.2);
  transform: translateX(5px);
}

.service-detail-card .service-highlights li i {
  color: var(--jade);
  margin-right: 10px;
  font-size: 18px;
}

.service-detail-card .service-features {
  background: linear-gradient(
    135deg,
    rgba(252, 171, 16, 0.1),
    rgba(248, 51, 60, 0.1)
  );
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  border-left: 4px solid var(--orange-web);
}

.service-detail-card .service-cta {
  text-align: center;
  margin-top: 30px;
}

.service-detail-card .btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.service-detail-card .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.service-detail-card .btn:hover::before {
  left: 100%;
}

.service-detail-card .btn-premium {
  background: var(--gradient-primary);
  color: white;
}

.service-detail-card .btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(68, 175, 105, 0.4);
}

.service-detail-card .btn-hvac {
  background: var(--gradient-secondary);
  color: white;
}

.service-detail-card .btn-hvac:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(252, 171, 16, 0.4);
}

.service-detail-card .btn-chimney {
  background: linear-gradient(135deg, var(--moonstone), var(--jade));
  color: white;
}

.service-detail-card .btn-chimney:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(43, 158, 179, 0.4);
}

/* Enhanced FAQ Section */
.faq {
  background: linear-gradient(135deg, #1b1a1a, #2a2a2a) !important;
  position: relative;
}

.faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(68, 175, 105, 0.03),
    rgba(43, 158, 179, 0.03)
  );
  pointer-events: none;
}

.faq .section-title h2 {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  ) !important;
  border: 1px solid rgba(68, 175, 105, 0.2) !important;
  border-radius: 15px !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: var(--jade) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(68, 175, 105, 0.15) !important;
}

.faq-question {
  padding: 25px 30px !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  transition: all 0.3s ease !important;
}

.faq-question:hover {
  background: rgba(68, 175, 105, 0.1) !important;
}

.faq-question h3 {
  color: var(--jade) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  flex: 1 !important;
}

.faq-icon {
  color: var(--jade) !important;
  font-size: 20px !important;
  transition: transform 0.3s ease !important;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg) !important;
}

.faq-answer {
  padding: 0 30px 25px !important;
  display: none !important;
  animation: fadeInUp 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block !important;
}

.faq-answer p {
  color: #f8f8f8 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Contact Section */
.contact {
  background: linear-gradient(135deg, #1b1a1a, #2a2a2a) !important;
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(68, 175, 105, 0.05),
    rgba(43, 158, 179, 0.05)
  );
  pointer-events: none;
}

.contact .section-title h2 {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.contact-cta-wrapper {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  ) !important;
  border: 1px solid rgba(68, 175, 105, 0.2) !important;
  border-radius: 20px !important;
  padding: 40px 30px !important;
  text-align: center !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}

.contact-cta-wrapper:hover {
  border-color: var(--jade) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 40px rgba(68, 175, 105, 0.2) !important;
}

.contact-cta-wrapper .cta-header h3 {
  color: var(--jade) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
}

.contact-cta-wrapper .btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 15px 40px !important;
  border-radius: 30px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.contact-cta-wrapper .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-cta-wrapper .btn-primary:hover::before {
  left: 100%;
}

.contact-cta-wrapper .btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(68, 175, 105, 0.4) !important;
}

.contact-cta-wrapper .service-highlights h4 {
  color: var(--orange-web) !important;
  font-size: 22px !important;
  margin-bottom: 20px !important;
}

.contact-cta-wrapper .service-highlights ul {
  list-style: none !important;
  padding: 0 !important;
  text-align: left !important;
}

.contact-cta-wrapper .service-highlights li {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  padding: 8px 15px !important;
  background: rgba(68, 175, 105, 0.1) !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.contact-cta-wrapper .service-highlights li:hover {
  background: rgba(68, 175, 105, 0.2) !important;
  transform: translateX(5px) !important;
}

/* Enhanced Button Styles */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(68, 175, 105, 0.4) !important;
}

.btn-secondary {
  background: var(--gradient-secondary) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px rgba(252, 171, 16, 0.4) !important;
}

/* Enhanced Navigation */
.header .btn-getstarted {
  background: var(--gradient-primary) !important;
}

.navmenu li:hover > a,
.navmenu .active,
.navmenu .active:focus {
  color: var(--jade) !important;
}

.navmenu .dropdown ul a:hover,
.navmenu .dropdown .active > a {
  color: var(--jade) !important;
}

/* Enhanced Hero Section */
.hero .hero-actions .action-btn.primary {
  background: var(--gradient-primary) !important;
}

.hero .hero-actions .action-btn.secondary {
  background: var(--gradient-secondary) !important;
}

/* Enhanced Services Section */
.services .intro-content .cta-button {
  background: var(--gradient-primary) !important;
}

.services .services-grid .service-card:hover .card-number span {
  background: var(--jade) !important;
}

/* Enhanced Call to Action Section */
.call-to-action .cta-buttons .btn.btn-primary {
  background: var(--gradient-primary) !important;
}

/* Enhanced Features Section */
.features .feature-item .feature-content .feature-icon i {
  color: var(--jade) !important;
}

.features .feature-item:hover .feature-icon i {
  color: var(--orange-web) !important;
}

/* Enhanced About Section */
.about .features-list .feature-item i {
  color: var(--jade) !important;
}

.about .btn.btn-primary {
  background: var(--gradient-primary) !important;
}

/* Enhanced Stats Section */
.stats .counters h2 span {
  color: var(--jade) !important;
}

/* Enhanced Footer */
.footer .footer-links ul a:hover {
  color: var(--jade) !important;
}

/* Modern Glass Morphism Effects */
.service-detail-card,
.faq-item,
.contact-cta-wrapper {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
}

/* Enhanced Hover Effects */
.service-detail-card:hover,
.faq-item:hover,
.contact-cta-wrapper:hover {
  background: rgba(68, 175, 105, 0.05) !important;
  border-color: var(--jade) !important;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .service-detail-card {
    padding: 30px 20px !important;
  }

  .service-detail-card .service-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .service-detail-card .service-icon i {
    font-size: 28px !important;
  }

  .faq-question {
    padding: 20px !important;
  }

  .faq-answer {
    padding: 0 20px 20px !important;
  }

  .contact-cta-wrapper {
    padding: 30px 20px !important;
  }
}

@media (max-width: 576px) {
  .service-detail-card .btn {
    padding: 10px 25px !important;
    font-size: 14px !important;
  }

  .faq-question h3 {
    font-size: 16px !important;
  }

  .contact-cta-wrapper .cta-header h3 {
    font-size: 24px !important;
  }
}

/* Enhanced Services Cards Styling */
.services .services-grid .service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  ) !important;
  border: 1px solid rgba(68, 175, 105, 0.3) !important;
  border-radius: 20px !important;
  padding: 2.5rem !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.services .services-grid .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(68, 175, 105, 0.05),
    rgba(43, 158, 179, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.services .services-grid .service-card:hover::before {
  opacity: 1;
}

.services .services-grid .service-card:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 25px 50px rgba(68, 175, 105, 0.2) !important;
  border-color: var(--jade) !important;
}

.services .services-grid .service-card .card-number {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services .services-grid .service-card .card-number span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 80px !important;
  height: 80px !important;
  background: linear-gradient(135deg, var(--jade), var(--moonstone)) !important;
  color: white !important;
  border-radius: 20px !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 25px rgba(68, 175, 105, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.services .services-grid .service-card .card-number span::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.services .services-grid .service-card:hover .card-number span {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 15px 35px rgba(68, 175, 105, 0.4) !important;
}

.services .services-grid .service-card:hover .card-number span::before {
  left: 100%;
}

.services .services-grid .service-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.services .services-grid .service-card .card-content .service-title {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.2rem !important;
  line-height: 1.3 !important;
  color: var(--jade) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
}

.services .services-grid .service-card .card-content .service-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--orange-web));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.services
  .services-grid
  .service-card:hover
  .card-content
  .service-title::after {
  width: 100px;
}

.services .services-grid .service-card .card-content .service-description {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 1.5rem !important;
  flex: 1 !important;
  text-align: justify !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  font-weight: 400 !important;
}

.services .services-grid .service-card .card-content img {
  border-radius: 15px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.4s ease !important;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  margin-top: auto !important;
}

.services .services-grid .service-card:hover .card-content img {
  transform: scale(1.05) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced card number animations */
.services .services-grid .service-card .card-number span {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 10px 25px rgba(68, 175, 105, 0.3);
  }
  50% {
    box-shadow: 0 10px 25px rgba(68, 175, 105, 0.5);
  }
  100% {
    box-shadow: 0 10px 25px rgba(68, 175, 105, 0.3);
  }
}

/* Add service badge for premium services */
.services .services-grid .service-card[data-premium="true"]::after {
  content: "PREMIUM";
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--orange-web), var(--imperial-red));
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 5px 15px rgba(252, 171, 16, 0.3);
}

/* Enhanced responsive design */
@media (max-width: 992px) {
  .services .services-grid .service-card {
    padding: 2rem !important;
  }

  .services .services-grid .service-card .card-number span {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.6rem !important;
  }

  .services .services-grid .service-card .card-content .service-title {
    font-size: 1.2rem !important;
  }

  .services .services-grid .service-card .card-content img {
    height: 180px !important;
  }
}

@media (max-width: 768px) {
  .services .services-grid .service-card {
    padding: 1.5rem !important;
  }

  .services .services-grid .service-card .card-number span {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.4rem !important;
  }

  .services .services-grid .service-card .card-content .service-title {
    font-size: 1.1rem !important;
  }

  .services .services-grid .service-card .card-content .service-description {
    font-size: 0.95rem !important;
  }

  .services .services-grid .service-card .card-content img {
    height: 160px !important;
  }
}

@media (max-width: 576px) {
  .services .services-grid .service-card {
    padding: 1.2rem !important;
  }

  .services .services-grid .service-card .card-number span {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }

  .services .services-grid .service-card .card-content .service-title {
    font-size: 1rem !important;
    text-transform: none !important;
  }

  .services .services-grid .service-card .card-content .service-description {
    font-size: 0.9rem !important;
    text-align: left !important;
  }

  .services .services-grid .service-card .card-content img {
    height: 140px !important;
  }
}
