/*
 * BoxDirect site stylesheet — T2 (2026-10-01).
 *
 * Only what theme.json cannot express: the unit facts description list and the
 * unit cards on /bedrijfsruimtes/. Tokens only; no new colour, no spacing step
 * that is not a platform preset. Enqueued by boxdirect_enqueue_styles() and
 * added to the editor canvas (functions.php).
 */

/* Facts list: label / value rows, read as pairs (WCAG 1.3.1 via <dl>). */
.boxdirect-facts {
	margin: 0;
	display: grid;
	gap: 0;
}

.boxdirect-facts__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) 0;
	border-bottom: 1px solid var(--wp--preset--color--secondary);
}

.boxdirect-facts__row:last-child {
	border-bottom: 0;
}

.boxdirect-facts dt {
	font-weight: 700;
}

.boxdirect-facts dd {
	margin: 0;
	text-align: right;
}

/* The detail page's facts panel: a light card next to the description. */
.boxdirect-unit-facts:has(.boxdirect-facts) {
	background: var(--wp--preset--color--secondary);
	padding: var(--wp--preset--spacing--40);
}

.boxdirect-unit-facts .boxdirect-facts__row {
	border-bottom-color: var(--wp--preset--color--background);
}

/* Overview cards: the T12 property card component is in § T12 PROPERTY CARD below. */

/* FAQ (T3): each question is a core/details disclosure; the summary is the
	control, so it gets a visible row, a clear target and the platform focus ring. */
.boxdirect-faq .wp-block-details {
	border-top: 1px solid var(--wp--custom--border--subtle); /* T12: visible divider (secondary was 1.10:1) */
	padding: var(--wp--preset--spacing--30) 0;
}

.boxdirect-faq .wp-block-details:last-of-type {
	border-bottom: 1px solid var(--wp--custom--border--subtle);
}

.boxdirect-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
}

.boxdirect-faq .wp-block-details > :not(summary) {
	margin-top: var(--wp--preset--spacing--20);
}

/*
 * T4 — the two forms (2026-10-02).
 *
 * SPECIFICITY IS DELIBERATE: this file is enqueued BEFORE the parent's
 * fse-blocks.css (measured on the home page), so an equal-specificity rule
 * here would lose. `.fse-blocks-form .x` (0,2,0) beats the parent's `.x`.
 *
 * Error box: the parent paints `accent` behind it with `background` text,
 * which on this site is white on the brand yellow, 1.33:1. Near-black on the
 * yellow is 13.21:1 (CONTEXT.md "Latent, for T4").
 *
 * Submit: the site's button language (theme.json `elements.button`): yellow
 * with a near-black label, inverting on hover, both 13.21:1. The parent's
 * two-tone `:focus-visible` ring is untouched.
 */
.fse-blocks-form .fse-blocks-form-errors {
	color: var(--wp--preset--color--foreground);
}

.fse-blocks-form .fse-blocks-form-submit {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
	font-weight: 700;
}

.fse-blocks-form .fse-blocks-form-submit:hover,
.fse-blocks-form .fse-blocks-form-submit:focus-visible {
	background-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--accent);
}

/* The hint above and the privacy notice below each form. */
.boxdirect-form__hint {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--30);
}

.boxdirect-form__notice {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: 0;
}

/*
 * T9 — conversion and unit-page design system (2026-10-02).
 *
 * One hierarchy for the actions that generate leads. Measured before T9 at
 * 390 px: the site's own yellow button (wp-element-button) is 51 px tall, the
 * form submits were 30 px and phone/e-mail/"Neem gerust contact met ons op"
 * were 18 px text links, so navigation outranked conversion. After T9:
 *   PRIMARY   the yellow button scale: form submits and the "Neem gerust
 *             contact met ons op" link (contact band, overview).
 *   SECONDARY phone and e-mail: bold, with a 44 px tap target, still links.
 *   NAVIGATION header/footer links: unchanged.
 * One panel for the unit decision area: the facts and the forms share the
 * light `secondary` panel with the accent top rule the overview cards already
 * use. Same tokens as the rest of this file; no new colour, font or asset.
 * Specificity stays above the parent's fse-blocks.css, which loads after this.
 */

/* PRIMARY: form submits on the site's button box (the parent keeps a 2px
   transparent border for its hover state, so the padding is 2px less than
   the core button's calc(0.667em + 2px) calc(1.333em + 2px)). */
.fse-blocks-form .fse-blocks-form-submit {
	min-height: 52px; /* T11 control foundation (was 44px) */
	padding: calc(0.667em) calc(1.333em);
	font-weight: 600;
	line-height: 1.2;
}

/* PRIMARY: the link to the contact page in the contact band and the overview CTA. */
.boxdirect-contact-band__link a {
	display: inline-flex;
	box-sizing: border-box; /* min-height is the outer box, as on the buttons; not content + padding */
	align-items: center;
	min-height: 52px; /* T11 control foundation (was 44px) */
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	border-radius: var(--wp--preset--border-radius--small);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.boxdirect-contact-band__link a:hover,
.boxdirect-contact-band__link a:focus-visible {
	background-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--accent);
}

.boxdirect-contact-band__link a:focus-visible {
	outline: 2px solid var(--wp--preset--color--foreground);
	outline-offset: 2px;
}

/* SECONDARY: phone and e-mail in page content keep link semantics, gain weight and a
   44 px tap target. The footer (outside <main>) is navigation and is left as is. */
main a[href^="tel:"],
main a[href^="mailto:"] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

/* PANEL: the unit facts and the forms, one component. */
.boxdirect-unit-facts:has(.boxdirect-facts),
.boxdirect-form {
	padding: var(--wp--preset--spacing--60); /* T11 panel padding (was spacing|40) */
	background: var(--wp--preset--color--secondary); /* T11: the 4px yellow top rule was decoration; the concrete ground is the panel */
}

.boxdirect-unit-facts__title {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20);
}

