/*
Theme Name:   Voetlief Bladel
Theme URI:    https://voetliefbladel.nl
Author:       Voetlief Bladel
Description:  Minimalistisch thema in de huisstijl van Voetlief Bladel: bordeaux met goud, het logo links boven, een menu rechts boven, de inhoud in een gouden kader en een footer met logo en widgets.
Version:      1.0.0
Requires at least: 6.2
Tested up to: 6.6
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:  voetlief
Tags:         one-column, custom-logo, custom-menu, footer-widgets, block-styles, wide-blocks, editor-style
*/

/* ---------- Lettertypes (lokaal, geen Google-verbinding nodig) ---------- */
@font-face {
	font-family: "Great Vibes";
	src: url("assets/fonts/great-vibes.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Cinzel";
	src: url("assets/fonts/cinzel.woff2") format("woff2");
	font-weight: 400 900;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("assets/fonts/cormorant-garamond.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}

/* ---------- Huisstijl ---------- */
:root {
	--vl-deep: #2e0305;
	--vl-bordeaux: #4a0a0e;
	--vl-wine: #5a0d12;
	--vl-gold: #eccb86;
	--vl-gold-light: #f9e6b0;
	--vl-gold-dark: #b98035;
	--vl-text: #f3e4c8;
	--vl-muted: #d8bf93;
	--vl-gold-gradient: linear-gradient(135deg, #f9e6b0 0%, #d9a957 30%, #f6dc9a 55%, #b98035 80%, #e9c47c 100%);
	--vl-line: rgba(236, 203, 134, .55);
	--vl-script: "Great Vibes", "Brush Script MT", cursive;
	--vl-caps: "Cinzel", "Trajan Pro", Georgia, serif;
	--vl-serif: "Cormorant Garamond", Garamond, Georgia, serif;
	--vl-content: 760px;
	--vl-wide: 1100px;
	--vl-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -14 32 34'%3E%3Cpath d='M0,-4 C-2,-12 -14,-12 -14,-2 C-14,7 -4,12 0,18 C4,12 14,7 14,-2 C14,-12 2,-12 0,-4Z' fill='none' stroke='%23eccb86' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

html { scroll-padding-top: 140px; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--vl-bordeaux) radial-gradient(ellipse at 50% 20%, var(--vl-wine) 0%, var(--vl-bordeaux) 55%, var(--vl-deep) 100%);
	color: var(--vl-text);
	font-family: var(--vl-serif);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.7;
	font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--vl-gold); text-decoration-color: var(--vl-line); text-underline-offset: .2em; }
a:hover { color: var(--vl-gold-light); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--vl-gold-light); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--vl-gold); color: var(--vl-deep); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 1rem; left: 1rem;
	padding: .6rem 1rem; background: var(--vl-gold); color: var(--vl-deep);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(46, 3, 5, .94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--vl-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	max-width: var(--vl-wide);
	margin: 0 auto;
	padding: .6rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-branding img, .site-branding .custom-logo { display: block; width: auto; max-height: 96px; }
.site-branding .site-title { font-family: var(--vl-script); font-size: 2.6rem; line-height: 1; text-decoration: none; }

/* Menu */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > div > ul,
.main-navigation > ul { display: flex; gap: .4rem 1.8rem; flex-wrap: wrap; justify-content: flex-end; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: .5rem 0;
	font-family: var(--vl-caps);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--vl-gold);
	position: relative;
}
.main-navigation > div > ul > li > a::after,
.main-navigation > ul > li > a::after {
	content: "";
	position: absolute; left: 50%; bottom: .2rem;
	width: 0; height: 1px;
	background: var(--vl-gold);
	transition: width .25s ease, left .25s ease;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-ancestor > a::after,
.main-navigation .current_page_item > a::after { width: 100%; left: 0; }
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--vl-gold-light); }

/* Submenu */
.main-navigation .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 220px;
	padding: .6rem 1.2rem;
	background: var(--vl-deep);
	border: 1px solid var(--vl-line);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { font-size: .75rem; }

.menu-toggle {
	display: none;
	background: none; border: 1px solid var(--vl-line); border-radius: 2px;
	color: var(--vl-gold); padding: .55rem .7rem; cursor: pointer;
	font-family: var(--vl-caps); font-size: .75rem; letter-spacing: .14em;
}
.menu-toggle__bars { display: inline-block; width: 18px; height: 12px; position: relative; vertical-align: middle; margin-right: .5rem; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span {
	content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 5px; }
.menu-toggle__bars::after { bottom: 0; }

@media (max-width: 900px) {
	.site-branding img, .site-branding .custom-logo { max-height: 72px; }
	.menu-toggle { display: inline-block; }
	.main-navigation > div > ul,
	.main-navigation > ul {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; gap: 0;
		padding: 1rem 1.5rem 1.5rem;
		background: var(--vl-deep);
		border-bottom: 1px solid var(--vl-line);
		text-align: center;
	}
	.main-navigation.is-open > div > ul,
	.main-navigation.is-open > ul { display: flex; }
	.main-navigation a { padding: .8rem 0; font-size: .9rem; }
	.main-navigation .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; background: none; padding: 0 0 .5rem;
	}
}

/* ---------- Content in het gouden kader ---------- */
.site-main {
	flex: 1;
	width: 100%;
	padding: clamp(2rem, 5vw, 4.5rem) 1.25rem;
}

.vl-frame {
	position: relative;
	max-width: calc(var(--vl-content) + 8rem);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4rem);
	border: 2px solid transparent;
	border-image: var(--vl-gold-gradient) 1;
}
.vl-frame::before {
	content: "";
	position: absolute; inset: 7px;
	border: 1px solid var(--vl-line);
	pointer-events: none;
}
.vl-frame__heart {
	position: absolute; width: 18px; height: 19px;
	background: var(--vl-heart) center / contain no-repeat;
}
.vl-frame__heart--tl { top: 18px; left: 18px; }
.vl-frame__heart--tr { top: 18px; right: 18px; }
.vl-frame__heart--bl { bottom: 18px; left: 18px; }
.vl-frame__heart--br { bottom: 18px; right: 18px; }

