/* Custom CSS for Libert Chimney & Duct Protection */

/* Fix hero section to be truly full-width */
.carousel {
  position: relative;
  width: 100vw;
  min-height: 400px;
  background: #ffffff;
  margin-bottom: 45px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}

.carousel .owl-carousel {
  width: 100%;
}

.carousel .carousel-item {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel .carousel-img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  text-align: right;
  overflow: hidden;
}

.carousel .carousel-img::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.carousel .carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .carousel-text {
  position: absolute;
  max-width: 992px;
  padding: 0 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
}

/* Full-width section option */
.full-width-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
}

.full-width-section .container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Facts section full-width */
.facts {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 0;
  padding-right: 0;
}

.facts .container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Enhanced About and Detailed Services sections */
.about {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.about:nth-child(even) {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23E81C2E" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23E81C2E" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23E81C2E" opacity="0.02"/><circle cx="10" cy="60" r="0.5" fill="%23E81C2E" opacity="0.02"/><circle cx="90" cy="40" r="0.5" fill="%23E81C2E" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Make the row use flexbox to align items */
.about .row {
  display: flex;
  align-items: stretch;
}

.about .col-lg-6 {
  display: flex;
  flex-direction: column;
}

.about .about-img {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: stretch;
}

.about .about-img:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about .about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  flex: 1;
}

.about .about-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(232, 28, 46, 0.1),
    rgba(32, 44, 69, 0.1)
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.about .about-img:hover::after {
  opacity: 1;
}

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

/* Ensure content area also stretches to match */
.about .about-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about .section-header {
  margin-bottom: 30px;
}

.about .section-header.text-left {
  margin-bottom: 30px;
}

/* Location section full-width enhancements */
.location.full-width-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0;
}

.location.full-width-section .location-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.location.full-width-section .location-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact section full-width enhancements */
.contact.full-width-section {
  background: linear-gradient(135deg, #202c45 0%, #e81c2e 100%);
  padding: 60px 0;
  color: #ffffff;
  margin-bottom: 0;
}

.contact.full-width-section .section-header h2,
.contact.full-width-section .section-header p {
  color: #ffffff;
}

.contact.full-width-section .contact-info h2 {
  color: #ffffff;
}

.contact.full-width-section .contact-info-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact.full-width-section .contact-info-icon {
  background: #e81c2e;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.contact.full-width-section .contact-info-icon i {
  color: #ffffff;
  font-size: 24px;
}

.contact.full-width-section .contact-info-text h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}

.contact.full-width-section .contact-info-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.contact.full-width-section .contact-info-text a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.contact.full-width-section .contact-info-text a:hover {
  color: #e81c2e;
}

/* Footer enhancements - remove blank space */
.footer {
  margin-top: 0;
  padding-top: 60px;
  background: #202c45;
}

/* Fix spacing between FAQ and Contact sections */
#faq.service {
  padding: 45px 0 45px 0;
  margin-bottom: 0;
}

/* Ensure Font Awesome icons are properly displayed in detailed services */
.about-content ul li i {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #e81c2e;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  background: rgba(232, 28, 46, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.about-content ul li i.far.fa-check-circle {
  color: #e81c2e;
  background: rgba(232, 28, 46, 0.1);
}

.about-content ul li i.far.fa-check-circle::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Service number styling for process section */
.service-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: #e81c2e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(232, 28, 46, 0.3);
}

/* Enhanced service items */
.service-item {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: #e81c2e;
}

.service-item i {
  color: #e81c2e;
  font-size: 60px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-item:hover i {
  transform: scale(1.1);
  color: #202c45;
}

/* Enhanced button styling */
.btn-custom-enhanced {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(45deg, #e81c2e, #202c45);
  border: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(232, 28, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-custom-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(232, 28, 46, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.btn-custom-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #202c45, #e81c2e);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-custom-enhanced:hover::before {
  left: 0;
}

/* Enhanced section headers */
.about-content h3 {
  color: #202c45;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.about-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #e81c2e, #202c45);
  border-radius: 2px;
}

/* Enhanced content styling */
.about-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.about-content ul li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(232, 28, 46, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.about-content ul li:hover {
  background: rgba(232, 28, 46, 0.05);
  padding-left: 10px;
  border-radius: 5px;
}

.about-content ul li i {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  color: #e81c2e;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  background: rgba(232, 28, 46, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.about-content ul li:hover i {
  background: #e81c2e;
  color: #ffffff;
  transform: scale(1.1);
}

/* Process section enhancements */
#process .service-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e81c2e;
}

#process .service-item:hover {
  background: linear-gradient(135deg, #e81c2e 0%, #202c45 100%);
  color: #ffffff;
}

#process .service-item i {
  color: #e81c2e;
  font-size: 50px;
  margin-bottom: 15px;
}

#process .service-item:hover i {
  color: #ffffff;
}

#process .service-item h3 {
  color: #202c45;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

#process .service-item:hover h3 {
  color: #ffffff;
}

#process .service-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

#process .service-item:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Enhanced section headers */
.section-header h2 {
  color: #202c45;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #e81c2e, #202c45);
  border-radius: 2px;
}

.section-header p {
  color: #e81c2e;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .full-width-section {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .facts {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .about {
    padding: 60px 0;
  }

  /* Reset flexbox for mobile to stack vertically */
  .about .row {
    display: block;
  }

  .about .col-lg-6 {
    display: block;
  }

  .about .about-img {
    height: auto;
    min-height: 300px;
    margin-bottom: 30px;
  }

  .about .about-content {
    height: auto;
  }

  .location.full-width-section {
    padding: 40px 0;
  }

  .contact.full-width-section {
    padding: 40px 0;
  }

  .about-content h3 {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 30px;
  }
}

@media (max-width: 767.98px) {
  .carousel .carousel-text h1 {
    font-size: 32px;
  }
  
  .about-content h3 {
    font-size: 22px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .service-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
    top: -12px;
    right: -12px;
  }
  
  .about {
    padding: 40px 0;
  }
  
  .about .about-img {
    min-height: 250px;
  }
  
  .location.full-width-section {
    padding: 30px 0;
  }
  
  .contact.full-width-section {
    padding: 30px 0;
  }
}

@media (max-width: 575.98px) {
  .carousel .carousel-text h1 {
    font-size: 28px;
  }

  .about-content h3 {
    font-size: 20px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .about {
    padding: 30px 0;
  }
}

.location {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(32,44,69,0.08);
  padding: 48px 32px;
  margin: 48px auto;
  max-width: 1200px;
}

@media (max-width: 991.98px) {
  .location {
    padding: 32px 8px;
    margin: 32px 0;
  }
}
