/**
 * Services Hub (/services/) — Industrial Precision layout.
 * Loaded only on page #324. Does not affect OEM category service pages.
 */

body.oemitra-services-hub.oemitra-elementor-content {
	--svh-max: var(--oemitra-max, 1280px);
	--svh-pad: var(--oemitra-section-y-md, clamp(2.75rem, 5vw, 4rem));
	--svh-pad-compact: var(--oemitra-section-y-sm, clamp(2rem, 4vw, 3rem));
	--svh-gap: var(--oemitra-gap, 1.25rem);
	--svh-radius: var(--oemitra-radius-card, 16px);
	--svh-shadow: var(--oemitra-shadow-card);
	--svh-shadow-hover: var(--oemitra-shadow-hover);
}

body.oemitra-services-hub.oemitra-elementor-content #content,
body.oemitra-services-hub.oemitra-elementor-content .site-main {
	overflow-x: clip;
}

/* Neutralize legacy Elementor %-width flex columns inside hub sections */
body.oemitra-services-hub.oemitra-elementor-content [class*="sec-services-"] .e-con {
	--width: 100% !important;
	--flex-basis: auto !important;
	min-width: 0;
}

body.oemitra-services-hub.oemitra-elementor-content [class*="sec-services-"] .e-con.e-child {
	width: 100% !important;
	max-width: 100% !important;
}