/* The monthly total is the summary of the price rows. */
.boxdirect-facts__row--total {
	margin-top: var(--wp--preset--spacing--20);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-facts__row--total dt,
.boxdirect-facts__row--total dd {
	font-weight: 700;
}

.boxdirect-facts__row--total dd {
	font-size: var(--wp--preset--font-size--x-large); /* T11 price role, 28-36px */
	font-weight: 800;
	line-height: 1.1;
}

/* T11: figures line up in columns. */
.boxdirect-facts dd {
	font-variant-numeric: tabular-nums;
}

/* The page ending: a dark final band (Locatie on unit pages and Contact) and the dark
   footer read as one block without it. T11: a 1px steel rule (`muted` on near-black,
   3.50:1) instead of the 4px yellow one; yellow is kept for actions. */
.boxdirect-footer {
	border-top: 1px solid var(--wp--preset--color--muted);
}

/*
 * T10 — the route link is a SECONDARY action (2026-10-02).
 *
 * "Route plannen" in the dark location band (Home, Contact, every unit page) is
 * a utility, but it wore the same solid yellow as the conversion actions. It now
 * reads as an outline: transparent, a 2px accent border and an accent label,
 * 13.21:1 on the band's `foreground`. The box does not shrink: the 2px border
 * replaces 2px of the core button padding, so it stays the 51 px of the primary
 * buttons (measured 50.94 px before and after). Hover, keyboard focus and :active
 * fill it with the yellow and a near-black label (13.21:1); keyboard focus adds a
 * 2px accent ring 2px outside the box, so focus is a shape change as well as a
 * colour change. Selected by its destination; the T8 markup is not touched.
 */
a.wp-block-button__link[href^="https://www.google.com/maps/"] {
	box-sizing: border-box;
	padding: calc(0.667em) calc(1.333em);
	border: 2px solid var(--wp--preset--color--accent);
	background-color: transparent;
	color: var(--wp--preset--color--accent);
	box-shadow: none;
}

a.wp-block-button__link[href^="https://www.google.com/maps/"]:hover,
a.wp-block-button__link[href^="https://www.google.com/maps/"]:focus-visible,
a.wp-block-button__link[href^="https://www.google.com/maps/"]:active {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
}

a.wp-block-button__link[href^="https://www.google.com/maps/"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
	box-shadow: none; /* T11: the generic button focus halo is not for the yellow-on-dark ring */
}

/*
 * T11 — industrial editorial design foundation (2026-10-02).
 *
 * The shared base the page redesigns build on. Tokens only: the container and the
 * fluid type scale are in theme.json (settings.layout, settings.typography,
 * settings.custom.fontSize); spacing uses the platform presets; no new colour,
 * font, image or script. Specificity stays above the parent's fse-blocks.css,
 * which loads after this file.
 *
 *   CONTAINER  1280px (`wideSize`); prose 720px (`contentSize`) on the SAME left edge.
 *   RHYTHM     every full-width page section: spacing|80 (40-64px) above and below.
 *   TYPE       fluid roles (theme.json); display, lead, meta and eyebrow below.
 *   YELLOW     actions, the current-page marker, eyebrows on dark. Not decoration.
 *   CONTROLS   buttons 52px, inputs 48px, 4px radius, no shadow, a two-tone focus ring.
 *   SURFACES   square images, cards and panels; 1px subtle borders; 2px ink for emphasis.
 *
 *   GUTTER     16px / 32px, a recorded BoxDirect exception to the platform's 8px (below).
 *
 * Not here (later tranches): the Home hero composition, the overview cards, the unit
 * page, Contact and the location section.
 */

/* CONTAINER. Core centres every content-size child of a constrained layout. Prose is
   moved onto the container's left edge instead: the left margin is half of whatever
   the parent has beyond the 1280px container (0 when it has less), so a 720px
   paragraph starts where the 1280px cards and columns start. Core's own rule is
   `!important`, so this one has to be too; `.wp-site-blocks` lifts it above core's
   specificity, and `:where()` keeps the exclusions at zero weight like core's. */
.wp-site-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	margin-left: max(0px, (100% - var(--wp--style--global--wide-size)) / 2) !important;
	margin-right: auto !important;
}

/* GUTTER — A RECORDED BOXDIRECT EXCEPTION (owner decision, 2026-10-02). The platform's
   root gutter is spacing|30 (8px) and is platform policy: bin/check-theme-json.js forbids
   a site theme.json from changing it. The owner chose to give BoxDirect its own gutter
   here instead, from platform presets only: spacing|40 (16px) on small screens and
   spacing|60 (32px) from 600px. Set on `.wp-site-blocks`, so it reaches every
   `has-global-padding` and full-width alignment on the page and nothing outside the
   site's markup. The platform default and every other site are unchanged. */
.wp-site-blocks {
	--wp--style--root--padding-left: var(--wp--preset--spacing--40);
	--wp--style--root--padding-right: var(--wp--preset--spacing--40);
}

@media (min-width: 600px) {
	.wp-site-blocks {
		--wp--style--root--padding-left: var(--wp--preset--spacing--60);
		--wp--style--root--padding-right: var(--wp--preset--spacing--60);
	}
}

/* A full-width cover (the Home hero) writes the platform's 8px inline and core zeroes
   the padding of the container inside it, so the cover takes the site gutter itself. */
.wp-site-blocks .wp-block-cover.alignfull {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}

/* GRID (T18). One 12-column editorial grid inside the container, with one gap, from
   782px. Every split composition sits on its lines, so a second column starts on the
   same line wherever it appears. The block markup's 58% / 42% columns are 7 + 5
   columns, and 42% / 58% are 5 + 7; the custom compositions (intro, gateway, Waarom,
   closing CTA, steps, footer) are placed on the same lines further down. Below 782px
   every composition is one column.
   The span is read from the column's inline `flex-basis`, in BOTH serialisations:
   the saved markup writes `flex-basis:58%`, but fse-motion.js sets
   `--ewo-stagger-index` through `element.style`, and the browser then rewrites
   the attribute as `flex-basis: 58%;`. Matching only the first left every column
   on one 1/12 track once the script ran (Over: the H2 one word per line). */
.wp-site-blocks {
	--boxdirect-grid-gap: var(--wp--preset--spacing--60);
}

@media (min-width: 782px) {
	.wp-site-blocks :is(.boxdirect-intro__grid, .boxdirect-unit-body > .wp-block-columns, .boxdirect-unit-viewing > .wp-block-columns, .boxdirect-contact-viewing > .wp-block-columns, .boxdirect-contact-message > .wp-block-columns, .boxdirect-usps > .alignwide, .boxdirect-cta > .alignwide, .boxdirect-footer__closing, .boxdirect-footer__main) {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--boxdirect-grid-gap) !important;
	}

	.wp-site-blocks :is(.boxdirect-intro__grid, .boxdirect-unit-body > .wp-block-columns, .boxdirect-unit-viewing > .wp-block-columns, .boxdirect-contact-viewing > .wp-block-columns, .boxdirect-contact-message > .wp-block-columns) > .wp-block-column {
		min-width: 0;
		margin: 0;
	}

	.wp-site-blocks :is(.boxdirect-intro__grid, .boxdirect-unit-body > .wp-block-columns, .boxdirect-unit-viewing > .wp-block-columns, .boxdirect-contact-viewing > .wp-block-columns, .boxdirect-contact-message > .wp-block-columns) > .wp-block-column:is([style*="flex-basis:58%"], [style*="flex-basis: 58%"]) {
		grid-column: span 7;
	}

	.wp-site-blocks :is(.boxdirect-intro__grid, .boxdirect-unit-body > .wp-block-columns, .boxdirect-unit-viewing > .wp-block-columns, .boxdirect-contact-viewing > .wp-block-columns, .boxdirect-contact-message > .wp-block-columns) > .wp-block-column:is([style*="flex-basis:42%"], [style*="flex-basis: 42%"]) {
		grid-column: span 5;
	}
}

