/*
=====================================
  PAGE SECTIONS
  Services, Process, Reviews, Contact
=====================================
*/

/*---------------------------------------
  CUSTOM BLOCK (SERVICE CARDS)
-----------------------------------------*/
.custom-block {
  background: var(--service-block-bg, var(--color-white, #ffffff));
  border-radius: var(--service-block-border-radius, 10px);
  box-shadow: var(--service-block-shadow, 0 4px 12px rgba(0, 0, 0, 0.1));
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: var(--service-block-border, 1px solid rgba(0, 0, 0, 0.05));
  min-height: 200px;
  position: relative;
  margin-bottom: 40px;
}

/* Image container wrapper for consistent sizing */
.custom-block .img-wrapper {
  width: 100%;
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-light);
}

.custom-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--service-block-hover-shadow, 0 8px 25px rgba(0, 0, 0, 0.12));
}

.custom-block .d-flex {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 130px;
}

.custom-block h3 {
  color: var(
    --service-block-title-color,
    var(--heading-color, var(--text-primary, #2c3e50))
  );
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  padding-right: 70px;
  max-width: calc(100% - 70px);
}

.custom-block p {
  color: var(--service-block-text-color, var(--text-secondary, #717275));
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 35px;
  flex-grow: 1;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 10px;
}

.custom-block .custom-btn {
  background-color: var(
    --service-block-btn-bg,
    var(--btn-success-bg, var(--status-success, #00a05d))
  );
  color: var(--service-block-btn-text, var(--color-white, #ffffff));
  border: var(--service-block-btn-border, none);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--service-block-btn-border-radius, 4px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: auto;
  min-width: 90px;
}

.custom-block .custom-btn:hover {
  background-color: var(
    --service-block-btn-hover-bg,
    var(--btn-success-hover, #008751)
  );
  transform: translateY(-2px);
  box-shadow: var(
    --service-block-btn-hover-shadow,
    0 4px 12px rgba(0, 141, 79, 0.3)
  );
}

.custom-block-image {
  width: 100%;
  height: 150px !important;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  border: none;
}

.custom-block:hover .custom-block-image {
  transform: scale(1.05);
}

.badge-float {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(246, 81, 41, 0.3);
  z-index: 2;
}

/* Service cards vertical spacing */
.services-section .row > .col-lg-4 {
  margin-bottom: 30px;
}

/*---------------------------------------
  PROCESS SECTION
-----------------------------------------*/
.process-section {
  padding-top: var(--section-gap-desktop);
  padding-bottom: var(--section-padding-vertical);
  background-color: transparent;
  position: relative;
}

.process-block {
  padding: 25px 20px;
  transition: transform 0.3s ease;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Process section horizontal spacing */
.process-section .full-width-content {
  padding-left: 40px;
  padding-right: 40px;
}

.process-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.process-icon {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto;
}

.process-icon i {
  font-size: 32px;
  color: var(--dark-color);
  line-height: 80px;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--secondary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.process-block h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-top: 15px;
}

.process-block p {
  color: var(--p-color);
  font-size: 14px;
}

/*---------------------------------------
  REVIEWS SECTION
-----------------------------------------*/
.reviews-section {
  background: var(--section-bg-color);
}

.reviews-carousel .owl-item img,
.avatar-image {
  border-radius: var(--border-radius-large);
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.reviews-carousel .owl-nav {
  position: absolute;
  top: -100px;
  right: 0;
}

.reviews-carousel .owl-nav button.owl-next,
.reviews-carousel .owl-nav button.owl-prev {
  background: var(--white-color);
  border-radius: var(--border-radius-large);
  width: 60px;
  height: 60px;
  margin: 5px;
  transition: all 0.5s;
}

.reviews-carousel .owl-nav button.owl-next:hover,
.reviews-carousel .owl-nav button.owl-prev:hover {
  background: var(--secondary-color);
}

.reviews-carousel .owl-prev:hover span::before,
.reviews-carousel .owl-next:hover span::before {
  color: var(--white-color);
}

.reviews-carousel .owl-prev span,
.reviews-carousel .owl-next span {
  display: block;
  color: transparent;
  width: 60px;
  height: 60px;
  line-height: 60px;
}

.reviews-carousel .owl-prev span::before,
.reviews-carousel .owl-next span::before {
  font-family: bootstrap-icons;
  display: block;
  font-size: var(--h4-font-size);
  color: var(--secondary-color);
}

.reviews-carousel .owl-prev span::before {
  content: "\f12f";
}

.reviews-carousel .owl-next span::before {
  content: "\f138";
}

.reviews-thumb {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.reviews-body {
  padding: 50px 40px;
}

.reviews-bottom {
  background: var(--secondary-color);
  background: linear-gradient(
    180deg,
    rgba(246, 81, 41, 1) 0%,
    rgba(255, 190, 140, 1) 100%
  );
  position: relative;
  padding: 10px 36px;
}

.reviews-bottom-up::before {
  content: "";
  display: block;
  margin: auto;
  width: 0;
  height: 0;
  border-bottom: 22px solid var(--secondary-color);
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  position: absolute;
  top: -20px;
  left: 36px;
}

.bi-star-fill {
  color: var(--primary-color);
}

.reviews-section .custom-btn {
  background: var(--facebook-color);
}

.reviews-section .custom-btn:hover {
  background: transparent;
  border-color: var(--facebook-color);
  color: var(--facebook-color);
}

.reviews-bottom small {
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-normal);
}

/*---------------------------------------
  CONTACT SECTION
-----------------------------------------*/
.contact-section {
  background: var(--white-color);
}

.contact-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.contact-form label {
  font-weight: var(--font-weight-semibold);
}

.google-map {
  display: block;
  border-radius: var(--border-radius-medium);
}

/*---------------------------------------
  FILTER FORM
-----------------------------------------*/
.filter-form {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 30px;
}

.filter-form-small-title {
  display: block;
  margin-bottom: 10px;
}

.filter-form .form-select {
  border: 2px solid var(--border-color);
}

.filter-form .form-check-label {
  color: var(--p-color);
}

/*---------------------------------------
  CUSTOM LINK
-----------------------------------------*/
.custom-link {
  color: var(--p-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding-bottom: 2px;
}

.custom-link::after {
  content: "";
  width: 0;
  height: 2px;
  bottom: 0;
  position: absolute;
  left: auto;
  right: 0;
  z-index: -1;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  background: currentColor;
}

.custom-link:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

.custom-link:hover {
  color: var(--primary-color);
}

.custom-link:hover::after {
  background: var(--custom-btn-bg-color);
}

/*---------------------------------------
  CUSTOM BUTTON
-----------------------------------------*/
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-semibold);
  line-height: normal;
  padding: 15px 20px;
}

.custom-btn:hover {
  background: transparent;
  border-color: var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}