/*
 * Home stack: YouTube → welcome + logo grid → RevSlider (in flow, not overlay).
 * Neutralizes legacy vc_custom_1501681930509 pull-up tied to old hero layout.
 */

body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_custom_1501681930509,
body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_row_inner.vc_custom_1501681930509,
body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_custom_1501681930509.vc_row_inner,
body.home.wp-child-theme-wecolab-cnc-retailer-child .wpb-content-wrapper > .vc_row.vc_custom_1501681930509 {
	margin-top: -236px !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	float: none !important;
	clear: both !important;
	z-index: 1 !important;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .wpb_raw_html.cnc-brand-logo-grid,
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid.wpb_raw_code {
	position: relative !important;
	z-index: 2 !important;
	margin-bottom: 0 !important;
	padding-bottom: 0;
	isolation: isolate;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .wpb_raw_html.cnc-brand-logo-grid > .wpb_wrapper {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child #rev_slider_3_1_wrapper,
body.home.wp-child-theme-wecolab-cnc-retailer-child #rev_slider_4_1_wrapper,
body.home.wp-child-theme-wecolab-cnc-retailer-child rs-module-wrap,
body.home.wp-child-theme-wecolab-cnc-retailer-child .rev_slider_wrapper {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	margin-top: 0 !important;
	margin-bottom: 50px !important;
	min-height: 260px;
	overflow: visible;
}

@media (min-width: 768px) {
	body.home.wp-child-theme-wecolab-cnc-retailer-child #rev_slider_3_1_wrapper,
	body.home.wp-child-theme-wecolab-cnc-retailer-child #rev_slider_4_1_wrapper {
		min-height: 420px;
	}
}

/* WPBakery renders inner rows as .vc_row.vc_inner (not .vc_row_inner). Backup gap after RevSlider row. */
body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_row.vc_inner.vc_custom_1501681930509 + .vc_row.vc_inner,
body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_row.vc_inner:has(.rev_slider_wrapper) + .vc_row.vc_inner,
body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_row.vc_inner:has(rs-module-wrap) + .vc_row.vc_inner {
	margin-top: 50px !important;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured.wpb_raw_code {
	margin-top: -42px !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	background: #000;
	overflow: hidden;
	transform: translateZ(0);
	backface-visibility: hidden;
}

/* Grid on .cnc-brand-logo-grid-inner only — not .wpb_wrapper (single child would sit in one column). */
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid .cnc-brand-logo-grid-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 28px;
	align-items: center;
	justify-items: center;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid .cnc-brand-logo-cell {
	width: 100%;
	text-align: center;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid .cnc-brand-logo-cell img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

@media (max-width: 991px) {
	body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid .cnc-brand-logo-grid-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px 20px;
	}
}

@media (max-width: 767px) {
	body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-brand-logo-grid .cnc-brand-logo-grid-inner {
		gap: 12px;
	}

	body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_custom_1501681930509,
	body.home.wp-child-theme-wecolab-cnc-retailer-child .vc_row_inner.vc_custom_1501681930509 {
		margin-top: -244px !important;
	}
}

/* Keep video inside content column, centered (no full-bleed / vw shift). */
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured.wpb_raw_code {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	clear: both;
	box-sizing: border-box;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured.wpb_raw_code,
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .wpb_wrapper {
	line-height: 0;
	font-size: 0;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .wpb_wrapper {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	background: #000;
	overflow: hidden;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .cnc-youtube-embed {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: -1px;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	box-sizing: border-box;
	line-height: 0;
	isolation: isolate;
	transform: translateZ(0);
	clip-path: inset(0 0 0 0);
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .cnc-youtube-embed iframe {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: calc(100% + 4px) !important;
	height: calc(100% + 4px) !important;
	max-width: none !important;
	border: 0 !important;
	outline: none;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: top;
	object-fit: cover;
	object-position: center center;
	transform: translate(-50%, -50%) scale(1.01) !important;
	transform-origin: center center;
	will-change: transform;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .cnc-youtube-unmute {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 10;
	transform: translateX(-50%);
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: rgba(179, 23, 54, 0.95);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-youtube-featured .cnc-youtube-unmute.is-hidden {
	display: none;
}

/* Distributor intro (KSB/GRACO): two paragraphs at normal body size (~18px). */
body.home.wp-child-theme-wecolab-cnc-retailer-child .wpb_text_column.cnc-intro-distributor p,
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-intro-distributor.wpb_content_element p {
	font-size: 18px !important;
	line-height: 1.5 !important;
	margin: 0 0 0.65em !important;
}

body.home.wp-child-theme-wecolab-cnc-retailer-child .wpb_text_column.cnc-intro-distributor p:last-child,
body.home.wp-child-theme-wecolab-cnc-retailer-child .cnc-intro-distributor.wpb_content_element p:last-child {
	margin-bottom: 0 !important;
}