/* RHYTHM. Page sections carry their padding inline in the seeded block markup
   (spacing|40-70), so only `!important` reaches it without a reseed. One step for
   every section: spacing|80 (40px at 390, 64px at 1400). Two light sections in a
   row read as one: the second starts at the first one's bottom padding. The hero
   cover is a `div`, not a `section`, and keeps its own height. */
main section.wp-block-group.alignfull {
	padding-top: var(--wp--preset--spacing--80) !important;
	padding-bottom: var(--wp--preset--spacing--80) !important;
}

main section.wp-block-group.alignfull:not(.has-background) + section.wp-block-group.alignfull:not(.has-background) {
	padding-top: 0 !important;
}

/* TYPE ROLES. Headings and body are theme.json elements; these are the roles that
   ride on a preset class or a position. */

/* Display: the H1 set on a cover photograph (the Home hero). */
.wp-block-cover h1 {
	font-size: var(--wp--preset--font-size--gigantic);
	line-height: 1;
	letter-spacing: -0.015em;
}

/* Headings break into balanced lines, so a long H2 in a column is not a ragged stack. */
h1,
h2,
h3 {
	text-wrap: balance;
}

/* Lead (`medium`) and meta (`small`) carry their own leading. */
p.has-medium-font-size {
	line-height: 1.5;
}

.has-small-font-size {
	line-height: 1.5;
}

/* Eyebrow: a short uppercase label. The footer's column labels are the first users;
   the hero, unit and 404 labels already carry the same treatment inline. The labels
   also carry `has-small-font-size`, whose preset rule is `!important`. */
.boxdirect-footer h2 {
	font-size: var(--wp--custom--font-size--eyebrow) !important;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* CONTROLS. Buttons: the core box (calc(0.667em + 2px) padding) at line-height 1.2
   with a 52px floor, centred, so a 17px or 18px label gives the same 52px button. */
.wp-block-button__link.wp-element-button {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	line-height: 1.2;
	font-weight: 600;
	box-shadow: none;
}

/* Keyboard focus on a button: the platform's two-tone ring (fse-blocks.css), an ink
   outline 2px outside the box with a white halo between, so one of the two rings
   contrasts with any ground, the dark bands included. The route link (T10) keeps
   its own yellow ring and no halo: its rule is more specific. */
.wp-block-button__link.wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--foreground);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--wp--preset--color--background);
}

/* Inputs: 48px, 1px steel border (4.55:1 on the panel), the parent's 4px radius and
   its ink focus ring. Markup, names and validation are the forms engine's, untouched. */
.fse-blocks-form .fse-blocks-form-input {
	min-height: 48px;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

/* SURFACES. Images are square-cornered photographs, never rounded tiles. */
.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: 0;
}

/* Card grid gaps: spacing|50, spacing|60 from 782px. */
.wp-site-blocks .wp-block-post-template.is-layout-grid {
	gap: var(--wp--preset--spacing--50);
}

/* HEADER. The logo sets the bar: 120px wide on small screens, 176px from 782px
   (T15; the masthead padding is in § T15); the image block writes its size inline,
   so `!important`. The ratio is the asset's own (8543 x 3695). The footer logo is
   larger still: 168px, 240px from 782px. */
.boxdirect-header .wp-block-image img,
.boxdirect-footer .wp-block-image img {
	width: 120px !important; /* T15: the masthead and the footer carry more of the logo (were 112 / 150) */
	height: auto !important;
	aspect-ratio: 8543 / 3695;
}

.boxdirect-footer .wp-block-image img {
	width: 168px !important;
}

/* Navigation: semibold meta-size labels, 32px apart in the row, each a 44px target
   (WordPress draws them about 25px tall, the menu toggles 24px). The mobile overlay
   keeps WordPress's own behaviour. The current-page marker is theme.json's. */
.boxdirect-header .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
}

/* No `display` here: WordPress shows and hides the toggles per breakpoint. */
.boxdirect-header .wp-block-navigation__responsive-container-open,
.boxdirect-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

@media (min-width: 600px) {
	.boxdirect-header .wp-block-navigation__container {
		gap: var(--wp--preset--spacing--60);
	}

	.boxdirect-header .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--small);
	}
}

@media (min-width: 782px) {
	.boxdirect-header .wp-block-image img {
		width: 176px !important;
	}

	.boxdirect-footer .wp-block-image img {
		width: 240px !important;
	}

	.wp-site-blocks .wp-block-post-template.is-layout-grid {
		gap: var(--wp--preset--spacing--60);
	}
}

/* FOOTER. The page ending's rhythm: spacing|80 above, spacing|60 below (inline in
   the part, hence `!important`). */
.boxdirect-footer {
	padding-top: var(--wp--preset--spacing--80) !important;
	padding-bottom: var(--wp--preset--spacing--60) !important;
}

/*
 * T12 — marketing experience (2026-10-02).
 *
 * The page compositions on the T11 foundation. Reusable components only, each
 * named by a class the patterns carry (or, for the shared location band, by
 * what it contains, so its T8 markup stays byte-identical):
 *
 *   HERO           .boxdirect-hero            Home: photograph, graded overlay, header over it
 *   EYEBROW        .boxdirect-eyebrow         short uppercase label, any ground
 *   PAGE HEADER    .boxdirect-page-header     internal pages: eyebrow, H1, context
 *   INTRODUCTION   .boxdirect-intro           statement H2 + lead, 2px ink rule
 *   GATEWAY        .boxdirect-gateway         full-bleed photo + dark text panel
 *   PHOTO BAND     .boxdirect-photo-band      one wide photograph on the container
 *   USP            .boxdirect-usps            numbered slots (TEST placeholders today)
 *   PROPERTY CARD  .boxdirect-units           photo, number plate, name, two key figures
 *   LOCATION       the band holding the route link: an editorial address
 *   CLOSING CTA    .boxdirect-cta             the final conversion moment
 *   FAQ            .boxdirect-faq             native details/summary, +/− state
 *   SECONDARY      .boxdirect-button-secondary outline action, ink on light, yellow on dark
 *
 * Yellow stays an action colour (T11): primary buttons, the secondary outline on
 * dark, the current-page marker, eyebrows on dark. Motion: only the card photo's
 * hover zoom, and none under prefers-reduced-motion.
 */

