/**
 * priusbearings.com visual polish (2026-12-03)
 * Builds on layout-fixes-20261203.css. Do not regress: sticky header,
 * compact CookieYes bar, opaque mobile menu, uncropped hero slogan,
 * or product-detail thumbnail max-height.
 */

/* ------------------------------------------------------------------
 * Shared tokens (existing red / black / blue palette)
 * ------------------------------------------------------------------ */
:root {
	--prius-navy: #1f426f;
	--prius-blue: #2f6ea8;
	--prius-blue-hover: #245888;
	--prius-ink: #1a1a1a;
	--prius-muted: #4a5560;
	--prius-line: #e6e9ee;
	--prius-paper: #f5f7fa;
	--prius-gold: #d9b310;
}

/* Room on the right so the floating WhatsApp / email / arrow stack
   does not sit on top of cards, forms, or footer links. */
@media (min-width: 768px) {
	.site-content,
	.contact-content-box .container,
	.product-inquiry,
	body.single .site-main,
	.footer .iko-container {
		padding-right: 72px;
	}
}

@media (max-width: 767px) {
	.wpcf7,
	.inquiry_form,
	.product-inquiry,
	.contact-content-box .col-12,
	.footer {
		padding-right: 56px;
	}
}

/* Keep floating buttons below cookie + mobile menu, above content. */
.mystickyelements-fixed {
	z-index: 9000 !important;
}

/* ------------------------------------------------------------------
 * 1) Home industries grid: even 4-column rhythm, first row of 3
 *    uses the same card size and is centered. Tighter padding.
 * ------------------------------------------------------------------ */
.industries-section.elementor-element-aaf9499 {
	padding: 48px 40px 56px !important;
}

.industries-section #industry-heading,
.industries-section .elementor-element-0b8a2f6 {
	max-width: 1140px !important;
	width: 100%;
	margin: 0 auto 20px auto !important;
	position: relative !important;
	top: auto !important;
	transform: none !important;
}

#industry-panel .elementor-widget-heading {
	position: relative !important;
	top: auto !important;
	transform: none !important;
}

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

.industries-section .elementor-inner-section + .elementor-inner-section {
	margin-top: 18px;
}

@media (min-width: 768px) {
	.industries-section .elementor-inner-section > .elementor-container {
		max-width: 1140px;
		width: 100%;
	}

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

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

.industries-section .elementor-inner-column .elementor-widget-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	height: 100%;
}

.industries-section .elementor-widget-image,
.industries-section .elementor-widget-image .elementor-widget-container,
.industries-section .elementor-widget-image a {
	display: block;
	height: 100%;
}

.industries-section .elementor-widget-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	display: block;
}

.industries-section .elementor-widget-heading {
	position: absolute !important;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	pointer-events: none;
	margin: 0 !important;
}

.industries-section .elementor-widget-heading .elementor-heading-title,
.industries-section .elementor-widget-heading .elementor-heading-title span {
	color: #fff !important;
	font-size: clamp(16px, 1.5vw, 22px) !important;
	line-height: 1.2 !important;
	letter-spacing: 0.04em;
	text-align: center;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
	hyphens: manual;
	white-space: normal;
	max-width: 100%;
}

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

	.industries-section .elementor-inner-section + .elementor-inner-section {
		margin-top: 12px;
	}

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

	.industries-section .elementor-widget-heading {
		padding: 12px;
	}

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

/* ------------------------------------------------------------------
 * 2) Category product images: stop the decorative gray background
 *    overflowing and peeking under the sticky nav.
 * ------------------------------------------------------------------ */
.category .right-bg-img,
.category .left-bg-img,
.archive .right-bg-img,
.archive .left-bg-img {
	background-image: none !important;
	background: transparent !important;
	overflow: hidden !important;
	padding: 28px 0 8px !important;
}

.category .elementor-widget-image .elementor-widget-container,
.category .elementor-image {
	background: var(--prius-paper);
	border: 1px solid var(--prius-line);
	overflow: hidden;
	max-width: 100%;
	border-radius: 4px;
}

