/* ── EOS Services Carousel — "Our Services" cards (Swiper) ──────────────────
   Card = image + italic-serif title + divider + bulleted list. Arrows top-right.
   Swiper's bundled CSS drives the track/slide layout + drag; this file styles
   the card content and the nav. Type via .subheading-md / .body-sm utilities. */

.services-carousel {
  position: relative;
}
.services-carousel__heading,
.services-carousel__title {
  color: var(--navy);
}
.services-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.services-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.services-carousel__arrow:hover {
  color: var(--dark-gray);
}
.services-carousel__arrow:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.services-carousel__arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

.services-carousel__arrow .et-pb-icon {
  font-size: 2.5rem;
  line-height: 1;
}

/* ── Header — heading + nav. Stacks on mobile; one row (heading left, arrows
   right) on desktop. The nav keeps its own margin-bottom for the mobile stack. ── */
@media (min-width: 768px) {
  .services-carousel__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .services-carousel__header .services-carousel__nav {
    margin-left: auto; /* push arrows to the right of the heading */
    margin-bottom: 0;
  }
}

/* ── Card ── */
.services-carousel__card {
  display: flex;
  flex-direction: column;
  height: auto;
}
.services-carousel__media {
  margin-bottom: 1.25rem;
}
.services-carousel__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
ho .services-carousel__divider {
  border: 0;
  border-top: 1px solid var(--medium-green);
  margin: 1rem 0;
}

.services-carousel__list {
  list-style: none !important;
  margin: 0;
  padding: 0 !important;
  color: var(--navy);
}
.services-carousel__list li {
  list-style: none !important; /* Divi sets list-style on li at higher specificity */
  position: relative;
  padding-left: 1em;
}
.services-carousel__list li:last-child {
  margin-bottom: 0;
}
.services-carousel__list li::before {
  content: "\2022"; /* • */
  position: absolute;
  left: 0;
  top: 0;
}

/* ── Links — underline treatment for title + line links ── */
.services-carousel__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.services-carousel__link:hover {
  text-decoration: none;
}

/* ── Empty-state notice (shown to editors only) ── */
.services-carousel__empty {
  padding: 1rem;
  background: var(--yellow);
  color: var(--brown);
  border-radius: 4px;
}

/* ── Divi Visual Builder fallback ──────────────────────────────────────────
   Swiper isn't initialised in the VB (body.et-fb), so its wrapper would collapse.
   Lay the cards out in a simple responsive grid so editors still see them. */
.et-fb .services-carousel .services-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.et-fb .services-carousel .services-carousel__card {
  width: auto;
}
@media (max-width: 1079px) {
  .et-fb .services-carousel .services-carousel__track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .services-carousel__arrow .et-pb-icon {
    font-size: 1.75rem;
  }
  .et-fb .services-carousel .services-carousel__track {
    grid-template-columns: 1fr;
  }
  .services-carousel__nav {
    justify-content: flex-start;
    margin-bottom: 0;
  }
}
