/* Targeted layout and accessibility corrections. Keep this file small. */

.marlus-ai-category__inner {
	padding-left: 0;
	padding-right: 0;
}

.marlus-ai-category__top--with-form > * {
	min-width: 0;
	width: 100%;
}

.references .references-items {
	margin-left: auto;
	margin-right: auto;
	max-width: 1300px;
	width: 100%;
}

.references .references-items .slick-prev {
	left: 15px;
}

.references .references-items .slick-next {
	right: 15px;
}

.site-footer-newsletter,
.site-footer-newsletter-form,
.site-footer-newsletter-form .wpcf7,
.site-footer-newsletter-form form {
	min-width: 0;
}

.site-footer-newsletter-form .wpcf7,
.site-footer-newsletter-form form {
	width: 100%;
}

/* Keep the CF7 newsletter email and submit button on one stable row. */
.site-footer-newsletter-form form > p {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	position: relative;
	width: 100%;
	margin: 0 0 32px;
}

.site-footer-newsletter-form form > p > br {
	display: none;
}

.site-footer-newsletter-form form > p > [data-name="your-email"] {
	min-width: 0;
	width: auto;
}

.site-footer-newsletter-form form > p > [data-name="your-email"] [type="email"] {
	width: 100%;
	margin-right: 0;
}

.site-footer-newsletter-form form > p > [type="submit"] {
	z-index: 1;
	margin: 0 0 0 -15px;
	white-space: nowrap;
}

.site-footer-newsletter-form form > p > .wpcf7-spinner {
	position: absolute;
	top: calc(100% + 3px);
	right: 0;
	margin: 0;
}

.menu-toggle:focus-visible,
.site-search-toggle:focus-visible,
.navigate-or-expand:focus-visible {
	outline: 3px solid #cd2027;
	outline-offset: 3px;
}

.navigate-or-expand:focus-visible {
	outline-offset: -4px;
}

@media screen and (max-width: 63.99875em) {
	.marlus-ai-category__top--with-form {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (min-width: 64em) {
	.site-footer-newsletter {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 340px;
		flex: 0 0 340px;
		max-width: 340px;
	}
}

/* Align homepage section content to one 1230px grid while keeping backgrounds full width. */
@media screen and (min-width: 48em) {
	body.home .i-need,
	body.home .main-categories,
	body.home .steps-items,
	body.home .references .references-items,
	body.home .partners,
	body.home .google-reviews > .container,
	body.home .blog {
		box-sizing: border-box;
		width: 100%;
		max-width: 1230px;
		margin-right: auto;
		margin-left: auto;
		padding-right: 15px;
		padding-left: 15px;
	}

	body.home .home-about {
		padding-right: max(15px, calc((100% - 1230px) / 2 + 15px));
		padding-left: max(15px, calc((100% - 1230px) / 2 + 15px));
	}

	body.home .references-items .slick-dots {
		left: 15px;
		width: calc(100% - 30px);
	}
}

@media screen and (min-width: 64em) {
	body.home .main-categories {
		max-width: 1230px !important;
	}

	body.home .main-categories-item {
		-webkit-box-flex: 0;
		-ms-flex: 0 1 calc((100% - 60px) / 4);
		flex: 0 1 calc((100% - 60px) / 4);
		width: calc((100% - 60px) / 4);
		max-width: none;
	}
}

/* Desktop menu: compact and pushed all the way to the right edge of the fluid header. */
@media screen and (min-width: 75em) {
	.site-navigation,
	.site-header.scrolled .site-navigation {
		min-width: 0;
		margin-left: 32px;
		justify-content: flex-end;
	}

	.site-navigation-content {
		min-width: 0;
		width: 100%;
	}

	#menu-main-menu {
		width: 100%;
		justify-content: flex-end;
		gap: 20px;
	}

	/* The last item ends exactly on the right edge (same line as the top bar). */
	.site-header #menu-main-menu > li:last-child > a {
		padding-right: 0 !important;
	}

	#menu-main-menu > li {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 auto;
		flex: 0 0 auto;
	}

	#menu-main-menu > li:not(:last-child) > a::before {
		right: -11px;
	}

	#menu-main-menu > li.big-submenu > ul {
		gap: 16px;
	}

	#menu-main-menu > li.big-submenu > ul > li {
		width: calc((100% - 48px) / 4);
		padding-right: 12px;
		padding-left: 12px;
	}

}

