/* === Red Barn Media Group - Custom Styles - Calebs Management === */
/* === Home Hero Styles :: BEGIN === */
.calebs-hero-intro {
  background: url(../img/calebs-hero-intro-2000-785.webp) center center;
  background-size: cover;
  width: 100%;
  height: 785px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
.calebs-hero-intro.sub {
  height: 785px;
}
.calebs-hero-padding {
  padding-top: 10rem;
  padding-bottom: 6rem;
}
.calebs-hero-intro.sub.install {
  background: url(../img/calebs-hero-sub-install-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.repair {
  background: url(../img/calebs-hero-sub-repair-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.inspection {
  background: url(../img/calebs-hero-sub-inspection-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.coating {
  background: url(../img/calebs-hero-sub-coating-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.commercial {
  background: url(../img/calebs-hero-sub-commercial-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.com-repair {
  background: url(../img/calebs-hero-sub-com-repair-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.structure {
  background: url(../img/calebs-hero-sub-structure-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.chimney {
  background: url(../img/calebs-hero-sub-chimney-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.exterior {
  background: url(../img/calebs-hero-sub-exterior-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.new-construction {
  background: url(../img/calebs-hero-sub-new-construction-2000-785.webp) center center;
  background-size: cover;
}
.calebs-hero-intro.sub.flashing {
  background: url(../img/calebs-hero-sub-flashing-2000-785.webp) center center;
  background-size: cover;
}

.calebs-hero-intro h1 {
  font-size: 2.75rem;
  line-height: 1.125;
  font-family: amboy-black, sans-serif;
  font-style: normal;
  color: #fff;
}
.calebs-hero-intro h2 {
  font-size: 1.1rem;
  font-family: barlow, sans-serif;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  color: #fff;
}
.contact-card {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.heading-underline {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: #fff; 
  font-size: 2.75rem;
  line-height: 1.125;
}

.heading-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.03em; /* this lifts the line up into the letters */
  width: 101%;
  height: 0.30em; /* thickness of the underline */
  background: #A22E2B; 
  z-index: -1; 
  border-radius: 0px;
}


/* === Home Hero Styles :: END === */

.contact-card.sub {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px);
  border: 1px solid #fff;
  border-radius: 1rem;
}
/* === Rollover Styles :: BEGIN === */

/* === Rollover Styles :: END === */
/* === Banner Styles :: BEGIN === */
.calebs-color-charts {
  position: absolute;
  background: url(../img/calebs-banner-colors-970-745.webp);
  background-size: cover;
  width: 800px;
  height: 614px;
  bottom: -28.5rem;
  right: -10rem;
  z-index: 2;
}

.bg-shape-left-services {
  position: absolute;
  top: -10rem;
  left: -2.5rem;
  width: 725px;
  height: 645px;
  background: url(../img/calebs-bg-shape-left.svg);
  z-index: -1;
}

.bg-shape-right-services {
  position: absolute;
  bottom: -12rem;
  right: -12rem;
  width: 725px;
  height: 645px;
  background: url(../img/calebs-bg-shape-right-black.svg);
  z-index: -1;
}

.bg-shape-left-review {
  position: absolute;
  top: 50%;
  left: -2.5rem;
  width: 725px;
  height: 645px;
  background: url(../img/calebs-bg-shape-left-black.svg);
  transform: translateY(-50%);
  z-index: -1;
}

.bg-shape-service-area {
  position: absolute;
  right: -10rem;
  width: 855px;
  height: 850px;
  background: url(../img/calebs-bg-shape-left-black.svg) no-repeat;
  z-index: -1;
}

.bg-building-excellence {
  background-image: url(../img/calebs-banner-building-excellence-1200-1000.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 800px;
}
/* === Banner Styles :: END === */

/* === Image Scroll Styles :: BEGIN === */
.slider {
  height: fit-content;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.slider::before {
  left: 0;
  top: 0;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

/*  IMPORTANT CODE BELOW */

/* Let the track size to its content; rely on -50% translate with duplicated slides */
.slide-track {
  width: max-content; /* changed from fixed calc() */
  display: flex;
  justify-content: flex-start; /* changed from space-between */
  animation: scroll 20s linear infinite;
}

/* If used elsewhere, keep consistent behavior */
.slide-track2 {
  width: max-content; /* changed from fixed calc() */
  display: flex;
  justify-content: flex-start; /* changed from space-between */
  animation: scroll2 20s linear infinite;
}

/* Let slides fit their content and remove hover effects/cursor */
.slide {
  flex: 0 0 auto;
  /* width/height removed to allow natural image size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: none; /* remove zoom transition */
  cursor: default; /* changed from pointer */
}

/* Disable zoom on hover */
.slide:hover {
  transform: none; /* remove scale */
}

/* Smooth infinite loop using duplicated set: translate by half track width */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* changed from pixel-based calc */
}

@keyframes scroll2 {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* changed from pixel-based calc */
}
/* === Image Scroll Styles :: END === */

/* === Utility Styles :: BEGIN === */

/* Logo aspect ratio fix */
.logo-h75 {
  height: 75px;
  width: auto; /* prevents horizontal squish */
}

/* Optional: constrain very wide logos uniformly (uncomment if needed) */
/* .slider img { max-height: 75px; width: auto; } */

/* === Utility Styles :: END === */

/* === Media Queries :: BEGIN === */
@media (max-width: 1600px) {
  /* === Home Hero Styles :: BEGIN === */

  /* === Home Hero Styles :: END === */
}

@media (max-width: 1400px) {
  .calebs-hero-intro {
    background: url(../img/calebs-hero-intro-1400-785.webp) center center;
    background-size: cover;
    width: 100%;
  }

  /* === SUB Hero Styles :: BEGIN === */
  .calebs-hero-intro.sub.install {
    background: url(../img/calebs-hero-sub-install-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.repair {
    background: url(../img/calebs-hero-sub-repair-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.inspection {
    background: url(../img/calebs-hero-sub-inspection-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.coating {
    background: url(../img/calebs-hero-sub-coating-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.commercial {
    background: url(../img/calebs-hero-sub-commercial-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.com-repair {
    background: url(../img/calebs-hero-sub-com-repair-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.structure {
    background: url(../img/calebs-hero-sub-structure-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.chimney {
    background: url(../img/calebs-hero-sub-chimney-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.exterior {
    background: url(../img/calebs-hero-sub-exterior-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.new-construction {
    background: url(../img/calebs-hero-sub-new-construction-1400-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.flashing {
    background: url(../img/calebs-hero-sub-flashing-1400-785.webp) center center;
    background-size: cover;
  }
}

@media (max-width: 1200px) {
  /* === Home Hero Styles :: BEGIN === */
  .calebs-hero-intro {
    background: url(../img/calebs-hero-intro-1200-785.webp) center center;
    background-size: cover;
    width: 100%;
  }
  /* === Home Hero Styles :: END === */
  /* === SUB Hero Styles :: BEGIN === */
  .calebs-hero-intro.sub.install {
    background: url(../img/calebs-hero-sub-install-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.repair {
    background: url(../img/calebs-hero-sub-repair-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.inspection {
    background: url(../img/calebs-hero-sub-inspection-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.coating {
    background: url(../img/calebs-hero-sub-coating-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.commercial {
    background: url(../img/calebs-hero-sub-commercial-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.com-repair {
    background: url(../img/calebs-hero-sub-com-repair-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.structure {
    background: url(../img/calebs-hero-sub-structure-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.chimney {
    background: url(../img/calebs-hero-sub-chimney-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.exterior {
    background: url(../img/calebs-hero-sub-exterior-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.new-construction {
    background: url(../img/calebs-hero-sub-new-construction-1200-785.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.flashing {
    background: url(../img/calebs-hero-sub-flashing-1200-785.webp) center center;
    background-size: cover;
  }
  /* Banner Styles */
  .calebs-color-charts {
    width: 700px;
    height: 538px;
  }
}

@media (max-width: 991px) {
  .calebs-hero-intro {
    background: url(../img/calebs-hero-intro-991-700.webp) center center;
    background-size: cover;
    width: 100%;
  }
  /* === SUB Hero Styles :: BEGIN === */
  .calebs-hero-intro.sub.install {
    background: url(../img/calebs-hero-sub-install-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.repair {
    background: url(../img/calebs-hero-sub-repair-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.inspection {
    background: url(../img/calebs-hero-sub-inspection-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.coating {
    background: url(../img/calebs-hero-sub-coating-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.commercial {
    background: url(../img/calebs-hero-sub-commercial-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.com-repair {
    background: url(../img/calebs-hero-sub-com-repair-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.structure {
    background: url(../img/calebs-hero-sub-structure-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.chimney {
    background: url(../img/calebs-hero-sub-chimney-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.exterior {
    background: url(../img/calebs-hero-sub-exterior-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.new-construction {
    background: url(../img/calebs-hero-sub-new-construction-991-700.webp) center center;
    background-size: cover;
  }
  .calebs-hero-intro.sub.flashing {
    background: url(../img/calebs-hero-sub-flashing-991-700.webp) center center;
    background-size: cover;
  }
  .colors-column {
    min-height: 8rem;
  }
  .calebs-color-charts {
    width: 700px;
    height: 538px;
    bottom: -24rem;
    right: -10rem;
    z-index: 2;
  }
}

@media (max-width: 767px) {
  /* === Home Hero Styles :: BEGIN === */
  .calebs-hero-intro {
    background: url(../img/calebs-hero-shape-mobile.svg) center center,
      linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.25)) !important;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
  }
  .calebs-hero-intro.sub {
    background: url(../img/calebs-hero-shape-mobile.svg) center center,
      linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.25)) !important;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
  }
  .calebs-hero-intro.sub {
    height: fit-content;
  }
  .calebs-hero-intro h1 {
    font-size: 2.25rem;
  }
  .calebs-hero-intro h2 {
    font-size: 1rem;
  }
  /* === Home Hero Styles :: END === */
  /* === Banner Styles  */
  .bg-building-excellence {
    min-height: 500px;
  }
}

@media (max-width: 450px) {
  .calebs-buyers-guide-bg {
    height: 100px;
    width: 150px;
    bottom: -2rem;
    right: 0rem;
  }
  .bg-building-excellence {
    min-height: 350px;
  }
}
/* === Media Queries :: END === */
