/*
Theme Name: Bureau Bosma
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for Bureau Bosma. Restores the original design as a block theme.
Version: 1.1.2
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: bureaubosma
*/

/* ---------- Base ---------- */

p, li, blockquote, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

h2 { text-align: center; }

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .2em;
}

/* No focus frames (parent theme adds an outline on every :focus) */
.wp-site-blocks *:focus,
.wp-site-blocks *:focus-visible { outline: none !important; }

/* First element in a container never pushes down */
.wp-block-post-content > :first-child,
.wp-block-column > :first-child,
.wp-block-cover__inner-container > :first-child { margin-top: 0; }

/* Smooth state changes */
a,
.wp-element-button,
.wp-block-navigation-item__content,
.wp-block-social-link,
.wp-block-post-featured-image img {
	transition: color .2s ease, background-color .2s ease, opacity .2s ease, transform .5s ease;
}

/* ---------- Header ---------- */

.bb-hero { position: relative; }
.bb-hero > .is-overlay-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
}
.bb-hero > .is-overlay-header + * { margin-block-start: 0; }

/* Thin underline that grows on hover */
.wp-block-navigation .wp-block-navigation-item__content { position: relative; }
.site-header-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.site-header-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.site-header-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

.site-header-nav .wp-block-navigation__submenu-container {
	padding: .5rem 0;
	border: 0 !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.site-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem 1.25rem; }
.site-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { opacity: .7; }

/* Hamburger before the items start to wrap */
@media (max-width: 1100px) {
	.site-header-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- Sidebar ---------- */

.bb-sidebar .wp-block-navigation-item__content { color: var(--wp--preset--color--graphite); }
.bb-sidebar .wp-block-navigation-item__content:hover,
.bb-sidebar .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--bordeaux); }

/* ---------- Content ---------- */

/* Heading rhythm (beats the layout block-gap) */
:root :where(.wp-block-post-content) > h2 { margin-block: 3rem 1.25rem; }
:root :where(.wp-block-post-content) > h3 { margin-block: 2.5rem .75rem; }
:root :where(.wp-block-post-content) > :is(h2, h3) + * { margin-block-start: 0; }

/* Column rows were wide in the old theme */
.wp-block-post-content.is-layout-constrained > .wp-block-columns:not(.alignfull) {
	max-width: var(--wp--style--global--wide-size);
}

/* Empty button links left in old HTML blocks */
.wp-block-button__link:empty { display: none; }

/* Plain "Lees verder" links inside old button wrappers look like read-more */
.wp-block-button > a:not(.wp-block-button__link) {
	font-family: var(--wp--preset--font-family--proxima);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-read-more:hover,
.wp-block-button > a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--bordeaux-dark); }

/* Lead paragraph (block style) */
p.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

/* Home hero: "START BIJ" */
.startbij {
	font-family: var(--wp--preset--font-family--proxima);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	text-transform: uppercase;
}

.introbosma {
	color: var(--wp--preset--color--bordeaux);
	font-family: var(--wp--preset--font-family--proxima);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* Reusable quote block: large quote mark */
.wp-block-quote p strong {
	display: block;
	font-size: 80px;
	line-height: 1;
	color: var(--wp--preset--color--line);
}

/* Yoast FAQ */
.schema-faq-question {
	display: block;
	margin-top: 2.5rem;
	color: var(--wp--preset--color--bordeaux);
	font-family: var(--wp--preset--font-family--proxima);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}
.schema-faq-answer { margin-top: .75rem; }

/* ---------- Post cards ---------- */

.bb-card > * { margin: 0; }
.bb-card .wp-block-post-featured-image { overflow: hidden; }
.bb-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* ---------- Forms ---------- */

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .75em 1em;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	font: inherit;
	color: var(--wp--preset--color--ink);
	transition: border-color .2s ease;
}
.wpcf7 textarea { height: 9em; resize: vertical; }
.wpcf7 .wpcf7-list-item { margin: 0 1.5em 0 0; }
.wpcf7 input[type="checkbox"] { accent-color: var(--wp--preset--color--bordeaux); }

.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--wp--preset--color--sky); }

.wpcf7 input[type="submit"] {
	padding: 1em 2.5em;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--proxima);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--bordeaux); }

/* Footer newsletter: one pill with the button inside */
.bb-newsletter form {
	display: flex;
	align-items: center;
	max-width: 480px;
	margin: 0 auto;
	padding: 5px;
	border-radius: 999px;
	background: var(--wp--preset--color--white);
}
.bb-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: .6em 1.1em;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}
.bb-newsletter .wp-element-button { flex: none; }
.bb-newsletter .wp-element-button:hover { background: var(--wp--preset--color--ink); }
.bb-newsletter .bb-hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */

.bb-footer a { color: inherit; }
.bb-footer a:hover { opacity: .7; }
.bb-footer a[href^="tel:"],
.bb-footer a[href^="mailto:"] { white-space: nowrap; }
.bb-footer .wp-block-social-link:hover { transform: translateY(-2px); }

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