/*
Theme Name:   Industing Child Theme
Theme URI:    http://themewar.com/wp/industing/
Description:  Child theme for Industing - with image lazy load and preloader
Author:       Your Name
Template:     industing
Version:      1.0.41
Text Domain:  industing-child-theme
*/

/* Stop horizontal scroll from full-width sections / sliders */
html {
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	max-width: 100%;
}

#page,
.site,
.wrapper,
.main-content,
.industing-main,
.page-content {
	overflow-x: hidden;
	max-width: 100%;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img[width][height] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

/* Slider / carousel overflow (classes present in theme or Owl markup) */
.owl-carousel,
.owl-stage-outer,
.rev_slider_wrapper,
.rs-slides {
	max-width: 100%;
}

/* Revolution Slider — reserve space before rs6.min.js (visibility:hidden → CLS) */
.elementor-widget-slider_revolution .elementor-widget-container,
.wp-block-themepunch-revslider,
rs-module-wrap,
rs-module {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1068 / 484;
	min-height: min(45.32vw, 484px);
	visibility: visible;
	opacity: 1;
}

.elementor-widget-slider_revolution .elementor-invisible {
	visibility: visible !important;
	opacity: 1 !important;
}

.rev-slidebg.tp-rs-img,
rs-module img.rev-slidebg[width][height] {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

@media (max-width: 767px) {
	.elementor-widget-slider_revolution .elementor-widget-container,
	.wp-block-themepunch-revslider,
	rs-module-wrap {
		min-height: min(52vw, 280px);
	}
}

/* Industing eyebrow labels (converted from h6 to p for heading order) */
p.sub_title {
	margin: 0;
}

/* Text font stacks — metric fallbacks defined in functions.php (critical CSS) */
body,
.elementor-6,
.elementor-6 .elementor-widget-container {
	font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
}

.elementor-6 .elementor-heading-title,
.elementor-6 h1,
.elementor-6 h2,
.elementor-6 h3,
.elementor-6 h4,
.elementor-6 h5,
.elementor-6 h6,
.elementor-6 p,
.elementor-6 span:not(.elementor-button-icon):not(.elementor-icon-list-icon) {
	font-family: inherit;
}

rs-layer {
	font-family: "Archivo Narrow", "Archivo Narrow Fallback", "Arial Narrow", sans-serif !important;
}

/* Visually hidden text for screen readers (icon-only links) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* YouTube click-to-load (no third-party cookies until play) */
.industing-yt-facade {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 1.5em;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	overflow: hidden;
	background: #000;
}

.industing-yt-facade img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Elementor hero / content images — reserve space before load (CLS) */
.elementor-widget-image .elementor-widget-container,
.elementor-widget-image img.attachment-large,
.elementor-widget-container img.attachment-large,
img.attachment-large.size-large,
img.size-large[width][height] {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* Header banner image (Elementor header template, not page content) */
.elementor-location-header img.wp-image-5895,
header.elementor img.wp-image-5895,
.elementor-element-f94a010 img {
	display: block;
	width: 100%;
	max-width: 1140px;
	max-height: 240px !important;
	height: auto !important;
	margin-left: auto;
	margin-right: auto;
	object-fit: cover;
	object-position: center center;
}

.elementor-location-header .elementor-element-f94a010 .elementor-widget-container,
.elementor-location-header .elementor-widget-image:has(img.wp-image-5895) .elementor-widget-container {
	max-height: 240px;
	overflow: hidden;
}

@media (max-width: 767px) {
	.elementor-location-header img.wp-image-5895,
	header.elementor img.wp-image-5895,
	.elementor-element-f94a010 img {
		max-height: 160px !important;
		max-width: 100%;
	}

	.elementor-location-header .elementor-element-f94a010 .elementor-widget-container,
	.elementor-location-header .elementor-widget-image:has(img.wp-image-5895) .elementor-widget-container {
		max-height: 160px;
	}
}

.industing-yt-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	margin: -24px 0 0 -34px;
	background: rgba(0, 0, 0, 0.75);
	border-radius: 12px;
}

.industing-yt-facade__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	margin: -10px 0 0 -6px;
	border-color: transparent transparent transparent #fff;
	border-style: solid;
	border-width: 10px 0 10px 18px;
}

.industing-yt-facade:hover .industing-yt-facade__play,
.industing-yt-facade:focus {
	outline: 2px solid #333;
	outline-offset: 2px;
}

.industing-yt-facade:hover .industing-yt-facade__play {
	background: #c00;
}

/* kdassociates form iframe replaced with external link */
.industing-form-link {
	margin: 1.5em 0;
	text-align: center;
}

.industing-form-link__button {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: #333;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
}

.industing-form-link__button:hover {
	background: #111;
	color: #fff !important;
}
