/* ==========================================================================
   Service pages: single-service.php (.wf-industry.wf-service) and the
   /services/ landing page (.wf-industry.wf-services).

   Loaded AFTER assets/css/industry.css, which owns the shared section
   primitives both templates reuse (.wf-industry__section, .wf-ind-hero,
   .wf-ind-cards, .wf-ind-steps, .wf-ind-more, .wf-ind-cases, .wf-ind-blog,
   .wf-ind-faq). Only the service-only blocks live here.

   SPECIFICITY NOTE -- Elementor's kit stylesheet ships element rules at 0-1-1
   (.elementor-kit-6 a / button / img), which beat a bare single class, so the
   scope is load-bearing, not cosmetic. industry.css re-asserts link colour,
   image radius and buttons under .wf-industry; the resets below cover the
   service-only elements it does not know about.
   ========================================================================== */

/* ---------- Scope resets ---------- */
.wf-service [hidden],
.wf-services [hidden] {
	display: none !important;
}

body .wf-service .wf-svc-prose img,
body .wf-service .wf-svc-card__img,
body .wf-service .wf-svc-why__img,
body .wf-service .wf-svc-acc__img-el,
body .wf-service .wf-svc-approach__diagram-img {
	border-radius: 0;
	max-width: 100%;
	height: auto;
}

/* ---------- Section rhythm (alternating bands down the single) ---------- */
.wf-service .wf-industry__section--approach,
.wf-service .wf-industry__section--included,
.wf-service .wf-industry__section--features,
.wf-service .wf-industry__section--business {
	background: var(--wf-bg);
}

.wf-service .wf-industry__section--why,
.wf-service .wf-industry__section--what-we-do,
.wf-service .wf-industry__section--expertise,
.wf-service .wf-industry__section--process,
.wf-service .wf-industry__section--certs {
	background: var(--wf-white);
}

/* ---------- Long-form prose (Why It Matters, Our Approach) ---------- */
.wf-service .wf-svc-prose {
	max-width: 780px;
	margin-inline: auto;
	font: 400 1.0625rem/1.7 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-service .wf-svc-prose > :first-child {
	margin-top: 0;
}

.wf-service .wf-svc-prose > :last-child {
	margin-bottom: 0;
}

.wf-service .wf-svc-prose p {
	margin: 0 0 1em;
}

.wf-service .wf-svc-prose h2,
.wf-service .wf-svc-prose h3,
.wf-service .wf-svc-prose h4 {
	font-family: var(--wf-font-display);
	color: var(--wf-text-dark);
	margin: 1.5em 0 .5em;
}

.wf-service .wf-svc-prose a {
	color: var(--wf-blue);
	text-decoration: underline;
}

.wf-service .wf-svc-prose ul,
.wf-service .wf-svc-prose ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.wf-service .wf-svc-prose li {
	margin-bottom: .35em;
}

/* ---------- 1. Why It Matters ---------- */
.wf-service .wf-svc-why__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.wf-service .wf-svc-why__img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.wf-service .wf-svc-why__body {
	text-align: center;
}

/* ---------- 2. Our Approach ---------- */
.wf-service .wf-svc-approach__lead {
	margin-bottom: clamp(28px, 4vw, 48px);
	text-align: center;
}

.wf-service .wf-svc-tabs {
	display: grid;
	gap: clamp(20px, 3vw, 40px);
}

.wf-service .wf-svc-tabs__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.wf-service .wf-svc-tabs__tab {
	flex: none;
	display: block;
	padding: 12px 16px;
	border: 0;
	border-bottom: 2px solid var(--wf-border);
	background: none;
	border-radius: 0;
	text-align: left;
	font: 600 .9375rem/1.35 var(--wf-font-body);
	color: var(--wf-text);
	cursor: pointer;
	transition: color var(--wf-dur) var(--wf-ease), border-color var(--wf-dur) var(--wf-ease);
}

.wf-service .wf-svc-tabs__tab:hover {
	color: var(--wf-text-dark);
	border-color: var(--wf-silver);
}

.wf-service .wf-svc-tabs__tab[aria-selected="true"] {
	color: var(--wf-blue);
	border-color: var(--wf-blue);
}

.wf-service .wf-svc-tabs__tab:focus-visible {
	outline: 2px solid var(--wf-cyan);
	outline-offset: 2px;
}

.wf-service .wf-svc-tabs__panel {
	font: 400 1.0625rem/1.7 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-service .wf-svc-tabs__panel + .wf-svc-tabs__panel {
	margin-top: clamp(28px, 4vw, 40px);
}

.wf-service .wf-svc-tabs__panel-title {
	font-size: 1.375rem;
	color: var(--wf-text-dark);
	margin: 0 0 .6em;
}

.wf-service .wf-svc-tabs__panel p {
	margin: 0 0 1em;
}

.wf-service .wf-svc-tabs__panel > :last-child {
	margin-bottom: 0;
}

.wf-service .wf-svc-tabs__panel a {
	color: var(--wf-blue);
	text-decoration: underline;
}

.wf-service .wf-svc-tabs__panel ul,
.wf-service .wf-svc-tabs__panel ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

@media (min-width: 901px) {
	.wf-service .wf-svc-tabs {
		grid-template-columns: 280px 1fr;
		align-items: start;
	}

	.wf-service .wf-svc-tabs__list {
		display: block;
		overflow: visible;
		border-left: 1px solid var(--wf-border);
	}

	.wf-service .wf-svc-tabs__tab {
		width: 100%;
		padding: 14px 18px;
		border-bottom: 0;
		border-left: 2px solid transparent;
		margin-left: -1px;
	}

	.wf-service .wf-svc-tabs__tab:hover {
		border-color: var(--wf-silver);
	}

	.wf-service .wf-svc-tabs__tab[aria-selected="true"] {
		border-color: var(--wf-blue);
	}
}

.wf-service .wf-svc-approach__diagram {
	margin-top: clamp(32px, 4vw, 56px);
}

.wf-service .wf-svc-approach__diagram-img {
	display: block;
	width: 100%;
}

/* ---------- 3. What We Do ---------- */
.wf-service .wf-svc-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.wf-service .wf-svc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wf-white);
	border: 1px solid var(--wf-border);
	border-radius: var(--wf-radius-md);
	transition: box-shadow var(--wf-dur) var(--wf-ease), transform var(--wf-dur) var(--wf-ease);
}

