/*
Theme Name: Van der Zouw
Description: WordPress-thema naar het ontwerp van vanderzouw.nl (voorheen Joomla-template fvdz02). Blauwe header met logo, vaste menubalk en zoekveld, diavoorstelling op de voorpagina en een accommodatiemenu in de zijbalk.
Version: 1.0.0
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
Text Domain: vanderzouw
*/

/* ---------- Basis ---------- */
:root {
	--vdz-text: #555555;
	--vdz-link: #2da0ce;
	--vdz-blue: #36aede;
	--vdz-blue-dark: #2788af;
	--vdz-blue-deep: #0a75a0;
	--vdz-header: rgba(26, 132, 224, 0.94);
	--vdz-grey: #f5f5f5;
	--vdz-grey-hover: #ededed;
	--vdz-red: #d9534f;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #ffffff;
	color: var(--vdz-text);
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.43;
}

a { color: var(--vdz-link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; margin: 20px 0 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p { margin: 0 0 10px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: #21759b;
	display: block; font-size: 14px; font-weight: 700; height: auto; left: 5px;
	padding: 15px 23px; top: 5px; width: auto; z-index: 100000;
}

/* Container: 740 / 960 / 1160 px, zoals het origineel */
.vdz-container {
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
	width: 100%;
}
@media (min-width: 768px)  { .vdz-container { max-width: 740px; } }
@media (min-width: 992px)  { .vdz-container { max-width: 960px; } }
@media (min-width: 1200px) { .vdz-container { max-width: 1160px; } }
@media (max-width: 767px)  { .vdz-container { padding: 0 10px; } }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	height: 150px;
	background-color: var(--vdz-header);
	box-shadow: inset 0 0 30px 5px #9ee0fa, 0 0 8px 0 #58b5da, 0 0 0 1px #75d1f5;
}
.site-header .vdz-container { height: 100%; }

.site-branding {
	position: absolute;
	left: 20px;
	top: 26px;
	width: 754px;
	max-width: calc(100% - 40px);
}
.site-branding img,
.site-branding .custom-logo {
	display: block;
	width: 100%;
	height: auto;
	max-height: 115px;
	object-fit: contain;
	object-position: left center;
}
.site-title {
	margin: 0;
	font-family: "Times New Roman", Times, serif;
	font-style: italic;
	font-size: 48px;
	line-height: 1.2;
	color: #111;
}
.site-title a { color: inherit; text-decoration: none; }

@media (max-width: 991px) {
	.site-branding { top: 42px; }
}
@media (max-width: 767px) {
	.site-header { height: 123px; }
	.site-branding { top: 58px; left: 10px; width: 320px; max-width: calc(100% - 20px); }
	.site-branding img, .site-branding .custom-logo { max-height: 49px; }
	.site-title { font-size: 28px; }
}

/* ---------- Vaste bovenbalk: zoeken (links) + menu (rechts) ---------- */
.vdz-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	pointer-events: none; /* alleen de onderdelen zelf zijn klikbaar */
}
.admin-bar .vdz-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .vdz-topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vdz-topbar { position: absolute; } }

.vdz-topbar > * { pointer-events: auto; }