/* EYEBROW */
.boxdirect-eyebrow {
	font-size: var(--wp--custom--font-size--eyebrow);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* HERO. On Home the header is fixed over the photograph; every other page keeps it
   in flow. In BOTH it is the solid near-black bar at the top (its preset background
   class), never transparent: a transparent top state (T16) left the logo and the
   white labels floating over the hero, with no header layer at scrollY 0
   (2026-10-06). The hero's top padding clears the bar. */
body.home .wp-site-blocks {
	position: relative;
}

body.home .wp-site-blocks > header.wp-block-template-part {
	position: fixed; /* T16: was absolute; the masthead now stays with the reader */
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
}

.wp-site-blocks .wp-block-cover.boxdirect-hero {
	align-items: flex-end;
	min-height: max(560px, 88svh);
	padding-top: calc(var(--wp--preset--spacing--80) * 2) !important;
	padding-bottom: var(--wp--preset--spacing--80) !important;
}

/* The flat dim is 40 (the pattern); this grades it: dark under the text at the
   bottom-left and under the header at the top, lighter across the middle, so
   the photograph reads. Text contrast is measured on the composite. */
.boxdirect-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	/* T15: the masthead is taller (125px) and the content sits higher above the rail,
	   so both washes reach further: the top one under the whole masthead, the bottom
	   one behind the eyebrow and the H1. */
	background:
		linear-gradient(to bottom, color-mix(in srgb, var(--wp--preset--color--foreground) 82%, transparent) 0, color-mix(in srgb, var(--wp--preset--color--foreground) 55%, transparent) 8rem, transparent 14rem),
		linear-gradient(to top, color-mix(in srgb, var(--wp--preset--color--foreground) 92%, transparent) 0, color-mix(in srgb, var(--wp--preset--color--foreground) 78%, transparent) 50%, color-mix(in srgb, var(--wp--preset--color--foreground) 30%, transparent) 100%);
}

.boxdirect-hero .wp-block-cover__inner-container {
	z-index: 2;
}

.boxdirect-hero .wp-block-cover__image-background {
	object-position: 50% 35%;
}

/* PAGE HEADER: the H1 with its context line set as a lead. */
.boxdirect-page-header .boxdirect-units-from__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

/* INTRODUCTION: a statement and a lead under one 2px ink rule. */
.boxdirect-intro__grid {
	padding-top: var(--wp--preset--spacing--60);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

/* GATEWAY. The photograph fills its half edge to edge; the text panel keeps the
   container's right edge. Stacked (photo first, 4:3) below 782px. */
main section.wp-block-group.alignfull.boxdirect-gateway {
	padding-top: 0 !important;
	padding-bottom: var(--wp--preset--spacing--80) !important; /* T15: the feature stands on white before the next band */
}

.boxdirect-gateway__grid {
	margin-top: 0;
	margin-bottom: 0;
}

.boxdirect-gateway__media .wp-block-image {
	height: 100%;
	margin: 0;
}

.boxdirect-gateway__media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.boxdirect-gateway__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--80) var(--wp--style--root--padding-right) var(--wp--preset--spacing--80) var(--wp--style--root--padding-left);
}

@media (min-width: 782px) {
	.boxdirect-gateway__grid {
		min-height: 560px;
	}

	.boxdirect-gateway__media img {
		aspect-ratio: auto;
	}

	.boxdirect-gateway__body {
		padding: var(--wp--preset--spacing--80) !important;
	}
}

/* PHOTO BAND: one photograph, wide, square-cornered. */
.boxdirect-photo-band .wp-block-image {
	margin: 0;
}

.boxdirect-photo-band img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 600px) {
	.boxdirect-photo-band img {
		aspect-ratio: 21 / 9;
	}
}

/* USP: numbered slots, each under a 2px ink rule; 1, 2 or 4 across. */
.boxdirect-usps__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60);
	counter-reset: boxdirect-usp;
}

.boxdirect-usps__grid > .boxdirect-usp {
	margin: 0; /* grid cells: no flow-layout sibling margin, so every rule lines up */
}

.boxdirect-usp {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-usp > * {
	margin-top: 0;
	margin-bottom: 0;
}

.boxdirect-usp::before {
	content: counter(boxdirect-usp, decimal-leading-zero);
	content: counter(boxdirect-usp, decimal-leading-zero) / "";
	counter-increment: boxdirect-usp;
	display: block;
	margin-bottom: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.boxdirect-usp__title {
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

@media (min-width: 600px) {
	.boxdirect-usps__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.boxdirect-usps__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* PROPERTY CARD. Photo first, the unit's number on it, the name, then the
   record's figures as labelled key figures (label small, value large). The
   title's link covers the whole card, so the card is one target. */
.wp-site-blocks .boxdirect-units .wp-block-post-template.is-layout-grid {
	grid-template-columns: 1fr;
	row-gap: var(--wp--preset--spacing--70);
}

@media (min-width: 600px) {
	.wp-site-blocks .boxdirect-units .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.wp-site-blocks .boxdirect-units .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.boxdirect-units .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
}

.boxdirect-units .wp-block-post > * {
	margin-top: 0;
	margin-bottom: 0;
}

.boxdirect-units .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.boxdirect-units .wp-block-post-featured-image img {
	display: block;
}

.boxdirect-unit-card-number {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
}

.boxdirect-unit-card-number:empty {
	display: none;
}

.boxdirect-unit-card-number__value {
	display: block;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.boxdirect-units .wp-block-post-title {
	margin-top: var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 800;
}

.boxdirect-units .wp-block-post-title a {
	text-decoration: none;
}

.boxdirect-units .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.boxdirect-units .wp-block-post-title a:hover,
.boxdirect-units .wp-block-post-title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.boxdirect-units .wp-block-post:has(.wp-block-post-title a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--foreground);
	outline-offset: 4px;
}

.boxdirect-units .wp-block-post-title a:focus-visible {
	outline: none;
}

.boxdirect-unit-card-facts .boxdirect-facts {
	grid-template-columns: auto minmax(0, 1fr); /* the area is short; the price ("€ 350,00 per maand") gets the rest of the row */
	column-gap: var(--wp--preset--spacing--60);
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--custom--border--subtle);
}

.boxdirect-unit-card-facts .boxdirect-facts__row {
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--20);
	padding: 0;
	border: 0;
}

.boxdirect-unit-card-facts .boxdirect-facts dt {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--custom--font-size--eyebrow);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.boxdirect-unit-card-facts .boxdirect-facts dd {
	font-size: var(--wp--custom--font-size--card-value);
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
}

/* An orphaned last card (7 units in a 3- or 2-column grid) spans the row as a
   wide card: photo left, name and figures right. A layout rule on position,
   not a category: whichever unit sorts last gets it. */
@media (min-width: 600px) and (max-width: 1099px) {
	.boxdirect-units .wp-block-post:last-child:nth-child(2n + 1) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		column-gap: var(--wp--preset--spacing--60);
	}
}

@media (min-width: 1100px) {
	.boxdirect-units .wp-block-post:last-child:nth-child(3n + 1) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		column-gap: var(--wp--preset--spacing--80);
	}
}

.boxdirect-units .wp-block-post:last-child:is(:nth-child(2n + 1), :nth-child(3n + 1)) > .wp-block-post-featured-image {
	grid-row: 1 / -1;
}

/* Name and figures centred beside the photo: the two flexible rows above and below them. */
.boxdirect-units .wp-block-post:last-child:is(:nth-child(2n + 1), :nth-child(3n + 1)) > .wp-block-post-title {
	grid-column: 2;
	grid-row: 2;
}

.boxdirect-units .wp-block-post:last-child:is(:nth-child(2n + 1), :nth-child(3n + 1)) > .boxdirect-unit-card-facts {
	grid-column: 2;
	grid-row: 3;
}