@media screen and (max-width: 48em) {
	.steps::before,
	.steps::after {
		left: 0;
	}

	.references-items .slick-dots {
		left: 0;
		width: 100%;
	}
}

/* Desktop search panel: full viewport width, attached to the bottom edge of the fixed header. */
@media screen and (min-width: 75em) {
	.site-header .site-header-main {
		position: static;
	}

	.site-header .site-header-main > .site-search {
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		box-sizing: border-box;
		padding-right: 20px;
		padding-left: 20px;
	}
}

/* Partner logos: centre every logo in its slide, both horizontally and vertically. */
.partners-items .slick-slide > div {
	align-items: center;
	justify-content: center;
}

.partners-items .slick-slide img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 60px;
	margin: 0 auto;
}

/* Set by js/logo-normalize.js: fixed box, logo scaled and centred inside it. */
.logo-box {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	max-width: 100%;
}

.logo-box > img {
	position: absolute;
	top: 50%;
	left: 50%;
	max-width: none !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.partners2-items .logo-box {
	margin: 0 10px;
}

/* Tighter vertical rhythm around the homepage partner strip on desktop. */
@media screen and (min-width: 64em) {
	body.home .partners {
		padding-top: 60px;
		padding-bottom: 50px;
	}

	body.home .partners .partners-description {
		margin-bottom: 20px;
	}

	body.home .blog {
		padding-bottom: 60px;
	}

	body.home .partners2 {
		padding-top: 25px;
		padding-bottom: 25px;
	}
}

/* Space reserved for the fixed desktop header. */
@media screen and (min-width: 75em) {
	.site-header-placeholder {
		height: 100px !important;
	}
}

/* "I need" items: the icon sits centred above the text, so keep the whole block centred. */
.i-need-item,
.i-need-item > p,
.i-need-item-h,
.i-need-item-text,
.i-need-item-button-wrap {
	text-align: center;
}

.i-need-item-text,
.i-need-item:nth-last-child(2) .i-need-item-text {
	margin-left: auto;
	margin-right: auto;
}

/* Products mega menu: comfortable padding, even columns, aligned headings. */
@media screen and (min-width: 75em) {
	#menu-main-menu > li.big-submenu > ul {
		box-sizing: border-box;
		padding: 32px 40px 36px 72px;
		gap: 28px 32px;
		align-items: flex-start;
		border-radius: 0 0 10px 10px;
	}

	#menu-main-menu > li.big-submenu > ul > li {
		box-sizing: border-box;
		width: calc((100% - 96px) / 4);
		padding: 0;
	}

	#menu-main-menu > li.big-submenu > ul > li > a {
		flex-wrap: nowrap;
		min-height: 52px;
		padding: 0;
		line-height: 1.25;
	}

	#menu-main-menu > li.big-submenu > ul > li > a .menu-icon {
		flex: 0 0 34px;
		width: 34px;
		margin-right: 12px;
	}

	#menu-main-menu > li.big-submenu > ul > li > a span {
		flex: 1 1 auto;
		width: auto;
		padding-left: 0;
	}

	#menu-main-menu > li.big-submenu > ul > li > a::after {
		display: none;
	}

	#menu-main-menu > li.big-submenu > ul > li > ul {
		margin-top: 10px;
		padding-top: 10px;
		border-top: 1px solid rgba(2, 100, 167, 0.35);
	}

	#menu-main-menu > li.big-submenu > ul > li > ul > li > a {
		padding-top: 6px;
		padding-bottom: 6px;
		line-height: 1.35;
	}
}

/* ==========================================================================
   Product subcategory pages: one 1230px grid for every section.
   ========================================================================== */
