/*
Theme Name: SYDLIX Engineering
Description: WordPress-blokthema voor SYDLIX Engineering, met Nederlandstalige pagina’s voor industriële automatisering.
Author: SYDLIX Engineering
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: sydlix-engineering
*/

:root {
	--sydlix-night: #0a1420;
	--sydlix-panel: #101e2c;
	--sydlix-ink: #142536;
	--sydlix-muted: #475c6c;
	--sydlix-cyan: #43dbf5;
	--sydlix-line: #d8e1e7;
	--sydlix-shell: 1240px;
}

html { scroll-behavior: smooth; }
body { margin: 0; }
.wp-site-blocks > footer,
main.sydlix-home > :where(*),
.sydlix-hero .sydlix-hero-grid > :where(*),
.sydlix-services .sydlix-card-grid > :where(*),
.sydlix-expertise .sydlix-shell > :where(*),
.sydlix-expertise .sydlix-specs > :where(*) { margin-block-start: 0; }
:where(a, button, [tabindex]):focus-visible {
	outline: 3px solid #0383a0;
	outline-offset: 5px;
}
:where(#diensten, #expertise, #contact) { scroll-margin-top: 2rem; }

.sydlix-shell {
	box-sizing: border-box;
	width: min(calc(100% - clamp(40px, 10vw, 144px)), var(--sydlix-shell));
	margin-inline: auto !important;
}
.sydlix-header { background: var(--sydlix-night); color: #fff; border-bottom: 1px solid #243342; }
.sydlix-header .sydlix-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 88px;
	padding-block: .85rem;
}
.sydlix-header .sydlix-brand { flex: 0 1 196px; width: 196px; margin: 0; line-height: 0; }
.sydlix-brand img { width: 100%; height: auto; aspect-ratio: 600 / 211; }
.sydlix-header .wp-block-navigation { font-size: .9rem; font-weight: 600; margin: 0; }
.sydlix-header .wp-block-navigation__container { gap: clamp(1.1rem, 3.25vw, 3rem); }
.sydlix-header .wp-block-navigation a:hover { color: var(--sydlix-cyan); }
.sydlix-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sydlix-night);
	color: white;
	padding: 1.5rem;
}
.sydlix-header .is-menu-open .wp-block-navigation__container { align-items: flex-start; font-size: 1.2rem; }

