/* ==========================================================================
   Bronz Interiors – site: basis, header, menu, footer, animaties
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--bz-light);
	color: var(--bz-dark);
	font-family: var(--bz-sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
strong, b { font-weight: 500; }

/* Toegankelijkheid */
.bz-skip {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--bz-cream); color: var(--bz-dark); padding: 12px 20px; border-radius: 999px;
	font-size: 14px; font-weight: 500; text-decoration: none;
}
.bz-skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bz-bronze); outline-offset: 3px; }
.is-style-bronz-donker :focus-visible, .is-style-bronz-brons :focus-visible, .is-style-bronz-notenhout :focus-visible,
.bz-hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .bz-mobile-menu :focus-visible { outline-color: var(--bz-cream); }
.site-main:focus { outline: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 26px var(--bz-pad);
	background: var(--bz-dark);
	color: var(--bz-cream);
	transition: background 0.45s ease, padding 0.45s ease, box-shadow 0.45s ease;
}
body.has-hero .site-header { background: transparent; box-shadow: inset 0 -1px 0 rgba(227, 223, 212, 0.18); }
body .site-header.is-scrolled { background: var(--bz-dark); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 rgba(227, 223, 212, 0.14); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
/* Onder 600 px scrolt de WordPress-beheerbalk normaal mee weg; hier blijft hij vast staan zodat er geen gat boven het menu ontstaat (alleen zichtbaar voor ingelogde gebruikers). */
@media (max-width: 600px) { html #wpadminbar { position: fixed; } }

.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.site-logo__mark { width: 44px; height: 44px; transition: width 0.45s ease, height 0.45s ease; }
.site-logo__word { width: auto; height: 32px; transition: height 0.45s ease; }
.site-header.is-scrolled .site-logo__word { height: 28px; }
.site-header.is-scrolled .site-logo__mark { width: 36px; height: 36px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.bz-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 34px; margin: 0; padding: 0; }
.bz-menu a, .bz-header-cta {
	font-family: var(--bz-sans); font-weight: 400; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--bz-cream); text-decoration: none; line-height: 1.2;
}
.bz-menu a { display: inline-block; padding: 12px 0; position: relative; }
.bz-menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.bz-menu a:hover::after, .bz-menu .current-menu-item > a::after, .bz-menu .current_page_item > a::after, .bz-menu a[aria-current="page"]::after { transform: scaleX(1); }
.bz-header-cta { border: 1px solid var(--bz-cream); border-radius: 999px; padding: 14px 24px; font-weight: 500; transition: background 0.3s ease, color 0.3s ease; }
.bz-header-cta:hover, .bz-header-cta:focus-visible { background: var(--bz-cream); color: var(--bz-dark); }

.bz-menu-toggle {
	display: none; align-items: center; gap: 12px; background: transparent; border: 1px solid var(--bz-cream); color: var(--bz-cream);
	border-radius: 999px; padding: 12px 18px; font: 500 12px/1 var(--bz-sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; min-height: 44px;
}
.bz-menu-toggle__lines { width: 18px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform 0.3s ease; }
.menu-open .bz-menu-toggle__lines { border-bottom: 0; transform: translateY(3px) rotate(45deg); }

.bz-mobile-menu {
	position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between;
	padding: 120px var(--bz-pad) 40px; background-color: var(--bz-dark);
	background-image: linear-gradient(90deg, #230000 0%, rgba(35, 0, 0, 0.9) 40%, rgba(35, 0, 0, 0.2) 100%), url(../img/pattern-fine-dark.svg);
	background-size: auto, 140px 91px; color: var(--bz-cream); overflow-y: auto;
}
.bz-mobile-menu[hidden] { display: none; }
.bz-mobile-list, .bz-mobile-menu .bz-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bz-mobile-list a, .bz-mobile-menu .bz-menu a, .bz-mobile-contact {
	font-family: var(--bz-serif); font-weight: 700; font-size: clamp(34px, 9vw, 52px); line-height: 1.25; letter-spacing: 0; text-transform: none;
	color: var(--bz-cream); text-decoration: none; display: inline-block; padding: 4px 0;
}
.bz-mobile-menu .bz-menu a::after { display: none; }
.bz-mobile-contact { font-style: italic; font-weight: 400; margin-top: 8px; }
.bz-mobile-meta { font-size: 15px; line-height: 2; margin: 32px 0 0; }
.bz-mobile-meta a { color: var(--bz-cream); }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
	.site-nav { display: none; }
	.bz-menu-toggle { display: inline-flex; }
	.site-header { padding-top: 18px; padding-bottom: 18px; }
	.site-logo__mark { width: 38px; height: 38px; }
	.site-logo__word { height: 26px; }
}

/* ---------- Inhoud ---------- */
.site-main { display: block; }
body:not(.has-hero) .site-main { padding-top: 96px; }
.entry-content > .alignfull:first-child { margin-top: 0; }
.entry-header, .entry-content.is-plain { max-width: 820px; margin: 0 auto; padding: 72px var(--bz-pad) 0; }
.entry-content.is-plain { padding-top: 0; padding-bottom: 110px; }
.entry-header + .entry-content.is-plain { padding-top: 8px; }
.entry-title { font-family: var(--bz-serif); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin: 0 0 28px; }
.entry-content.is-plain h2 { font-size: 28px; margin: 48px 0 12px; scroll-margin-top: 120px; }
.entry-content.is-plain ul { padding-left: 20px; }
.bz-404 { padding-top: 140px !important; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(rgba(35, 0, 0, 0.38), rgba(35, 0, 0, 0.38)), url(../img/achtergrond-brons.jpg) center / cover no-repeat, #6b3518; color: var(--bz-cream); padding: clamp(64px, 8vw, 104px) var(--bz-pad) 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 48px; max-width: 1440px; margin: 0 auto; }
.site-footer__brand img { width: 220px; height: auto; display: block; }
.site-footer__tagline { font-family: var(--bz-serif); font-style: italic; font-size: 20px; margin: 18px 0 0; }
.site-footer__title { font-family: var(--bz-sans); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li, .site-footer__col p { font-size: 15px; line-height: 2; margin: 0; }
.site-footer a { color: var(--bz-cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .bz-menu { display: block; }
.site-footer .bz-menu a { font-family: var(--bz-sans); font-size: 15px; letter-spacing: 0; text-transform: none; padding: 0; font-weight: 300; }
.site-footer .bz-menu a::after { display: none; }
.site-footer__bottom {
	max-width: 1440px; margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 24px; border-top: 1px solid rgba(227, 223, 212, 0.22);
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 12px; letter-spacing: 0.08em;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px 20px; }
	.site-footer__biz { grid-column: 1 / -1; }
	.site-footer a { overflow-wrap: anywhere; }
}
.site-footer__biz span { display: block; }
.site-footer__maker { opacity: 0.8; }
@media (max-width: 760px) {
	.site-footer__biz p { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 14px; }
	.site-footer__biz span + span::before { content: '·'; margin-right: 12px; opacity: 0.6; }
	.site-footer { background-image: linear-gradient(rgba(35, 0, 0, 0.38), rgba(35, 0, 0, 0.38)), url(../img/achtergrond-brons-staand.jpg); }
}

/* ---------- Scroll-animaties ---------- */
.bz-anim .bz-reveal { opacity: 0; transform: translateY(42px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--bz-delay, 0ms); }
.bz-anim .bz-reveal.is-in { opacity: 1; transform: none; }
.bz-anim .bz-reveal-img { overflow: hidden; }
.bz-anim .bz-reveal-img img { clip-path: inset(12% 8% 12% 8%); transform: scale(1.08); transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--bz-delay, 0ms); }
.bz-anim .bz-reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
.bz-anim .bz-words .bz-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.04em 0.26em; margin: -0.14em -0.04em -0.26em; }
/* Na de animatie niets meer afsnijden (staartjes van g, j en p) */
.bz-anim .bz-words.is-done .bz-w { overflow: visible; }
.bz-anim .bz-words .bz-w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--bz-delay, 0ms) + var(--bz-i, 0) * 70ms); }
.bz-anim .bz-words.is-in .bz-w > span { transform: none; }
.bz-anim .bz-hero .bz-hero__bg img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bz-anim .bz-reveal, .bz-anim .bz-reveal-img img, .bz-anim .bz-words .bz-w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- Zwevende scrollknop met beeldmerk (mobiel) ---------- */
.bz-scroller { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; display: none; box-shadow: 0 6px 20px rgba(35, 0, 0, 0.35); }
.bz-scroller__half { position: absolute; left: 0; width: 100%; height: 50%; border: 0; padding: 0; margin: 0; background: var(--bz-dark); opacity: 0.55; cursor: pointer; transition: opacity 0.25s ease, background 0.25s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bz-scroller__half.is-up { top: 0; }
.bz-scroller__half.is-down { bottom: 0; }
.bz-scroller__half:focus-visible { outline: 2px solid var(--bz-cream); outline-offset: -4px; }
.bz-scroller.is-active-up .is-up, .bz-scroller.is-active-down .is-down { opacity: 1; background: var(--bz-bronze); }
.bz-scroller.is-active-up .is-down, .bz-scroller.is-active-down .is-up { opacity: 0.35; }
.bz-scroller__mark { position: absolute; inset: 12px; pointer-events: none; background: url(../img/beeldmerk-cream.svg) center / contain no-repeat; }
.menu-open .bz-scroller { display: none !important; }
@media (max-width: 760px) {
	.bz-scroller:not([hidden]) { display: block; }
	/* Op mobiel scroll je sneller: animaties zijn in de helft van de tijd klaar */
	.bz-anim .bz-reveal { transition-duration: 0.5s; }
	.bz-anim .bz-reveal-img img { transition-duration: 0.7s, 0.8s; }
	.bz-anim .bz-words .bz-w > span { transition-duration: 0.5s; transition-delay: calc(var(--bz-delay, 0ms) / 2 + var(--bz-i, 0) * 35ms); }
}
@media (prefers-reduced-motion: reduce) { .bz-scroller__half { transition: none; } }