/* Zoekveld */
.vdz-search {
	position: absolute;
	top: 6px;
	left: 12%;
}
.vdz-search form { position: relative; display: inline-block; margin: 0; }
.vdz-search input[type="search"] {
	width: 170px;
	height: 30px;
	padding: 5px 38px 5px 10px;
	font: inherit;
	font-size: 12px;
	color: var(--vdz-text);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid #ffffff;
	border-radius: 10px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.vdz-search input[type="search"]::placeholder { color: var(--vdz-red); opacity: 1; }
.vdz-search input[type="search"]:focus { border-color: var(--vdz-link); background: #fff; }
.vdz-search button {
	position: absolute;
	top: 0;
	right: 0;
	width: 34px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 0 10px 10px 0;
	background: transparent;
	color: var(--vdz-red);
	cursor: pointer;
}
.vdz-search button:hover { background: #777777; color: #fff; }
.vdz-search button svg { width: 16px; height: 16px; vertical-align: middle; }

@media (max-width: 991px) { .vdz-search { left: 7%; top: 7px; } }

/* Hoofdmenu */
.main-navigation {
	position: absolute;
	top: 0;
	right: 10.235%;
}
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > .menu-wrap > ul,
.main-navigation .menu { display: flex; flex-wrap: wrap; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 10px 15px;
	line-height: 21px;
	white-space: nowrap;
	color: var(--vdz-text);
	background-color: rgba(54, 174, 222, 0.75);
	text-decoration: none;
}
.main-navigation li:hover > a,
.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--vdz-link);
	background-color: var(--vdz-grey-hover);
	text-decoration: none;
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_ancestor > a {
	color: var(--vdz-link);
	background-color: var(--vdz-grey);
}

/* Submenu's */
.main-navigation .sub-menu,
.main-navigation .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	z-index: 10;
	flex-direction: column;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > .children,
.main-navigation li:focus-within > .children { display: block; }
.main-navigation .sub-menu a,
.main-navigation .children a { background-color: rgba(54, 174, 222, 0.9); }
.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }

.menu-toggle { display: none; }

@media (max-width: 767px) {
	.main-navigation { left: 0; right: 0; }
	.menu-toggle {
		display: block;
		width: 100%;
		height: 44px;
		padding: 0 12px 0 0;
		border: 0;
		text-align: right;
		font: inherit;
		color: #777777;
		background-color: #bce1f0;
		cursor: pointer;
	}
	.menu-toggle .bars { display: inline-block; vertical-align: middle; margin-right: 6px; }
	.menu-toggle .bars span { display: block; width: 18px; height: 2px; margin: 3px 0; background: #777; }
	.main-navigation .menu-wrap { display: none; }
	.main-navigation.toggled .menu-wrap { display: block; }
	.main-navigation > .menu-wrap > ul,
	.main-navigation .menu { display: block; }
	.main-navigation a { text-align: center; background-color: #36aede; border-bottom: 1px solid #2788af; }
	.main-navigation .menu-wrap { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18); }
	.main-navigation .sub-menu,
	.main-navigation .children { display: block; position: static; min-width: 0; }
	.vdz-search { left: 10px; top: 7px; z-index: 2; }
	.vdz-search input[type="search"] { width: 150px; }
}

/* ---------- Diavoorstelling (voorpagina) ---------- */
.vdz-slider {
	position: relative;
	width: 100%;
	height: 521px;
	overflow: hidden;
	background-color: #eaf6fa;
}
.vdz-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 80px;
	background-color: #eaf6fa;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}
.vdz-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease, visibility 0s;
}
.vdz-slide-text {
	max-width: 1000px;
	margin: 0;
	text-align: center;
	font-size: 60px;
	line-height: 60px;
	font-weight: 200;
	transform: translateX(40px);
	opacity: 0;
	transition: transform 1s ease, opacity 1s ease;
}
.vdz-slide:nth-child(even) .vdz-slide-text { transform: translateX(-40px); }
.vdz-slide.is-active .vdz-slide-text { transform: none; opacity: 1; }
.vdz-slide-text p { margin: 0; }

.vdz-slider-arrow {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: 70px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font-size: 48px;
	line-height: 1;
	cursor: pointer;
}
.vdz-slider-arrow:hover,
.vdz-slider-arrow:focus { color: #ffffff; }
.vdz-slider-arrow.prev { left: 0; }
.vdz-slider-arrow.next { right: 0; }
.vdz-slider-arrow svg { width: 26px; height: 48px; }

.vdz-slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vdz-slider-dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 1px solid #ffffff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.vdz-slider-dots button[aria-current="true"] { background: var(--vdz-link); border-color: var(--vdz-link); }

@media (max-width: 1199px) { .vdz-slide-text { text-align: center; } }
@media (max-width: 991px) {
	.vdz-slider { height: 300px; }
	.vdz-slide-text { font-size: 48px; line-height: 48px; }
}
@media (max-width: 767px) {
	.vdz-slider { height: 250px; }
	.vdz-slide { padding: 0 50px; }
	.vdz-slide-text { font-size: 36px; line-height: 36px; }
	.vdz-slider-arrow { width: 44px; }
	.vdz-slider.hide-on-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vdz-slide, .vdz-slide-text { transition: none; transform: none; }
}

/* ---------- Inhoud ---------- */
.site-content { padding: 40px 0 30px; }

.content-area.has-sidebar {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}
.content-area.has-sidebar .widget-area { flex: 0 0 25%; max-width: 25%; }
.content-area.has-sidebar .site-main { flex: 1 1 auto; min-width: 0; }

@media (max-width: 991px) {
	.content-area.has-sidebar .widget-area { flex-basis: 33.333%; max-width: 33.333%; }
}
@media (max-width: 767px) {
	.content-area.has-sidebar { display: block; }
	.content-area.has-sidebar .widget-area { max-width: none; margin-bottom: 30px; }
}

.entry { margin-bottom: 20px; }
.entry + .entry { margin-top: 40px; }

/* Paginatitel voorpagina (zoals "Van der Zouw beheer") */
.entry-title {
	margin: 0 0 20px;
	font-size: 36px;
	line-height: 36px;
	font-weight: 500;
	color: var(--vdz-text);
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--vdz-red); text-decoration: none; }

/* Paginatitel op binnenpagina's (blauw, dun) */
.has-sidebar .entry-title,
.page-template-template-volledig .entry-title,
.single .entry-title,
.search .page-title,
.archive .page-title,
.error404 .page-title {
	font-size: 48px;
	line-height: 48px;
	font-weight: 200;
	color: var(--vdz-link);
}
.page-title { margin: 0 0 20px; }

.entry-meta { margin: -10px 0 15px; font-size: 12px; color: #999; }

.entry-content::after { content: ""; display: table; clear: both; }

/* Tabellen in de inhoud: grijze cellen zoals de accommodatie-overzichten */
.entry-content table {
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 2px;
	margin-bottom: 20px;
}
.entry-content td,
.entry-content th {
	padding: 5px;
	vertical-align: middle;
	background-color: var(--vdz-grey);
}
/* Oude Joomla-tabellen hebben vaste breedtes (bijv. 934px): laat ze meeschalen */
.entry-content table[style*="width"],
.entry-content table[width] { width: 100% !important; height: auto !important; }
.entry-content table[style*="float"] { float: none !important; }
.entry-content td img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
	.entry-content table, .entry-content tbody, .entry-content tr, .entry-content td { display: block; width: 100% !important; }
	.entry-content td [style*="padding-left"] { padding-left: 0 !important; }
}

.entry-content blockquote {
	margin: 0 0 20px;
	padding: 10px 20px;
	border-left: 5px solid #eeeeee;
	font-size: 17.5px;
}

.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 12px; color: #777; text-align: center; }

/* Accommodatiekaart (blok-patroon, vervangt de oude tabel) */
.vdz-accommodatie {
	margin: 0 0 4px;
	padding: 5px;
	background-color: var(--vdz-grey);
}
/* Klassieke thema's krijgen een extra binnen-div (.wp-block-group__inner-container) */
.vdz-accommodatie:not(:has(> .wp-block-group__inner-container)),
.vdz-accommodatie > .wp-block-group__inner-container {
	display: flex;
	gap: 40px;
	align-items: center;
}
.vdz-accommodatie figure.wp-block-image { flex: 0 0 auto; margin: 0; max-width: 40%; }
.vdz-accommodatie figure.wp-block-image img { display: block; width: 300px; max-width: 100%; height: auto; }
.vdz-accommodatie .wp-block-group { flex: 1 1 auto; min-width: 0; }
.vdz-accommodatie .wp-block-group > .wp-block-group__inner-container > p:last-child,
.vdz-accommodatie .wp-block-group > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.vdz-accommodatie:not(:has(> .wp-block-group__inner-container)),
	.vdz-accommodatie > .wp-block-group__inner-container { display: block; }
	.vdz-accommodatie figure.wp-block-image { max-width: none; margin-bottom: 10px; }
	.vdz-accommodatie figure.wp-block-image img { width: 100%; }
	.vdz-accommodatie .wp-block-group { padding: 0 10px 10px; }
}

