/*
Theme Name: Bokkingstraat
Theme URI: https://bokkingstraat.nl/
Author: KBK Bouwgroep
Description: Lichtgewicht thema voor nieuwbouwproject Bokkingstraat (Volendam). Zelfde uitstraling als de Elementor-versie, volledig gebouwd met de blokeditor. Opmaak via CSS-klassen: bs-hero, bs-hero--beige, bs-intro, bs-interest, bs-feature, bs-rule, bs-brochure, bs-title, bs-tiles, bs-divider, bs-beige, bs-shape-top-beige, bs-slideshow, bs-carousel.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bokkingstraat
*/

/* ---------- Lettertypen (lokaal) ---------- */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/raleway-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/raleway-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/raleway-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/raleway-latin-700-normal.woff2") format("woff2"); }

/* ---------- Kleuren & basis ---------- */
:root {
	--bs-orange: #EE7203;
	--bs-orange-dark: #EA5810;
	--bs-yellow: #FFD500;
	--bs-text: #4E4A40;
	--bs-taupe: #6F645F;
	--bs-grey: #9C938E;
	--bs-line: #DCD2C8;
	--bs-beige: #EBE6E1;
	--bs-brown: #493C36;
	--bs-container: 960px;
	--bs-hero-container: 868px;
	--bs-pyramid: "M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9";
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--bs-text);
	font-family: "Raleway", Arial, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border-style: none; vertical-align: middle; }
a { color: var(--bs-orange); text-decoration: none; }
a:hover { color: var(--bs-taupe); }
b, strong { font-weight: 700; }

h1, h2, h3, h4, h5, h6 { margin: .5rem 0 1rem; font-family: "Raleway", Arial, sans-serif; color: var(--bs-orange); }
h1 { font-size: 50px; font-weight: 500; line-height: 1.1; color: var(--bs-orange-dark); }
h2 { font-size: 44px; font-weight: 600; line-height: 50px; }
h3 { font-size: 26px; font-weight: 500; line-height: 28px; }
h4 { font-size: 36px; font-weight: 500; line-height: 38px; }
h5 { font-size: 40px; font-weight: 600; line-height: 42px; }
h6 { font-size: 16px; font-weight: 700; line-height: 19px; }
p { margin: 0 0 .9rem; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; padding: 10px 16px; background: #fff; z-index: 100000; }

/* ---------- Knoppen ---------- */
.wp-block-button__link,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	background-color: var(--bs-orange);
	color: #fff;
	font-family: "Raleway", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .3s;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background-color: var(--bs-taupe); color: #fff; }

/* ---------- Pagina-opbouw ---------- */
.site-main.is-default {
	width: var(--bs-container);
	max-width: 100%;
	margin: 0 auto;
	padding: 2rem 10px 3rem;
}
.site-main.is-full-width > .entry-content > * { margin-top: 0; margin-bottom: 0; }

.bs-section { position: relative; width: 100%; max-width: none; isolation: isolate; }
.bs-section > .wp-block-group__inner-container,
.bs-section.is-layout-constrained > *,
.bs-section.is-layout-flow > * {
	max-width: var(--bs-container);
	margin-left: auto !important;
	margin-right: auto !important;
}

.entry-content .wp-block-columns { gap: 0; margin-bottom: 0; }
.entry-content .wp-block-column { padding: 10px; min-width: 0; }
.entry-content .wp-block-image { margin: 0; }
.entry-content .wp-block-buttons { margin: 0; }
.entry-content .wp-block-column > :first-child:not(h1, h2, h3, h4, h5, h6) { margin-top: 0; }
.entry-content .wp-block-column > * + :is(.wp-block-image, .wp-block-gallery) { margin-top: 19px; }
.entry-content .wp-block-column > * + .wp-block-buttons { margin-top: 33px; }

/* ---------- Piramide-vormen ---------- */
.bs-hero::before,
.bs-hero::after,
.bs-shape-top-beige::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 3;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.bs-hero::before {
	top: -1px;
	height: 49px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9'/%3E%3C/svg%3E");
}
.bs-hero::after {
	bottom: -1px;
	height: 43px;
	transform: scaleY(-1);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9'/%3E%3C/svg%3E");
}
.bs-hero--beige::before { height: 46px; }
.bs-hero--beige::after {
	height: 60px;
	transform: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23EBE6E1' d='M761.9,40.6L643.1,24L333.9,93.8L0.1,1H0v99h1000V1'/%3E%3C/svg%3E");
}
.bs-shape-top-beige { padding-top: 67px; }
.bs-shape-top-beige::before {
	top: -1px;
	height: 67px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23EBE6E1' d='M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9'/%3E%3C/svg%3E");
}

/* ---------- Hero (homepage) ---------- */
.bs-hero.wp-block-cover {
	min-height: 400px;
	padding: 0;
	overflow: hidden;
}
.bs-hero.wp-block-cover .wp-block-cover__inner-container {
	width: var(--bs-hero-container) !important;
	max-width: 100%;
	z-index: 2;
}
.bs-hero .wp-block-columns { align-items: center !important; }
.bs-hero h2 {
	color: #fff;
	text-shadow: 0 0 11px rgba(0, 0, 0, .72);
	margin: .5rem 0 1rem;
}
.bs-hero h2 em { font-style: italic; }
.bs-hero .wp-block-column:first-child { padding: 10px 20px; }
.bs-hero .wp-block-column:last-child { padding: 2px 0 0; }
.bs-hero .wp-block-image img { width: 100%; }

/* Hero met wisselende foto's (subpagina's) */
.bs-hero--beige { min-height: 400px; overflow: hidden; }
.bs-hero--beige > .wp-block-group__inner-container,
.bs-hero--beige .bs-slideshow { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; }

/* ---------- Slideshow ---------- */
.bs-slideshow.wp-block-gallery {
	display: block !important;
	position: relative;
	height: 400px;
	margin: 0;
	gap: 0 !important;
}
.bs-slideshow.wp-block-gallery > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	transition: opacity .5s ease;
}
.bs-slideshow.wp-block-gallery > .wp-block-image:first-child { opacity: 1; }
.bs-slideshow.is-ready > .wp-block-image.is-active { opacity: 1; }
.bs-slideshow.is-ready > .wp-block-image:first-child:not(.is-active) { opacity: 0; }
.bs-slideshow.wp-block-gallery > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

