/* Hero + Services block. Loaded only on pages that contain the block. */
.ahs {
	--ahs-gap: clamp(1rem, 2.5vw, 2rem);
	--ahs-accent: var(--ast-global-color-0, #0170b9);
	--ahs-heading: var(--ast-global-color-2, #1e293b);
	--ahs-text: var(--ast-global-color-3, #475569);
	--ahs-card-bg: var(--ast-global-color-5, #fff);
	--ahs-radius: 12px;
	padding-block: clamp(3rem, 8vw, 6rem);
}
.ahs.alignwide,
.ahs.alignfull { padding-inline: 1.25rem; }

.ahs.has-text-color { --ahs-heading: currentColor; --ahs-text: currentColor; }

.ahs__hero {
	position: relative;
	isolation: isolate;
	max-width: 760px;
	margin-inline: auto;
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.ahs--align-center .ahs__hero { text-align: center; }
.ahs--align-left .ahs__hero { margin-inline: 0; }

.ahs--has-bg .ahs__hero {
	max-width: none;
	padding: clamp(3rem, 10vw, 8rem) 1.5rem;
	border-radius: var(--ahs-radius);
	overflow: hidden;
	--ahs-heading: #fff;
	--ahs-text: rgba(255, 255, 255, 0.88);
}
.ahs--has-bg .ahs__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.5);
}
.ahs__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ahs--has-bg .ahs__hero-inner { max-width: 760px; margin-inline: auto; }

.ahs__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ahs-accent);
}
.ahs--has-bg .ahs__eyebrow { color: #fff; }

.ahs__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
	color: var(--ahs-heading);
}

.ahs__text {
	margin: 0 0 1.75rem;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--ahs-text);
}

/* Buttons take their look from the site's Astra button settings. */
.ahs__button,
.ahs__svc-button {
	display: inline-block;
	text-decoration: none;
}

.ahs__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ahs__buttons > li { margin: 0; }
.ahs--align-center .ahs__buttons { justify-content: center; }
span.ahs__svc-button { cursor: default; }
.ahs--buttons .ahs__hero { margin-bottom: 1.5rem; }
.ahs--buttons.ahs--has-bg .ahs__hero { margin-bottom: 2rem; }

.ahs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ahs-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 600px) {
	.ahs__grid { grid-template-columns: repeat(2, 1fr); }
	.ahs--cols-1 .ahs__grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
	.ahs--cols-3 .ahs__grid { grid-template-columns: repeat(3, 1fr); }
	.ahs--cols-4 .ahs__grid { grid-template-columns: repeat(4, 1fr); }
}

.ahs__card { margin: 0; }
.ahs__card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem;
	border-radius: var(--ahs-radius);
	background: var(--ahs-card-bg);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}
a.ahs__card-inner:hover,
a.ahs__card-inner:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), 0 16px 32px rgba(15, 23, 42, 0.1);
}

.ahs__card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 1rem;
	border-radius: calc(var(--ahs-radius) - 4px);
}
.ahs__card-img--placeholder { background: rgba(127, 127, 127, 0.15); }

.ahs__card-title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	color: var(--ast-global-color-2, #1e293b);
}
/* Title with a background colour: a full-width band across the card. */
.ahs__card-title--bg {
	margin-inline: -1.25rem;
	padding: 0.75rem 1.25rem;
}
.ahs__card-title--bg:first-child {
	margin-top: -1.25rem;
	border-radius: var(--ahs-radius) var(--ahs-radius) 0 0;
}
.ahs__card-inner { overflow: hidden; }

.ahs__card-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ast-global-color-3, #475569);
}

@media (prefers-reduced-motion: reduce) {
	.ahs__card-inner { transition: none; }
	a.ahs__card-inner:hover { transform: none; }
}
