/* ==========================================================================
   Services page (master) styles
============================================================================= */

#services-cards .card {
  text-decoration: none;
}

#services-cards .card .card-body > div.small p {
  font-size: 0.875rem;
  margin-bottom: 0 !important;
}

#services-cards .card .card-body > div.small p + p {
  margin-top: 0.75rem !important;
}

.services-desc p {
  margin-bottom: 0 !important;
}

.services-desc p + p {
  margin-top: 1rem !important;
}

/* ==========================================================================
   Futer Bros: the store's black/gold section background on the services
   listing (not the single-service view), and the card buttons
============================================================================= */

#content-body:has(#services-cards:not(.hide)) {
  /* The gold ramp is a fixed length, not section.alt's 40%: on a tall listing a percentage
     ramp puts gold behind the last cards' white text. Lengths keep that text at 4.5:1 or better. */
  --services-gold-ramp: 200px;
  position: relative;
  overflow: hidden;
  background-color: var(--bs-secondary);
  background-image: linear-gradient(150deg, var(--bs-secondary) calc(100% - var(--services-gold-ramp)), var(--bs-primary) 100%);
}

#content-body:has(#services-cards:not(.hide)) #services-cards {
  padding-bottom: 3rem;
}

/* The faint gold rings of the store's section.alt */
#content-body:has(#services-cards:not(.hide))::before,
#content-body:has(#services-cards:not(.hide))::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 50vw;
  height: 50vw;
  border: 1px solid var(--bs-primary);
  border-radius: 50%;
  opacity: 0.2;
  pointer-events: none;
}

#content-body:has(#services-cards:not(.hide))::before {
  top: 5vw;
  right: -9vw;
}

#content-body:has(#services-cards:not(.hide))::after {
  bottom: -5vw;
  left: -9vw;
}

#content-body:has(#services-cards:not(.hide)) > section {
  position: relative;
  z-index: 1;
}

/* The theme paints section.default and each .card white; let the background through */
#content-body:has(#services-cards:not(.hide)) > section:not(.hide),
#content-body:has(#services-cards:not(.hide)) #services-cards .card {
  background-color: rgba(0, 0, 0, 0);
}

#content-body:has(#services-cards:not(.hide)) .breadcrumb-item,
#content-body:has(#services-cards:not(.hide)) .breadcrumb-item a,
#content-body:has(#services-cards:not(.hide)) .breadcrumb-item + .breadcrumb-item::before,
#content-body:has(#services-cards:not(.hide)) #services-h1,
#services-cards .lead,
#services-cards .card h2 {
  color: var(--bs-white, #fff);
}

/* The theme colors the current crumb with !important */
#content-body:has(#services-cards:not(.hide)) .breadcrumb .breadcrumb-item.active {
  color: var(--bs-white, #fff) !important;
}

#services-cards .services-card-btn {
  margin-top: 0.75rem;
  border: 2px solid var(--bs-primary);
  border-radius: 60px;
  color: var(--bs-white, #fff);
}

#services-cards .card:hover .services-card-btn,
#services-cards .card:focus-visible .services-card-btn {
  background-color: var(--bs-primary);
  color: var(--bs-secondary);
}

@media (min-width: 768px) {
  #content-body:has(#services-cards:not(.hide)) {
    --services-gold-ramp: 260px;
  }
}

@media (min-width: 992px) {
  #content-body:has(#services-cards:not(.hide))::before,
  #content-body:has(#services-cards:not(.hide))::after {
    width: 33vw;
    height: 33vw;
  }
}

@media (min-width: 1200px) {
  #content-body:has(#services-cards:not(.hide)) {
    --services-gold-ramp: 400px;
  }
}