@media screen and (min-width: 64em) {
	.page-product-subcategory .marlus-ai-category__inner,
	.page-product-subcategory .page-product-subcategory-items,
	.page-product-subcategory .trustindex-reviews > *,
	.page-product-subcategory .product-page-tabs-kategorie > * {
		box-sizing: border-box;
		width: 100%;
		max-width: 1230px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 15px;
		padding-right: 15px;
	}

	.page-product-subcategory .trustindex-reviews,
	.page-product-subcategory .product-page-tabs-kategorie {
		padding-left: 0;
		padding-right: 0;
	}

	/* Card outer edges line up with the 1200px content edges of the other sections. */
	.page-product-subcategory .page-product-subcategory-items {
		padding-left: 5px;
		padding-right: 5px;
	}

	/* Three product cards fill the 1200px content width exactly. */
	.page-product-subcategory .page-product-subcategory-item {
		flex: 0 0 calc((100% - 60px) / 3);
		max-width: none;
		margin-left: 10px;
		margin-right: 10px;
	}
}

/* Intro block + enquiry form: no stretched gap between intro and the three cards. */
@media screen and (min-width: 64em) {
	.marlus-ai-category__top--with-form {
		align-content: start;
		column-gap: 40px;
		grid-template-rows: auto 1fr;
	}

	.page-product-subcategory .trustindex-reviews .ti-widget {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}

	.marlus-ai-category__top--with-form .marlus-ai-category__points {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
		margin-top: 10px;
		margin-bottom: 0;
	}

	.marlus-ai-category__top--with-form .marlus-ai-category__point {
		padding: 18px 16px 16px;
	}
}

/* Tab navigation: keep the tabs on a single row where they fit. */
@media screen and (min-width: 64em) {
	.page-product-subcategory .product-page-tabs-navigation-item {
		font-size: 13px;
		padding-left: 10px;
		padding-right: 10px;
		white-space: nowrap;
	}

	.page-product-subcategory .product-page-tabs-item:not(#fotogaleria):not(#mapa-tvrdosti):not(.is-gallery) {
		text-align: left;
	}
}

/* Product cards: lists look the same in every card. */
.page-product-subcategory-item-desc ul {
	list-style: disc;
	margin: 0 0 10px;
	padding-left: 1.15em;
}

.page-product-subcategory-item-desc li {
	margin-bottom: 3px;
}

/* "Free inspection" band on product category pages: same 1200px content edges and more air. */
@media screen and (min-width: 75em) {
	.page-product-subcategory ~ .free-inspection {
		box-sizing: border-box;
		padding-top: 44px;
		padding-bottom: 44px;
		padding-left: max(15px, calc((100% - 1200px) / 2));
		padding-right: max(15px, calc((100% - 1200px) / 2));
		justify-content: space-between;
	}

	.page-product-subcategory ~ .free-inspection::before {
		left: max(0px, calc((100% - 1200px) / 2 - 15px));
	}
}

/* ==========================================================================
   Parent product category pages (.page-product-category): same 1230px grid.
   ========================================================================== */