@media (prefers-reduced-motion: no-preference) {
	.boxdirect-units .wp-block-post-featured-image img {
		transition: transform 0.3s ease-out;
	}

	.boxdirect-units .wp-block-post:hover .wp-block-post-featured-image img {
		transform: scale(1.03);
	}
}

/* LOCATION. The shared band (T8 markup, byte-identical) is recognised by the
   route link it holds. "Locatie" becomes its eyebrow, the address its headline. */
main section.wp-block-group.alignfull:has(a[href^="https://www.google.com/maps/"]) > .alignwide {
	align-items: flex-end;
	gap: var(--wp--preset--spacing--60);
}

main section.wp-block-group.alignfull:has(a[href^="https://www.google.com/maps/"]) h2 {
	margin-bottom: var(--wp--preset--spacing--40) !important;
	font-size: var(--wp--custom--font-size--eyebrow);
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

main section.wp-block-group.alignfull:has(a[href^="https://www.google.com/maps/"]) p.has-medium-font-size {
	font-size: var(--wp--preset--font-size--huge) !important;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

/* CLOSING CTA. One composition under a 2px ink rule: the heading at H2 scale on
   the left, the contact sentence and the primary link on the right. */
.boxdirect-cta > .alignwide {
	padding-top: var(--wp--preset--spacing--60);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-cta .boxdirect-unit-contact {
	margin-top: 0 !important;
}

.boxdirect-cta .boxdirect-unit-contact h2 {
	margin-bottom: var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--huge) !important;
}

.boxdirect-cta .boxdirect-unit-contact p {
	font-size: var(--wp--preset--font-size--medium);
}

.boxdirect-cta .boxdirect-contact-band__link {
	margin-top: var(--wp--preset--spacing--50) !important;
}

@media (min-width: 782px) {
	.boxdirect-cta > .alignwide {
		align-items: end; /* T18: the shared grid; the heading on 1-7, the action on 8-12 */
	}

	.boxdirect-cta .boxdirect-unit-contact {
		display: contents;
	}

	.boxdirect-cta .boxdirect-unit-contact h2 {
		grid-column: 1 / 8;
		grid-row: 1 / span 2;
		align-self: start;
		margin-bottom: 0 !important;
	}

	.boxdirect-cta .boxdirect-unit-contact p,
	.boxdirect-cta .boxdirect-contact-band__link {
		grid-column: 8 / -1;
	}
}

/* FAQ. Native details/summary: the question is the control, a +/− glyph shows
   the state (hidden from assistive technology, which reads the native
   expanded state), 2px ink rule above the list, 1px between questions. */
.boxdirect-faq .wp-block-details {
	padding: var(--wp--preset--spacing--50) 0;
}

.boxdirect-faq .wp-block-details:first-of-type {
	border-top: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--50);
	min-height: 44px;
	list-style: none;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.3;
}

.boxdirect-faq summary::-webkit-details-marker {
	display: none;
}

.boxdirect-faq summary::after {
	content: "+";
	content: "+" / "";
	flex: none;
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 400;
	line-height: 1;
}

.boxdirect-faq details[open] > summary::after {
	content: "−";
	content: "−" / "";
}

.boxdirect-faq summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--foreground);
	outline-offset: 4px;
}

.boxdirect-faq .wp-block-details > :not(summary) {
	max-width: 66ch;
	font-size: var(--wp--preset--font-size--medium);
}

/* SECONDARY ACTION. An outline on the shared 52px button box: ink on light
   grounds, yellow on the near-black (as the route link); it fills on hover,
   focus and press. The 2px border replaces 2px of the core padding. */
.boxdirect-button-secondary .wp-block-button__link.wp-element-button {
	padding: calc(0.667em) calc(1.333em);
	border: 2px solid var(--wp--preset--color--foreground);
	background-color: transparent;
	color: var(--wp--preset--color--foreground);
}

.boxdirect-button-secondary .wp-block-button__link.wp-element-button:hover,
.boxdirect-button-secondary .wp-block-button__link.wp-element-button:focus-visible,
.boxdirect-button-secondary .wp-block-button__link.wp-element-button:active {
	background-color: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
}

.has-foreground-background-color .boxdirect-button-secondary .wp-block-button__link.wp-element-button {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.has-foreground-background-color .boxdirect-button-secondary .wp-block-button__link.wp-element-button:hover,
.has-foreground-background-color .boxdirect-button-secondary .wp-block-button__link.wp-element-button:focus-visible,
.has-foreground-background-color .boxdirect-button-secondary .wp-block-button__link.wp-element-button:active {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--foreground);
}

/*
 * T13 — unit detail experience (2026-10-02).
 *
 * The unit page as a property detail page, on the T11 tokens and T12 components.
 * Scoped to the unit template's own section classes, so the shared form panel on
 * /contact/ and the overview cards are untouched. Every figure comes from the
 * existing rows (boxdirect_unit_fact_rows()); this file only places them.
 *
 *   HEADER   .boxdirect-unit-header    eyebrow, number plate + H1, key-facts strip
 *   PHOTO    .boxdirect-unit-media     the featured image, 4:3 → 16:9 on the container
 *   BODY     .boxdirect-unit-body      description (lead + checklist) | summary
 *   SUMMARY  .boxdirect-unit-summary   "Kenmerken" spec sheet + the jump to the viewing section
 *   VIEWING  .boxdirect-unit-viewing   #bezichtiging: the shared CTA beside the viewing form
 */

/* HEADER: the number plate beside the H1 (white on the near-black band; none for a
   unit whose slug has no number), then the key figures as large labelled values. */
.boxdirect-unit-identity {
	gap: var(--wp--preset--spacing--50);
}

.boxdirect-unit-header .boxdirect-unit-card-number {
	position: static;
	flex: none;
}

.boxdirect-unit-header .boxdirect-unit-card-number__value {
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	font-size: var(--wp--preset--font-size--huge);
}

.boxdirect-keyfacts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	margin: var(--wp--preset--spacing--60) 0 0;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--muted);
}

.boxdirect-keyfacts__item--money {
	grid-column: 1 / -1;
}

