/* ==========================================================================
   Mastechnics – thema-stijlen (vervangt Divi + child theme "mas")
   ========================================================================== */

/* Lettertypen (lokaal gehost) --------------------------------------------- */
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans.woff") format("woff"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-italic.woff") format("woff"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--mas-orange: #ef7d00;
	--mas-grey: #5a5d5c;
	--mas-light: #ededed;
	--mas-text: #666;
	--mas-heading: #333;
	--mas-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM227.3 387.3l184-184a16 16 0 0 0 0-22.6l-22.6-22.6a16 16 0 0 0-22.6 0L216 308.1l-70.1-70.1a16 16 0 0 0-22.6 0l-22.6 22.6a16 16 0 0 0 0 22.6l104 104a16 16 0 0 0 22.6 0z'/%3E%3C/svg%3E");
}

/* Basis ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--mas-text);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding-bottom: 10px;
	color: var(--mas-heading);
	font-weight: 500;
	line-height: 1em;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
a { color: var(--mas-orange); text-decoration: none; }
b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: #000;
}

/* Grid (zelfde maatvoering als Divi: 80% breed, max 1080px, goot 5,5%) ---- */
.section { position: relative; padding: 4% 0; background-color: #fff; }
.section--grey { background-color: var(--mas-light); }
.row {
	position: relative;
	display: flex;
	align-items: flex-start;
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 2% 0;
}
.row--flush-top { padding-top: 0 !important; }
.row--flush-bottom { padding-bottom: 0 !important; }
.col { position: relative; flex: none; margin-right: 5.5%; }
.col:last-child { margin-right: 0; }
.col-1-1 { width: 100%; }
.col-1-2 { width: 47.25%; }
.col-1-3 { width: 29.6667%; }
.col-1-4 { width: 20.875%; }
.col-2-5 { width: 36.7%; }
.col-3-5 { width: 57.8%; }
.col-1-3 > .module:not(:last-child) { margin-bottom: 9.27%; }

@media (min-width: 1350px) {
	.section { padding: 54px 0; }
	.row { padding: 27px 0; }
}

/* Knoppen ----------------------------------------------------------------- */
.mas-button {
	position: relative;
	display: inline-block;
	padding: .3em 1em;
	border: 2px solid var(--mas-orange);
	border-radius: 3px;
	background: var(--mas-orange);
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7em;
	transition: all .3s ease;
}
.mas-button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.1em;
	width: .42em;
	height: .42em;
	margin-top: -.21em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0;
	transition: all .3s ease;
}
.mas-button:hover { padding: .3em 2em .3em .7em; color: #fff; }
.mas-button:hover::after { opacity: 1; right: .9em; }
.button-wrap { text-align: center; }

/* Header ------------------------------------------------------------------ */
.header-top {
	background-color: #222;
	background-position: top center;
	background-size: cover;
}
.header-top .row { padding: 30px 0 50px; }
.header-logo img { display: block; }
.header-contact {
	position: relative;
	padding: 0 0 0 50px;
	color: #fff;
	line-height: 140%;
}
.header-contact a { display: block; color: #c2c2c2; white-space: nowrap; }
.header-contact .mas-icon {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--mas-orange);
	border-radius: 50%;
	color: var(--mas-orange);
}
.header-contact .mas-icon svg { width: 20px; height: 20px; }

.mas-icon { display: inline-block; }
.mas-icon svg { display: block; width: 1em; height: 1em; }
.text .mas-icon { width: 1em; margin-right: .35em; vertical-align: -.1em; }
.content .text .mas-icon { color: var(--mas-orange); }

/* Navigatie */
.nav-container { position: relative; z-index: 999; height: 60px; margin-top: -25px; } /* vaste hoogte: een 2e menuregel duwt de pagina niet omlaag */
.nav-container .row { padding: 0; display: block; }
.main-nav {
	position: relative;
	padding: 15px;
	border-radius: 3px;
	background: var(--mas-orange);
}
.mas-menu { display: flex; flex-wrap: wrap; margin: 0 -11px; padding: 0; list-style: none; }
.mas-menu li { position: relative; margin: 8px 0 0; padding: 0 11px; line-height: 14px; }
.mas-menu a { display: block; padding-bottom: 8px; color: #fff; font-size: 14px; }
.mas-menu a:hover, .mas-menu a:focus { color: #000; }
.mas-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10;
	display: none; width: 240px; margin: 0; padding: 20px 0;
	list-style: none; border-radius: 3px; background: var(--mas-grey);
	box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}
.mas-menu li:hover > .sub-menu, .mas-menu li:focus-within > .sub-menu { display: block; }
.mas-menu .sub-menu li { margin: 0; padding: 0 20px; }
.mas-menu .sub-menu a { padding: 6px 0; line-height: 1.5; }
.menu-toggle { display: none; }
@media (min-width: 981px) and (max-width: 1150px) {
	.mas-menu { margin: 0 -8px; }
	.mas-menu li { padding: 0 8px; }
	.header-logo img { max-width: 92%; }
}

/* Home: hero -------------------------------------------------------------- */
.home .site-main { margin-top: -50px; }
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	padding: 100px 0 50px;
	background-color: #1d3d8a;
	background-position: center;
	background-size: cover;
	color: #fff;
	font-family: "Roboto", sans-serif;
}
.hero__inner { width: 80%; margin: 0 auto; }
.hero__content { padding: 10px 10px 10px 0; }
.hero__title {
	padding-bottom: 10px;
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 52px;
	font-weight: 700;
	line-height: 1em;
	text-shadow: 0 0 5px #000;
}
.hero__subtitle {
	display: block;
	padding: 20px 0;
	font-family: "Caveat", cursive;
	font-size: 38px;
	font-weight: 400;
	letter-spacing: -1px;
}
.hero .mas-button { margin-top: 20px; font-family: "Roboto", sans-serif; }

/* Home: intro ------------------------------------------------------------- */
.home-intro h2 {
	padding-bottom: 30px;
	font-family: "Roboto", sans-serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 32px;
}
.home-intro h3 {
	padding: 20px 0 30px;
	font-family: "Caveat", cursive;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -1px;
}
.home-intro p { padding-bottom: 0; font-size: 16px; }

/* Lijsten met vinkjes (home + vervolgpagina's) */
.text ul { margin: 0; padding: 0 0 1em 1em; line-height: 26px; list-style: disc; }
.home-intro .text ul,
.content .text ul { font-size: 16px; list-style: none; }
.checklist--2col,
.lists-2col .text ul { columns: 2; }
.lists-2col .text ul { margin-top: 20px; }
.home-intro .text li,
.content .text li { break-inside: avoid; }
.home-intro .text li,
.content .text li { position: relative; padding-left: 1em; }
.home-intro .text li::before,
.content .text li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -1em;
	width: 1em;
	height: 1em;
	background-color: var(--mas-orange);
	-webkit-mask: var(--mas-check) no-repeat center / contain;
	mask: var(--mas-check) no-repeat center / contain;
}
.mas-no-icons .text li::before { background: none; }
.mas-no-icons .mas-icon { visibility: hidden; }