.sydlix-hero { background: var(--sydlix-night); color: white; padding-block: clamp(3.2rem, 8.5vw, 7.15rem); }
.sydlix-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5.5rem);
}
.sydlix-eyebrow {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0;
	color: #086b80;
	font-size: .76rem;
	font-weight: 750;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.sydlix-eyebrow::before { content: ''; background: currentColor; flex: 0 0 1.6rem; height: 2px; }
.sydlix-hero .sydlix-eyebrow, .sydlix-contact .sydlix-eyebrow { color: var(--sydlix-cyan); }
.sydlix-hero h1 {
	max-width: 17ch;
	margin: .95rem 0 1.4rem;
	color: white;
	font-size: clamp(2.55rem, 4.6vw, 4.65rem);
	font-weight: 680;
	letter-spacing: -.064em;
	line-height: .99;
	text-wrap: balance;
}
.sydlix-hero mark { padding: 0; background: transparent; color: var(--sydlix-cyan); }
.sydlix-hero .sydlix-lead { margin: 0; color: #c4d2dd; font-size: clamp(1rem, 1.6vw, 1.17rem); max-width: 48ch; }
.sydlix-hero .wp-block-buttons { margin-top: 1.9rem; gap: .75rem; }
.sydlix-hero .wp-block-button__link, .sydlix-email-link {
	display: inline-block;
	background: var(--sydlix-cyan);
	color: #071621;
	border: 1px solid var(--sydlix-cyan);
	border-radius: 5px;
	padding: .82rem 1.16rem;
	font-size: .92rem;
	font-weight: 750;
	text-decoration: none;
}
.sydlix-hero .wp-block-button__link:hover, .sydlix-email-link:hover { background: #a5f2ff; border-color: #a5f2ff; }
.sydlix-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: white;
	border-color: #476071;
}
.sydlix-hero .is-style-outline .wp-block-button__link:hover { border-color: var(--sydlix-cyan); color: var(--sydlix-cyan); }
.sydlix-hero .sydlix-hero-image { position: relative; margin: 0; background: var(--sydlix-panel); }
.sydlix-hero-image img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	aspect-ratio: 1.22;
	object-fit: cover;
	border: 1px solid #2c4355;
}
.sydlix-hero-image::after {
	content: '';
	position: absolute;
	pointer-events: none;
	right: -6px;
	bottom: -6px;
	width: 32%;
	height: 25%;
	border-right: 2px solid var(--sydlix-cyan);
	border-bottom: 2px solid var(--sydlix-cyan);
}

.sydlix-specialties { background: var(--sydlix-panel); border-top: 1px solid #243342; color: #cddbe5; }
.sydlix-specialties .sydlix-shell { display: flex; flex-wrap: wrap; gap: .55rem 0; align-items: center; padding-block: 1.15rem; }
.sydlix-specialties p {
	font-size: .81rem;
	letter-spacing: .02em;
	font-weight: 620;
	margin: 0;
	padding-inline: clamp(.7rem, 2.5vw, 2.1rem);
	border-left: 1px solid #3d5162;
}
.sydlix-specialties p:first-child { padding-left: 0; border-left: 0; }

.sydlix-section { padding-block: clamp(3.8rem, 8vw, 7rem); }
.sydlix-services { background: #f4f7f9; }
.sydlix-section h2 {
	max-width: 22ch;
	margin: .72rem 0 .9rem;
	font-size: clamp(2rem, 4.45vw, 3.75rem);
	letter-spacing: -.047em;
	line-height: 1.04;
	text-wrap: balance;
}
.sydlix-section .sydlix-lead { max-width: 57ch; color: var(--sydlix-muted); margin: 0; }
.sydlix-services .sydlix-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 1rem;
	margin-top: 2.25rem;
}
.sydlix-card {
	background: #fff;
	border: 1px solid var(--sydlix-line);
	border-top: 2px solid #1395ad;
	border-radius: 5px;
	padding: clamp(1.2rem, 2.4vw, 2rem);
}
.sydlix-card h3 { font-size: 1.18rem; margin: 0 0 .65rem; letter-spacing: -.02em; }
.sydlix-card p { color: var(--sydlix-muted); margin: 0; font-size: .96rem; }
.sydlix-expertise { background: #e7eef2; border-block: 1px solid var(--sydlix-line); }
.sydlix-expertise .sydlix-shell {
	display: grid;
	grid-template-columns: 1fr .9fr;
	align-items: start;
	gap: clamp(1.8rem, 8vw, 7rem);
}
.sydlix-expertise .sydlix-specs { margin: 0; }
.sydlix-specs .wp-block-group { border-top: 1px solid #b9cbd6; padding: .85rem 0; }
.sydlix-specs .wp-block-group:last-child { border-bottom: 1px solid #b9cbd6; }
.sydlix-specs h3 { margin: 0 0 .17rem; font-size: 1.02rem; }
.sydlix-specs p { margin: 0; color: var(--sydlix-muted); font-size: .92rem; }

.sydlix-contact { background: var(--sydlix-panel); color: #fff; }
.sydlix-contact .sydlix-lead { color: #c4d2dd; }
.sydlix-email-link { margin-top: 1.55rem; }
.sydlix-footer { background: var(--sydlix-night); color: #c4d2dd; border-top: 1px solid #243342; }
.sydlix-footer .sydlix-shell { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; align-items: center; padding-block: 1.4rem; }
.sydlix-footer p { margin: 0; font-size: .85rem; }
.sydlix-footer a { color: inherit; text-underline-offset: .25em; }
.sydlix-content { padding-block: clamp(2.5rem, 7vw, 5.5rem); padding-inline: 1.25rem; }
.sydlix-content :where(h1, h2, h3) { text-wrap: balance; }

@media (max-width: 850px) {
	.sydlix-hero-grid { gap: 2rem; }
	.sydlix-hero h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); }
	.sydlix-hero-image img { aspect-ratio: 1.05; }
}
@media (max-width: 700px) {
	.sydlix-hero-grid, .sydlix-expertise .sydlix-shell, .sydlix-services .sydlix-card-grid { grid-template-columns: minmax(0, 1fr); }
	.sydlix-hero-image img { aspect-ratio: 1.55; }
	.sydlix-header .sydlix-shell { min-height: 72px; }
	.sydlix-header .sydlix-brand { flex-basis: 165px; }
	.sydlix-specialties .sydlix-shell { gap: .55rem 1rem; }
	.sydlix-specialties p { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

.sydlix-content .wp-block-post-title {
	margin-top: 0;
	font-size: clamp(2.65rem, 6vw, 4.7rem);
	letter-spacing: -.05em;
}
.sydlix-content .sydlix-page-intro {
	color: var(--sydlix-muted);
	font-size: clamp(1.05rem, 2.25vw, 1.35rem);
}
.sydlix-content .wp-block-post-content > h2 {
	margin-block-start: 2.6rem;
	margin-block-end: .6rem;
	font-size: clamp(1.35rem, 2.75vw, 1.9rem);
	letter-spacing: -.025em;
}
.sydlix-content .wp-block-post-content > h2 + :where(p, ul) { margin-block-start: 0; }