.wf-service .wf-svc-card:hover {
	box-shadow: var(--wf-shadow-md);
	transform: translateY(-2px);
}

.wf-service .wf-svc-card__media {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	overflow: hidden;
	background-color: var(--wf-bg-blue);
}

.wf-service .wf-svc-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wf-service .wf-svc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px;
}

.wf-service .wf-svc-card__title {
	font-size: 1.1875rem;
	color: var(--wf-text-dark);
}

.wf-service .wf-svc-card__title-link {
	color: var(--wf-text-dark);
	transition: color var(--wf-dur) var(--wf-ease);
}

.wf-service .wf-svc-card__title-link:hover {
	color: var(--wf-blue);
}

.wf-service .wf-svc-card__text {
	margin-top: 12px;
	font: 400 .9375rem/1.6 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-service .wf-svc-card__text > :first-child {
	margin-top: 0;
}

.wf-service .wf-svc-card__text p {
	margin: 0 0 .75em;
}

.wf-service .wf-svc-card__text > :last-child {
	margin-bottom: 0;
}

.wf-service .wf-svc-card__text a {
	color: var(--wf-blue);
	text-decoration: underline;
}

@media (min-width: 700px) {
	.wf-service .wf-svc-cards--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1040px) {
	.wf-service .wf-svc-cards--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---------- 4/6. Tile + benefit grids ---------- */
.wf-service .wf-svc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 700px) {
	.wf-service .wf-svc-grid--3,
	.wf-service .wf-svc-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1040px) {
	.wf-service .wf-svc-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.wf-service .wf-svc-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wf-service .wf-svc-tile {
	padding: 28px;
	background: var(--wf-white);
	border: 1px solid var(--wf-border);
	border-radius: var(--wf-radius-md);
	box-shadow: var(--wf-shadow-sm);
	transition: box-shadow var(--wf-dur) var(--wf-ease), transform var(--wf-dur) var(--wf-ease);
}

.wf-service .wf-svc-tile:hover {
	box-shadow: var(--wf-shadow-md);
	transform: translateY(-2px);
}

.wf-service .wf-svc-tile__icon {
	/* .wf-icon is a span; inside a block article it must be blockified or
	   the size is ignored and the SVG scales to the card width. */
	display: block;
	width: 2rem;
	height: 2rem;
	margin-bottom: 16px;
	color: var(--wf-blue);
}

.wf-service .wf-svc-tile__title {
	font-size: 1.125rem;
	color: var(--wf-text-dark);
}

.wf-service .wf-svc-tile__text {
	margin: 12px 0 0;
	font: 400 .9375rem/1.6 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-service .wf-svc-benefit {
	text-align: center;
}

.wf-service .wf-svc-benefit__icon {
	display: block;
	width: 2rem;
	height: 2rem;
	margin: 0 auto 14px;
	color: var(--wf-blue);
}

.wf-service .wf-svc-benefit__title {
	font-size: 1.0625rem;
	color: var(--wf-text-dark);
}

.wf-service .wf-svc-benefit__text {
	margin: 10px 0 0;
	font: 400 .9375rem/1.6 var(--wf-font-body);
	color: var(--wf-text);
}

/* ---------- 5. Platform expertise accordion ---------- */
.wf-service .wf-svc-acc {
	max-width: 860px;
	margin-inline: auto;
	display: grid;
	gap: 12px;
}

.wf-service .wf-svc-acc__item {
	background: var(--wf-white);
	border: 1px solid var(--wf-border);
	border-radius: var(--wf-radius-md);
	overflow: hidden;
}

.wf-service .wf-svc-acc__q {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 24px;
	cursor: pointer;
	list-style: none;
	font: 700 1.0625rem/1.4 var(--wf-font-body);
	color: var(--wf-text-dark);
}

.wf-service .wf-svc-acc__q::-webkit-details-marker {
	display: none;
}

.wf-service .wf-svc-acc__q:focus-visible {
	outline: 2px solid var(--wf-cyan);
	outline-offset: -2px;
}

.wf-service .wf-svc-acc__img {
	flex: none;
	display: block;
}

.wf-service .wf-svc-acc__img-el {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.wf-service .wf-svc-acc__title {
	flex: 1;
	min-width: 0;
}

.wf-service .wf-svc-acc__chevron {
	flex: none;
	color: var(--wf-blue);
	transition: transform var(--wf-dur) var(--wf-ease);
}

.wf-service .wf-svc-acc__item[open] .wf-svc-acc__chevron {
	transform: rotate(180deg);
}

.wf-service .wf-svc-acc__a {
	padding: 0 24px 22px;
	font: 400 1rem/1.7 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-service .wf-svc-acc__a > :first-child {
	margin-top: 0;
}

.wf-service .wf-svc-acc__a p {
	margin: 0 0 1em;
}

.wf-service .wf-svc-acc__a p:last-child {
	margin-bottom: 0;
}

.wf-service .wf-svc-acc__a a {
	color: var(--wf-blue);
	text-decoration: underline;
}

.wf-service .wf-svc-acc__a ul,
.wf-service .wf-svc-acc__a ol {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

/* ---------- 7. Key features checklist ---------- */
.wf-service .wf-svc-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px 32px;
}

.wf-service .wf-svc-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.wf-service .wf-svc-checklist__icon {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--wf-blue);
}

.wf-service .wf-svc-checklist__body {
	min-width: 0;
}

.wf-service .wf-svc-checklist__title {
	display: block;
	font: 700 1rem/1.4 var(--wf-font-body);
	color: var(--wf-text-dark);
}

.wf-service .wf-svc-checklist__text {
	display: block;
	margin-top: 4px;
	font: 400 .9375rem/1.6 var(--wf-font-body);
	color: var(--wf-text);
}

@media (min-width: 700px) {
	.wf-service .wf-svc-checklist {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   Landing page only (/services/)
   ========================================================================== */
.wf-services .wf-ind-intro {
	max-width: 820px;
	margin-inline: auto;
	text-align: center;
	font: 400 1.0625rem/1.7 var(--wf-font-body);
	color: var(--wf-text);
}

.wf-services .wf-ind-intro > :first-child {
	margin-top: 0;
}

.wf-services .wf-ind-intro p {
	margin: 0 0 1em;
}

.wf-services .wf-ind-intro p:last-child {
	margin-bottom: 0;
}

.wf-services .wf-ind-intro a {
	color: var(--wf-blue);
	text-decoration: underline;
}

/* Group bands alternate white / light grey down the page. */
.wf-services .wf-services__group:nth-of-type(even) {
	background: var(--wf-bg);
}

.wf-services .wf-svc-subs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 14px 0 0;
	padding: 0;
	font: 400 .8125rem/1.5 var(--wf-font-body);
	color: var(--wf-text-mute);
}

.wf-services .wf-svc-subs li + li::before {
	content: '\00B7';
	margin: 0 8px;
	color: var(--wf-silver);
}

.wf-services .wf-svc-subs li {
	display: flex;
	align-items: center;
}

.wf-services .wf-svc-subs__link {
	color: var(--wf-steel);
	transition: color var(--wf-dur) var(--wf-ease);
}

.wf-services .wf-svc-subs__link:hover {
	color: var(--wf-blue);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wf-service .wf-svc-acc__chevron,
	.wf-service .wf-svc-tabs__tab,
	.wf-service .wf-svc-tile,
	.wf-service .wf-svc-card {
		transition: none;
	}

	.wf-service .wf-svc-tile:hover,
	.wf-service .wf-svc-card:hover {
		transform: none;
	}
}
