/* FAQ Fixes */
.section-faqs {
    background-color: #f3f3f3;
  }
  .faq-accordian{
    overflow: hidden;
  }
  .faq-accordian .hide-initially{
    height: 0;
    transform: scaleY(0);    
    transform-origin: top;
    transition: transform 0.25s ease;
  }
  .faq-accordian .panel:nth-child(5){
    margin-bottom: 12px;
  }
  .faq-accordian .hide-initially.show-more-faqs{
    height: auto;
    margin-top: 12px;
    transform: scaleY(1);
  }
  .show-hide-more-faqs.hide-this-button{
    display: none !important;
  }
  .section-faqs .faqs-wrapper .faq-more-btn{
    margin-top: 16px;
  }
  .section-faqs .faqs-wrapper .faq-more-btn a{
    display: block;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .faqs-wrapper .panel,
  .faqs-wrapper .panel-default > .panel-heading {
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
  }
  .faqs-wrapper .panel-title,
  .faqs-wrapper .panel-title a {
    position: relative;
    line-height: 1.1;
    font-weight: 700;
  }
  .faqs-wrapper .panel-title a {
    padding: 25px 50px;
    background-color: #fff;
    border: 1px solid #f2f6f9;
    display: block;
  }
  .faqs-wrapper .panel-title:before {
    content: "\f2fd";
    font-family: "Font Awesome 6 Sharp";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    z-index: 1;
    color: #D44D2D;
  }
  
  .faqs-wrapper .panel-title a:before,
  .faqs-wrapper .panel-title a:after {
    position: absolute;
    top: 50%;
    content: "";
    transform: translateY(-50%);
    background-color: #000;
    transition: transform 0.35s ease-in-out;
    height: 1px;
    width: 20px;
    right: 13px;
  }
  
  .faqs-wrapper .panel-title a.collapsed:before {
    transform: rotate(90deg);
  }
  
  .faqs-wrapper .panel-default > .panel-heading + .panel-collapse > .panel-body {
    background-color: #fff;
    border: 1px solid #f2f6f9;
  }
  .faqs-wrapper .panel-group .panel + .panel {
    margin-top: 12px;
  }
  /* Key Features */
  .sv-collapse .panel,
  .sv-collapse .panel-heading{
      padding: 0;
      border-radius: 0;
      box-shadow: none;
      margin: 0 !important;
  }
  .sv-collapse .panel{
      border-bottom: 1px solid #E1E1F0;
  }
  .sv-collapse div[role="tab"] >h4{
      margin: 0;
  }
    .sv-collapse div[role="tab"] >h3{
      margin: 0;
  }
  .sv-collapse div[role="tab"]  a{
      display: block;
      width: 100%;
      color: inherit !important;
      padding: 20px 0;
      display: table;
      position: relative;
      padding-right: 60px;
  }
  .sv-collapse .panel-body{
      padding: 15px 0 25px;
      font-size: 16px;
  }
  /* .sv-collapse div[role="tab"] a span,
  .sv-collapse div[role="tab"] a i{
      display: table-cell;
      vertical-align: middle;
  } */
  
  .sv-collapse div[role="tab"] a i{   
      width: 40px;
      height: 40px;
      /* border-radius: 50%; */
      text-align: center;
      font-size: 30px;
      font-weight: 900;
      line-height: 38px;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%) rotate(45deg);
      color: #D44D2D;    
      border: 1px solid #D44D2D;
      transition: all 0.5s ease-out;
  }
  
  .sv-collapse div[role="tab"] a.collapsed i{
      transform: translateY(-50%) rotate(0deg);
      color: #ffffff;
      background-color: #D44D2D;
  }

  /* Key Features END */

 
    
    .f-hr {
        border: none;
        height: 2px; 
        background: linear-gradient(to right, rgba(50, 168, 82, 0), #D44D2D, rgba(50, 168, 82, 0)); 
        margin: 20px 0; 
        display: block; 
    }

    .fw-hr {
        border: none;
        height: 2px; 
        background: linear-gradient(to right, rgba(50, 168, 82, 0), #fff, rgba(50, 168, 82, 0)); 
        margin: 20px 0; 
        display: block; 
    }

    .br-40 {
        border-radius: 40px;
    }




    
/* Fence List */
.fl-v01 {
  padding: 0; /* keep it tight; adjust if you want breathing room */
  background: transparent;
}

/* Center the row and cap the width */
.fl-v01-row {
  max-width: 2200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  /* modern gap for clean spacing (5px between everything) */
  gap: 5px;
}

/* Reset Bootstrap .well so it doesn't add padding/borders */
.fl-v01 .fl-item.well {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Three across using calc, accounting for two 5px gaps per row */
.fl-v01 .fl-item {
  position: relative;
  flex: 0 0 calc((100% - 10px) / 3);
  /* fallback if gap isn't supported (we handle in the no-gap block below) */
  box-sizing: border-box;
  overflow: hidden; /* clip overlay & scale */
}

/* Make the whole card clickable */
.fl-v01 .fl-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Image behavior */
.fl-v01 .fl-link img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateZ(0); /* helps some GPUs with hover smoothness */
  transition: transform 420ms ease-in-out; /* smoother + a touch slower */
  transform-origin: center center;
  will-change: transform;
}

/* Overlay caption layer */
.fl-v01 .fl-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: rgba(255, 163, 0, 0.0); /* #D44D2D at 0 initially */
  transition: background 320ms ease, opacity 320ms ease;
  opacity: 0; /* hidden until hover/focus */
}

/* Title & text styles (inherit your existing classes as needed) */
.fl-v01 .fl-caption h3 {
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.fl-v01 .fl-caption p {
  margin: 0;
}

/* Hover/focus state: subtle overlay + slight image lift */
.fl-v01 .fl-link:hover .fl-caption,
.fl-v01 .fl-link:focus .fl-caption,
.fl-v01 .fl-link:focus-visible .fl-caption {
  opacity: 1;
  background: rgba(212, 77, 45, 0.28); /* translucent */
}

/* Desktop/large screens only to avoid touch weirdness on mobile */
@media (min-width: 768px) {
  .fl-v01 .fl-link:hover img,
  .fl-v01 .fl-link:focus img,
  .fl-v01 .fl-link:focus-visible img {
    /* bump scale and add a subtle rotate; tiny so edges don't crop too much */
    transform: scale(1.045) rotate(0.6deg);
  }
}

/* Keyboard focus ring so accessibility doesn’t feel like a boss fight */
.fl-v01 .fl-link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.75);
  outline-offset: 2px;
}

