/*
 * Services page hero — US-SER-01
 *
 * Full-bleed dark band with the image-kit photo behind a gradient overlay and
 * an asymmetric 60/40 split (copy | photo card), per DESIGN.md.
 * Desktop: 60/40 two column · Tablet: 1 column with the photo below the copy
 * · Mobile: single stacked column, full-width buttons.
 *
 * Every colour / spacing / type value comes from assets/css/design-tokens.css.
 */

/*
 * The site header and nav are styled globally in style.css (.amber-header /
 * .amber-nav). This stylesheet must NOT restyle #masthead — an ID selector
 * beats those classes and would make the header and nav look different on the
 * Services page than on every other page. Everything below is scoped to this
 * page's own containers.
 */

/* ---------- page shell ---------- */
.amber-services-page {
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
}

/* ---------- hero band ---------- */
.amber-hero-services {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 68vh;
	padding: var(--space-section) 0;
	overflow: hidden;
	background-color: var(--color-bg-dark);
	isolation: isolate;
}

.amber-hero-services__media {
	position: absolute;
	inset: 0;
	z-index: -3;
	background-color: var(--color-primary-900);
	background-image: var(--amber-hs-image, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

/* dark gradient keeps the headline legible over the photo */
.amber-hero-services__overlay {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: linear-gradient(
			100deg,
			rgba(26, 31, 38, 0.92) 0%,
			rgba(33, 42, 56, 0.84) 48%,
			rgba(33, 42, 56, 0.64) 100%
		);
}

/* ---------- asymmetric 60/40 container ---------- */
.amber-hero-services__container {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	align-items: center;
	gap: clamp(var(--space-8), 5vw, var(--space-16));
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ---------- copy column ---------- */
.amber-hero-services__eyebrow {
	margin: 0 0 var(--space-4);
	color: var(--color-accent-300);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 500;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.amber-hero-services__heading {
	margin: 0 0 var(--space-5);
	color: var(--color-text-on-dark);
	font-family: var(--font-heading);
	font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
	font-weight: 700;
	letter-spacing: var(--letter-tighter);
	line-height: var(--leading-tight);
}

.amber-hero-services__subheading {
	max-width: 48ch;
	margin: 0 0 var(--space-8);
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-lg);
	line-height: var(--leading-normal);
}

/* ---------- buttons ---------- */
.amber-hero-services__cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin: 0 0 var(--space-10);
}

.amber-hero-services__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 var(--space-6);
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: var(--letter-tight);
	text-decoration: none;
	transition:
		background-color var(--duration-normal) var(--ease-default),
		border-color var(--duration-normal) var(--ease-default),
		color var(--duration-normal) var(--ease-default),
		transform var(--duration-normal) var(--ease-default),
		box-shadow var(--duration-normal) var(--ease-default);
}

.amber-hero-services__btn--primary {
	background-color: var(--color-accent-500);
	color: var(--color-neutral-900);
	box-shadow: var(--shadow-md);
}

.amber-hero-services__btn--primary:hover {
	background-color: var(--color-accent-400);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.amber-hero-services__btn--secondary {
	border-color: var(--color-primary-300);
	background-color: transparent;
	color: var(--color-text-on-dark);
}

.amber-hero-services__btn--secondary:hover {
	border-color: var(--color-neutral-50);
	background-color: rgba(247, 248, 250, 0.12);
	transform: translateY(-2px);
}

.amber-hero-services__btn:focus-visible {
	outline: 2px solid var(--color-accent-400);
	outline-offset: 2px;
}

/* ---------- highlight chips ---------- */
.amber-hero-services__highlights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.amber-hero-services__highlight {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-5);
	border: 1px solid rgba(205, 213, 224, 0.22);
	border-left: 3px solid var(--color-highlight-500);
	border-radius: var(--radius-md);
	background-color: rgba(45, 56, 74, 0.5);
}

.amber-hero-services__highlight-label {
	color: var(--color-text-on-dark);
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: var(--letter-tight);
}

.amber-hero-services__highlight-note {
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}

/* ---------- photo card (40% column) ---------- */
.amber-hero-services__figure {
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(205, 213, 224, 0.2);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface-dark);
	box-shadow: var(--shadow-xl);
}

.amber-hero-services__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.amber-hero-services__caption {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-5) var(--space-6);
	color: var(--color-text-muted-on-dark);
	font-size: var(--text-sm);
}

.amber-hero-services__caption-title {
	color: var(--color-highlight-300);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	letter-spacing: var(--letter-wide);
	text-transform: uppercase;
}

.amber-hero-services__caption-row {
	font-variant-numeric: tabular-nums;
}

/* ---------- optional editor content below the sections ---------- */
.amber-services-page__content {
	padding: var(--space-section) var(--container-padding);
	background-color: var(--color-bg);
	color: var(--color-text);
}

.amber-services-page__content-inner {
	max-width: var(--container-narrow);
	margin: 0 auto;
}

.amber-services-page__content-inner > :first-child {
	margin-top: 0;
}

.amber-services-page__content-inner h2,
.amber-services-page__content-inner h3 {
	font-family: var(--font-heading);
	letter-spacing: var(--letter-tight);
	line-height: var(--leading-snug);
}

.amber-services-page__content-inner p,
.amber-services-page__content-inner li {
	max-width: var(--measure);
	color: var(--color-text-muted);
}

.amber-services-page__content-inner a {
	color: var(--color-primary-700);
	text-decoration-color: var(--color-accent-500);
	text-underline-offset: 3px;
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
	.amber-hero-services {
		min-height: 0;
	}

	.amber-hero-services__container {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-10);
	}

	.amber-hero-services__subheading {
		max-width: var(--measure);
	}

	.amber-hero-services__figure {
		max-width: 560px;
	}
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
	.amber-hero-services__highlights {
		grid-template-columns: minmax(0, 1fr);
	}

	.amber-hero-services__cta-group {
		flex-direction: column;
		align-items: stretch;
	}

	.amber-hero-services__btn {
		width: 100%;
	}

	.amber-hero-services__figure {
		max-width: none;
	}
}

/* ---------- motion: minimal, and none when the visitor opts out ---------- */
@media (prefers-reduced-motion: reduce) {
	.amber-hero-services__btn,
	.amber-hero-services__btn:hover {
		transform: none;
		transition: none;
	}
}