/* =========================================================================
   Section rhythm
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content [class*="sec-services-"].e-con-boxed {
	padding-block: var(--svh-pad) !important;
	padding-inline: var(--oemitra-gutter, clamp(1rem, 3vw, 1.5rem)) !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust.e-con-boxed,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process.e-con-boxed {
	padding-block: var(--svh-pad-compact) !important;
}

body.oemitra-services-hub.oemitra-elementor-content [class*="sec-services-"] > .e-con-inner {
	width: min(100%, var(--svh-max)) !important;
	max-width: var(--svh-max) !important;
	margin-inline: auto;
	gap: var(--svh-gap);
}

/* =========================================================================
   Hero — navy gradient + carousel (override legacy 100vh min-height)
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero.e-con-boxed {
	position: relative;
	isolation: isolate;
	overflow: hidden !important;
	contain: layout paint;
	min-height: clamp(320px, 42vh, 440px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding-block: clamp(2.5rem, 5vw, 3.5rem) !important;
	background:
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245, 158, 11, 0.14), transparent 55%),
		linear-gradient(135deg, #081a38 0%, #0f2b5b 45%, #1a3f7a 100%) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero > .e-con-inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--svh-max)) !important;
	max-width: 48rem !important;
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-n-carousel {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-n-carousel,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-n-carousel > .elementor-widget-container,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .e-n-carousel,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .e-n-carousel.swiper,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper {
	overflow: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: auto;
}

/* Stack slides in one grid cell — prevents off-canvas swiper overflow */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-wrapper.oemitra-svh-carousel-stack,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-carousel-stack {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	width: 100% !important;
	max-width: 100% !important;
	transform: none !important;
	transition-property: opacity !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-carousel-stack .swiper-slide {
	grid-area: 1 / 1;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	transform: none !important;
	transition: opacity 0.35s ease;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-carousel-stack .swiper-slide:not(.swiper-slide-active) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	position: absolute;
	inset: 0 auto auto 0;
	width: 100% !important;
	height: 0;
	overflow: hidden;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-carousel-stack .swiper-slide-active {
	opacity: 1;
	visibility: visible;
	position: relative;
	height: auto;
	overflow: visible;
}

/* Classic Button widget (css_classes on wrapper) */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-hero-cta {
	width: 100%;
	text-align: center;
}

body.oemitra-services-hub.oemitra-elementor-content a.oemitra-svh-hero-cta,
body.oemitra-services-hub.oemitra-elementor-content .oemitra-svh-hero-cta .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--oemitra-btn-min, 2.75rem);
	padding: 0.8rem 1.75rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1b1c1c;
	background: var(--oemitra-secondary, #f59e0b);
	background-color: var(--oemitra-secondary, #f59e0b);
	border: none;
	border-radius: var(--oemitra-radius-btn, 10px);
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
	transition: transform var(--oemitra-transition, 0.25s ease), box-shadow var(--oemitra-transition, 0.25s ease);
}

body.oemitra-services-hub.oemitra-elementor-content a.oemitra-svh-hero-cta:hover,
body.oemitra-services-hub.oemitra-elementor-content .oemitra-svh-hero-cta .elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
	color: #1b1c1c;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-swiper-button {
	color: rgba(255, 255, 255, 0.85);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-pagination-bullet-active {
	background: var(--oemitra-secondary, #f59e0b);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero.e-con-boxed::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
	background-size: 24px 24px;
	pointer-events: none;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-wrapper {
	max-width: 100%;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-slide {
	max-width: 100% !important;
	box-sizing: border-box;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .swiper-slide,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .e-con,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-heading,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-text-editor {
	width: 100% !important;
	max-width: 100% !important;
	text-align: center !important;
	margin-inline: auto;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-heading .elementor-widget-container,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-text-editor .elementor-widget-container {
	text-align: center !important;
	margin-inline: auto;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .e-con,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-n-carousel {
	min-height: 0 !important;
	height: auto !important;
	--min-height: 0px !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-heading .elementor-heading-title,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-text-editor,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .elementor-widget-text-editor p {
	color: #fff;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero h1.elementor-heading-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.12;
	font-weight: 700;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero h2.elementor-heading-title {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.15;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero h5.elementor-heading-title {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	font-weight: 400;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	max-width: 40rem;
	margin-inline: auto;
}

/* =========================================================================
   Services grid — 3-column cards
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: var(--svh-gap);
	align-items: stretch;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid.e-con-boxed {
	padding-block: var(--svh-pad) !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner > .e-con:first-child {
	grid-column: 1 / -1;
	text-align: center;
	max-width: 44rem;
	margin-inline: auto;
	width: 100% !important;
	margin-bottom: 0.25rem;
}

/* Outer legacy 48% wrappers become full grid cells */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner > .e-con:not(:first-child) {
	width: 100% !important;
	max-width: none !important;
	display: block !important;
}

/* Hide empty trailing wrapper containers from old layout */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner > .e-con:not(:first-child) > .e-con:last-child:not(:has(.elementor-widget)) {
	display: none !important;
}

/* Card shell = first inner container with content */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner > .e-con:not(:first-child) > .e-con:has(.elementor-widget-heading) {
	height: 100%;
	min-height: 100%;
	padding: 1.25rem 1.35rem 1.35rem;
	background: #fff;
	border: 1px solid var(--oemitra-border, #e2e8f0);
	border-radius: var(--svh-radius);
	box-shadow: var(--svh-shadow);
	display: flex !important;
	flex-direction: column;
	gap: 0.625rem;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner > .e-con:not(:first-child) > .e-con:has(.elementor-widget-heading):hover {
	transform: translateY(-3px);
	box-shadow: var(--svh-shadow-hover);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid h3.elementor-heading-title {
	font-size: 1.25rem;
	color: var(--oemitra-primary, #0f2b5b);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid .elementor-widget-text-editor {
	flex: 1;
	font-size: 0.975rem;
	line-height: 1.6;
	color: var(--oemitra-muted, #64748b);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid .elementor-widget-button,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid .elementor-widget-button .elementor-widget-container {
	width: auto !important;
	max-width: 100% !important;
	align-self: flex-start;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid .elementor-button {
	width: auto !important;
	max-width: 100% !important;
	min-height: var(--oemitra-btn-min, 2.75rem);
	padding: 0.65rem 1rem !important;
	white-space: normal;
	font-weight: 700;
	border-radius: var(--oemitra-radius-btn, 10px);
	margin-top: auto;
}

/* =========================================================================
   Trust — Why OEMitra icon grid
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust {
	background: var(--oemitra-surface, #f8fafc) !important;
	border-block: 1px solid var(--oemitra-border, #e2e8f0);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust > .e-con-inner {
	display: grid !important;
	gap: var(--svh-gap);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust > .e-con-inner > .elementor-widget-heading {
	grid-column: 1 / -1;
	text-align: center;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust > .e-con-inner > .e-con {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--svh-gap);
	grid-column: 1 / -1;
	width: 100% !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust .elementor-icon-box-wrapper {
	height: 100%;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--oemitra-border, #e2e8f0);
	border-radius: var(--svh-radius);
	box-shadow: var(--svh-shadow);
}

/* =========================================================================
   Benefits — Designed for Your Brand
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner {
	display: block;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner > .e-con {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
	gap: 2.5rem;
	align-items: start;
	width: 100% !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner > .e-con > .elementor-widget-heading .elementor-heading-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.2;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner > .e-con > .elementor-widget-heading {
	margin: 0;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner > .e-con > .e-con {
	width: 100% !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits .elementor-icon-list-items {
	display: grid;
	gap: 0.75rem;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits .elementor-icon-list-item {
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid var(--oemitra-border, #e2e8f0);
	border-radius: 12px;
}

/* =========================================================================
   Process timeline
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process {
	background: var(--oemitra-surface, #f8fafc) !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process > .e-con-inner {
	display: flex !important;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process > .e-con-inner > .e-con {
	width: 100% !important;
	max-width: var(--svh-max);
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-widget-heading {
	text-align: center;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-widget-text-editor {
	text-align: center;
	max-width: 40rem;
	margin-inline: auto;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-icon-list-items {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--svh-gap);
	width: 100%;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-icon-list-item {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.25rem 1rem;
	background: #fff;
	border: 1px solid var(--oemitra-border, #e2e8f0);
	border-radius: var(--svh-radius);
	box-shadow: var(--svh-shadow);
}

/* =========================================================================
   CTA band
   ========================================================================= */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta.e-con-boxed {
	padding-block: clamp(4rem, 7vw, 5rem) !important;
	background:
		radial-gradient(ellipse 70% 80% at 100% 0%, rgba(245, 158, 11, 0.12), transparent 50%),
		linear-gradient(145deg, #0a1f42, #0f2b5b 55%, #1e3a6e) !important;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta > .e-con-inner {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 40rem;
	margin-inline: auto;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta > .e-con-inner > .e-con {
	width: 100% !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta .elementor-heading-title,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta .elementor-widget-text-editor,
body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta .elementor-widget-text-editor p {
	color: #fff;
}

body.oemitra-services-hub.oemitra-elementor-content .sec-services-final-cta, .sec-services-cta .elementor-button-link {
	background: var(--oemitra-secondary, #f59e0b) !important;
	color: #1b1c1c !important;
	font-weight: 700;
	border-radius: var(--oemitra-radius-btn, 12px);
	min-height: var(--oemitra-btn-min, 2.75rem);
	padding: 0.85rem 1.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust > .e-con-inner > .e-con {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-icon-list-items {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-benefits > .e-con-inner > .e-con {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 767px) {
	body.oemitra-services-hub.oemitra-elementor-content [class*="sec-services-"].e-con-boxed {
		padding-block: 2rem !important;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero.e-con-boxed {
		min-height: auto !important;
		padding-block: 2rem !important;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero > .e-con-inner {
		gap: 1rem;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-hero .oemitra-svh-hero-cta {
		width: 100%;
		max-width: 20rem;
	}

	body.oemitra-services-hub.oemitra-elementor-content .sec-services-grid > .e-con-inner,
	body.oemitra-services-hub.oemitra-elementor-content .sec-services-why-us, .sec-services-trust > .e-con-inner > .e-con,
	body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process, .sec-services-process .elementor-icon-list-items {
		grid-template-columns: 1fr !important;
	}
}

/* Combined brand + process section (production structure: one top-level container) */
body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process > .e-con-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}
@media (max-width: 1024px) {
	body.oemitra-services-hub.oemitra-elementor-content .sec-services-brand-process > .e-con-inner {
		grid-template-columns: 1fr;
	}
}