/* --- Responsive breakpoints --- */
/* 2-up on tablets */
@media (max-width: 991px) {
  .fl-v01 .fl-item {
    flex: 0 0 calc((100% - 5px) / 2); /* one gap per row */
  }
}

/* 1-up on phones */
@media (max-width: 480px) {
  .fl-v01 .fl-item {
    flex: 0 0 100%;
  }
}

/* ===== Optional: “no-gap” fallback for older browsers ===== */
/* If you need pixel-perfect spacing where `gap` isn't supported */
@supports not (gap: 5px) {
  .fl-v01-row {
    margin: -2.5px;            /* half-gap negative margins */
  }
  .fl-v01 .fl-item {
    padding: 2.5px;            /* half-gap inner padding to simulate gap */
    flex-basis: calc((100% - 10px) / 3); /* same math as above */
  }
  @media (max-width: 991px) {
    .fl-v01 .fl-item { flex-basis: calc((100% - 5px) / 2); }
  }
  @media (max-width: 480px) {
    .fl-v01 .fl-item { flex-basis: 100%; }
  }
}

/* Mobile behavior: keep text visible, disable hover zoom on touch */
@media (max-width: 767px) {
  .fl-v01 .fl-caption {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.35) !important; /* subtle but readable */
  }

  /* prevent hover zoom since touchscreens don't hover */
  .fl-v01 .fl-link img {
    transform: none !important;
  }

  /* keep text visible and easy to read */
  .fl-v01 .fl-caption h3,
  .fl-v01 .fl-caption p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .fl-v01 .fl-link img,
  .fl-v01 .fl-caption {
    transition: none !important;
  }
}