/* Knoppen */
.wp-block-button__link,
.button,
button.vdz-button,
input[type="submit"] {
	display: inline-block;
	padding: 8px 16px;
	border: 0;
	border-radius: 0;
	background-color: var(--vdz-blue);
	color: #ffffff;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover { background-color: var(--vdz-blue-dark); color: #fff; text-decoration: none; }

/* Formulieren (o.a. contact) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], textarea, select {
	width: 100%;
	max-width: 500px;
	padding: 6px 10px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font: inherit;
	color: var(--vdz-text);
}
textarea { min-height: 120px; }

/* ---------- Zijbalk: "Accomodaties"-menu ---------- */
.widget { margin-bottom: 20px; }
.widget-title {
	margin: 0;
	padding: 10px;
	background-color: var(--vdz-blue-deep);
	color: #ffffff;
	font-size: 17.5px;
	line-height: 25px;
	font-weight: 500;
}
.widget-area .widget h2.wp-block-heading {
	margin: 0 0 10px;
	padding: 10px;
	background-color: var(--vdz-blue-deep);
	color: #ffffff;
	font-size: 17.5px;
	line-height: 25px;
}
.widget-area .wp-block-search__label { display: none; }
.widget-area .wp-block-search__button { background: var(--vdz-blue); color: #fff; border: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget-area .wp-block-latest-posts li,
.widget-area .wp-block-latest-comments li,
.widget-area .wp-block-archives li,
.widget-area .wp-block-categories li { padding: 4px 0; }
.widget_nav_menu li a,
.widget_pages li a,
.widget_categories li a,
.widget_recent_entries li a,
.widget_archive li a,
.vdz-sidemenu li a {
	display: block;
	padding: 12px 20px;
	border-bottom: 1px solid var(--vdz-blue-dark);
	background-color: var(--vdz-blue);
	color: #ffffff;
	font-weight: bold;
	text-align: left;
	text-decoration: none;
	transition: all 300ms ease-in-out;
}
.widget_nav_menu li a:hover,
.widget_pages li a:hover,
.widget_categories li a:hover,
.widget_recent_entries li a:hover,
.widget_archive li a:hover,
.vdz-sidemenu li a:hover,
.widget_nav_menu .current-menu-item > a,
.widget_pages .current_page_item > a,
.vdz-sidemenu .current-menu-item > a {
	background-color: var(--vdz-blue-dark);
	color: #ffffff;
	text-decoration: none;
}
.widget .sub-menu a,
.widget .children a { padding-left: 35px; font-weight: normal; }
.widget:not(.widget_nav_menu):not(.widget_pages):not(.widget_categories):not(.widget_recent_entries):not(.widget_archive) .widget-title { margin-bottom: 10px; }

/* ---------- Paginering ---------- */
.navigation.pagination,
.post-navigation { margin: 30px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.page-numbers {
	display: inline-block;
	padding: 6px 12px;
	background: var(--vdz-grey);
	color: var(--vdz-link);
}
.page-numbers.current, .page-numbers:hover { background: var(--vdz-blue); color: #fff; text-decoration: none; }
.post-navigation .nav-links { justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 30px 0;
	border-top: 1px solid #eeeeee;
	text-align: center;
	color: var(--vdz-text);
}
.site-footer p { margin: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 20px; text-align: left; }

/* Terug naar boven */
.vdz-backtotop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	background-color: rgba(14, 49, 63, 0.25);
	color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms, visibility 0s linear 250ms, background-color 250ms;
}
.vdz-backtotop.is-visible { opacity: 1; visibility: visible; transition: opacity 250ms, background-color 250ms; }
.vdz-backtotop:hover { background-color: rgba(24, 85, 109, 0.5); color: rgba(255, 255, 255, 0.75); }
.vdz-backtotop svg { width: 22px; height: 22px; }
