/**
 * priusbearings.com visual polish pass 3 (2026-12-03)
 * Loaded after pass 2 (wp_footer). Does not disable CookieYes,
 * change slugs, invent claims, or revert pass-2 fixes.
 */

/* ------------------------------------------------------------------
 * 1) Homepage hero: use a clean bearing photo (no baked slogan).
 *    HTML copy stays the only on-page wording.
 * ------------------------------------------------------------------ */
.home .home-hero.elementor-element-20a6180,
.home .elementor-128 .elementor-element.elementor-element-20a6180,
.home section.elementor-element-20a6180.home-hero {
	position: relative !important;
	min-height: 360px !important;
	height: auto !important;
	aspect-ratio: auto !important;
	margin-top: 0 !important;
	padding: 0 !important;
	background-image: url("/wp-content/uploads/2021/11/dsa-clean-20261203.jpg") !important;
	background-size: cover !important;
	background-position: right center !important;
	background-repeat: no-repeat !important;
	display: block !important;
	overflow: hidden;
}

/* Keep Elementor inner wrappers from painting the old baked-text file. */
.home .home-hero.elementor-element-20a6180 .elementor-container,
.home .home-hero.elementor-element-20a6180 .elementor-row,
.home .home-hero.elementor-element-20a6180 .product-hero,
.home .home-hero.elementor-element-20a6180 .elementor-widget-container,
.home .home-hero.elementor-element-20a6180 [style*="dsa.jpg"] {
	background-image: none !important;
	min-height: 0 !important;
	height: auto !important;
}

/* Light left scrim only for contrast of white HTML type — not to hide lettering. */
.home .home-hero.elementor-element-20a6180::before,
.home section.elementor-element-20a6180.home-hero::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(
		90deg,
		rgba(8, 32, 70, 0.32) 0%,
		rgba(8, 32, 70, 0.14) 42%,
		rgba(8, 32, 70, 0.0) 68%
	) !important;
	z-index: 1 !important;
	pointer-events: none !important;
}

.prius-hero-copy {
	position: absolute !important;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	max-width: min(640px, calc(100% - 96px));
	padding: 40px 48px 40px 56px;
	margin: 0;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	pointer-events: none;
}

.prius-hero-copy .prius-hero-brand,
.prius-hero-copy .prius-hero-tagline,
.prius-hero-copy .prius-hero-sub {
	white-space: normal;
	overflow: visible;
	word-break: normal;
	overflow-wrap: anywhere;
	hyphens: none;
}

.prius-hero-copy .prius-hero-brand {
	margin: 0 0 10px 0;
	font-size: clamp(28px, 4.2vw, 52px);
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
}

