/* ==========================================================================
   Landing pages: layout primitives for the data-driven sections
   (content + per-widget styles live in inc/landings/*.php)
   ========================================================================== */

.sec,
.box {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	box-sizing: border-box;
	position: relative;
	min-width: 0;
	max-width: 100%;
}

.sec--row { flex-direction: row; }
.sec--column { flex-direction: column; }
.sec--row-reverse { flex-direction: row-reverse; }
.sec--column-reverse { flex-direction: column-reverse; }

.sec.has-bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.sec {
	width: 100%;
}

/* ---------- wide screens ---------- */
/* Elementor keeps stretching the bands to the viewport, which reads badly past
   1920px. From there the gutter grows so the content box stops at 1920px and
   centres, the way .site-footer__inner caps the footer. max() keeps it seamless
   at the breakpoint (the gutter never shrinks below the section's own 8%) and
   the section stays full-bleed, so the background photos still cover the whole
   screen. Below 1921px nothing changes. */
@media (min-width: 1921px) {
	.sec:not(.sec--full) {
		/* 153.6px = 8% of the 1920px box, i.e. the same gutter the capped
		   containers get once their percentages stop helping */
		padding-left: max(8%, calc((100% - 1920px) / 2 + 153.6px)) !important;
		padding-right: max(8%, calc((100% - 1920px) / 2 + 153.6px)) !important;
	}
}

/* ---------- widgets ---------- */
.w-h {
	width: 100%;
	min-width: 0;
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.3;
}

.w-txt {
	width: 100%;
	min-width: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.w-html {
	display: block;
	box-sizing: border-box;
	width: 100%;
}

/* per-widget overrides copied from the Elementor data (data-el targets) */
[data-el="67ae534"] {
	width: 747px;
	max-width: 100%;
}

/* contact page: the quote form is an 80% column of its 1210px band */
[data-el="8cc45b5"] {
	width: 100%;
}

[data-el="d209891"] {
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- contact page inquiry form (mirrors the .ru reference) ----------
   80% wide and centred in its band, underline-only fields on the dark band,
   bordered transparent button. The fields are the WPForms "modern" render with
   the white boxes replaced. */
/* the ported bands are wrap containers and a wrapped column line packs to the
   start, which left the 80% form flush left — centre the line instead */
.contactus {
	align-self: center;
}

.box:has(> .contactus) {
	align-content: center;
}

.contactus div.wpforms-container-full .wpforms-field {
	margin-bottom: 1.9rem;
}

.contactus div.wpforms-container-full input:not([type="submit"]),
.contactus div.wpforms-container-full select,
.contactus div.wpforms-container-full textarea {
	height: 43px;
	box-sizing: border-box;
	padding: 0 14px;
	background-color: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #9e9e9e !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 1rem;
	color: #ebebeb !important;
}

.contactus div.wpforms-container-full textarea {
	height: 97px;
	padding: 14px;
	resize: vertical;
}

.contactus div.wpforms-container-full input::placeholder,
.contactus div.wpforms-container-full textarea::placeholder {
	color: #9e9e9e;
	opacity: 1;
}

.contactus div.wpforms-container-full input:focus,
.contactus div.wpforms-container-full select:focus,
.contactus div.wpforms-container-full textarea:focus {
	border: 0 !important;
	border-bottom: 1px solid #ee6e00 !important;
	box-shadow: none !important;
	outline: none;
}

.w-html > .wpforms-container,
.w-html > #wpforms-57,
.w-html > form {
	width: 100%;
	max-width: 100%;
}

.w-txt p {
	margin: 0 0 0.9rem;
}

/* a shortcode (form) sitting inside a box should take the full width */
.box > .wpforms-container,
.sec > .wpforms-container,
.w-html > .wpforms-container,
.w-html #wpforms-57 {
	width: 100%;
	max-width: 100%;
}

.w-img {
	display: block;
	max-width: 100%;
	height: auto;
	/* an <img> is a flex item here; without this it stretches to the row height
	   and the picture distorts (Elementor had a wrapper div instead) */
	align-self: flex-start;
}

.w-icon {
	display: block;
	max-width: 100%;
	height: auto;
}

/* round badge wrapping a coop icon (be-a-dealer) */
.icon-bg {
	box-sizing: content-box;
	aspect-ratio: auto;
}

.icon-bg[style*="width"] {
	height: auto !important;
}

.w-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--white);
	background: var(--ink);
	padding: 0.66rem 2.5rem 0.66rem 1.1rem;
	transition: filter 0.2s ease;
}

.w-btn:hover {
	filter: brightness(0.9);
}

.w-counter {
	display: inline-flex;
	align-items: baseline;
	gap: 0;
	font-size: 1.8rem;
	font-weight: 700;
	min-width: 0;
	margin-right: 3rem;
}

.w-counter:last-child {
	margin-right: 0;
}

.w-box-counters {
	display: flex;
	gap: 4rem;
}

.w-counter__suffix {
	white-space: nowrap;
}

.w-counter__suffix span {
	font-family: var(--font-alt);
	font-size: 1.2rem;
	font-weight: 600;
	margin-left: 10px;
}

.w-video {
	width: 100%;
}