/* ---------- Carousel ---------- */
.bs-carousel.wp-block-gallery {
	display: block !important;
	position: relative;
	overflow: hidden;
	margin: 0;
	gap: 0 !important;
	aspect-ratio: 16 / 9;
}
.bs-carousel.bs-carousel--plan { aspect-ratio: 940 / 544; }
.bs-carousel.wp-block-gallery > .wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility .5s;
}
.bs-carousel.wp-block-gallery > .wp-block-image:first-child { opacity: 1; visibility: visible; }
.bs-carousel.is-ready > .wp-block-image:first-child:not(.is-active) { opacity: 0; visibility: hidden; }
.bs-carousel.is-ready > .wp-block-image.is-active { opacity: 1; visibility: visible; }
.bs-carousel.wp-block-gallery > .wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.bs-carousel--plan.wp-block-gallery > .wp-block-image img { object-fit: contain; background: #fff; }
.bs-carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: var(--bs-orange);
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bs-carousel__nav:hover { background: #fff; color: var(--bs-taupe); }
.bs-carousel__nav svg { width: 20px; height: 20px; }
.bs-carousel__nav--prev { left: 12px; }
.bs-carousel__nav--next { right: 12px; }

/* ---------- Secties homepage ---------- */
.bs-intro { padding: 30px 0; text-align: center; margin-top: -1px !important; }
.bs-intro .bs-intro__inner { padding: 0 90px; }
.bs-intro h4 { margin: .5rem 0 1rem; }
.bs-interest.wp-block-columns { align-items: center !important; margin-top: 33px; }
.bs-interest .wp-block-column:first-child { flex-basis: 48.462% !important; text-align: right; }
.bs-interest .wp-block-column:last-child { flex-basis: 51.538% !important; text-align: left; }
.bs-interest p { margin: 0; }

.bs-divider.wp-block-spacer {
	height: 70px !important;
	margin: 0 !important;
	background: url("assets/img/divider.svg") center / cover no-repeat;
}

.bs-feature { padding: 30px 0 0; }
.bs-feature .wp-block-column:first-child { flex-basis: 58.958% !important; }
.bs-feature .wp-block-column:last-child { flex-basis: 41.042% !important; }

.bs-rule { padding: 25px 10px 15px; }
.bs-rule .wp-block-separator {
	border: 0;
	border-top: 1.5px solid var(--bs-line);
	margin: 0;
	opacity: 1;
	width: 100%;
	max-width: none;
}

.bs-brochure { padding: 10px 0 0; }
.bs-brochure .wp-block-columns { align-items: center !important; }
.bs-brochure .wp-block-column:first-child { flex-basis: 65% !important; }
.bs-brochure .wp-block-column:last-child { flex-basis: 35% !important; }

.bs-title { padding: 40px 0 15px; text-align: center; }
.bs-title h2 { margin: .5rem 0 1rem; }

.bs-tiles { padding: 0 0 69px; }
.bs-tiles .wp-block-column { padding: 0 20px; }
.bs-tiles .wp-block-image img { width: 100%; }

/* ---------- Subpagina's ---------- */
.bs-beige { background: var(--bs-beige); padding: 10px 0 30px; }
.bs-beige .wp-block-separator {
	border: 0;
	border-top: 1.5px solid var(--bs-taupe);
	margin: 0 10px 19px;
	opacity: 1;
	max-width: none;
}
.bs-beige h4 { margin: .5rem 10px 1rem; }
.bs-detail .wp-block-column:first-child { flex-basis: 63.8% !important; }
.bs-detail .wp-block-column:last-child { flex-basis: 36.2% !important; }
.bs-beige .wp-block-group__inner-container > .bs-carousel { margin: 19px 10px 0 !important; }
.bs-small { font-size: 14px; }
.bs-shape-top-beige.wp-block-group { background: #fff; min-height: 81px; }

/* ---------- Footer ---------- */
.site-footer .bs-partners {
	width: var(--bs-container);
	max-width: 100%;
	margin: 0 auto;
	padding: 10px 10px 10px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}
.bs-partners__text {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--bs-taupe);
}
.bs-partners__logo { display: block; width: 398px; max-width: 100%; height: auto; }
.bs-social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bs-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--bs-taupe);
	color: #fff;
	transition: transform .2s;
}
.bs-social a:hover { transform: scale(1.1); color: #fff; }
.bs-social svg { width: 19px; height: 19px; fill: currentColor; }
.bs-copyright {
	background: var(--bs-brown);
	color: var(--bs-grey);
	text-align: center;
	font-size: 11px;
	line-height: 42px;
	min-height: 42px;
	margin: 0;
	padding: 0 10px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	h2 { font-size: 38px; line-height: 44px; }
	h4 { font-size: 30px; line-height: 34px; }
	.bs-intro .bs-intro__inner { padding: 0 40px; }
	.bs-hero.wp-block-cover .wp-block-cover__inner-container { padding: 0 20px; }
	.bs-partners__logo { width: 25%; min-width: 220px; }
}

/* ---------- Mobiel ---------- */
@media (max-width: 781px) {
	h2 { font-size: 30px; line-height: 36px; }
	h3 { font-size: 22px; line-height: 26px; }
	h4 { font-size: 24px; line-height: 30px; }

	.entry-content .wp-block-columns { flex-wrap: wrap !important; }
	.entry-content .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }

	.bs-hero.wp-block-cover { min-height: 0; padding: 60px 0 50px; }
	.bs-hero .wp-block-column:last-child { padding: 0 10px; }
	.bs-hero .wp-block-image { max-width: 360px; margin: 0 auto; }
	.bs-hero--beige, .bs-hero--beige .bs-slideshow.wp-block-gallery { min-height: 260px; height: 260px; }

	.bs-intro .bs-intro__inner { padding: 0 15px; }
	.bs-interest .wp-block-column:first-child,
	.bs-interest .wp-block-column:last-child { text-align: center; }
	.bs-interest .wp-block-column:first-child { padding-bottom: 0; }
	.bs-interest .wp-block-buttons { justify-content: center; }

	.bs-feature, .bs-brochure, .bs-tiles { padding-left: 10px; padding-right: 10px; }
	.bs-tiles .wp-block-column { padding: 10px 40px; }
	.bs-divider.wp-block-spacer { height: 56px !important; }

	.site-footer .bs-partners { flex-direction: column; align-items: center; text-align: center; }
	.bs-partners__logo { width: 50%; min-width: 220px; margin: 0 auto; }
	.bs-copyright { line-height: 1.4; padding: 12px 10px; }
}
