/*
Theme Name: Vlas Construction Child
Description: Minimal, production-safe child theme for the Kadence parent theme, maintained for Vlas Construction B.V.
Author: Vlas Construction B.V.
Version: 1.6.9
Template: kadence
Text Domain: vlas-kadence-child
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Narrative replacements for legacy blog comparison tables. */
.entry-content .vlas-table-text {
	display: grid;
	gap: 1rem;
	margin: 2rem 0;
}

.entry-content .vlas-table-text__caption {
	margin: 0 0 0.25rem;
	font-size: 1.1em;
}

.entry-content .vlas-table-text__item {
	padding: 1.25rem 1.5rem;
	border-inline-start: 3px solid #f2aa00;
	background: #f6f8fb;
	box-shadow: 0 1px 0 rgb(15 23 42 / 8%);
}

.entry-content .vlas-table-text__item h3 {
	margin: 0 0 0.7rem;
	color: #101828;
}

.entry-content .vlas-table-text__item p {
	margin: 0.4rem 0 0;
}

.entry-content .vlas-table-text__heading-label {
	font-weight: 600;
}

.entry-content .vlas-table-text__note {
	margin: 0.25rem 0 0;
	padding-inline-start: 1rem;
	border-inline-start: 2px solid #d0d5dd;
	color: #475467;
	font-size: 0.92em;
}

@media (max-width: 767px) {
	.entry-content .vlas-table-text__item {
		padding: 1rem 1.1rem;
	}
}

/*
 * Child theme stylesheet.
 *
 * The Kadence parent theme loads its own stylesheets; WordPress loads
 * this file after them, so rules added here override the parent styles
 * in the cascade without needing !important in most cases.
 *
 * Add custom CSS below this comment.
 */

/*
 * Mobile LCP optimization for the English and Dutch home-page hero sections.
 * The 1024px WordPress WebP derivative is about 69 KB instead of 279 KB.
 */
@media (max-width: 767px) {
	.page-id-75566 .elementor-element.elementor-element-6406542,
	.page-id-75948 .elementor-element.elementor-element-b1fe928 {
		background-image: url("https://vlasconstruction.com/wp-content/uploads/2025/10/Vlas-Construction-in-the-Netherlands-images-1024x574.webp") !important;
	}
}

/*
 * ElementsKit mobile submenu repair.
 * The published Elementor template sets submenu links to 1px below 768px.
 */
@media (max-width: 767px) {
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li > a,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li > a:hover,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li > a:focus,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li.current-menu-item > a,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li.current-menu-ancestor > a {
		padding: 14px 22px !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.45 !important;
		color: #081237 !important;
	}

	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li > a .elementskit-submenu-indicator,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav > li > a .ekit-submenu-indicator-icon {
		color: #081237 !important;
		fill: #081237 !important;
		border-color: #081237 !important;
	}

	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel {
		padding: 7px 0 9px !important;
		background: #f4f6fb !important;
		border-left: 3px solid #ffb300 !important;
		box-shadow: inset 0 1px 0 rgba(8, 18, 55, 0.08), inset 0 -1px 0 rgba(8, 18, 55, 0.08) !important;
	}

	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel > li > a {
		display: block !important;
		padding: 11px 18px !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.45 !important;
		color: #081237 !important;
		background: transparent !important;
	}

	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel > li + li {
		border-top: 1px solid rgba(8, 18, 55, 0.08);
	}

	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel > li > a:hover,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel > li > a:focus,
	.elementor-element.elementor-element-30e61a5e .elementskit-navbar-nav .elementskit-submenu-panel > li.current-menu-item > a {
		color: #081237 !important;
		background: #ffb300 !important;
	}
}

/*
 * Shared EN/NL tablet header: a percentage search column plus a 20px widget
 * margin left less room than the icon needs. Reserve a real 44px target and
 * let the adjacent menu column consume the remaining space; do not clip it.
 */
@media (min-width: 768px) and (max-width: 1024px) {
	:is(.elementor-78510, .elementor-78985) .elementor-element.elementor-element-60dde9c {
		flex: 0 0 64px;
		width: 64px;
	}

	:is(.elementor-78510, .elementor-78985) .elementor-element.elementor-element-7ac9528 {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	:is(.elementor-78510, .elementor-78985) .elementor-element-60dde9c .elementor-element.elementor-element-15526e1 > .elementor-widget-container {
		margin: 0;
	}

	:is(.elementor-78510, .elementor-78985) .elementor-element.elementor-element-15526e1 .elementor-widget-container .ekit-wid-con .ekit_navsearch-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
	}
}

/* The icon's trailing margin also adds 2px of scroll width on 320px phones. */
@media (max-width: 767px) {
	:is(.elementor-78510, .elementor-78985) .elementor-element.elementor-element-15526e1 .elementor-widget-container .ekit-wid-con .ekit_navsearch-button {
		margin: 0;
	}
}