.w-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.w-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* ---------- FAQ accordion ---------- */
.w-faq {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.w-faq details {
	border: 1px solid #f5f5f5;
}

.w-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1rem;
	cursor: pointer;
	list-style: none;
	font-size: 1.2rem;
	font-weight: 600;
}

.w-faq summary::-webkit-details-marker {
	display: none;
}

.w-faq summary::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.w-faq details[open] summary::after {
	transform: rotate(-135deg);
}

.w-faq__a {
	padding: 0 1rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
}

.w-faq__a > :last-child {
	margin-bottom: 0;
}

/* ---------- tab group ---------- */
.w-tabs {
	width: 100%;
}

.w-tabs__nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 1.5rem;
}

.w-tabs__nav button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	padding: 1.4rem 1rem;
	border: 0;
	border-bottom: 1px solid currentColor;
	font-size: 1.2rem;
	font-weight: 600;
	text-align: left;
}

.w-tabs__nav button::after {
	content: "+";
	font-size: 1.4rem;
	line-height: 1;
}

.w-tabs__nav button[aria-selected="true"]::after {
	content: "\2013";
}

.w-tabs__nav button[aria-selected="true"] {
	color: var(--orange);
	border-color: var(--orange);
}

.w-tabs__panel {
	padding-bottom: 1.5rem;
}

.w-carousel {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	max-width: 100%;
}

.w-carousel__slide {
	flex: 0 0 auto;
	width: calc((100% - 90px) / 4);
	min-width: 220px;
	scroll-snap-align: start;
	background: var(--bg-2);
}

/* testimonial cards: image, orange title, body copy */
.w-carousel__img {
	width: 100%;
	aspect-ratio: 3.4 / 1;
	height: auto;
	object-fit: cover;
	display: block;
}

.w-carousel__body {
	padding: 1.2rem 1.3rem 1.6rem;
}

.w-carousel__title {
	margin: 0 0 0.7rem;
	color: var(--orange);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.6;
}

.w-carousel__text {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--text-1);
}

.w-carousel__text p:last-child {
	margin-bottom: 0;
}

/* horizontal scroll strips are supposed to overflow their box on purpose */
.w-carousel {
	overflow-x: auto;
	scrollbar-width: none;
}

.w-carousel::-webkit-scrollbar {
	display: none;
}

.w-carousel--legacy {
	contain: paint;
}

.w-carousel__slide img {
	width: 100%;
	height: auto;
}

/* ---------- tables coming from product shortcodes ---------- */
.w-txt table {
	width: 100%;
	border-collapse: collapse;
}

.w-map,
.w-map iframe {
	display: block;
	width: 100%;
}

.w-map iframe {
	height: 540px;
	border: 0;
	/* the old site rendered the embed desaturated */
	filter: saturate(0);
}

@media (max-width: 767px) {
	.w-map iframe {
		height: 500px;
	}
}

/* hide helpers matching Elementor's responsive visibility */
@media (min-width: 1025px) {
	.hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
	.hide-mobile { display: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
	.sec,
	.box {
		max-width: 100%;
	}

	.sec--row > .box,
	.sec--row > .sec {
		width: 100% !important;
		min-width: 0;
	}

	/* Full-Service row: the live container wraps its widgets too */
	[data-el="c9ec83d"] > * {
		width: 100% !important;
		margin-right: 0 !important;
	}

	.w-h {
		font-size: 1.6rem;
	}
}

/* buttons are inline widgets on the live site: never let flex stretch them */
.w-btn {
	flex: none;
	align-self: flex-start;
}

/* on the live site every image is its own widget inside a block wrapper, so it
   never stretches to the height of the flex box it sits in */
.box > .w-img,
.box > .w-icon {
	align-self: flex-start;
}

/* homepage product cards: the row stretches a card to its tallest neighbour (the
   grey copy panel), so let the photo fill that height instead of leaving a white
   strip underneath - cropped, not squashed. Scoped to the homepage, because on
   other landing pages the same markup is not inside a stretched row. */
.page-id-8535 .box:has(> .w-h) > .w-img:only-of-type {
	height: 100%;
	object-fit: cover;
}

/* dots under a testimonial strip */
.w-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 1.6rem;
}

.w-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--orange);
	background: transparent;
}

.w-dots button[aria-current="true"] {
	background: var(--orange);
}

/* Elementor keeps the 84% content column inside the 8% page gutter; the flex
   centring is unreliable on wide viewports, so pin the inset explicitly */
.sec > .box[style*="width:84%"],
.box > .box[style*="width:84%"] {
	margin-left: 8%;
	margin-right: 8%;
	width: 84%;
	box-sizing: border-box;
}

/* a carousel the reference site never initialised (1px tall) stays hidden */
.is-empty-carousel {
	display: none !important;
}

/* Elementor's base text style also steps down at its 1281px breakpoint
   (1rem / 1.4rem  ->  0.95rem / 1.2rem); the data ships inline sizes, so the
   override has to win over them */
@media (max-width: 1281px) {
	.w-txt,
	.w-txt p,
	.w-rows__x,
	.w-rows__x p {
		font-size: 0.95rem !important;
		line-height: 1.2rem !important;
	}
}
