/*!
 * Sarv Catalyst — Industries
 *
 * Loaded on the industries index and on every `/industry/{slug}/` page, and
 * nowhere else. Like the Contact and catalogue stylesheets it is not part of the
 * shared ladder: it loads after `utilities.css` and therefore wins a tie against
 * a rule there, which is how this section can be drawn without editing the layer
 * every other template depends on.
 *
 * The index and the industry pages share the file because they are the same
 * section presented twice: the same panels, the same service band and the same
 * invitation. One stylesheet is what keeps them from drifting.
 *
 * Everything below reads the approved design tokens. No value is invented, no
 * colour is written as a literal, and every offset uses logical properties so
 * the section mirrors with the rest of the site.
 *
 * Cascade order in this file:
 *   1. Industries index hero
 *   2. Industry panels
 *   3. Service capability band
 *   4. Consultation invitation
 *   5. Industry page hero
 *   6. Industry overview
 *   7. Related content
 *   8. Responsive
 */

/* ===========================================================================
 * 1. Industries index hero
 *
 * Compact, like the Contact hero: the four sectors below are the page, so the
 * hero names the subject and stops.
 * ======================================================================== */

.sc-industries-index,
.sc-industry-page {
	--sc-industries-hero-padding: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
	--sc-industries-rule: var(--sc-color-border-subtle);
}

.sc-industries-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--sc-color-surface-pale);
}

.sc-industries-hero__pattern {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	inline-size: var(--sc-pattern-size-md);
	block-size: var(--sc-pattern-size-md);
	inset-block-start: -30%;
	inset-inline-end: -8%;
	background-color: var(--sc-color-pattern-line);
	opacity: var(--sc-pattern-opacity);
	mask-image: url("../images/brand/sarv-hero-pattern.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: cover;
}

.sc-industries-hero .sc-container {
	position: relative;
	z-index: 1;
}

.sc-industries-hero__inner {
	padding-block: var(--sc-industries-hero-padding);
}

.sc-industries-hero .sc-breadcrumbs {
	margin-block-end: var(--sc-space-md);
}

.sc-industries-hero__title {
	margin-block: var(--sc-space-sm) var(--sc-space-md);
	font-size: var(--sc-font-size-4xl);
	font-weight: var(--sc-font-weight-bold);
	line-height: var(--sc-line-height-tight);
	letter-spacing: var(--sc-letter-spacing-tight);
	color: var(--sc-color-heading);
}

.sc-industries-hero__line {
	display: block;
}

.sc-industries-hero__line--accent {
	color: var(--sc-color-brand);
}

.sc-industries-hero__lead {
	max-inline-size: var(--sc-measure);
	margin-inline: auto;
	margin-block: 0;
	font-size: var(--sc-font-size-lg);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text-muted);
}

/* ===========================================================================
 * 2. Industry panels
 *
 * Four panels in one row at desktop. The photograph is a band above the text
 * rather than a scrim behind it, which is what separates this list from the
 * homepage band: here the visitor is choosing a sector, not reading a claim
 * printed over a picture.
 * ======================================================================== */

.sc-industry-panels {
	padding-block: var(--sc-space-section);
	background-color: var(--sc-color-surface);
}

.sc-industry-panels__header {
	margin-block-end: var(--sc-space-xl);
}

.sc-industry-panels__list {
	display: grid;
	gap: var(--sc-space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-industry-panel__body {
	display: flex;
	flex-direction: column;
	block-size: 100%;
	color: inherit;
	text-decoration: none;
}

.sc-industry-panel__media {
	display: block;
	margin-block-end: var(--sc-space-md);
	overflow: hidden;
	border-radius: var(--sc-radius-media);
	background-color: var(--sc-color-surface-muted);
}

.sc-industry-panel__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	transition: transform var(--sc-transition-base);
}

.sc-industry-panel__text {
	display: flex;
	flex-direction: column;
	gap: var(--sc-space-2xs);
}

.sc-industry-panel__title {
	font-size: var(--sc-font-size-xl);
	font-weight: var(--sc-font-weight-semibold);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-heading);
}

.sc-industry-panel__description {
	font-size: var(--sc-font-size-base);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text-muted);
}

.sc-industry-panel__action {
	display: inline-flex;
	align-items: center;
	gap: var(--sc-space-3xs);
	margin-block-start: var(--sc-space-xs);
	font-size: var(--sc-font-size-sm);
	font-weight: var(--sc-font-weight-semibold);
	letter-spacing: var(--sc-letter-spacing-wide);
	text-transform: uppercase;
	color: var(--sc-color-link);
}

.sc-industry-panel__body:is(:hover, :focus-visible) .sc-industry-panel__image {
	transform: scale(1.03);
}

.sc-industry-panel__body:focus-visible {
	outline: var(--sc-focus-outline);
	outline-offset: var(--sc-focus-offset);
}

/* ===========================================================================
 * 3. Service capability band
 *
 * One band, three labelled columns, divided by a rule. Nine separate cards would
 * say the scope is nine products; the client's scope is one capability described
 * in three steps.
 * ======================================================================== */

.sc-industries-capability {
	padding-block: var(--sc-space-section);
	background-color: var(--sc-color-surface-pale);
}

.sc-industries-capability__intro {
	max-inline-size: var(--sc-measure);
	margin-block-end: var(--sc-space-xl);
}

.sc-industries-capability__lead {
	margin-block-start: var(--sc-space-md);
}

.sc-industries-capability__groups {
	display: grid;
	gap: var(--sc-space-lg);
}