.vl-frame + .vl-frame { margin-top: 3rem; }

.entry-header { text-align: center; margin-bottom: 2.5rem; }

.entry-title {
	margin: 0;
	font-family: var(--vl-script);
	font-weight: 400;
	font-size: clamp(3rem, 7vw, 4.6rem);
	line-height: 1.15;
	background: var(--vl-gold-gradient);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	padding: 0 .2em;
}
.entry-title a { color: inherit; text-decoration: none; }

.entry-meta { margin-top: .4rem; font-size: 1rem; color: var(--vl-muted); font-style: italic; }

/* hartjeslijn, het vaste motief uit het drukwerk */
.vl-divider {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	margin: 1rem auto 0; max-width: 420px;
}
.vl-divider::before, .vl-divider::after { content: ""; flex: 1; height: 1px; background: var(--vl-gold); }
.vl-divider span { width: 20px; height: 21px; background: var(--vl-heart) center / contain no-repeat; }

/* Tekst in de content */
.entry-content > * { max-width: var(--vl-content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--vl-wide); }
.entry-content > .alignfull { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.2em; }

h1, h2, h3, h4, h5, h6 { color: var(--vl-gold); line-height: 1.25; margin: 1.8em 0 .6em; }
.entry-content h2 { font-family: var(--vl-script); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3rem); line-height: 1.2; margin-top: 1.4em; }
.entry-content h3 { font-family: var(--vl-caps); font-weight: 600; font-size: 1.15rem; letter-spacing: .12em; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--vl-serif); font-weight: 700; font-size: 1.3rem; }

.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--vl-gold); }

blockquote, .wp-block-quote {
	margin: 2em auto; padding: .2em 0 .2em 1.4em;
	border-left: 2px solid var(--vl-gold);
	font-style: italic; font-size: 1.4rem; color: var(--vl-gold-light);
}
blockquote cite, .wp-block-quote cite { display: block; font-size: 1rem; color: var(--vl-muted); font-style: normal; margin-top: .4em; }

hr, .wp-block-separator {
	border: 0; height: 21px; margin: 2.5em auto;
	background: var(--vl-heart) center / 20px 21px no-repeat,
		linear-gradient(var(--vl-gold), var(--vl-gold)) left center / calc(50% - 22px) 1px no-repeat,
		linear-gradient(var(--vl-gold), var(--vl-gold)) right center / calc(50% - 22px) 1px no-repeat;
	max-width: 420px;
	opacity: 1;
}

