/* ==========================================================================
   Paramount Infinet - Final corrections layer (loaded last)
   1. Home link styling in the main navigation
   2. Client filter pills: text stays inside the button
   3. Floating controls: WhatsApp bottom-right, back-to-top above it
   4. Visible "Contact Us" buttons on light sections
   5. Services cards always visible (carousel-independent grid)
   ========================================================================== */

/* ---------- 3. Floating controls ---------- */
/* Remove the bottom gradient shelf that hid page buttons behind it. */
body:has(.whatsapp_float)::after {
  display: none !important;
  content: none !important;
}

.whatsapp_float {
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
  width: 56px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  z-index: 1100 !important;
}

.whatsapp-icon {
  margin-top: 0 !important;
}

/* Back-to-top now sits on the same side, directly above WhatsApp. */
#scroll-to-top.dmtop,
.dmtop {
  left: auto !important;
  right: 24px !important;
  bottom: 96px !important;
  width: 56px !important;
  height: 56px !important;
  line-height: 56px !important;
  text-align: center;
  z-index: 1100 !important;
}

@media (max-width: 767px) {
  .whatsapp_float {
    right: 16px !important;
    bottom: 18px !important;
    width: 48px !important;
    height: 48px !important;
  }

  #scroll-to-top.dmtop,
  .dmtop {
    right: 16px !important;
    left: auto !important;
    bottom: 76px !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
  }
}

/* ---------- 4. Buttons on light backgrounds ---------- */
.btn-light,
.button.btn-light,
a.btn.btn-light {
  background: var(--pi-orange, #fd6802) !important;
  border: 2px solid var(--pi-orange, #fd6802) !important;
  color: #ffffff !important;
}

.btn-light:hover,
.button.btn-light:hover,
a.btn.btn-light:hover {
  background: var(--pi-orange-dark, #e05500) !important;
  border-color: var(--pi-orange-dark, #e05500) !important;
  color: #ffffff !important;
}

/* ---------- 2. Client filter pills ---------- */
.portfolio-filter ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.portfolio-filter ul li {
  display: block;
  margin: 0;
  padding: 0;
}

.portfolio-filter ul li:after {
  content: "" !important;
  display: none !important;
}

.portfolio-filter ul li .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
  line-height: 1.2;
  padding: 13px 26px !important;
  font-size: 14px;
}

@media (max-width: 767px) {
  .portfolio-filter ul {
    gap: 10px;
  }

  .portfolio-filter ul li .btn-dark {
    padding: 11px 16px !important;
    font-size: 12px;
    letter-spacing: 0;
  }
}

/* ---------- 5. Services always visible ---------- */
#services .owl-services.owl-carousel,
#services .owl-services.owl-carousel.owl-loaded {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  transform: none !important;
}

#services .owl-services .owl-stage-outer,
#services .owl-services .owl-stage {
  display: contents !important;
  width: auto !important;
  transform: none !important;
}

#services .owl-services .owl-item {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
}

#services .owl-services .service-widget,
#services .owl-services .owl-item > .service-widget {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#services .owl-services .post-media img {
  display: block;
  width: 100%;
  height: auto;
}

#services .owl-services .owl-nav,
#services .owl-services .owl-dots {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
  #services .owl-services.owl-carousel,
  #services .owl-services.owl-carousel.owl-loaded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #services .owl-services.owl-carousel,
  #services .owl-services.owl-carousel.owl-loaded {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

/* ---------- 1. Home nav item ---------- */
.header.header_style_01 .navbar-nav > li > a.nav-home {
  white-space: nowrap;
}

/* ---------- Services grid: equal-height cards on desktop ---------- */
#services .owl-services.owl-carousel,
#services .owl-services.owl-carousel.owl-loaded {
  align-items: stretch !important;
  grid-auto-rows: 1fr;
}

#services .owl-services .service-widget,
#services .owl-services .owl-item > .service-widget {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

#services .owl-services .post-media {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
}

#services .owl-services .post-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0 !important;
}

#services .owl-services .service-dit {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 24px;
}

#services .owl-services .service-dit h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

#services .owl-services .service-dit p {
  margin: 0;
}

@media (max-width: 767px) {
  #services .owl-services .post-media img {
    height: 200px;
  }
}
