/* Services: the listing (/services/) and the service page template.
   Everything is built from Elementor widgets (build/services.py); fields come from
   Plugins/di-site/inc/services.php. Rules that must beat Elementor's own widget selectors
   start with .elementor .elementor-element. */

/* ------------------------------------------------------- listing page -- */

.di-svc-archive__intro p { max-width: 705px; }
.di-svc-archive__cta-text p { max-width: 712px; }
.di-svc-archive__cta-btn .elementor-button { min-width: 276px; padding: 0 19px; }

/* photo cards (loop item "Card: Service (services page)") */
.di-lcard--svc::after { opacity: .14; }
.di-lcard--svc .di-lcard__text { max-width: none; }

/* ------------------------------------------------------- service page -- */

/* hero: 187px, the icon shape sits 95px higher than on the taller inner hero */
.di-svc-hero::after { -webkit-mask-position: calc(50% + 394px) -109px, 0 0; mask-position: calc(50% + 394px) -109px, 0 0; }
.di-svc-hero__title .elementor-heading-title { max-width: 1000px; text-wrap: balance; }
.elementor .elementor-element.di-svc-sub-wrap { flex: 1 1 auto; min-width: 0; }
.di-svc-sub .elementor-heading-title { max-width: 925px; }

/* body text */
.di-svc-t p { margin: 0 0 9px; }
.di-svc-t p:last-child { margin-bottom: 0; }
.di-svc-intro__lead p, .di-svc-intro__text p, .di-svc-intro__more, .di-svc-why__text p { max-width: 672px; }
.di-svc-intro__more > .elementor-widget-container > :first-child { margin-top: 9px; }
.di-svc-intro__more ul, .di-svc-intro__more ol { margin: 0 0 9px; padding-left: 22px; }
.di-svc-intro__more a, .di-svc-why a { color: #2B8C84; text-decoration: underline; }

.di-svc-photo img { display: block; width: 100%; height: 218px; object-fit: cover; }

/* "what's included" box: the list is one bullet list, shown in two columns */
.elementor-element.di-svc-box { padding: 18px 0 26px 32px; border-radius: 14px; }
.di-svc-box__title .elementor-heading-title { padding-right: 16px; }
.di-svc-box__list ul { columns: 2; column-gap: 11px; margin: 0; padding: 0; list-style: none; }
.di-svc-box__list li { position: relative; break-inside: avoid; margin: 0; padding: 0 16px 0 41px; list-style: none; }
.di-svc-box__list li::before { content: "•"; position: absolute; left: 5px; top: 0; font-size: 15px; }
.di-svc-box:not(:has(li)) { display: none; }

/* logos: eight to a row, name (the image caption) under each */
.elementor-widget-image-gallery.di-svc-logos .gallery {
	display: grid;
	grid-template-columns: repeat(8, 99px);
	justify-content: space-between;
	row-gap: 40px;
	margin: 70px 0 0;
}
.di-svc-logos .gallery::before, .di-svc-logos .gallery::after { display: none; }
.elementor-widget-image-gallery.di-svc-logos .gallery .gallery-item { display: flex; flex-direction: column; align-items: flex-start; width: auto; max-width: none; margin: 0; float: none; text-align: left; }
.elementor-widget-image-gallery.di-svc-logos .gallery .gallery-icon { display: block; width: 100%; text-align: left; }
.elementor-widget-image-gallery.di-svc-logos .gallery-icon img { display: block; width: 78px; height: 68px; margin: 0 0 29px 5px; border: 0; object-fit: contain; object-position: left center; }
.elementor-widget-image-gallery.di-svc-logos .gallery .gallery-caption { margin: 0; padding: 0; text-align: left; font-style: normal; font-size: 20px; font-weight: 700; line-height: 24px; color: var(--di-navy); overflow-wrap: anywhere; }

/* closing call to action: the whole block is hidden while the service has no heading */
.di-svc-cta:not(:has(.elementor-heading-title)) { display: none; }

/* ----------------------------------------------- between 1025 and 1430 -- */

@media (max-width: 1430px) and (min-width: 1025px) {
	html body .elementor .elementor-element.di-svc-hero__title .elementor-heading-title { font-size: clamp(34px, 3.3vw, 52.9px); line-height: 1.17; }
	html body .elementor .elementor-element.di-svc-sub .elementor-heading-title { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.19; }
	html body .elementor .elementor-element.di-svc-box__title .elementor-heading-title { font-size: clamp(22px, 2.1vw, 31.2px); line-height: 1.22; }
	html body .elementor .elementor-element.di-svc-box__list { font-size: 17px; line-height: 30px; }
	.di-svc-box__list li { padding-left: 28px; }
	.elementor-widget-image-gallery.di-svc-logos .gallery { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 16px; }
}

/* --------------------------------------------------- tablet and below -- */

@media (max-width: 1024px) {
	.di-svc-archive__intro p, .di-svc-archive__cta-text p { max-width: none; }
	.elementor-element.di-svc-band.e-con { padding: 16px 32px; }
	.di-svc-intro__lead p, .di-svc-intro__text p, .di-svc-intro__more, .di-svc-why__text p { max-width: none; }
	.di-svc-photo img { height: auto; aspect-ratio: 695 / 218; }
	.elementor-element.di-svc-box { padding: 20px 24px 24px; }
	html body .elementor .elementor-element.di-svc-box__list { font-size: 17px; line-height: 30px; }
	.elementor-widget-image-gallery.di-svc-logos .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; margin-top: 40px; }
}

@media (max-width: 767px) {
	.di-svc-archive__cta-btn .elementor-button { min-width: 0; }
	.elementor-element.di-svc-band.e-con { padding: 16px 20px; }
	.elementor-element.di-svc-box { padding: 18px 20px 20px; }
	.di-svc-box__list ul { columns: 1; }
	.di-svc-box__list li { padding: 0 0 0 26px; }
	.di-svc-box__list li::before { left: 2px; }
	.elementor-widget-image-gallery.di-svc-logos .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.elementor-widget-image-gallery.di-svc-logos .gallery-icon img { margin-bottom: 14px; }
	.elementor-widget-image-gallery.di-svc-logos .gallery .gallery-caption { font-size: 18px; }
}

/* ---------------------------------------------------- client feedback -- */

/* archive: quote to the right of the intro */
.elementor-element.di-svc-archive__quote { width: 470px; max-width: 100%; }
.di-svc-archive__quote .di-quote { max-width: none; font-family: Arial, sans-serif; }
@media (max-width: 1024px) { .elementor-element.di-svc-archive__quote { width: 100%; } }
.di-svc-introrow > .di-svc-archive__intro.elementor-widget { flex: 1 1 0; min-width: 0; }
