/*
Theme Name: Vevida Visitekaartje
Theme URI: https://vevida.com
Description: Maakt een one-page website, compleet instelbaar via de Customizer.
Author: Vevida Webteam
Version: 1.2
*/

/* Algemene stijlen */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Helvetica, sans-serif;
	text-align: center;
	color: #232323;
	background-color: #EEE;
}

h1 {
	margin: 0;
	font-size: 24px;
	font-weight: normal;
}

h2 {
	margin: 0 0 .5em 0;
	font-size: 16px;
	font-weight: normal;
}

a {
	color: white;
}

a:hover,
a:focus,
a:active {
	color: #9B9B9B;
}

svg {
	fill: currentColor;
}

.flexbox {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
}

.verborgen {
	display: none;
}

/* Header */

.header {
	position: relative;
	overflow: hidden;
}

.wp-custom-header img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: auto;
	height: 100%;
	transform: translate(-50%, -50%);
	z-index: -1;
}

/* IE11 ondersteunt geen object-fit en geen @supports, bovenstaande regel
 * bootst dat gedrag na. Hieronder de stijl voor de browsers die het wel
 * ondersteunen. */
@supports (object-fit: cover) {
	.wp-custom-header img {
		left: 0;
		top: 0;
		width: 100%;
		transform: none;
		object-fit: cover;
	}

	.header.contain .wp-custom-header img {
		object-fit: contain;
	}
}

.overlay {
	margin: 0 48px;
	padding: 15px;
	background-color: rgba(255, 255, 255, 0.6);
}

.overlay h1 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 150px;
}

img.custom-logo {
	display: block;
	height: auto;
	width: auto;
	max-width: 100%;
	max-height: 80px;
}

.alleen-logo img.custom-logo {
	max-height: 120px;
}

.wp-custom-logo .titel {
	margin-top: 15px;
}

/* Inhoud */

.main {
	background-color: white;
	padding: 15px 0;
}

.wrapper {
	margin: 0 auto;
	max-width: calc(100vw - 40px);
}

.slogan,
.contactpersoon,
.intro {
	margin: 10px 0;
}

.slogan {
	font-size: 17px;
	font-weight: bold;
}

.contactpersoon {
	font-size: 22px;
}

.tekstafbeelding {
	margin: 20px 0;
}

.tekstafbeelding img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.intro {
	font-size: 13px;
	line-height: 1.67;
	/* Voorkom dat het potloodje in het midden komt te staan */
	text-align: left;
}

.intro p {
	margin: 10px 0;
	text-align: center;
}

/* Contactgegevens */

.contact-form {
	padding: 20px 0;
	flex: 1 0 auto;
	color: white;
	background-color: #232323;
}

.contact,
.locatie,
.bedrijfsinfo {
	font-size: 12px;
	line-height: 1.6;
}

.locatie,
.bedrijfsinfo {
	margin-top: 20px;
}

.contact svg,
.bedrijfsinfo svg {
	margin-right: 2px;
	display: inline-block;
	width: 12px;
	height: 12px;
	vertical-align: -1px;
}

.bedrijfsinfo svg {
	width: 24px;
}

.contact a {
	display: block;
	white-space: nowrap;
	text-decoration: none;
}

.contact a span {
	text-decoration: underline;
	text-decoration-color: #CCC;
}

.contact a:hover span {
	text-decoration-color: currentColor;
}

.contact div + div,
.locatie div:not(.verborgen) ~ div,
.bedrijfsinfo div:not(.verborgen) ~ div {
	padding-top: 5px;
}

.plaats {
	white-space: nowrap;
}

.social-media {
	margin-top: 16px;
}

.social-media a {
	display: inline-block;
	margin: 0 2px;
}

.social-media svg {
	height: 16px;
	vertical-align: bottom;
}

/* footer */

footer {
	padding: 10px 0;
	font-size: 11px;
	background-color: #D8D8D8;
}

footer a {
	color: #232323;
}

footer a:hover,
footer a:focus,
footer a:active {
	color: #006799;
}

/* Stijlen voor bewerkmodus */

/* Houder voor bewerkpotlood, zodat niet voor elk element een potlood
 * getoond hoeft te worden. De inhoud van dit element wordt vervangen
 * en moet niet zichtbaar zijn. */
.potlood {
	height: 0;
	width: 0;
	overflow: hidden;
	display: inline-block;
	vertical-align: top;
}

body:not(.logged-in) .potlood {
	display: none;
}

.customize-partial-edit-shortcut {
	margin-left: -5px;
}

.customize-partial-edit-shortcut button svg {
	vertical-align: baseline;
}

/* Breakpoints */

@media (min-width: 720px) {
	.header {
		height: 240px;
	}

	.header.met-afbeelding {
		height: 400px;
	}

	/* Stijl voor IE11 */
	.header.cover .wp-custom-header img {
		width: 100%;
		height: auto;
	}

	@supports (object-fit: cover) {
		.header.cover .wp-custom-header img {
			height: 100%;
		}
	}

	img.custom-logo {
		max-width: 400px;
		max-height: 100px;
	}

	.alleen-logo img.custom-logo {
		max-height: 140px;
	}

	h1 {
		font-size: 30px;
	}

	.kolommen {
		display: flex;
		justify-content: space-evenly;
	}

	.kolommen > div {
		flex-basis: 40%;
	}

	.intro {
		font-size: 15px;
	}

	.locatie,
	.bedrijfsinfo {
		margin: 0;
	}

	.overlay {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		margin: 0;
	}

	.overlay h1 {
		min-height: 100px;
	}

	.wrapper {
		max-width: 624px;
	}

	footer {
		font-size: 12px;
	}
}