.sc-industry-group__title {
	margin-block: 0 var(--sc-space-sm);
	font-size: var(--sc-font-size-sm);
	font-weight: var(--sc-font-weight-semibold);
	letter-spacing: var(--sc-letter-spacing-wide);
	text-transform: uppercase;
	color: var(--sc-color-brand-strong);
}

.sc-industry-group__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-industry-group__item {
	padding-block: var(--sc-space-2xs);
	font-size: var(--sc-font-size-base);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text);
	border-block-start: var(--sc-border-width) solid var(--sc-industries-rule);
}

/* ===========================================================================
 * 4. Consultation invitation
 * ======================================================================== */

.sc-industries-closing {
	padding-block: var(--sc-space-section);
	background-color: var(--sc-color-surface);
	border-block-start: var(--sc-border-width) solid var(--sc-color-border-subtle);
}

.sc-industries-closing__inner {
	max-inline-size: var(--sc-measure);
}

.sc-industries-closing__title {
	margin-block: 0 var(--sc-space-md);
	font-size: var(--sc-font-size-2xl);
	font-weight: var(--sc-font-weight-bold);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-heading);
}

.sc-industries-closing__body {
	margin-block: 0 var(--sc-space-lg);
	font-size: var(--sc-font-size-lg);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text-muted);
}

.sc-industries-closing__action {
	margin: 0;
}

/* ===========================================================================
 * 5. Industry page hero
 * ======================================================================== */

.sc-industry-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--sc-color-surface-pale);
}

.sc-industry-hero__pattern {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	inline-size: var(--sc-pattern-size-md);
	block-size: var(--sc-pattern-size-md);
	inset-block-start: -30%;
	inset-inline-end: -8%;
	background-color: var(--sc-color-pattern-line);
	opacity: var(--sc-pattern-opacity);
	mask-image: url("../images/brand/sarv-hero-pattern.svg");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: cover;
}

.sc-industry-hero .sc-container {
	position: relative;
	z-index: 1;
}

.sc-industry-hero__inner {
	display: grid;
	gap: var(--sc-space-lg);
	align-items: center;
	padding-block: var(--sc-industries-hero-padding);
}

.sc-industry-hero__text {
	max-inline-size: var(--sc-measure);
}

.sc-industry-hero .sc-breadcrumbs {
	margin-block-end: var(--sc-space-md);
}

.sc-industry-hero__title {
	margin-block: var(--sc-space-sm) var(--sc-space-sm);
	font-size: var(--sc-font-size-4xl);
	font-weight: var(--sc-font-weight-bold);
	line-height: var(--sc-line-height-tight);
	letter-spacing: var(--sc-letter-spacing-tight);
	color: var(--sc-color-heading);
}

.sc-industry-hero__lead {
	max-inline-size: var(--sc-measure);
	margin-block: 0;
	font-size: var(--sc-font-size-lg);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text-muted);
}

.sc-industry-hero__media {
	overflow: hidden;
	border-radius: var(--sc-radius-media);
	background-color: var(--sc-color-surface-muted);
}

.sc-industry-hero__image {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

/* ===========================================================================
 * 6. Industry overview
 * ======================================================================== */

.sc-industry-overview {
	padding-block: var(--sc-space-section);
	background-color: var(--sc-color-surface);
}

.sc-industry-overview__inner {
	max-inline-size: var(--sc-measure);
}

.sc-industry-overview__body {
	margin-block: var(--sc-space-md) 0;
}

/* ===========================================================================
 * 7. Related content
 * ======================================================================== */

.sc-industry-related,
.sc-industry-products {
	padding-block: var(--sc-space-section);
	background-color: var(--sc-color-surface-pale);
	border-block-start: var(--sc-border-width) solid var(--sc-color-border-subtle);
}

.sc-industry-related__list {
	display: grid;
	gap: var(--sc-space-md);
	margin: var(--sc-space-lg) 0 0;
	padding: 0;
	list-style: none;
}

.sc-industry-related__item {
	padding-block-start: var(--sc-space-md);
	border-block-start: var(--sc-border-width) solid var(--sc-industries-rule);
}

.sc-industry-related__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sc-industry-related__title {
	display: block;
	font-size: var(--sc-font-size-xl);
	font-weight: var(--sc-font-weight-semibold);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-heading);
}

.sc-industry-related__excerpt {
	display: block;
	margin-block-start: var(--sc-space-2xs);
	font-size: var(--sc-font-size-base);
	line-height: var(--sc-line-height-snug);
	color: var(--sc-color-text-muted);
}

.sc-industry-related__link:focus-visible {
	outline: var(--sc-focus-outline);
	outline-offset: var(--sc-focus-offset);
}

/* ===========================================================================
 * 8. Responsive
 * ======================================================================== */

@media (width >= 40rem) {
	.sc-industry-panels__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sc-industry-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (width >= 60rem) {
	.sc-industries-capability__groups {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--sc-space-xl);
	}

	.sc-industry-group + .sc-industry-group {
		padding-inline-start: var(--sc-space-xl);
		border-inline-start: var(--sc-border-width) solid var(--sc-industries-rule);
	}

	.sc-industry-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		gap: var(--sc-space-2xl);
	}

	.sc-industry-hero__media {
		block-size: 100%;
	}
}

@media (width >= 75rem) {
	.sc-industry-panels__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (width < 40rem) {
	.sc-industry-panel__action {
		min-block-size: var(--sc-touch-target);
	}
}