/* Fence List end */


/* Core values */


.cv-row{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:center;   /* keeps rows tidy if last line has fewer items */
  margin-left:-5px;         /* eat outer gutters */
  margin-right:-5px;        /* eat outer gutters */
}

/* 3-up desktop, 2-up tablet, 1-up mobile */
.core-value-item{
  flex: 1 1 33.333%;
  padding-left:5px;         
  padding-right:5px;        
  margin-bottom:5px;       
  display:flex;             
}
.core-value-item:nth-child(2) {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 991px){ .core-value-item{ flex-basis:50%; } }
@media (max-width: 575px){ .core-value-item{ flex-basis:100%; } }

/* inner black box fills height & centers content (incl. the handshake) */
.core-value-item > div{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;       /* horizontal center */
  justify-content:center;   /* vertical center */
  min-height:220px;         /* tune to taste */
}

/* hover color for your new class */
.cb-text{ color:#fff; transition:color .2s ease; }
.core-value-item:hover .cb-text{ color:#D44D2D; }  

/* optional: ensure the icon block centers perfectly */
.core-value-item .d-flex{
  align-items:center;
  justify-content:center;
}
/* Hover effect for orange text */
.cv-text {
  color: #fff;
  transition: color 0.3s ease;
}
.core-value-item:hover .cv-text {
  color: #D44D2D; /* your brand orange */
}

/* Center the handshake icon perfectly */
.core-value-item .fa-handshake {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
 /* Core value end */






/* ============================
   EASY PROCESS SECTION
   ============================ */
/* .easy-process {
    background: #f8f8f8;
} */
.easy-process .section-header {
    text-align: center;
    margin-bottom: 50px;
}
.easy-process .section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Process steps container */
.process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

/* Individual step */
.process-step {
    background: #fff;
    border-radius: 0;
    padding: 0;
    flex: 1;
    max-width: 350px;
    box-shadow: 0 2px 15px rgba(212, 77, 45, .3);
    overflow: visible;
    transition: all 0.3s ease;
}
.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.process-step .step-image {
    position: relative;
    overflow: visible;
}
.process-step .step-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
.process-step .step-number {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #D44D2D;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(212, 77, 45, 0.3);
    z-index: 10;
}
.process-step .step-content {
    padding: 30px 25px 25px;
}
.process-step .step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}
.process-step .step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* CTA area */
.easy-process .process-cta {
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .process-steps {
        gap: 20px;
    }
    .process-step .step-image img {
        height: 160px;
    }
}
@media (max-width: 767px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        max-width: 100%;
        width: 100%;
    }
    .process-step .step-image img {
        height: 180px;
    }
}




 .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.feature-list.vertical-list{    
    grid-template-columns: 1fr;   
}
 .feature-list li {
    display: flex;
    align-items: flex-start;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .feature-list li {
        font-size: 16px;
        white-space: normal;
        background: #f7f7f7;
        border-radius: 8px;
        padding: 8px 12px;
        align-items: center;
    }
    .feature-list li i {
        font-size: 16px;
        margin-top: 0;
    }
}
 .feature-list li i {
    color: #D44D2D;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 24px;
    flex-shrink: 0;
}




/* trust  */
.trust-section h2 {
    font-size:23px;
    text-transform: unset;
    line-height: 1.3;
}
.trust-section i {
    padding-top: 5px;
}
/* trust END  */


/* Desktop: show grid, hide carousel */
.trust-desktop { display: block; }
.trust-carousel { display: none; }

/* Mobile: hide grid, show carousel */
@media (max-width: 767px) {
    .trust-desktop { display: none; }
    .trust-carousel { display: block; }

    .trust-carousel .carousel-inner .item {
        padding: 5px 30px 20px;
        text-align: center;
    }
    .trust-carousel .carousel-inner .item i {
        display: block;
        margin: 0 auto 12px;
    }
    .trust-carousel .carousel-indicators {
        bottom: -30px;
    }
    .trust-carousel .carousel-indicators li {
        border-color: #aaa;
        border-radius: 0;
    }
    .trust-carousel .carousel-indicators .active {
        background-color: #fff;
    }
    .trust-carousel-wrap {
        padding-bottom: 30px;
    }
}



/* COMPANY INTRO */

.company-intro .container-fluid {
  display: flex;
  position: relative;
  padding: 0;
}

.custom-col-left {
  width: 35%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.custom-col-right {
  width: 65%;
  background-color: #fff;
  color: #161616;
  padding: 40px; /* Adjust padding as needed */
  position: relative;
}

.overlapping-image {
  position: absolute;
  top: 10%;
  left: 35%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 1600px) {
  .overlapping-image {
    left: 30%;
    top: 12%;
  }
}
.overlapping-image img {
  width: 400px;
  height: auto;
}
@media (max-width: 1300px) {
  .overlapping-image {
    left: 25%;
    top: 20%;
  }
  .overlapping-image img {
    width: 300px;
    height: auto;
  }
}

@media (max-width: 991px) {
  .custom-col-left {
    display: none;
  }
  .overlapping-image img {
    display: none;
  }
  .custom-col-right {
    width: 100%;
    padding: 0;
    position: relative;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .btn-intro-mobile {

    max-width: 90%;
    margin-left: 25px;
}
}
/* COMPANY INTRO  END*/







/* ============================
   TESTIMONIALS SECTION
   ============================ */
.testimonials-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 2000px;
    height: 100%;
    background: url('/images/happy-fence-owners-bg.jpg') no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}
.testimonials-section > .container {
    position: relative;
    z-index: 1;
}
.testimonials-section .mobile-image {
    display: none;
}
@media (max-width: 1400px) {
    .testimonials-section {
        padding-bottom: 30px;
    }
    .testimonials-section .mobile-image {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .testimonials-section .mobile-image img {
        display: block;
        width: 100%;
        height: auto;
    }
}
.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}
.testimonials-section .section-header h2 {
    margin-bottom: 20px;
}

/* Testimonial item */
.testimonial-item {
    background: #fff;
    border-radius: 0;
    padding: 30px 35px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.testimonial-item .quote-icon {
    color: #D44D2D;
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
}
.testimonial-item blockquote {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}
.testimonial-item .testimonial-author {
    color: #666;
    font-size: 15px;
    font-weight: 600;
}

/* Testimonial carousel */
.testimonial-carousel {
    cursor: grab;
}
.testimonial-carousel:active {
    cursor: grabbing;
}
.testimonial-carousel .carousel-inner {
    overflow: hidden;
}
.testimonial-carousel .item {
    display: none;
    padding: 10px 15px;
    transition: transform 0.6s ease-in-out;
}
.testimonial-carousel .item.active,
.testimonial-carousel .item.next,
.testimonial-carousel .item.prev {
    display: block;
}
.testimonial-carousel .item.next,
.testimonial-carousel .item.prev {
    position: absolute;
    top: 0;
    width: 100%;
}
.testimonial-carousel .item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.testimonial-carousel .item.active {
    opacity: 1;
}
.testimonial-carousel .item.next.left,
.testimonial-carousel .item.prev.right {
    opacity: 1;
}
.testimonial-carousel .item.active.left,
.testimonial-carousel .item.active.right {
    opacity: 0;
}

/* Carousel controls */
.testimonial-carousel .carousel-control {
    width: 50px;
    height: 50px;
    background: #D44D2D;
    border: none;
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.testimonial-carousel .carousel-control:hover {
    background: #fff;
}
.testimonial-carousel .carousel-control.left {
    left: calc(50% - 425px);
}
.testimonial-carousel .carousel-control.right {
    right: calc(50% - 425px);
}
.testimonial-carousel .carousel-control i {
    color: #fff;
    font-size: 18px;
    line-height: 1;
}
.testimonial-carousel .carousel-control:hover i {
    color: #D44D2D;
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-carousel .carousel-control {
        width: 40px;
        height: 40px;
    }
    .testimonial-carousel .carousel-control.left {
        left: calc(50% - 380px);
    }
    .testimonial-carousel .carousel-control.right {
        right: calc(50% - 380px);
    }
}
@media (max-width: 850px) {
    .testimonial-carousel .carousel-control.left {
        left: 10px;
    }
    .testimonial-carousel .carousel-control.right {
        right: 10px;
    }
}
@media (max-width: 1400px) {
    .testimonials-section::before {
        display: none;
    }
}
@media (max-width: 767px) {
    .testimonials-section {
        padding: 40px 0 0 0;
    }
    .testimonial-item {
        padding: 25px 20px;
        min-height: 180px;
    }
    .testimonial-item blockquote {
        font-size: 16px;
    }
    .testimonial-carousel .carousel-control {
        display: none;
    }
}


/* Before after  */
        .before-after-variant-v1 .comparison{
        width:200%;
        aspect-ratio: 2 / 1;
        position:relative;
        container-type: inline-size;
}
@supports not (aspect-ratio: 2 / 1){
  .before-after-variant-v1 .comparison::before{
    content:"";
    display:block;
    padding-bottom:50%;       
  }
}
        @media (min-width: 992px) {
          .before-after-variant-v1 .comparison {
            margin-top: 30px;
           
          }
        }
        
        .before-after-variant-v1 figure {
          position: absolute;
          background-size: cover;
          font-size: 0;
          width: 100%;
          height: 100%;
          margin: 0;
        }
        
        .before-after-variant-v1 .divisor {
          position: absolute;
          width: 50%;
          box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
          bottom: 0;
          height: 100%;
        }
        .before-after-variant-v1 .divisor-clip {
          position: absolute;
          inset: 0;
          overflow: hidden;
        }
        .before-after-variant-v1 .divisor-img {
          position: absolute;
          left: 0;
          top: 0;
          width: 100cqi;
          height: 100%;
          background-size: cover;
          background-repeat: no-repeat;
        }
        .before-after-variant-v1 .divisor::before,
        .before-after-variant-v1 .divisor::after {
          content: "";
          position: absolute;
          right: -2px;
          width: 4px;
          height: calc(50% - 25px);
          background: white;
          z-index: 3;
        }
        .before-after-variant-v1 .divisor::before {
          top: 0;
          box-shadow: 0 -3px 8px 1px rgba(0, 0, 0, 0.3);
        }
        .before-after-variant-v1 .divisor::after {
          bottom: 0;
          box-shadow: 0 3px 8px 1px rgba(0, 0, 0, 0.3);
        }
        
        .before-after-variant-v1 .handle {
          position: absolute;
          height: 50px;
          width: 50px;
          top: 50%;
          left: 50%;
          transform: translateY(-50%) translateX(-50%);
          z-index: 1;
        }
        .before-after-variant-v1 .handle::before,
        .before-after-variant-v1 .handle::after {
          content: "";
          width: 0;
          height: 0;
          border: 6px inset transparent;
          position: absolute;
          top: 50%;
          margin-top: -6px;
        }
        .before-after-variant-v1 .handle::before {
          border-right: 6px solid white;
          left: 50%;
          margin-left: -17px;
        }
        .before-after-variant-v1 .handle::after {
          border-left: 6px solid white;
          right: 50%;
          margin-right: -17px;
        }
        
        .before-after-variant-v1 input[type="range"] {
          -webkit-appearance: none;
          -moz-appearance: none;
          position: absolute;
          top: 50%;
          left: -25px;
          transform: translateY(-50%);
          background-color: transparent;
          width: calc(100% + 50px);
          z-index: 2;
          cursor: ew-resize;
        }
        .before-after-variant-v1 input[type="range"]:focus,
        .before-after-variant-v1 input[type="range"]:active {
          border: none;
          outline: none;
        }
        
        .before-after-variant-v1 input[type="range"]::-webkit-slider-thumb {
          -webkit-appearance: none;
          border: none;
          height: 50px;
          width: 50px;
          border-radius: 50%;
          background: transparent;
          border: 4px solid white;
          box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);
        }
        
        .before-after-variant-v1 input[type="range"]::-moz-range-track {
          -moz-appearance: none;
          height: 15px;
          width: 100%;
          background-color: transparent;
          position: relative;
          outline: none;
        }
        /* BEFORE AFTER END */