.boxdirect-keyfacts__item {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.boxdirect-keyfacts dt {
	font-size: var(--wp--custom--font-size--eyebrow);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.boxdirect-keyfacts dd {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

@media (min-width: 782px) {
	.boxdirect-keyfacts {
		grid-template-columns: repeat(auto-fit, minmax(11rem, max-content));
		column-gap: var(--wp--preset--spacing--80);
	}

	.boxdirect-keyfacts__item--money {
		grid-column: auto;
	}
}

/* PHOTO: the unit's one real photograph, wide. 4:3 on small screens, 16:9 from 782px. */
.boxdirect-unit-media .wp-block-post-featured-image {
	margin: 0;
}

.boxdirect-unit-media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 782px) {
	.boxdirect-unit-media .wp-block-post-featured-image img {
		aspect-ratio: 16 / 9;
	}
}

/* BODY: the stored description as a lead, "Voorzieningen" at H3 scale with a square-
   bullet checklist (two columns from 600px). Presentation only: the content is the
   unit record's own. */
.boxdirect-unit-description > p:first-child {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

.boxdirect-unit-description h2 {
	margin-top: var(--wp--preset--spacing--70);
	margin-bottom: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	line-height: 1.25;
}

.boxdirect-unit-description ul.wp-block-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
	margin: 0;
	padding: var(--wp--preset--spacing--50) 0 0;
	border-top: 2px solid var(--wp--preset--color--foreground);
	list-style: none;
}

.boxdirect-unit-description ul.wp-block-list > li {
	position: relative;
	margin: 0;
	padding-left: 1.5em;
}

.boxdirect-unit-description ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 0.5em;
	height: 0.5em;
	background: var(--wp--preset--color--foreground);
}

@media (min-width: 600px) {
	.boxdirect-unit-description ul.wp-block-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* SUMMARY: "Kenmerken" as a spec sheet — white, under a 2px ink rule, muted labels,
   tabular values — instead of the grey panel; the total row keeps its T9 emphasis.
   The jump to the viewing section is the page's primary action. Sticky beside a
   longer description from 782px. */
.boxdirect-unit-summary .boxdirect-unit-facts:has(.boxdirect-facts) {
	padding: var(--wp--preset--spacing--50) 0 0;
	border-top: 2px solid var(--wp--preset--color--foreground);
	background: transparent;
}

.boxdirect-unit-summary .boxdirect-unit-facts .boxdirect-facts__row {
	border-bottom-color: var(--wp--custom--border--subtle);
}

.boxdirect-unit-summary .boxdirect-facts dt {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--custom--font-size--eyebrow);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.boxdirect-unit-summary .boxdirect-facts dd {
	font-weight: 600;
}

.boxdirect-unit-summary .boxdirect-facts__row--total dt {
	color: var(--wp--preset--color--foreground);
}

.boxdirect-unit-summary .boxdirect-facts__row--total dd {
	font-weight: 800;
}

@media (min-width: 782px) {
	.boxdirect-unit-summary {
		position: sticky;
		top: var(--wp--preset--spacing--60);
	}
}

/* VIEWING: one conversion moment on the concrete band. The shared CTA composition
   (byte-identical, T2 pin) at H2 scale on the left, the viewing form on a white panel
   on the right; stacked below 782px. #bezichtiging is the jump target.
   T14: /contact/ opens with the same section (`.boxdirect-contact-viewing`), so the
   viewing request looks the same wherever a visitor arrives at it. */
.boxdirect-unit-viewing .boxdirect-unit-contact,
.boxdirect-contact-viewing .boxdirect-unit-contact {
	margin-top: 0 !important;
}

.boxdirect-unit-viewing .boxdirect-unit-contact h2,
.boxdirect-contact-viewing .boxdirect-unit-contact h2 {
	margin-bottom: var(--wp--preset--spacing--50) !important;
	font-size: var(--wp--preset--font-size--huge) !important;
}

.boxdirect-unit-viewing .boxdirect-unit-contact p,
.boxdirect-contact-viewing .boxdirect-unit-contact p {
	font-size: var(--wp--preset--font-size--medium);
}

.boxdirect-unit-viewing .boxdirect-form,
.boxdirect-contact-viewing .boxdirect-form {
	background: var(--wp--preset--color--background);
}

/*
 * T15 — brand shell and homepage composition (2026-10-02).
 *
 * The header, the footer and Home read as one designed piece. Same tokens (T11),
 * same components (T12); the compositions change:
 *
 *   MASTHEAD  a larger logo, signage-style navigation, "Contact" as the outlined
 *             action (its own destination), a hairline under the bar, a big-type
 *             mobile menu. Over the photograph on Home; on every other page the
 *             hairline separates the bar from the dark page header.
 *   HERO      the content low on the photograph, then a RAIL of three facts along
 *             the bottom edge (Locatie, Ruimtes, Contact).
 *   INTRO     (Home) the statement at display scale, the lead offset under it.
 *   GATEWAY   the photograph wide, the dark panel laid over its right edge.
 *   WAAROM    the heading beside a ruled, numbered list.
 *   ENDING    (Home) location → the closing CTA on the near-black ground, at display
 *             scale → the footer: one dark base, divided by hairlines.
 *   FOOTER    the logo large, Adres · Contact · Navigatie, a quiet legal row.
 */

/* MASTHEAD */
.boxdirect-header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--background) 16%, transparent);
}

@media (min-width: 782px) {
	.boxdirect-header {
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}
}

@media (min-width: 600px) {
	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		gap: var(--wp--preset--spacing--70);
		align-items: center;
	}

	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
		font-size: var(--wp--custom--font-size--eyebrow);
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	/* "Contact" is the masthead's action: a yellow outline (filled when it is the
	   current page, and on hover/focus), on the 44px nav target. */
	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content[href="/contact/"] {
		padding: 0 var(--wp--preset--spacing--40);
		border: 2px solid var(--wp--preset--color--accent);
		border-radius: var(--wp--preset--border-radius--small);
		color: var(--wp--preset--color--accent);
		text-decoration: none;
	}

	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content[href="/contact/"]:hover,
	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content[href="/contact/"]:focus-visible,
	.boxdirect-header .wp-block-navigation__responsive-container:not(.is-menu-open) .current-menu-item > a.wp-block-navigation-item__content[href="/contact/"] {
		background-color: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--foreground);
		text-decoration: none;
	}
}

/* Keyboard focus on the dark shell (masthead, mobile menu, footer): a 2px yellow
   ring 2px outside the link, 13.21:1 on the near-black — the route link's own
   treatment (T10) — instead of the browser's 1px blue. */
.boxdirect-header a:focus-visible,
.boxdirect-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* The open mobile menu: a full-screen list in display type, left-aligned. */
.boxdirect-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.boxdirect-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}

.boxdirect-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
}

.boxdirect-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* Home: the masthead over the photograph keeps its hairline as the frame's top edge. */

/* HERO RAIL: three facts on the photograph's bottom edge, under a hairline. */
.boxdirect-hero__rail {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--80) !important;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--background) 30%, transparent);
}

.boxdirect-hero__rail > .boxdirect-hero__fact {
	margin: 0;
}

.boxdirect-hero__fact p:not(.boxdirect-eyebrow) {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

@media (min-width: 600px) {
	.boxdirect-hero__rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--60);
	}
}

/* INTRO (Home): the statement across the container at display scale, the lead
   beneath it on the grid's 5-column side (T18: from line 8, the line the gateway
   panel, the closing CTA and the footer share) under a short ink rule. Over keeps
   T12's two columns, now on the grid. */
body.home .boxdirect-intro .boxdirect-intro__grid {
	display: grid;
	row-gap: var(--wp--preset--spacing--60) !important;
	padding-top: 0;
	border-top: 0;
}