.category .elementor-image img,
.category .elementor-widget-image img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 320px;
	object-fit: contain;
	object-position: center;
	background: #fff;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.category .asset-download-section {
	margin-top: 8px !important;
	margin-bottom: 28px !important;
	overflow: hidden;
}

.category .product-asset-download.catalog a,
.catalog a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--prius-navy);
	color: #fff !important;
	padding: 12px 20px;
	border-radius: 4px;
	text-decoration: none !important;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.category .product-asset-download.catalog a:hover,
.catalog a:hover {
	background: var(--prius-blue-hover);
	color: #fff !important;
}

.category .inquiry_form {
	max-width: 1140px;
	margin: 0 auto 40px auto;
	padding: 24px 20px 32px;
	clear: both;
}

/* ------------------------------------------------------------------
 * 3) Prev / next no longer sits on the footer; readable contrast.
 * ------------------------------------------------------------------ */
body.single .post-navigation,
.singular .post-navigation {
	position: relative;
	z-index: 2;
	background: #fff;
	margin: 16px auto 0 auto;
	padding: 20px 24px 36px;
	max-width: 1100px;
	border-top: 1px solid var(--prius-line);
	clear: both;
}

body.single .post-navigation a,
body.single .post-navigation .meta-nav,
body.single .post-navigation .post-title,
.singular .post-navigation a,
.singular .post-navigation .meta-nav,
.singular .post-navigation .post-title {
	color: var(--prius-navy) !important;
	opacity: 1;
}

body.single .post-navigation .post-title,
.singular .post-navigation .post-title {
	font-weight: 600;
}

body.single .site-main {
	padding-bottom: 12px;
	margin-bottom: 0;
}

.footer {
	position: relative;
	z-index: 1;
	clear: both;
	margin-top: 0;
	color: #1a1a1a;
}

.footer .iko-container {
	max-width: 1200px;
	margin: 0 auto;
}

.footer .col {
	color: #1f2a3a;
	font-size: 14px;
	line-height: 1.5;
}

.footer-menu-2 a,
.footer-menu-1 a {
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.footer-menu-2 a:hover,
.footer-menu-1 a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.footer {
		padding: 28px 16px 40px !important;
	}

	.footer-menu-2 {
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
		text-align: left !important;
		gap: 8px 16px;
	}
}

/* ------------------------------------------------------------------
 * 4) About page factory photo: full width on small screens.
 * ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.page-template-page-about img.aligncenter,
	.page-template-page-about img.wp-image-346,
	.page-id-13 img.aligncenter,
	.page-id-13 .wp-image-346,
	.page-template-page-about .entry-content img,
	.page-id-13 .elementor-widget-image img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.page-template-page-about img.aligncenter,
.page-id-13 img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	height: auto;
}

/* Contact hero / office photo should not overflow on mobile. */
.contact-content-box img {
	max-width: 100% !important;
	height: auto !important;
	display: block;
}

/* ------------------------------------------------------------------
 * 5) Home product cards: equal height, aligned CTA, clean ellipsis.
 * ------------------------------------------------------------------ */
.product-section .elementor-widget-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.product-section .product-line-box {
	display: flex !important;
	flex-direction: column;
}

.product-section .product-line-box .elementor-widget-container,
.product-section .product-line-box .elementor-image-box-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	background: #fff;
	box-shadow: 0 4px 18px rgba(17, 38, 64, 0.08);
	border-radius: 4px;
	overflow: hidden;
}

.product-section .product-line-box figure,
.product-section .product-line-box .elementor-image-box-img {
	margin: 0;
	width: 100% !important;
	background: var(--prius-paper);
}

.product-section .product-line-box figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	display: block;
	background: #fff;
}

.product-section .product-line-box.elementor-widget-image-box .elementor-image-box-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 auto !important;
	width: 100% !important;
	padding: 16px 16px 20px !important;
	background: #fff;
	border-bottom: 3px solid var(--prius-blue);
	position: relative;
	z-index: 1;
}

