/*
 * Services hub and service pages: service cards, filter chips, the service hero, page
 * sections and the enquiry area. Loaded with the frelim/service-* blocks (block.json "style").
 * Colours only from --fc-* aliases. No dark surfaces here, so the default focus tokens apply.
 */

/* ---------- Full-bleed sections: own gutter, content column inside ---------- */

.fc-service-hero,
.fc-service-section,
.fc-service-enquire,
.fc-services-intro {
	padding-inline: var(--fc-gutter);
}

.fc-service-hero__inner,
.fc-service-section__inner,
.fc-service-enquire__inner,
.fc-services-intro__inner {
	width: 100%;
	max-width: var(--fc-content);
	margin-inline: auto;
}

/* ---------- Services hub intro ---------- */

.fc-services-intro {
	padding-bottom: var(--fc-space-50);
}

.fc-services-intro__inner > * {
	margin-block: 0;
}

.fc-services-intro__inner h1 {
	margin-block: 0 var(--fc-space-20);
}

.fc-services-intro__lead {
	max-width: var(--fc-prose);
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Filterable grid ---------- */

.fc-services--filterable {
	padding-block: var(--fc-space-40) var(--fc-space-60);
}

.fc-filter {
	margin-bottom: var(--fc-space-40);
}

.fc-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 44px;
	padding: 8px 18px;
	border: 2px solid var(--fc-line);
	border-radius: var(--fc-radius-pill);
	font: inherit;
	font-size: 0.8889rem; /* 16px */
	font-weight: 600;
	line-height: 1.2;
	color: var(--fc-indigo);
	background-color: var(--fc-white);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-chip:hover {
	border-color: var(--fc-indigo);
	color: var(--fc-indigo-deep);
	background-color: var(--fc-cream-soft);
}

/* The chosen chip is filled and ticked, so the state never rests on colour alone. */
.fc-chip[aria-pressed="true"] {
	border-color: var(--fc-indigo);
	color: var(--fc-white);
	background-color: var(--fc-indigo);
}

.fc-chip[aria-pressed="true"]::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	background-color: currentColor;
	mask: url(../svg/icons/check-circle.svg) center / contain no-repeat;
}

.fc-filter__status {
	margin: var(--fc-space-20) 0 0;
	font-size: 0.8889rem;
	color: var(--fc-muted);
}

.fc-filter__status:empty {
	display: none;
}

.fc-services__group[hidden] {
	display: none !important;
}

.fc-services__group + .fc-services__group {
	margin-top: var(--fc-space-50);
}

.fc-services__heading {
	display: flex;
	align-items: center;
	gap: var(--fc-space-20);
	margin-bottom: var(--fc-space-30);
	font-size: var(--wp--preset--font-size--x-large);
}

/* A short Ember to Amber lead line after the category name, as on the separator. */
.fc-services__heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--fc-amber) 0 64px, var(--fc-line) 64px);
}

/* ---------- Service cards ---------- */

.fc-service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
	gap: var(--fc-space-30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-service-card {
	display: flex;
	flex-direction: column;
	padding: var(--fc-space-30);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fc-service-card:hover {
	box-shadow: 0 12px 32px color-mix(in srgb, var(--fc-indigo) 14%, transparent);
	transform: translateY(-2px);
}

.fc-service-card > * {
	margin: 0;
}

.fc-service-card .fc-circle {
	--fc-circle-size: 104px;
	--fc-ring: 4px;
	flex: none;
	margin-bottom: var(--fc-space-20);
}

.fc-service-card__title {
	margin-bottom: var(--fc-space-10);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

.fc-service-card__summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	color: var(--fc-muted);
	font-size: 0.8889rem;
}

.fc-service-card__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-10);
	margin-top: var(--fc-space-20);
	padding: 0;
	list-style: none;
}

.fc-service-card__pills .fc-pill {
	min-height: 28px;
	padding: 2px 12px;
	font-size: 0.7778rem; /* 14px */
}

.fc-service-card__more {
	margin-top: auto;
	padding-top: var(--fc-space-20);
}

.fc-service-card__more .fc-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-decoration: none;
}

.fc-service-card__more .fc-icon {
	--fc-icon-size: 1.1em;
	vertical-align: 0;
	transition: transform 0.2s ease;
}

.fc-service-card:hover .fc-card__link {
	text-decoration: underline;
}

.fc-service-card:hover .fc-service-card__more .fc-icon {
	transform: translateX(3px);
}

/* No photos: the category icon fills the circle. */
.fc-circle--icon {
	place-items: center;
	color: var(--fc-indigo);
	background:
		linear-gradient(var(--fc-cream), var(--fc-cream)) padding-box,
		linear-gradient(135deg, var(--fc-ember), var(--fc-amber)) border-box;
}

.fc-circle--icon > .fc-icon {
	width: 42%;
	height: 42%;
}

/* ---------- Service hero ---------- */

.fc-service-hero {
	padding-bottom: var(--fc-space-50);
}

.fc-service-hero__inner {
	display: grid;
	gap: var(--fc-space-40);
	align-items: center;
}

.fc-service-hero__text > * {
	margin-block: 0;
}

.fc-service-hero__title {
	margin-bottom: var(--fc-space-20) !important;
}

.fc-service-hero__status {
	margin-bottom: var(--fc-space-20) !important;
}

.fc-service-hero__summary {
	max-width: var(--fc-prose);
	font-size: var(--wp--preset--font-size--large);
}

.fc-service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-20);
	margin-top: var(--fc-space-40) !important;
}

