/*
Theme Name: Woets Techniek
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: woets-techniek
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === tokens === */
:root {
	--site-text: var(--wp--preset--color--text);
	--site-bg: var(--wp--preset--color--background);
	--site-red: var(--wp--preset--color--primary);
	--site-line: #111111;
}

body {
	background: var(--site-bg);
	color: var(--site-text);
}

/* === header === */
.site-header {
	background: var(--site-bg);
	border-bottom: 1px solid var(--site-line);
}
.logo-full {
	margin: 0;
}
.logo-full img {
	display: block;
	width: 100%;
	height: auto;
}
.hdr-nav-row {
	border-top: 1px solid var(--site-line);
	padding: 12px clamp(20px, 5vw, 48px);
	gap: 16px 24px;
	align-items: center;
}
.hdr-label {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--site-text);
}
.hdr-nav {
	gap: clamp(20px, 3vw, 42px);
}
.nav-link {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nav-link a {
	color: var(--site-text);
	text-decoration: none;
}
.nav-link a:hover {
	color: var(--site-red);
}

/* === footer === */
.site-footer {
	background: var(--site-bg);
	border-top: 1px solid var(--site-line);
}
.ft-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 28px clamp(20px, 5vw, 48px);
	gap: 18px 40px;
}
.ft-brand {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.ft-line {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* === checkerboard grid === */
.cb {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--site-line);
	border-left: 1px solid var(--site-line);
}
.cb > * {
	margin-top: 0 !important;
}
.wp-block-post-content > .alignfull + .alignfull {
	margin-top: 0 !important;
}
.cell {
	aspect-ratio: 4 / 3;
	min-width: 0;
	border-right: 1px solid var(--site-line);
	border-bottom: 1px solid var(--site-line);
}
.cell--img {
	position: relative;
	aspect-ratio: auto;
	padding: 0;
	overflow: hidden;
}
.cell--img .wp-block-image,
.cell--img figure {
	position: absolute;
	inset: 0;
	margin: 0;
	width: 100%;
	height: 100%;
}
.cell--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease;
}
.cell--img:hover img {
	transform: scale(1.04);
}
.cell--img .img--bw img {
	filter: grayscale(1) contrast(1.07) brightness(0.98);
}
.cell--txt {
	background: var(--site-bg);
	padding: clamp(22px, 3.5vw, 40px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 14px;
}
.cell--red {
	background: var(--site-red);
	color: #ffffff;
}
.cell--ink {
	background: var(--site-text);
	color: #ffffff;
}

/* === typography helpers === */
.eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero-head {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin: 0;
	max-width: 5.5em;
}
.cell-title {
	font-size: var(--wp--preset--font-size--headline);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}
.cell-copy {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	max-width: 34ch;
}
.stat-num {
	font-size: clamp(2.6rem, 6vw, 5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 0.9;
	margin: 0;
}
.stat-label {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-cell .wp-block-heading {
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	margin: 0;
}
.cell-link {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.cell-link a {
	color: var(--site-text);
	text-decoration: none;
	border-bottom: 2px solid var(--site-red);
}
.cell-link a:hover {
	color: var(--site-red);
}

/* === buttons === */
.wp-element-button {
	border: none;
}
.wp-element-button:hover {
	background: var(--site-text);
	color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.cell--img img {
		transition: none;
	}
}

/* === contact === */
.contact {
	border-top: 1px solid var(--site-line);
	background: var(--site-bg);
}
.contact-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 48px);
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	justify-content: space-between;
	align-items: flex-start;
}
.contact-text {
	max-width: 520px;
}
.contact-text .cell-title {
	margin-bottom: 18px;
}
.contact-text .cell-copy {
	margin-bottom: 14px;
}
.contact-form {
	flex: 1 1 380px;
	max-width: 520px;
}
.wp-block-jetpack-contact-form label {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--site-text);
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form textarea {
	background: #ffffff;
	color: var(--site-text);
	border: 1px solid var(--site-text);
	border-radius: 0;
	padding: 14px 16px;
	font-size: 0.95rem;
	width: 100%;
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: none;
	border-color: var(--site-red);
}


/* === responsive checkerboard === */
@media (max-width: 960px) {
	.cb {
		grid-template-columns: repeat(2, 1fr);
	}
	.cell--txt {
		aspect-ratio: auto;
		min-height: 280px;
	}
}

@media (max-width: 560px) {
	.cb {
		grid-template-columns: 1fr;
	}
	.cell {
		aspect-ratio: auto;
	}
	.cell--img {
		aspect-ratio: 4 / 3;
	}
	.cell--txt {
		min-height: auto;
	}
}


