/* Centritek Services — public-facing styles
 *
 * Owns the full /services page body (hero → parts support) as one
 * controlled section, so the page never needs column-by-column styling
 * in Elementor. Selectors are prefixed `.ct-services` to clear
 * Elementor's heading/button kit; the final conversion band is the
 * separate Contact CTA widget and is intentionally not styled here.
 *
 * Tokens mirror contact-cta.css / showroom.css:
 *   orange #F56A22 (hover #d44a1c) · ink #1a1a1a · muted #74787c
 *   border #ededed · surface tint #f6f6f6 · heading font Plus Jakarta Sans
 */

.ct-services {
	color: #1a1a1a;
}

.ct-services *,
.ct-services *::before,
.ct-services *::after {
	box-sizing: border-box;
}

/* No horizontal padding — the page's container system (Vektor + Elementor)
 * owns the side gutter so it isn't doubled. max-width is kept as a safety
 * cap that re-centers content if the Elementor container is ever set to
 * Full Width. */
.ct-services__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* Scoped under .ct-services (0,2,0) so the accent color beats Elementor's
 * text-kit color rules on headings, paragraphs, and spans. */
.ct-services .ct-services__accent {
	color: #F56A22;
}

/* ---------- Shared headings / copy ---------- */

.ct-services .ct-services__h1 {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-weight: 900;
	font-size: 46px;
	line-height: 1;
	letter-spacing: normal;
	color: #333;
	margin: 0 0 18px;
	max-width: 1040px;
	text-transform: uppercase;
}

.ct-services .ct-services__h2 {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-weight: 900;
	font-size: 46px; /* matches the site's heading size (same as H1) */
	line-height: 1;
	letter-spacing: normal;
	color: #333;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.ct-services .ct-services__h3 {
	margin: 0;
}

.ct-services__lead {
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 36px;
	color: #333;
	margin: 0 0 16px;
	max-width: 1040px;
}

.ct-services__body {
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 36px;
	color: #333;
	margin: 0;
	max-width: 1040px;
}

/* ---------- Image placeholder (no media set) ---------- */

.ct-services__media--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		135deg,
		#2a2f33 0,
		#2a2f33 12px,
		#202428 12px,
		#202428 24px
	);
}

/* ---------- Hero ---------- */

.ct-services__hero {
	padding: 64px 0 40px;
}

/* ---------- Full-width image band ---------- */

/* Full-bleed: break out of the centered container so the image spans the
 * full viewport width, regardless of the Elementor column it sits in.
 * aspect-ratio drives the height until it hits max-height, which caps the
 * band on wide screens so it doesn't grow disproportionately tall. */
.ct-services__band {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	aspect-ratio: 1020 / 224; /* ≈4.55:1, matches the wide banner image */
	max-height: 560px;
	background: #202428;
	overflow: hidden;
}

/* All fill-images are scoped under .ct-services (specificity 0,2,0) so they
 * beat Elementor's `.elementor img { height: auto }` reset (0,1,1), which
 * would otherwise collapse height:100% and break the object-fit crop. */
.ct-services .ct-services__band-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center; /* vertically centered; clips top/bottom evenly */
	display: block;
}

/* ---------- Solutions intro ---------- */

.ct-services__solutions {
	padding: 56px 0 8px;
}

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

.ct-services__cards-wrap {
	padding: 40px 0;
}

.ct-services__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Editorial overlay: borderless image tile with the title set over a
 * gradient scrim; description sits below on the page background. Purely
 * presentational — no border, no hover-lift, no click affordance. */
.ct-services__card {
	display: flex;
	flex-direction: column;
}

.ct-services__card-media {
	position: relative;
	aspect-ratio: 4 / 3; /* card images are exported at 4:3 to match */
	background: #202428;
	overflow: hidden;
}

/* Gradient scrim keeps the white title legible on any image, light or dark. */
.ct-services__card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.45) 28%,
		rgba(0, 0, 0, 0) 62%
	);
	pointer-events: none;
}

.ct-services .ct-services__card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Title overlaid, anchored bottom-left above the scrim. */
.ct-services .ct-services__card-title {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 20px;
	z-index: 2;
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-weight: 700;
	font-size: 23px;
	line-height: 1.15;
	letter-spacing: normal;
	color: #fff;
	margin: 0;
	text-transform: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ct-services__card-body {
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	color: #333;
	margin: 16px 0 0;
}

/* ---------- OEM support ---------- */

.ct-services__oem {
	background: #f6f6f6;
	padding: 56px 0;
}

/* ---------- Parts Support ---------- */

.ct-services__parts {
	padding: 56px 0 72px;
}

.ct-services .ct-services__button {
	background: #F56A22;
	color: #fff;
	border: 1px solid #F56A22;
	border-radius: 0;
	padding: 16px 26px;
	margin-top: 32px;
	font-family: var(--heading-font, "Plus Jakarta Sans"), system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	min-height: 44px;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease;
	box-shadow: none;
	text-shadow: none;
}

.ct-services .ct-services__button:hover,
.ct-services .ct-services__button:focus-visible {
	background: #d44a1c;
	border-color: #d44a1c;
	color: #fff;
}

.ct-services .ct-services__button:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.ct-services__arr {
	font-family: var(--e-global-typography-accent-font-family, "IBM Plex Mono"), monospace;
	font-weight: 500;
	font-size: 13px;
}

.ct-services__parts-grid {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* Catalog/product tiles: borderless, uniform 4:3, soft shadow for a clean
 * "product lineup" feel rather than a boxed strip. */
.ct-services__parts-cell {
	aspect-ratio: 4 / 3;
	background: #f6f6f6;
	overflow: hidden;
	box-shadow: 0 12px 28px -14px rgba(20, 23, 27, 0.22);
}

.ct-services .ct-services__parts-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Final CTA (light, one-off) ---------- */

.ct-services__cta {
	padding: 64px 0 84px;
}

/* Cap the heading width so the long CTA line wraps to ~2 lines, not 4. */
.ct-services .ct-services__cta-title {
	max-width: 1040px;
	margin: 0;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.ct-services .ct-services__h1 { font-size: 34px; }
	.ct-services .ct-services__h2 { font-size: 34px; }
	.ct-services__hero { padding: 44px 0 32px; }
	.ct-services__cards { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 640px) {
	/* Single-column cards with a shorter 16:9 image so they don't tower. */
	.ct-services__cards { grid-template-columns: 1fr; }
	.ct-services__card-media { aspect-ratio: 16 / 9; }

	/* Parts as a compact 2-up grid (2 + 1) instead of three tall stacked tiles. */
	.ct-services__parts-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

	/* Band: a moderate strip rather than the full-width thin banner or a hard crop. */
	.ct-services__band { aspect-ratio: 5 / 2; }

	/* Smaller body/lead type for narrow screens. */
	.ct-services__lead,
	.ct-services__body { font-size: 18px; line-height: 1.55; }

	/* Tighter vertical rhythm. */
	.ct-services__hero { padding: 36px 0 28px; }
	.ct-services__solutions { padding: 40px 0 4px; }
	.ct-services__cards-wrap { padding: 28px 0; }
	.ct-services__oem { padding: 40px 0; }
	.ct-services__parts { padding: 40px 0 48px; }
	.ct-services__cta { padding: 44px 0 56px; }
}
