/* Centritek Rentals — public-facing styles
 *
 * Owns the full /rentals page body (hero → closing CTA) as one controlled
 * section, so the page never needs column-by-column styling in Elementor.
 * Selectors are prefixed `.ct-rentals` to clear Elementor's heading/button
 * kit; loaded only when the Rentals widget renders (wp_enqueue_style in
 * render(), same scoping mechanism as services.css).
 *
 * Tokens mirror services.css / contact-cta.css / showroom.css:
 *   orange #F56A22 (hover #d44a1c) · ink #1a1a1a · muted #74787c
 *   border #ededed · surface tint #f6f6f6 · heading font Space Grotesk
 */

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

.ct-rentals *,
.ct-rentals *::before,
.ct-rentals *::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-rentals__inner {
	max-width: 1200px;
	margin: 0 auto;
}

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

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

.ct-rentals .ct-rentals__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-rentals .ct-rentals__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;
}

/* Lead/body are scoped (0,2,0) so their margins beat theme/kit paragraph
 * rules — same reason as the why-body below. */
.ct-rentals .ct-rentals__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-rentals .ct-rentals__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-rentals__media--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		135deg,
		#2a2f33 0,
		#2a2f33 12px,
		#202428 12px,
		#202428 24px
	);
}

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

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

/* ---------- Operation Running section ---------- */

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

/* ---------- Fleet paragraph ---------- */

.ct-rentals__fleet {
	padding: 32px 0 56px;
}

/* ---------- 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-rentals__band {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	aspect-ratio: 1020 / 224; /* ≈4.55:1, matches the wide triptych banner */
	max-height: 560px;
	background: #202428;
	overflow: hidden;
}

/* All fill-images are scoped under .ct-rentals (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-rentals .ct-rentals__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;
}

/* ---------- Why Rent from CentriTEK? ---------- */

/* Tinted background to visually separate this section, matching the OEM
 * support treatment in services.css. */
.ct-rentals__why-rent {
	background: #f6f6f6;
	padding: 56px 0;
}

/* Text-only blocks: 2-up grid of bold subheading + body paragraph, stacked
 * within each cell. Decision D1: no icons, no images, no card borders —
 * "just another section". */
.ct-rentals__why-blocks {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px 48px;
}

.ct-rentals__why-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Short brand-orange keyline anchoring each block — gives the text-only
 * grid structure and rhythm without icons, images, or card chrome (D1). */
.ct-rentals__why-block::before {
	content: "";
	width: 48px;
	height: 3px;
	background: #F56A22;
	margin-bottom: 6px;
}

/* Block subheadings are not uppercase — these are subordinate labels, not
 * page-level headings, so text-transform stays off. */
.ct-rentals .ct-rentals__why-title {
	font-family: var(--heading-font, "Space Grotesk"), system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: normal;
	color: #1a1a1a;
	margin: 0;
	text-transform: none;
}

/* Scoped (0,2,0) so margin: 0 beats theme/kit paragraph margins, which
 * otherwise inflate the title→body gap well past the flex gap. */
.ct-rentals .ct-rentals__why-body {
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

/* ---------- Button (shared by Operation Running and Closing CTA) ---------- */

.ct-rentals .ct-rentals__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-rentals .ct-rentals__button:hover,
.ct-rentals .ct-rentals__button:focus-visible {
	background: #d44a1c;
	border-color: #d44a1c;
	color: #fff;
}

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

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

/* ---------- Closing CTA ---------- */

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

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

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

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

@media (max-width: 980px) {
	.ct-rentals .ct-rentals__h1 { font-size: 34px; }
	.ct-rentals .ct-rentals__h2 { font-size: 34px; }
	.ct-rentals__hero { padding: 44px 0 32px; }
	/* Collapse why-rent blocks to single column at tablet width. */
	.ct-rentals__why-blocks { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
	/* Band: a moderate strip rather than the full-width thin banner or a hard crop. */
	.ct-rentals__band { aspect-ratio: 5 / 2; }

	/* Smaller body/lead type for narrow screens. Scoped to match the base
	 * rules' (0,2,0) specificity, or they'd lose the cascade. */
	.ct-rentals .ct-rentals__lead,
	.ct-rentals .ct-rentals__body { font-size: 18px; line-height: 1.55; }

	/* Tighter vertical rhythm. */
	.ct-rentals__hero { padding: 36px 0 28px; }
	.ct-rentals__operation { padding: 40px 0 4px; }
	.ct-rentals__fleet { padding: 24px 0 40px; }
	.ct-rentals__why-rent { padding: 40px 0; }
	.ct-rentals__cta { padding: 44px 0 56px; }
}