.prius-hero-copy .prius-hero-tagline {
	margin: 0 0 8px 0;
	font-size: clamp(16px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.3;
}

.prius-hero-copy .prius-hero-sub {
	margin: 0;
	font-size: clamp(14px, 1.4vw, 18px);
	font-weight: 400;
	line-height: 1.4;
	opacity: 0.95;
}

@media (max-width: 767px) {
	.home .home-hero.elementor-element-20a6180,
	.home section.elementor-element-20a6180.home-hero {
		min-height: 260px !important;
		background-position: 78% center !important;
	}

	/* Reserve the right edge so WhatsApp / email / collapse never slice the slogan. */
	.prius-hero-copy {
		left: 0;
		right: 64px;
		width: auto;
		max-width: none;
		padding: 24px 16px 24px 20px;
		transform: translateY(-50%);
	}

	.prius-hero-copy .prius-hero-brand {
		font-size: clamp(22px, 7vw, 32px);
	}

	.prius-hero-copy .prius-hero-tagline {
		font-size: clamp(14px, 4.2vw, 18px);
	}

	.prius-hero-copy .prius-hero-sub {
		font-size: clamp(13px, 3.6vw, 16px);
	}

	/* Park homepage FABs below the hero so they don't sit on the slogan. */
	body.home .mystickyelements-fixed {
		top: auto !important;
		bottom: 30% !important;
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * 2) Industries grid: equal cards, labels under matching images.
 *    Overrides pass-1 absolute overlay, which never lined up.
 * ------------------------------------------------------------------ */
.home .industries-section.elementor-element-aaf9499 {
	padding: 48px 40px 64px !important;
	scroll-margin-top: 100px;
	overflow: visible !important;
}

.home .industries-section #industry-heading,
.home .industries-section .elementor-element-0b8a2f6 {
	position: relative !important;
	top: auto !important;
	transform: none !important;
	z-index: 1;
	max-width: 1140px !important;
	width: 100%;
	margin: 0 auto 28px auto !important;
	scroll-margin-top: 100px;
	padding-top: 8px;
}

.home .industries-section .elementor-inner-section {
	max-width: 1140px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 !important;
	overflow: visible !important;
}

.home .industries-section .elementor-inner-section + .elementor-inner-section {
	margin-top: 28px !important;
}

.home .industries-section .elementor-inner-section > .elementor-container,
.home .industries-section .elementor-inner-section > .elementor-container > .elementor-row {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	margin: 0 !important;
	width: 100% !important;
	max-width: 1140px;
}

@media (min-width: 768px) {
	.home .industries-section .elementor-inner-section .elementor-inner-column,
	.home .industries-section .elementor-inner-section .elementor-col-33,
	.home .industries-section .elementor-inner-section .elementor-col-25 {
		width: calc((100% - 60px) / 4) !important;
		max-width: calc((100% - 60px) / 4) !important;
		flex: 0 0 calc((100% - 60px) / 4) !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		display: flex !important;
	}
}

.home .industries-section .elementor-inner-column > .elementor-widget-wrap,
.home .industries-section .elementor-inner-column .elementor-widget-wrap {
	display: flex !important;
	flex-direction: column !important;
	width: 100%;
	height: 100%;
	overflow: visible !important;
	isolation: auto;
	border-radius: 0;
	position: relative;
}

/* Image always first, label always underneath, regardless of Elementor order. */
.home .industries-section .elementor-widget-image {
	order: 1 !important;
	position: relative !important;
	flex: 0 0 auto;
	width: 100%;
	margin: 0 !important;
	height: auto !important;
}

.home .industries-section .elementor-widget-image .elementor-widget-container,
.home .industries-section .elementor-widget-image a {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
}

.home .industries-section .elementor-widget-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
	object-fit: cover !important;
	object-position: center;
	display: block !important;
	border-radius: 2px;
}

.home .industries-section .elementor-widget-heading {
	order: 2 !important;
	position: static !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	z-index: auto;
	display: flex !important;
	align-items: flex-start;
	justify-content: center;
	width: 100%;
	min-height: 3.2em;
	margin: 12px 0 0 0 !important;
	padding: 0 6px !important;
	pointer-events: auto;
	background: none !important;
}

.home .industries-section .elementor-widget-heading .elementor-heading-title,
.home .industries-section .elementor-widget-heading .elementor-heading-title a,
.home .industries-section .elementor-widget-heading .elementor-heading-title span {
	color: #1a1a1a !important;
	font-size: clamp(14px, 1.25vw, 18px) !important;
	line-height: 1.25 !important;
	letter-spacing: 0.06em;
	text-align: center;
	text-shadow: none !important;
	text-transform: uppercase;
	hyphens: manual;
	white-space: normal !important;
	overflow: visible !important;
	max-width: 100%;
	margin: 0;
}

@media (max-width: 767px) {
	.home .industries-section.elementor-element-aaf9499 {
		padding: 32px 16px 48px !important;
	}

	.home .industries-section .elementor-inner-section .elementor-inner-column,
	.home .industries-section .elementor-inner-section .elementor-col-33,
	.home .industries-section .elementor-inner-section .elementor-col-25 {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
		margin: 0 0 20px 0 !important;
	}

	.home .industries-section .elementor-widget-heading {
		min-height: 0;
		margin-top: 10px !important;
	}

	.home .industries-section .elementor-widget-heading .elementor-heading-title,
	.home .industries-section .elementor-widget-heading .elementor-heading-title span {
		font-size: 18px !important;
	}
}

/* ------------------------------------------------------------------
 * 3) Product Catalog: one complete button, no leftover column bar.
 * ------------------------------------------------------------------ */
.category .asset-download-section,
.archive .asset-download-section {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	overflow: visible !important;
}

.category .asset-download-section .elementor-column,
.archive .asset-download-section .elementor-column,
.category .asset-download-section .elementor-column[data-settings*="background"],
.category .asset-download-section .elementor-element-populated,
.category .asset-download-section .elementor-column-wrap,
.category .asset-download-section .elementor-widget-wrap,
.category .product-asset-download.catalog,
.category .product-asset-download.catalog .elementor-widget-container,
.category .product-asset-download.catalog .elementor-text-editor,
.category .product-asset-download.catalog p {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.category .asset-download-section .elementor-column:has(.product-asset-download.catalog),
.category .asset-download-section .elementor-column:has(.catalog) {
	width: auto !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	float: none !important;
	padding: 0 !important;
	margin: 12px 0 20px 0 !important;
	background: none !important;
}

.category .product-asset-download.catalog,
.archive .product-asset-download.catalog {
	width: auto !important;
	display: inline-block !important;
	padding: 0 !important;
	margin: 0 !important;
}

.category .product-asset-download.catalog a,
.archive .product-asset-download.catalog a,
.product-asset-download.catalog a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 12px 20px !important;
	background: #1f426f !important;
	background-image: none !important;
	color: #fff !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	box-sizing: border-box;
}

.category .product-asset-download.catalog a:hover,
.product-asset-download.catalog a:hover {
	background: #245888 !important;
	color: #fff !important;
}

.category .product-asset-download.catalog a img,
.product-asset-download.catalog a img {
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	display: inline-block !important;
	object-fit: contain;
	background: none !important;
}

/* Avoid a double icon if Font Awesome ::before also paints. */
.category .product-asset-download.catalog a:has(img)::before,
.product-asset-download.catalog a:has(img)::before {
	content: none !important;
	display: none !important;
	margin: 0 !important;
}

@media (max-width: 767px) {
	.category .asset-download-section .elementor-column:has(.catalog),
	.category .product-asset-download.catalog,
	.category .product-asset-download.catalog a {
		max-width: calc(100% - 8px);
	}
}

/* ------------------------------------------------------------------
 * 4) Category body text: stop left-edge clipping (overflow + row gutters).
 *    Type nav: keep SLIM (and other pills) clear of the FAB stack.
 * ------------------------------------------------------------------ */
.category .left-bg-img,
.category .right-bg-img,
.archive .left-bg-img,
.archive .right-bg-img {
	overflow: visible !important;
	overflow-x: visible !important;
}

.category .left-bg-img .elementor-container,
.category .right-bg-img .elementor-container,
.category .left-bg-img .elementor-row,
.category .left-bg-img .elementor-widget-wrap,
.category .product-desc,
.category .product-desc .elementor-widget-container,
.category .product-desc .elementor-text-editor {
	overflow: visible !important;
}

.category .product-desc p,
.category .product-desc li,
.category .product-desc ul {
	overflow: visible !important;
	text-indent: 0 !important;
	word-break: normal !important;
	overflow-wrap: break-word;
}

.category h4.elementor-heading-title,
.category .elementor-heading-title {
	overflow: visible !important;
	text-indent: 0 !important;
}

@media (max-width: 767px) {
	.category .left-bg-img,
	.category .right-bg-img {
		padding-left: 16px !important;
		padding-right: 16px !important;
		overflow: visible !important;
	}

	.category .product-desc,
	.category .product-desc .elementor-text-editor,
	.category .product-desc p,
	.category h4,
	.category h4.elementor-heading-title {
		padding-left: 0 !important;
		margin-left: 0 !important;
		overflow: visible !important;
		box-sizing: border-box;
	}

	.category .product-desc ul {
		padding-left: 1.2em !important;
	}

	/* Type navigation lives in the dark blue intro and must wrap before the FABs. */
	.category .navigation-section,
	.category .navigation-section .elementor-widget-container,
	.category .navigation-section .elementor-text-editor,
	.category .product-blue-section,
	.category .product-blue-section .elementor-widget-container {
		padding-right: 72px !important;
		box-sizing: border-box;
		overflow: visible !important;
	}

	.category .navigation-section a {
		display: inline-block !important;
		white-space: nowrap !important;
		margin: 0 6px 8px 0 !important;
		overflow: visible !important;
	}
}

/* ------------------------------------------------------------------
 * 5) Cookie bar stays a full-width bottom bar. Compact it on mobile
 *    (three buttons on one row) and leave room so it does not cover
 *    the legal name, cards, or about/contact photos.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	html body .cky-consent-container .cky-consent-bar,
	html body .cky-consent-container [data-cky-tag="notice"] {
		padding: 8px 10px !important;
	}

	html body .cky-consent-container .cky-notice,
	html body .cky-consent-container .cky-notice-group {
		display: flex !important;
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		flex-wrap: nowrap;
	}

	html body .cky-consent-container .cky-title {
		font-size: 13px !important;
		line-height: 1.2 !important;
		margin: 0 !important;
	}

	html body .cky-consent-container .cky-notice-des,
	html body .cky-consent-container .cky-notice-des p {
		flex: 0 1 auto;
		font-size: 11px !important;
		line-height: 1.3 !important;
		margin: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	html body .cky-consent-container .cky-notice-btn-wrapper {
		display: flex !important;
		flex-wrap: nowrap !important;
		width: 100%;
		gap: 6px;
		margin: 0 !important;
	}

	html body .cky-consent-container .cky-btn {
		flex: 1 1 0 !important;
		padding: 7px 6px !important;
		font-size: 12px !important;
		line-height: 1.2 !important;
		min-height: 0 !important;
		white-space: nowrap;
	}
}

/* Space for the bar when it is actually shown (CookieYes uses .cky-hide after accept). */
html body:has(.cky-consent-container:not(.cky-hide)) {
	padding-bottom: 110px;
}

html body:has(.cky-consent-container:not(.cky-hide)) .footer,
html body:has(.cky-consent-container:not(.cky-hide)) .site-footer,
html body:has(.cky-consent-container:not(.cky-hide)) .product-section,
html body:has(.cky-consent-container:not(.cky-hide)) .contact-content-box,
html body:has(.cky-consent-container:not(.cky-hide)) .about-content,
html body:has(.cky-consent-container:not(.cky-hide)) .asset-download-section,
html body:has(.cky-consent-container:not(.cky-hide)) .product-inquiry {
	scroll-margin-bottom: 130px;
	padding-bottom: 8px;
}

@media (max-width: 767px) {
	html body:has(.cky-consent-container:not(.cky-hide)) {
		padding-bottom: 170px;
	}

	html body:has(.cky-consent-container:not(.cky-hide)) .footer,
	html body:has(.cky-consent-container:not(.cky-hide)) .site-footer,
	html body:has(.cky-consent-container:not(.cky-hide)) .product-section,
	html body:has(.cky-consent-container:not(.cky-hide)) .contact-content-box,
	html body:has(.cky-consent-container:not(.cky-hide)) .asset-download-section {
		scroll-margin-bottom: 190px;
	}

	/* Keep FABs above the cookie bar on inner pages, off slogans / type nav / fields. */
	.mystickyelements-fixed {
		top: auto !important;
		bottom: 210px !important;
		transform: none;
	}

	body.home .mystickyelements-fixed {
		bottom: 32% !important;
	}

	body.home:has(.cky-consent-container:not(.cky-hide)) .mystickyelements-fixed {
		bottom: max(32%, 210px) !important;
	}

	.wpcf7,
	.inquiry_form,
	.product-inquiry,
	.contact-content-box .col-12,
	body.single .site-main {
		padding-right: 64px;
		box-sizing: border-box;
	}
}