/* Google permits the reCAPTCHA v3 badge to be hidden when branding remains visible. */
.grecaptcha-badge {
	visibility: hidden !important;
}

.vlas-recaptcha-notice {
	margin: 4px 0 10px;
	font-size: 11px;
	line-height: 1.45;
	color: #667085;
}

.vlas-recaptcha-notice a {
	color: #344054;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* First-party consent UI. Fixed positioning prevents content shifts/LCP impact. */
.vlas-consent[hidden],
.vlas-consent-modal[hidden] {
	display: none !important;
}

.vlas-consent {
	position: fixed;
	z-index: 2147483000;
	right: 18px;
	bottom: 18px;
	left: 18px;
	color: #ffffff;
}

.vlas-consent__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
	gap: 24px;
	align-items: center;
	max-width: 1120px;
	margin: 0 auto;
	padding: 22px 24px;
	background: #081237;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 4px solid #ffb300;
	border-radius: 12px;
	box-shadow: 0 16px 44px rgba(8, 18, 55, 0.34);
}

.vlas-consent__title,
.vlas-consent-modal__title,
.vlas-consent__preference-title {
	font-family: inherit;
}

.vlas-consent__title {
	margin: 0 0 6px;
	font-size: 21px;
	line-height: 1.25;
	color: #ffffff;
}

.vlas-consent__description {
	max-width: 720px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #e4e8f1;
}

.vlas-consent__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 10px;
}

.vlas-consent__link {
	font-size: 12px;
	font-weight: 600;
	color: #ffca45;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vlas-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
}

.vlas-consent__button {
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
}

.vlas-consent__button--choice {
	color: #081237;
	background: #ffb300;
	border-color: #ffb300;
}

.vlas-consent__button--choice:hover,
.vlas-consent__button--choice:focus-visible {
	color: #081237;
	background: #ffd05c;
	border-color: #ffd05c;
}

.vlas-consent__button--manage {
	grid-column: 1 / -1;
	color: #ffffff;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
}

.vlas-consent-modal {
	position: fixed;
	z-index: 2147483001;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(8, 18, 55, 0.68);
}

.vlas-consent-modal__panel {
	width: min(100%, 650px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 24px 70px rgba(8, 18, 55, 0.35);
}

.vlas-consent-modal__header {
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 24px 24px 18px;
	border-bottom: 4px solid #ffb300;
}

.vlas-consent-modal__title {
	margin: 0 0 6px;
	font-size: 23px;
	line-height: 1.25;
	color: #081237;
}

.vlas-consent-modal__intro {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #667085;
}

.vlas-consent__close {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #081237;
	background: #f3f5f8;
	border: 1px solid #d9dee8;
	border-radius: 50%;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.vlas-consent__preferences {
	padding: 8px 24px 0;
}

.vlas-consent__preference {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	border-bottom: 1px solid #e7eaf0;
}

.vlas-consent__preference-title {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
	color: #081237;
}

.vlas-consent__preference-description {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #667085;
}

.vlas-consent__always {
	flex: 0 0 auto;
	padding: 6px 9px;
	color: #0f6b39;
	background: #e9f7ef;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.vlas-consent__switch {
	position: relative;
	flex: 0 0 50px;
	width: 50px;
	height: 28px;
	cursor: pointer;
}

.vlas-consent__switch input {
	position: absolute;
	opacity: 0;
}

.vlas-consent__slider {
	position: absolute;
	inset: 0;
	background: #b7bfce;
	border-radius: 999px;
	transition: background-color 0.18s ease;
}

.vlas-consent__slider::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(8, 18, 55, 0.25);
	transition: transform 0.18s ease;
}

.vlas-consent__switch input:checked + .vlas-consent__slider {
	background: #081237;
}

.vlas-consent__switch input:checked + .vlas-consent__slider::before {
	transform: translateX(22px);
}

.vlas-consent__switch input:focus-visible + .vlas-consent__slider,
.vlas-consent__button:focus-visible,
.vlas-consent-footer-link:focus-visible,
.vlas-consent__close:focus-visible {
	outline: 3px solid #ffb300;
	outline-offset: 3px;
}

.vlas-consent__links--modal {
	padding: 4px 24px 14px;
}

.vlas-consent__links--modal .vlas-consent__link {
	color: #6b4b00;
}

.vlas-consent-modal__actions {
	display: flex;
	gap: 10px;
	padding: 18px 24px 24px;
}

.vlas-consent__button--save {
	color: #081237;
	background: #ffb300;
	border-color: #ffb300;
}

.vlas-consent__button--cancel {
	color: #081237;
	background: #ffffff;
	border-color: #b7bfce;
}

.vlas-consent-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.vlas-consent {
		right: 10px;
		bottom: 10px;
		left: 10px;
	}

	.vlas-consent__inner {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 18px;
	}

	.vlas-consent__actions {
		grid-template-columns: 1fr;
	}

	.vlas-consent__button--manage {
		grid-column: auto;
	}

	.vlas-consent-modal {
		align-items: end;
		padding: 8px;
	}

	.vlas-consent-modal__panel {
		max-height: calc(100vh - 16px);
	}

	.vlas-consent-modal__header,
	.vlas-consent__preferences,
	.vlas-consent__links--modal,
	.vlas-consent-modal__actions {
		padding-right: 18px;
		padding-left: 18px;
	}

	.vlas-consent__preference {
		align-items: flex-start;
	}

	.vlas-consent-modal__actions {
		flex-direction: column;
	}
}

