/*
 * Services Page Stylesheet
 *
 * Extends the main brand system (main.css tokens: colors, spacing, typography).
 * Self-contained — the .services-hero component below is dedicated to this
 * page and does not share rules with any other page's hero. The "Our
 * Services" grid below the hero intentionally reuses the homepage's
 * existing .services-section / .service-item classes (defined in main.css)
 * instead of duplicating them here, so it stays visually identical.
 *
 * Table of contents:
 *  1.  Inner Hero
 *  2.  Our Services grid — centred variant
 *  3.  Sectors We Serve
 *  4.  Responsive
 */


/* ============================================================================
   1. Inner Hero
   ============================================================================ */

.site-main--services {
	padding-block: 0;
}

.services-hero {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	background-color: var(--color-brand-dark);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.services-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(5, 48, 72, 0.82) 0%, rgba(7, 70, 98, 0.68) 28%, rgba(8, 92, 125, 0.48) 55%, rgba(10, 110, 145, 0.28) 100%);
}

.services-hero > .container {
	position: relative;
	z-index: 2;
	padding-block: var(--space-16);
	width: 100%;
}

.services-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
	font-size: var(--font-size-sm);
}

.services-hero__breadcrumb a {
	color: rgba(255, 255, 255, 0.80);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.services-hero__breadcrumb a:hover {
	color: var(--color-accent);
}

.services-hero__breadcrumb-sep {
	color: rgba(255, 255, 255, 0.35);
}

.services-hero__breadcrumb-current {
	color: var(--color-accent);
	font-weight: var(--font-weight-medium);
}

.services-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-white);
	background: rgba(85, 201, 154, 0.18);
	border: 1px solid rgba(85, 201, 154, 0.40);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: 0.12em;
	padding: 6px 16px;
	border-radius: var(--radius-full);
	margin-bottom: var(--space-4);
}

.services-hero__badge::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--color-accent);
}

.services-hero__title {
	font-size: clamp(2rem, 5vw, var(--font-size-4xl));
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.1;
	margin-bottom: var(--space-3);
}

.services-hero__intro {
	color: rgba(255, 255, 255, 0.80);
	font-size: var(--font-size-lg);
	max-width: 700px;
	margin-bottom: 0;
}


/* ============================================================================
   2. Our Services grid — centred variant (Services page only)
   ============================================================================ */

/*
 * The shared .services-grid (main.css) is a 3-col grid, which leaves a lone
 * last card hanging on the left. On this page we switch to a centred flex
 * row so partial rows — and a single trailing card — sit in the middle.
 */
.services-grid--center {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-6);
}

.services-grid--center .service-item {
	flex: 0 1 340px;
	max-width: 340px;
}


/* ============================================================================
   3. Sectors We Serve
   ============================================================================ */

.sectors-serve {
	padding-block: var(--space-16);
	background-color: var(--color-white);
}

.sectors-serve__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sectors-serve__header {
	max-width: 680px;
	margin-bottom: var(--space-10);
}

.sectors-serve__heading {
	color: var(--color-brand-dark);
	font-size: var(--font-size-2xl);
	font-weight: 700;
	text-transform: uppercase;
	line-height: var(--line-height-tight);
	margin: 0;
}

/* Accent line sits below the heading, centred */
.sectors-serve__heading::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin: var(--space-3) auto 0;
	background-color: var(--color-accent);
	border-radius: 2px;
}

.sectors-serve__intro {
	color: var(--color-text-muted);
	font-size: 18px;
	line-height: 28px;
	margin: var(--space-4) 0 0;
}

.sectors-serve__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 1080px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:1.5rem;
	text-align: left;
}

.sectors-serve__item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	background-color: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-4) var(--space-5);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.sectors-serve__item:hover {
	border-color: var(--color-accent);
	box-shadow: var(--shadow-sm);
	transform: translateY(-2px);
}

.sectors-serve__check {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--color-accent);
	background: rgba(85, 201, 154, 0.12);
}

.sectors-serve__label {
	color: var(--color-brand-dark);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	line-height: 1.4;
}


/* ============================================================================
   4. Responsive
   ============================================================================ */

@media screen and (max-width: 767px) {
	.services-hero {
		min-height: 240px;
	}

	.services-hero > .container {
		padding-block: var(--space-10);
	}

	.services-hero__title {
		font-size: var(--font-size-2xl);
	}

	.sectors-serve__grid {
		grid-template-columns: 1fr;
		max-width: 440px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.services-hero__breadcrumb a {
		transition: none;
	}

	.sectors-serve__item {
		transition: none;
	}
}
