/* Home — footer matches index-2 (desktop) */

/* Pinned choose section (pinSpacing: false) can make ScrollSmoother under-count
   content height, clipping the footer copyright row at the bottom. Desktop only. */
@media (min-width: 992px) {
  body.bs-home-1 #smooth-content {
    padding-bottom: 85px;
  }
}

@media (min-width: 768px) {
  body.bs-home-1 .tp-footer-spacing-3 {
    padding-bottom: 30px;
  }
}

/* Homepage mobile only: space below copyright so it clears floating buttons */
@media (max-width: 767.98px) {
  body.bs-home-1 .tp-footer-contect {
    padding-bottom: 90px;
  }
}

/* Tighter gap between About and Projects (theme defaults: 200px + 145px). */
body.bs-home-1 .tp-about-area.tp-about-spacing,
body.bs-home-1 .tp-about-area.tp-about-spacing-2 {
  padding-bottom: 50px;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3 {
  padding-top: 50px;
  padding-bottom: 50px;
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
  body.bs-home-1 .tp-about-area.tp-about-spacing,
  body.bs-home-1 .tp-about-area.tp-about-spacing-2 {
    padding-bottom: 45px;
  }
  body.bs-home-1 .tp-project-area.tp-project-spacing-3 {
    padding-top: 45px;
    padding-bottom: 45px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  body.bs-home-1 .tp-about-area.tp-about-spacing,
  body.bs-home-1 .tp-about-area.tp-about-spacing-2 {
    padding-bottom: 40px;
  }
  body.bs-home-1 .tp-project-area.tp-project-spacing-3 {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
@media (max-width: 767.98px) {
  body.bs-home-1 .tp-about-area.tp-about-spacing,
  body.bs-home-1 .tp-about-area.tp-about-spacing-2 {
    padding-bottom: 24px;
  }
  body.bs-home-1 .tp-project-area.tp-project-spacing-3 {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* About split layout — matches index-2 home (heading in right column beside image) */
body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split {
  padding-top: 100px;
  padding-bottom: 50px;
}
body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-content {
  padding-left: 24px;
  margin-left: 0;
}
body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-title {
  font-size: 44px;
  line-height: 1.15;
}
@media (min-width: 992px) {
  /* Top-align the image with the heading. The text column is taller than the
     3:2 image, so centring left the image floating with uneven space above and
     below (reads as "image and text misaligned"). Anchoring both columns to the
     top lines the image up with the heading and keeps the image's 3:2 ratio. */
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .row.tp-align-center {
    align-items: flex-start;
  }
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split {
    padding-top: 80px;
    padding-bottom: 45px;
  }
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-title {
    font-size: 36px;
  }
}
@media (max-width: 991.98px) {
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split {
    padding-top: 70px;
    padding-bottom: 40px;
  }
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .tp-about-content .tp-section-title-wrap {
    margin-bottom: 20px;
  }
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-content {
    padding-left: 0;
  }
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-title {
    font-size: 32px;
  }
  body.bs-home-1 .tp-about-area.tp-about-spacing-2.bs-about-split .bs-about-title br {
    display: none;
  }
}
body.bs-home-1 .tp-about-area.bs-about-split .tp-about-thumb.bs-project-ripple {
  overflow: hidden;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body.bs-home-1 .tp-about-area.bs-about-split .tp-about-thumb.bs-project-ripple.is-ripple-ready > img {
  opacity: 0;
  visibility: hidden;
}
body.bs-home-1 .tp-about-area.bs-about-split .tp-about-thumb.bs-project-ripple canvas {
  display: block;
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
}

/* Testimonials — calm editorial layout */
body.bs-home-1 .bs-home-testimonials .bs-testimonail-slide {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 4px;
}
body.bs-home-1 .bs-home-testimonials .bs-testimonail-quote-mark {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--tp-playfair-font);
  font-size: 110px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  user-select: none;
}
body.bs-home-1 .bs-home-testimonials .tp-testimonail-title {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--tp-text-body);
}
body.bs-home-1 .bs-home-testimonials .bs-testimonail-author {
  display: block;
  margin-top: 32px;
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  color: var(--tp-theme-color);
  letter-spacing: 0.02em;
  text-transform: none;
}
body.bs-home-1 .bs-home-testimonials .bs-testimonail-author::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--tp-secoundery-color);
  margin: 0 auto 14px;
}
body.bs-home-1 .bs-home-testimonials .bs-home-testimonail-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
body.bs-home-1 .bs-home-testimonials .bs-home-testimonail-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: rgba(0, 0, 0, 0.14);
  opacity: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
body.bs-home-1 .bs-home-testimonials .bs-home-testimonail-pagination .swiper-pagination-bullet-active {
  background: var(--tp-secoundery-color);
  transform: scale(1.2);
}
body.bs-home-1 .bs-home-testimonials .tp-btn-swiper {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--tp-theme-color);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
body.bs-home-1 .bs-home-testimonials .tp-btn-swiper:hover {
  background: var(--tp-secoundery-color);
  border-color: var(--tp-secoundery-color);
  color: var(--tp-theme-color);
}
@media only screen and (min-width: 1200px) and (max-width: 1399.98px),
       only screen and (min-width: 992px) and (max-width: 1199.98px) {
  body.bs-home-1 .bs-home-testimonials .tp-testimonail-title {
    font-size: 23px;
  }
}
@media (max-width: 767.98px) {
  body.bs-home-1 .bs-home-testimonials .bs-testimonail-quote-mark {
    font-size: 80px;
    top: -18px;
  }
  body.bs-home-1 .bs-home-testimonials .tp-testimonail-title {
    font-size: 20px;
    line-height: 1.6;
  }
  body.bs-home-1 .bs-home-testimonials .bs-testimonail-author {
    margin-top: 26px;
    font-size: 15px;
  }
}

/* Tighter gap between Projects and Team (theme defaults: 145px + 150px). */
body.bs-home-1 .tp-team-area.tp-team-spacing {
  padding-top: 50px;
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
  body.bs-home-1 .tp-team-area.tp-team-spacing.tp-team-spacing-3 {
    padding-top: 45px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  body.bs-home-1 .tp-team-area.tp-team-spacing {
    padding-top: 40px;
  }
}
@media (max-width: 767.98px) {
  body.bs-home-1 .tp-team-area.tp-team-spacing {
    padding-top: 32px;
  }
}

/* Blog tpproject2 — theme expects small thumbs + separate full hover image (645×540).
   Home webps are 4465×4465; constrain short thumb and fill card on expand. */
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject__thumb {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__img-short {
  width: 180px;
  height: 180px;
  max-width: 180px;
  object-fit: cover;
  display: block;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active {
  overflow: hidden;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject__thumb {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 20px;
  width: 100%;
  height: 100%;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__top {
  position: absolute;
  inset: 0;
  z-index: 2;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 27px;
  pointer-events: none;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__icon {
  pointer-events: auto;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__img-short {
  opacity: 0;
  visibility: hidden;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__img-hover {
  border-radius: 20px;
  z-index: 0;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__title-larg {
  z-index: 3;
}
body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__icon a {
  z-index: 2;
}
@media only screen and (min-width: 992px) and (max-width: 1199.98px),
       only screen and (min-width: 768px) and (max-width: 991.98px) {
  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__img-short {
    width: 100%;
    max-width: 70%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 767.98px) {
  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tp-project-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2 {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__top {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject__thumb {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__img-short {
    width: 100%;
    max-width: 100%;
    height: 220px;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    margin: 0;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active {
    min-height: auto;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__top {
    position: relative;
    inset: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    pointer-events: auto;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject__thumb {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject__thumb::after {
    display: none;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__img-short {
    opacity: 1;
    visibility: visible;
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin: 0;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__img-hover {
    opacity: 0;
    visibility: hidden;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__content {
    opacity: 1;
    visibility: visible;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__title-larg {
    opacity: 0;
    visibility: hidden;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2.active .tpproject2__icon a {
    background-color: var(--tp-theme-color);
    color: var(--tp-white-color);
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__title-larg {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  body.bs-home-1 .tp-project-area.tp-project-spacing-3.fix:not(.tp-perspective-slider) .tpproject2__title br {
    display: none;
  }
}

/* Core values cards — original images only, no soften effects */
.bs-value-cards.fix {
  overflow: visible;
}
.bs-value-cards .row > [class*="col-"],
.bs-value-cards .tpservices2,
.bs-value-cards .tpservices2__thumb {
  transform: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  will-change: auto !important;
  perspective: none !important;
}
.bs-value-cards .tpservices2__thumb {
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  /* Promote image layer so ScrollSmoother parent transform doesn't soften it */
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
}
.bs-value-cards .tpservices2__thumb img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  border: 0;
  outline: 0;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  image-rendering: auto;
}
.bs-value-cards .tpservices2:hover .tpservices2__thumb img {
  transform: none !important;
}