.product-section .product-line-box h3,
.product-section .product-line-box .elementor-image-box-title {
	min-height: 2.4em;
	margin: 0 0 8px 0;
	line-height: 1.2;
	color: var(--prius-ink);
}

.product-section .des-home {
	flex: 1 1 auto;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--prius-muted);
	line-height: 1.45;
	font-size: 15px;
	margin-bottom: 12px;
}

.product-section .des-home p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	display: contents;
}

.product-section .view-product-line {
	margin-top: auto;
	align-self: flex-start;
	color: var(--prius-blue) !important;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.product-section .view-product-line:hover {
	color: var(--prius-navy) !important;
}

@media screen and (max-width: 1196px) {
	.product-section .product-line-box.elementor-widget-image-box .elementor-image-box-content {
		min-height: 0 !important;
		height: auto !important;
		margin: 0 auto !important;
	}

	.product-section .product-line-box {
		margin-bottom: 24px !important;
	}
}

/* ------------------------------------------------------------------
 * 6) Product-detail inquiry form (replaces default comments)
 * ------------------------------------------------------------------ */
.product-inquiry {
	max-width: 1100px;
	margin: 24px auto 8px auto;
	padding: 28px 24px 8px;
	background: #fff;
	border-top: 1px solid var(--prius-line);
}

.product-inquiry h2 {
	margin: 0 0 16px 0;
	font-size: 28px;
	color: var(--prius-ink);
	font-weight: 700;
}

/* Shared CF7 look: navy buttons, consistent fields. */
.wpcf7-form label,
.wpcf7 form label {
	display: block;
	margin: 0 0 12px 0;
	color: var(--prius-ink);
	font-weight: 600;
	font-size: 15px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #c9d1db;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--prius-ink);
	background: #fff;
	box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7 form input:focus,
.wpcf7 form textarea:focus {
	outline: 2px solid var(--prius-blue);
	border-color: var(--prius-blue);
}

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit,
.wpcf7 form input[type="submit"],
.wpcf7 .wpcf7-submit {
	background: var(--prius-navy) !important;
	background-color: var(--prius-navy) !important;
	border: none !important;
	border-color: var(--prius-navy) !important;
	color: #fff !important;
	border-radius: 4px !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	margin-top: 8px;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
	background: var(--prius-blue-hover) !important;
	background-color: var(--prius-blue-hover) !important;
}

/* Hide leftover default comment chrome if a plugin still prints it. */
body.single .comments-area,
body.single #comments,
body.single .comment-respond,
body.single #respond {
	display: none !important;
}

body.single .product-inquiry .wpcf7,
body.single .product-inquiry #comments {
	display: block !important;
}

/* ------------------------------------------------------------------
 * 7) Site-wide polish: type, buttons, cards, header, intro
 * ------------------------------------------------------------------ */
.elementor-heading-title,
.product-section h2,
.industries-section h2,
.resources-section h2 {
	color: var(--prius-ink);
}

.home .elementor-element-97edbeb .elementor-text-editor p,
.home .elementor-element-97edbeb {
	line-height: 1.5;
}

/* Don't restyle CookieYes buttons. */
.cky-btn {
	text-transform: none;
}

/* Product / about intro copy */
.product-blue-section .elementor-text-editor,
.product-desc .elementor-text-editor,
.page-template-page-about .entry-content,
.page-id-13 .entry-content {
	line-height: 1.6;
}

.product-blue-section .navigation-section a {
	display: inline-block;
	margin: 0 8px 8px 0;
}

.single .entry-content {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
	line-height: 1.6;
	color: var(--prius-muted);
}

/* Slightly tighter, more even section titles on listing pages */
.product-section.elementor-element-0d769f7 {
	padding-bottom: 48px !important;
}

@media (max-width: 767px) {
	.product-section .product-line-box {
		width: 100% !important;
		margin-right: 0 !important;
		margin-bottom: 20px !important;
	}

	.product-inquiry {
		padding: 20px 16px 8px;
	}

	.contact-content-box {
		padding-left: 12px;
		padding-right: 12px;
	}
}