.fc-service-hero__media {
	display: flex;
	justify-content: center;
}

.fc-service-hero .fc-circle {
	--fc-circle-size: 320px;
}

@media (min-width: 900px) {
	.fc-service-hero {
		padding-bottom: var(--fc-space-60);
	}

	.fc-service-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--fc-space-60);
	}

	.fc-service-hero .fc-circle {
		--fc-circle-size: 440px;
	}
}

/* ---------- Page sections ---------- */

.fc-service-section {
	padding-block: var(--fc-space-50);
}

.fc-service-section__heading {
	margin-bottom: var(--fc-space-30);
}

.fc-service-section__body > :first-child {
	margin-top: 0;
}

.fc-service-section__body > :last-child {
	margin-bottom: 0;
}

/* Consecutive white sections are divided by a hairline instead of a second gap. */
.fc-service-section--split + .fc-service-section--split {
	padding-top: 0;
}

.fc-service-section--split + .fc-service-section--split > .fc-service-section__inner {
	padding-top: var(--fc-space-50);
	border-top: 1px solid var(--fc-line);
}

/* Split: heading on the left, content on the right, from tablet landscape up. */
@media (min-width: 900px) {
	.fc-service-section {
		padding-block: var(--fc-space-60);
	}

	.fc-service-section--split + .fc-service-section--split > .fc-service-section__inner {
		padding-top: var(--fc-space-60);
	}

	.fc-service-section--split > .fc-service-section__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: var(--fc-space-50);
	}

	.fc-service-section--split .fc-service-section__heading {
		margin-bottom: 0;
	}
}

.fc-service-section__prose {
	max-width: var(--fc-prose);
}

.fc-service-section__prose > :first-child {
	margin-top: 0;
}

.fc-service-section__prose > :last-child {
	margin-bottom: 0;
}

/* Bands: cream background, content below the heading. */
.fc-service-section--band {
	background-color: var(--fc-cream);
}

/* What's included: icon list in two columns. */
.fc-included {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: var(--fc-space-20) var(--fc-space-40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-included__item {
	display: flex;
	align-items: flex-start;
	gap: var(--fc-space-20);
	line-height: 1.45;
}

.fc-included__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: var(--fc-ember-text);
	background-color: var(--fc-cream);
	--fc-icon-size: 26px;
}

.fc-included__icon + span {
	padding-top: 0.6em;
}

/* How it works: numbered steps. */
.fc-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: var(--fc-space-30);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: fc-step;
}

.fc-steps__step {
	position: relative;
	padding: var(--fc-space-30);
	border-radius: var(--fc-radius-card);
	background-color: var(--fc-white);
	box-shadow: var(--fc-shadow-card);
	counter-increment: fc-step;
}

.fc-steps__step::before {
	content: counter(fc-step);
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--fc-space-20);
	border: 3px solid transparent;
	border-radius: 50%;
	font-size: 1.1111rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fc-indigo);
	background:
		linear-gradient(var(--fc-white), var(--fc-white)) padding-box,
		var(--fc-ember-amber) border-box;
}

.fc-steps__title {
	margin-bottom: var(--fc-space-10);
	font-size: var(--wp--preset--font-size--large);
}

.fc-steps__step p {
	margin: 0;
	color: var(--fc-ink);
}

/* FAQs */
.fc-service-section__faqs {
	max-width: var(--fc-prose);
}

/* Related services: cream band with arcs, white cards. */
.fc-service-section--related .fc-service-section__heading {
	margin-bottom: var(--fc-space-40);
}

/* Easy Read and downloads: a compact panel. */
.fc-service-section--compact {
	padding-block: 0 var(--fc-space-50);
}

.fc-service-section--compact > .fc-service-section__inner {
	padding: var(--fc-space-30) var(--fc-space-40);
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius-card);
	background-color: var(--fc-cream-soft);
}

.fc-service-section--compact .fc-service-section__heading {
	display: flex;
	align-items: center;
	gap: var(--fc-space-10);
	margin-bottom: var(--fc-space-20);
	font-size: var(--wp--preset--font-size--x-large);
}

.fc-service-section--compact .fc-service-section__heading .fc-icon {
	color: var(--fc-ember-text);
}

.fc-service-section__links,
.fc-downloads__list {
	display: grid;
	gap: var(--fc-space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-downloads__link {
	display: inline-flex;
	align-items: center;
	gap: var(--fc-space-10);
	min-height: 44px;
	font-weight: 600;
}

.fc-downloads__link .fc-icon {
	color: var(--fc-ember-text);
}

.fc-downloads__meta {
	font-weight: 400;
	color: var(--fc-muted);
}

/* ---------- Enquiry ---------- */

.fc-service-enquire {
	padding-block: var(--fc-space-50);
}

.fc-service-enquire__inner {
	display: grid;
	gap: var(--fc-space-40);
}

.fc-service-enquire__intro > * {
	margin-block: 0;
}

.fc-service-enquire__intro h2 {
	margin-bottom: var(--fc-space-20);
}

.fc-service-enquire .fc-form-wrap {
	padding: var(--fc-space-30);
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius-card);
	background-color: var(--fc-white);
	box-shadow: var(--fc-shadow-card);
}

@media (min-width: 900px) {
	.fc-service-enquire {
		padding-block: var(--fc-space-60);
	}

	.fc-service-enquire__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: var(--fc-space-50);
	}

	.fc-service-enquire .fc-form-wrap {
		padding: var(--fc-space-40);
	}
}