body.home .wp-site-blocks .boxdirect-intro .boxdirect-intro__grid > .wp-block-column { /* .wp-site-blocks: above the grid's 7 + 5 mapping */
	grid-column: 1 / -1;
	margin: 0;
}

body.home .boxdirect-intro h2 {
	max-width: 18ch;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.02em;
	line-height: 1.02;
}

body.home .boxdirect-intro .boxdirect-intro__grid > .wp-block-column + .wp-block-column {
	padding-top: var(--wp--preset--spacing--50);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

@media (min-width: 782px) {
	body.home .wp-site-blocks .boxdirect-intro .boxdirect-intro__grid > .wp-block-column + .wp-block-column {
		grid-column: 8 / -1;
	}
}

/* GATEWAY: the photograph runs from the viewport's left edge to the end of grid
   column 9; the near-black panel takes columns 8-12, over the photograph's right
   edge, inset top and bottom, ending on the container's right edge. The section is
   full width, so its grid repeats the container's 12 columns between two edge
   tracks: `--boxdirect-edge` is where the container starts, and each edge track is
   one gap narrower so that column 1 starts exactly there (T18; it was 72% / -12% of
   the viewport, on no line). Below 782px the panel rises over the photo's foot. */
.boxdirect-gateway__body {
	position: relative;
	z-index: 1;
}

@media (max-width: 781px) {
	.boxdirect-gateway__body {
		margin: calc(-1 * var(--wp--preset--spacing--80)) var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left) !important;
		padding: var(--wp--preset--spacing--60) !important;
	}
}

@media (min-width: 782px) {
	.wp-site-blocks .boxdirect-gateway__grid {
		--boxdirect-edge: max(var(--wp--style--root--padding-left), (100% - var(--wp--style--global--wide-size)) / 2);
		display: grid !important;
		grid-template-columns: calc(var(--boxdirect-edge) - var(--boxdirect-grid-gap)) repeat(12, minmax(0, 1fr)) calc(var(--boxdirect-edge) - var(--boxdirect-grid-gap));
		column-gap: var(--boxdirect-grid-gap) !important;
		align-items: center !important;
		min-height: 560px;
	}

	.wp-site-blocks .boxdirect-gateway__media {
		grid-column: 1 / 11; /* the bleed track to the end of column 9 */
		grid-row: 1;
		align-self: stretch;
		min-width: 0;
		margin: 0;
	}

	.wp-site-blocks .boxdirect-gateway__body {
		grid-column: 9 / 14; /* columns 8-12 */
		grid-row: 1;
		min-width: 0;
		margin: 0 !important;
	}
}

@media (min-width: 1100px) {
	.wp-site-blocks .boxdirect-gateway__grid {
		min-height: 640px;
	}
}

/* WAAROM: the heading beside a ruled, numbered list (one column of rows). The
   rows hold their shape whatever the text: today's TEST placeholders included. */
.boxdirect-usps .boxdirect-usps__grid {
	grid-template-columns: 1fr;
	gap: 0;
}

.boxdirect-usps .boxdirect-usp {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50) 0;
}

.boxdirect-usps .boxdirect-usp:last-child {
	border-bottom: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-usps .boxdirect-usp::before {
	grid-row: 1 / span 2;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.boxdirect-usps .boxdirect-usp > * {
	grid-column: 2;
}

.boxdirect-usps .boxdirect-usp__text {
	color: var(--wp--preset--color--muted);
}

/* T18: on the grid from 782px, the 5 + 7 split: the heading on columns 1-5, the
   list on 6-12 (the line the viewing and contact compositions share). */
@media (min-width: 782px) {
	.boxdirect-usps .boxdirect-usps__grid {
		grid-template-columns: 1fr;
	}

	.boxdirect-usps > .alignwide {
		grid-template-rows: auto 1fr;
		align-items: start;
	}

	.boxdirect-usps > .alignwide > * {
		grid-column: 1 / 6;
		margin: 0;
	}

	.boxdirect-usps > .alignwide > h2 {
		margin-top: var(--wp--preset--spacing--40) !important;
	}

	.boxdirect-usps > .alignwide > .boxdirect-usps__grid {
		grid-column: 6 / -1;
		grid-row: 1 / span 2;
	}
}

@media (min-width: 1100px) {
	.boxdirect-usps .boxdirect-usp {
		grid-template-columns: 5rem minmax(0, 1fr);
	}
}

/* ENDING (Home): the closing CTA joins the location band and the footer as one
   near-black base, at display scale, divided by hairlines. */
body.home .boxdirect-cta {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--background) 16%, transparent);
	background: var(--wp--preset--color--foreground);
	color: var(--wp--preset--color--background);
}

body.home .boxdirect-cta > .alignwide {
	padding-top: 0;
	border-top: 0;
}

body.home .boxdirect-cta .boxdirect-unit-contact h2 {
	font-size: var(--wp--preset--font-size--xx-large) !important;
	letter-spacing: -0.02em;
}

body.home .boxdirect-cta .boxdirect-unit-contact a {
	color: var(--wp--preset--color--background);
}

/* On the near-black ground the primary link fills white on hover and focus (its
   default inversion would turn it near-black, the ground's own colour). */
body.home .boxdirect-cta .boxdirect-contact-band__link a:hover,
body.home .boxdirect-cta .boxdirect-contact-band__link a:focus-visible {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

body.home .boxdirect-cta .boxdirect-contact-band__link a:focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

/* FOOTER: the architectural base. Under the closing row: the identity (logo and
   Adres) and the navigation, then the legal row, quieter, under a hairline.
   T18: one column; from 600px the identity stacked on the left beside the
   navigation; from 782px on the grid: logo 1-4, Adres 5-7, Navigatie 8-12 in two
   columns of links; from 1100px the legal links from line 8 too. The row's height is its
   content's: no column stands empty beside a taller one. */
.boxdirect-footer__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60);
}

.boxdirect-footer__main > * {
	margin: 0;
}

.boxdirect-footer__col p {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.boxdirect-footer__nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.boxdirect-footer__nav li {
	margin: 0;
}

.boxdirect-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
}

.boxdirect-footer__nav a:hover,
.boxdirect-footer__nav a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.3em;
}

.boxdirect-footer__legal {
	margin-top: var(--wp--preset--spacing--80) !important;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--background) 16%, transparent);
	color: color-mix(in srgb, var(--wp--preset--color--background) 72%, var(--wp--preset--color--foreground));
}

.boxdirect-footer__legal a {
	color: inherit !important;
}

@media (min-width: 600px) and (max-width: 781px) {
	.boxdirect-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--60);
	}

	.boxdirect-footer__brand,
	.boxdirect-footer__col:nth-child(2) {
		grid-column: 1;
	}

	.boxdirect-footer__col:nth-child(3) {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

@media (min-width: 782px) {
	.boxdirect-footer__main {
		align-items: start;
	}

	.boxdirect-footer__brand {
		grid-column: 1 / 5;
	}

	.boxdirect-footer__col:nth-child(2) {
		grid-column: 5 / 8;
	}

	.boxdirect-footer__col:nth-child(3) {
		grid-column: 8 / -1;
	}

	.boxdirect-footer__nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, auto);
		grid-auto-flow: column; /* read down: Home, Bedrijfsruimtes, Over BoxDirect | Veelgestelde vragen, Contact */
		column-gap: var(--boxdirect-grid-gap);
	}

}