/* Home: diensten-kaarten -------------------------------------------------- */
.home-services h2.label { padding-bottom: 5px; color: var(--mas-orange); font-size: 14px; text-transform: uppercase; }
.home-services h3 { font-family: "Roboto", sans-serif; font-size: 28px; font-weight: 700; }
.home-services h4 { font-family: "Roboto", sans-serif; font-size: 18px; font-weight: 700; }
.text--padded { padding: 0 20px 20px; }
.row--cards { align-items: stretch; }
.card { border-radius: 10px; background: #fff; }
.card__image {
	height: 200px;
	border-radius: 10px 10px 0 0;
	background-position: center;
	background-size: cover;
}
.home-services .mas-button { margin-bottom: 20px; }

/* Vervolgpagina's --------------------------------------------------------- */
.content h2.label,
.content .text h2 { color: var(--mas-orange); font-size: 14px; text-transform: uppercase; }
.content .text h3 { font-family: "Roboto", sans-serif; font-size: 26px; font-weight: 700; text-transform: uppercase; }
.content .text h4 { margin-top: 20px; font-family: "Roboto", sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.content .text p { font-size: 16px; }
.content .text i { color: var(--mas-orange); }
.content .text a:link,
.content .text a:visited { color: var(--mas-text); text-decoration: underline; }
.content .text a:hover { text-decoration: none; }
.content .text h1.entry-title { padding-bottom: 20px; }
.content .text ol { font-size: 16px; padding-left: 1.2em; }

/* Galerij-slider */
.mas-slider { position: relative; overflow: hidden; }
.mas-slider__track { position: relative; }
.mas-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}
.mas-slider__slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 1; }
.mas-slider__slide img { display: block; width: 100%; height: auto; }
.mas-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: all .3s ease;
}
.mas-slider__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
	transform: translate(-70%, -50%) rotate(45deg);
}
.mas-slider__arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.mas-slider__arrow--prev { left: -22px; }
.mas-slider__arrow--next { right: -22px; }
.mas-slider:hover .mas-slider__arrow,
.mas-slider__arrow:focus-visible { opacity: 1; }
.mas-slider:hover .mas-slider__arrow--prev { left: 22px; }
.mas-slider:hover .mas-slider__arrow--next { right: 22px; }
.mas-slider__arrow:hover { background-color: var(--mas-orange); }
.mas-slider__dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	z-index: 3;
	width: 100%;
	text-align: center;
	line-height: 0;
}
.mas-slider__dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 5px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
}
.mas-slider__dot.is-active { background: #fff; }

.mas-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.mas-video video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--mas-grey); color: var(--mas-light); }
.site-footer h3 { color: var(--mas-light); font-size: 20px; }
.site-footer a:link,
.site-footer a:visited { color: var(--mas-light); text-decoration: underline; }
.site-footer a:hover { text-decoration: none; }
.site-footer .module img { display: block; }
.footer-certs img { width: 90%; max-width: 288px; }
.site-footer .mas-icon { color: inherit; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
	.section { padding: 50px 0; }
	.row { display: block; padding: 30px 0; }
	.col { width: 100% !important; margin-right: 0; margin-bottom: 30px; }
	.col:last-child { margin-bottom: 0; }
	.row--cards .col { margin-bottom: 30px; }
	.col-1-3 > .module:not(:last-child) { margin-bottom: 30px; }
	.row--cards .card > .module:not(:last-child) { margin-bottom: 9.27%; }

	.header-top .row { padding: 30px 0 50px; }
	.header-logo img { margin: 0 auto; }

	/* Mobiel menu */
	.main-nav { padding: 15px; }
	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 8px;
		width: 100%;
		height: 32px;
		padding: 0;
		border: 0;
		background: none;
		color: #fff;
		font: inherit;
		font-size: 14px;
		cursor: pointer;
	}
	.menu-toggle__label { line-height: 1; margin-top: 10px; }
	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 24px;
		height: 3px;
		border-radius: 1px;
		background: #fff;
	}
	.menu-toggle__bars { position: relative; margin-right: 4px; }
	.menu-toggle__bars::before,
	.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -8px; }
	.menu-toggle__bars::after { top: 8px; }
	.main-nav .mas-menu {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		margin: 0;
		padding: 5%;
		border-radius: 3px;
		background: var(--mas-grey);
		box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	}
	.main-nav.is-open .mas-menu { display: block; }
	.main-nav .mas-menu li { margin: 0; padding: 0; line-height: 1.7; }
	.main-nav .mas-menu a {
		padding: 10px 5%;
		border-bottom: 1px solid rgba(0, 0, 0, .03);
		color: #fff;
	}
	.main-nav .mas-menu a:hover { color: var(--mas-orange); }
	.main-nav .mas-menu .sub-menu {
		position: static; display: block; width: auto; padding: 0 0 0 20px;
		background: none; box-shadow: none;
	}
}
@media (max-width: 600px) {
	.lists-2col .text ul { columns: 1; }
}
@media (min-width: 768px) and (max-width: 980px) {
	.header-top .row { display: flex; flex-wrap: wrap; }
	.header-top .col-1-2 { width: 100% !important; }
	.header-top .col-1-4 { width: 47.25% !important; margin-right: 5.5%; margin-bottom: 0; }
	.header-top .col-1-4:last-child { margin-right: 0; }
}