/* Version-controlled EN/NL privacy and cookie statements. */
.vlas-policy {
	width: min(100% - 32px, 940px);
	margin: clamp(36px, 6vw, 76px) auto;
	color: #26324c;
	font-size: 17px;
	line-height: 1.72;
}

.vlas-policy__header {
	padding: clamp(28px, 5vw, 54px);
	color: #ffffff;
	background: #081237;
	border-bottom: 6px solid #ffb300;
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(8, 18, 55, 0.18);
}

.vlas-policy__eyebrow {
	margin: 0 0 9px;
	color: #ffca45;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vlas-policy h1 {
	margin: 0 0 13px;
	color: #ffffff;
	font-size: clamp(34px, 6vw, 56px);
	line-height: 1.08;
}

.vlas-policy__lead {
	max-width: 760px;
	margin: 0;
	color: #e8ebf2;
	font-size: clamp(17px, 2.6vw, 21px);
	line-height: 1.55;
}

.vlas-policy__updated {
	margin: 18px 0 0;
	color: #aeb7ca;
	font-size: 14px;
}

.vlas-policy__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 32px;
}

.vlas-policy__nav a {
	padding: 9px 14px;
	color: #081237;
	background: #f2f4f8;
	border: 1px solid #dfe3eb;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.vlas-policy__nav a[aria-current="page"] {
	background: #ffb300;
	border-color: #ffb300;
}

.vlas-policy section {
	padding: 27px 0;
	border-bottom: 1px solid #e3e7ee;
}

.vlas-policy section:last-child {
	border-bottom: 0;
}

.vlas-policy h2 {
	margin: 0 0 13px;
	color: #081237;
	font-size: clamp(23px, 3.5vw, 31px);
	line-height: 1.25;
}

.vlas-policy p,
.vlas-policy ul {
	margin-top: 0;
	margin-bottom: 15px;
}

.vlas-policy li + li {
	margin-top: 8px;
}

.vlas-policy address {
	margin: 18px 0;
	padding: 18px 20px;
	background: #f5f7fa;
	border-left: 4px solid #ffb300;
	font-style: normal;
}

.vlas-policy a {
	color: #163b84;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.vlas-policy code {
	padding: 2px 5px;
	color: #081237;
	background: #edf0f5;
	border-radius: 4px;
	font-size: 0.88em;
}

.vlas-policy__table-wrap {
	overflow-x: auto;
	margin: 18px 0 22px;
	border: 1px solid #dfe3eb;
	border-radius: 10px;
}

.vlas-policy table {
	width: 100%;
	min-width: 680px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.vlas-policy th,
.vlas-policy td {
	padding: 15px 16px;
	border: 0;
	border-bottom: 1px solid #dfe3eb;
	text-align: left;
	vertical-align: top;
}

.vlas-policy th {
	color: #ffffff;
	background: #081237;
	font-size: 14px;
}

.vlas-policy tr:last-child td {
	border-bottom: 0;
}

.vlas-policy__settings {
	min-height: 46px;
	padding: 11px 18px;
	color: #081237;
	background: #ffb300;
	border: 2px solid #ffb300;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.vlas-policy__settings:hover,
.vlas-policy__settings:focus-visible {
	background: #ffd05c;
	border-color: #ffd05c;
}

.vlas-policy__settings:focus-visible,
.vlas-policy a:focus-visible,
.vlas-policy__table-wrap:focus-visible {
	outline: 3px solid #ffb300;
	outline-offset: 3px;
}

@media (max-width: 720px) {
	.vlas-policy {
		width: min(100% - 24px, 940px);
		margin-top: 24px;
		font-size: 16px;
	}

	.vlas-policy__header {
		padding: 25px 20px;
		border-radius: 12px;
	}

	.vlas-policy section {
		padding: 22px 0;
	}

	.vlas-policy ul {
		padding-left: 22px;
	}
}