@media screen and (min-width: 64em) {
	.page-product-category .marlus-ai-category__inner,
	.page-product-category .page-product-category-subcategories,
	.page-product-category .trustindex-reviews > *,
	.page-product-category .product-page-tabs-kategorie > * {
		box-sizing: border-box;
		width: 100%;
		max-width: 1230px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 15px;
		padding-right: 15px;
	}

	.page-product-category .trustindex-reviews,
	.page-product-category .product-page-tabs-kategorie {
		padding-left: 0;
		padding-right: 0;
	}

	.page-product-category .product-page-tabs-navigation-item {
		font-size: 13px;
		padding-left: 10px;
		padding-right: 10px;
		white-space: nowrap;
	}

	.page-product-category .product-page-tabs-item:not(#fotogaleria):not(#mapa-tvrdosti):not(.is-gallery) {
		text-align: left;
	}

	.page-product-category .trustindex-reviews .ti-widget {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (min-width: 75em) {
	.page-product-category ~ .free-inspection {
		box-sizing: border-box;
		padding-top: 44px;
		padding-bottom: 44px;
		padding-left: max(15px, calc((100% - 1200px) / 2));
		padding-right: max(15px, calc((100% - 1200px) / 2));
		justify-content: space-between;
	}

	.page-product-category ~ .free-inspection::before {
		left: max(0px, calc((100% - 1200px) / 2 - 15px));
	}
}

/* Info band under the category intro uses the same 1230px grid. */
@media screen and (min-width: 64em) {
	.page-product-category .page-product-category-info {
		box-sizing: border-box;
		max-width: 1230px;
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* ==========================================================================
   Sitewide: "free inspection" band and the partners strip follow the 1200px grid.
   ========================================================================== */
@media screen and (min-width: 75em) {
	.free-inspection {
		box-sizing: border-box;
		padding-top: 44px;
		padding-bottom: 44px;
		padding-left: max(15px, calc((100% - 1200px) / 2));
		padding-right: max(15px, calc((100% - 1200px) / 2));
		justify-content: space-between;
	}

	.free-inspection::before {
		left: max(0px, calc((100% - 1200px) / 2 - 15px));
	}
}

@media screen and (min-width: 64em) {
	.partners2 {
		box-sizing: border-box;
		padding-left: max(15px, calc((100% - 1200px) / 2));
		padding-right: max(15px, calc((100% - 1200px) / 2));
		justify-content: space-between;
	}
}

/* Text inside the bands starts exactly on the grid edge; partner logos stay on one row. */
@media screen and (min-width: 75em) {
	.free-inspection-h,
	.free-inspection-text-content-text {
		padding-left: 0;
	}
}

@media screen and (min-width: 64em) {
	.partners2-h {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.partners2-items {
		flex: 1 1 auto;
		justify-content: flex-end;
	}

	.partners2-items .logo-box {
		margin-left: 4px;
		margin-right: 4px;
	}
}

/* Category description above the subcategory cards follows the same 1200px grid. */
@media screen and (min-width: 64em) {
	.page-product-category .product-category-description {
		box-sizing: border-box;
		max-width: 1230px;
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* Bullet-less text in the second column of the "free inspection" band lines up with the list style. */
.free-inspection-text-content-points p {
	margin: 0;
}

/* No separator line when the subcategory cards are the last block of the page. */
.page-product-category-subcategories:last-child {
	border-bottom: 0;
}

/* Both text columns in the blue band start on the same line. */
@media screen and (min-width: 75em) {
	.free-inspection-h {
		margin-bottom: 12px;
	}

	.free-inspection-text-content {
		align-items: flex-start;
	}

	.free-inspection-text-content-points {
		padding-top: 0;
	}
}

/* A category without any tabs must not leave an empty navigation line behind. */
.product-page-tabs-kategorie:not(:has(.product-page-tabs-navigation-item)) {
	display: none;
}

/* Subcategory cards: the card itself (not its 10px item padding) sits on the 1200px grid edges. */
@media screen and (min-width: 64em) {
	.page-product-category .page-product-category-subcategories {
		padding-left: 5px;
		padding-right: 5px;
	}
}

/* Breadcrumb: more air between the items and around the arrows. */
.page-header-path {
	line-height: 1.7;
}

.page-header-path a::before {
	width: 8px;
	height: 12px;
	margin: 0 12px 0 8px;
}

.page-header-path a:first-child::before {
	margin: 0;
}

/* ==========================================================================
   Footer: full width like the header (26px side padding), tidier columns.
   ========================================================================== */
@media screen and (min-width: 64em) {
	.site-footer .site-footer-part:nth-child(1),
	.site-footer .site-footer-part:nth-child(2) {
		box-sizing: border-box;
		padding-left: 26px;
		padding-right: 26px;
	}

	.site-footer .site-footer-part:nth-child(1) {
		gap: 40px;
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.site-footer-contact {
		flex: 0 0 260px;
	}

	/* Address and other contact lines stay on one line. */
	.site-footer-contact-info-item {
		width: auto;
		white-space: nowrap;
	}

	.site-footer-navigation {
		flex: 1 1 auto;
		justify-content: space-evenly;
		gap: 28px;
		min-width: 0;
	}

	.site-footer-navigation-part {
		flex: 0 1 230px;
		min-width: 0;
		max-width: none;
	}

	.site-footer-newsletter {
		flex: 0 0 340px;
		max-width: 340px;
	}

	/* Social icons follow the contact details instead of dropping to the very bottom. */
	.site-footer-contact-info-item.email {
		flex-grow: 0;
	}

	.site-footer-contact-info-social {
		margin-top: 24px;
	}
}

/* ==========================================================================
   GDPR consent checkbox (injected into every CF7 form, see functions.php).
   ========================================================================== */
.marlus-form-consent,
.marlus-form-consent p {
	margin: 0;
	padding: 0;
	text-align: left;
}

.marlus-form-consent {
	grid-column: 1 / -1; /* full width inside grid based forms */
	width: 100%;
	margin: 4px 0 14px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: inherit;
	text-transform: none;
}

.marlus-form-consent .wpcf7-form-control-wrap,
.marlus-form-consent .wpcf7-form-control,
.marlus-form-consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.marlus-form-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-weight: 400;
	text-transform: none;
	color: inherit;
	cursor: pointer;
}

.marlus-form-consent input[type="checkbox"] {
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 1px 0 0 !important;
	padding: 0 !important;
	border-radius: 4px !important;
	accent-color: #cd2027;
	cursor: pointer;
	-webkit-appearance: auto;
	appearance: auto;
}

.marlus-form-consent .wpcf7-list-item-label {
	display: block;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.marlus-form-consent a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.marlus-form-consent input[type="checkbox"]:focus-visible {
	outline: 2px solid #cd2027;
	outline-offset: 2px;
}

.marlus-form-consent .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #cd2027;
}

/* Consent colours follow the look of each form. */
.rastoobhliadka-form .marlus-form-consent,
.marlus-category-advice-form .marlus-form-consent {
	color: #fff;
}

/*
 * Category advice forms sit on a blue panel. Global form/paragraph rules set
 * their nested CF7 label text back to black, so pin every visible consent
 * text node to white while leaving validation messages and footer forms alone.
 */
.marlus-category-advice-form__form .marlus-form-consent,
.marlus-category-advice-form__form .marlus-form-consent p,
.marlus-category-advice-form__form .marlus-form-consent label,
.marlus-category-advice-form__form .marlus-form-consent .wpcf7-list-item-label,
.marlus-category-advice-form__form .marlus-form-consent a {
	color: #fff !important;
}

.water-test-form-message .marlus-form-consent,
.home-contact-form-part .marlus-form-consent,
.service-form-part .marlus-form-consent,
.contact-form-part .marlus-form-consent {
	color: #0264a7;
}

/* The consent line inherits its size from the form (theme paragraph rules would make it bigger). */
.marlus-form-consent p {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* Footer newsletter: compact line, same black as the other footer text. */
.site-footer-newsletter .marlus-form-consent {
	margin: 0 0 12px;
	font-size: 12px;
	color: #000;
}

.site-footer-newsletter .marlus-form-consent input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	min-width: 16px;
	flex-basis: 16px;
}

.site-footer-newsletter-form form > p:first-of-type {
	margin-bottom: 14px;
}

.marlus-form-consent label,
.marlus-form-consent .wpcf7-list-item-label {
	font-size: inherit !important;
	line-height: 1.45 !important;
	letter-spacing: normal;
}

/* Required processing consent + optional marketing consent sit together as one block. */
.marlus-form-consent:has(+ .marlus-form-consent--marketing) {
	margin-bottom: 8px;
}

.marlus-form-consent--marketing {
	margin-top: 0;
}

.marlus-form-consent--marketing .wpcf7-list-item-label {
	opacity: .92;
}

.site-footer-newsletter .marlus-form-consent--marketing {
	margin-top: 0;
}

/* Some forms add a bottom margin to every <p>; the consent lines manage their own spacing. */
.marlus-form-consent p {
	margin: 0 !important;
	padding: 0 !important;
}

/* Homepage: reserve the full height of the fixed header at every breakpoint. */
@media screen and (min-width: 64em) and (max-width: 74.99875em) {
	body.home .site-header-placeholder {
		height: 225px !important;
	}
}

@media screen and (min-width: 75em) {
	body.home .site-header-placeholder {
		height: 130px !important;
	}
}