/* The legal links join line 8 once they fit its five columns on one line. */
@media (min-width: 1100px) {
	.wp-site-blocks .boxdirect-footer__legal {
		display: grid !important;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--boxdirect-grid-gap) !important;
		align-items: baseline;
	}

	.boxdirect-footer__legal > :first-child {
		grid-column: 1 / 8;
	}

	.boxdirect-footer__legal > :last-child {
		grid-column: 8 / -1;
	}
}

/*
 * T16 — brand experience and visual storytelling (2026-10-02).
 *
 *   HEADER   stays with the reader: fixed over the Home hero, sticky on every other
 *            page. Two states, switched by the platform's header state (offset 8, functions.php): at the
 *            top the masthead (overlay on Home); scrolled, a compact solid bar.
 *   HERO     a brand statement, a lead, the primary and a white secondary action, a
 *            one-time entrance (the photo settles, the words rise).
 *   STEPS    "Zo werkt huren": three steps under giant numerals, the page's big
 *            typographic moment between the information and the ending.
 *   FOOTER   opens with a closing statement and a direct contact invitation.
 *   OVERVIEW one line of framing copy in the page header.
 *
 * MOTION is only ever transform, opacity, colour or padding, never scroll-driven,
 * and all of it sits inside `prefers-reduced-motion: no-preference`: with reduced
 * motion the page is complete and static.
 */

/* HEADER STATES. The bar keeps its place while scrolling; anchors land below it. */
html {
	scroll-padding-top: 6rem;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

body.home .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 0px);
}

html.ewo-header-scrolled body .boxdirect-header {
	padding-top: var(--wp--preset--spacing--30) !important;
	padding-bottom: var(--wp--preset--spacing--30) !important;
	background-color: var(--wp--preset--color--foreground) !important;
}

html.ewo-header-scrolled body .boxdirect-header .wp-block-image img {
	width: 104px !important;
}

@media (min-width: 782px) {
	html.ewo-header-scrolled body .boxdirect-header .wp-block-image img {
		width: 132px !important;
	}
}

/* HERO: full viewport height, with clearance under the fixed masthead (three
   section steps: 120px on small screens, 192px from the 64px step) so the
   eyebrow never meets the bar; the lead, and the secondary action in white. */
.wp-site-blocks .wp-block-cover.boxdirect-hero {
	min-height: max(640px, 100svh);
	padding-top: calc(var(--wp--preset--spacing--80) * 3) !important;
}

/* HERO: the lead, and the secondary action in white on the photograph. */
.boxdirect-hero__lead {
	max-width: 38ch;
}

.boxdirect-hero .wp-block-buttons {
	gap: var(--wp--preset--spacing--40);
}

.boxdirect-hero .boxdirect-button-secondary .wp-block-button__link.wp-element-button {
	border-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--background);
}

.boxdirect-hero .boxdirect-button-secondary .wp-block-button__link.wp-element-button:hover,
.boxdirect-hero .boxdirect-button-secondary .wp-block-button__link.wp-element-button:focus-visible,
.boxdirect-hero .boxdirect-button-secondary .wp-block-button__link.wp-element-button:active {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

/* STEPS: three steps, each under a giant numeral (the `numeral` token, 72-140px)
   and a 2px ink rule; one column, three from 782px. The numeral is a CSS counter,
   hidden from assistive technology (the steps are already in order). */
.boxdirect-steps__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--70);
	counter-reset: boxdirect-step;
}

.boxdirect-steps__grid > .boxdirect-step {
	margin: 0;
	padding-top: var(--wp--preset--spacing--50);
	border-top: 2px solid var(--wp--preset--color--foreground);
}

.boxdirect-step::before {
	content: counter(boxdirect-step);
	content: counter(boxdirect-step) / "";
	counter-increment: boxdirect-step;
	display: block;
	margin-bottom: var(--wp--preset--spacing--50);
	font-size: var(--wp--custom--font-size--numeral);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.04em;
	line-height: 0.85;
}

.boxdirect-step > * {
	margin-top: 0;
	margin-bottom: 0;
}

.boxdirect-step__title {
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

.boxdirect-step__text {
	max-width: 34ch;
}

.boxdirect-step__link {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.boxdirect-step__link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.boxdirect-step__link a::after {
	content: "→";
	content: "→" / "";
	margin-left: 0.4em;
}

@media (min-width: 782px) {
	.boxdirect-steps__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--boxdirect-grid-gap); /* T18: three steps = columns 1-4, 5-8, 9-12 */
	}
}

/* FOOTER CLOSING: the brand's last line beside a direct invitation, above the
   information rows. */
.boxdirect-footer__closing {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--80) !important;
	padding-bottom: var(--wp--preset--spacing--80);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--background) 16%, transparent);
}

.boxdirect-footer__closing > * {
	margin: 0;
}

.boxdirect-footer__tagline {
	max-width: 14ch;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.02;
}

.boxdirect-footer__direct {
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.boxdirect-footer__direct a {
	text-decoration: none;
}

.boxdirect-footer__direct a:hover,
.boxdirect-footer__direct a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.15em;
}

@media (min-width: 782px) {
	.boxdirect-footer__closing {
		align-items: end; /* T18: the shared grid; the statement on 1-7, the invitation on 8-12 */
	}

	.boxdirect-footer__statement {
		grid-column: 1 / 8;
	}

	.boxdirect-footer__invite {
		grid-column: 8 / -1;
	}
}

/* OVERVIEW: the framing line under the H1. */
.boxdirect-page-header__lead {
	max-width: 60ch;
}

/* MOTION. Every transition and animation of this file lives in this block. */
@media (prefers-reduced-motion: no-preference) {
	.boxdirect-header,
	.boxdirect-header .wp-block-image img {
		transition: padding 0.25s ease, background-color 0.25s ease, width 0.25s ease;
	}

	.boxdirect-hero .wp-block-cover__image-background {
		animation: boxdirect-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.boxdirect-hero__content > *,
	.boxdirect-hero__rail {
		animation: boxdirect-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.boxdirect-hero__content > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.boxdirect-hero__content > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.boxdirect-hero__content > :nth-child(4) {
		animation-delay: 0.24s;
	}

	.boxdirect-hero__rail {
		animation-delay: 0.36s;
	}

	@keyframes boxdirect-settle {
		from {
			transform: scale(1.06);
		}

		to {
			transform: scale(1);
		}
	}

	@keyframes boxdirect-rise {
		from {
			opacity: 0;
			transform: translateY(1.25rem);
		}

		to {
			opacity: 1;
			transform: none;
		}
	}
}