table, .wp-block-table table { width: 100%; border-collapse: collapse; }
th, td { padding: .7em .5em; line-height: 1.35; border-bottom: 1px solid var(--vl-line); text-align: left; }
th { font-family: var(--vl-caps); font-size: .85rem; letter-spacing: .1em; color: var(--vl-gold); font-weight: 600; }
td:last-child { text-align: right; white-space: nowrap; color: var(--vl-gold); font-weight: 700; }
.wp-block-table figcaption, figcaption { font-size: .95rem; color: var(--vl-muted); text-align: center; font-style: italic; }

.wp-block-image img { border: 1px solid var(--vl-line); }

/* Knoppen in de stijl van de kortingslabels */
.wp-block-button__link, .wp-element-button, button.vl-button, input[type="submit"], .vl-button {
	display: inline-block;
	padding: .75em 1.8em;
	border: 1px solid var(--vl-gold-dark);
	border-radius: 2px;
	background: linear-gradient(180deg, #fbf0d4 0%, #f1d9a6 50%, #e2bd78 100%);
	color: var(--vl-deep);
	font-family: var(--vl-caps);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s ease;
}
.wp-block-button__link:hover, .wp-element-button:hover, input[type="submit"]:hover, .vl-button:hover { filter: brightness(1.06); color: var(--vl-deep); }
.wp-block-button.is-style-outline .wp-block-button__link { background: none; color: var(--vl-gold); border-color: var(--vl-gold); }

/* Formulieren */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], textarea, select {
	width: 100%;
	padding: .65em .8em;
	background: rgba(46, 3, 5, .55);
	border: 1px solid var(--vl-line);
	border-radius: 2px;
	color: var(--vl-text);
	font-family: var(--vl-serif);
	font-size: 1.1rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--vl-gold); outline: none; box-shadow: 0 0 0 2px rgba(236, 203, 134, .25); }
label { font-weight: 600; color: var(--vl-gold); }

/* Overzichtspagina's */
.vl-pagination { text-align: center; margin-top: 3rem; font-family: var(--vl-caps); letter-spacing: .1em; font-size: .9rem; }
.vl-pagination .page-numbers { padding: .3em .6em; text-decoration: none; }
.vl-pagination .current { color: var(--vl-deep); background: var(--vl-gold); }
.vl-more { text-align: center; margin-top: 1.5rem; }

/* Reacties */
.comments-area { max-width: var(--vl-content); margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--vl-line); padding: 1rem 0; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: auto;
	background: var(--vl-deep);
	border-top: 1px solid var(--vl-line);
	font-size: 1.08rem;
}
.site-footer__inner {
	max-width: var(--vl-wide);
	margin: 0 auto;
	padding: 3.5rem 1.5rem 2rem;
	display: grid;
	grid-template-columns: minmax(200px, 1.2fr) repeat(3, 1fr);
	gap: 2.5rem;
}
.footer-brand { text-align: center; }
.footer-brand img { width: 190px; height: auto; display: block; margin: 0 auto 1rem; }
.footer-contact { margin: 0; font-style: normal; color: var(--vl-gold); line-height: 1.6; }
.footer-contact a { text-decoration: none; }

.site-footer .widget { margin-bottom: 1.8rem; }
.site-footer .widget-title, .site-footer .wp-block-heading {
	margin: 0 0 .9rem;
	font-family: var(--vl-caps); font-size: .85rem; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--vl-gold);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--vl-text); text-decoration: none; }
.site-footer a:hover { color: var(--vl-gold-light); text-decoration: underline; }

.site-footer__bottom {
	max-width: var(--vl-wide);
	margin: 0 auto;
	padding: 1.2rem 1.5rem 1.8rem;
	border-top: 1px solid rgba(236, 203, 134, .25);
	display: flex; flex-wrap: wrap; gap: .5rem 2rem;
	justify-content: space-between; align-items: center;
	font-size: .95rem; color: var(--vl-muted);
}
.footer-menu { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	body { font-size: 1.15rem; }
	.site-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.site-footer__bottom { justify-content: center; text-align: center; }
	.vl-frame__heart { width: 14px; height: 15px; }
	.vl-frame__heart--tl, .vl-frame__heart--tr { top: 14px; }
	.vl-frame__heart--bl, .vl-frame__heart--br { bottom: 14px; }
	.vl-frame__heart--tl, .vl-frame__heart--bl { left: 14px; }
	.vl-frame__heart--tr, .vl-frame__heart--br { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* WordPress-kernklassen */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: .95rem; color: var(--vl-muted); }
.sticky, .bypostauthor { }
