/*!
Theme Name: emit
Author: E&M IT Solutions
Description: One-page marketing site for em-it-solutions.com — dark, engineering-grade, bilingual EN/NL.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: emit
*/

/*--------------------------------------------------------------
# Design tokens — deliberately single-theme: dark, engineering-grade.
--------------------------------------------------------------*/
:root {
	--bg: #0a0e14;
	--bg-raise: #0e141d;
	--panel: #111925;
	--line: #1d2837;
	--line-soft: #16202e;
	--text: #dbe4ee;
	--muted: #8b99ac;
	--faint: #5c6a7d;
	--accent: #41b3e3;      /* lineage of the old #2e9cca */
	--accent-strong: #6cc8ef;
	--accent-dim: rgba(65, 179, 227, 0.12);
	--pulse: #43d69a;       /* data-flow signal, used sparingly */

	--font-sans: "IBM Plex Sans", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-md: 1.0625rem;
	--text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	--text-h2: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
	--text-h1: clamp(2.5rem, 1.8rem + 3.4vw, 4.25rem);

	--space-section: clamp(5rem, 4rem + 5vw, 8.5rem);
	--radius: 0.75rem;
	--header-h: 4.5rem;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-md);
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font-sans);
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

h1 { font-size: var(--text-h1); font-weight: 700; }
h2 { font-size: var(--text-h2); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }

p { margin: 0 0 1.25em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--accent-strong); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
}

.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--raise { background: var(--bg-raise); border-block: 1px solid var(--line-soft); }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(10, 14, 20, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 2rem; min-height: var(--header-h);
}

.wordmark {
	display: inline-flex; align-items: baseline; gap: 0.5rem;
	font-family: var(--font-mono); font-weight: 500; font-size: 1.0625rem;
	color: #fff; letter-spacing: 0.01em;
}

.wordmark b { color: var(--accent); font-weight: 500; }
.wordmark span { color: var(--muted); font-size: var(--text-xs); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
	padding: 0.5rem 0.875rem;
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--muted); border-radius: 0.5rem;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus { color: #fff; background: var(--panel); }

.lang-switch {
	margin-left: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--accent);
	border: 1px solid var(--line); border-radius: 999px;
}

.lang-switch:hover { border-color: var(--accent); }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600;
	line-height: 1.2; border-radius: 0.625rem; border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: #06131c; }
.btn--accent:hover, .btn--accent:focus { background: var(--accent-strong); color: #06131c; }

.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--accent); color: #fff; }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
}

.hero__canvas {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0.55;
}

.hero__inner {
	position: relative;
	display: grid; gap: 1.5rem;
	padding-block: clamp(6rem, 5rem + 8vw, 11rem);
	max-width: 44rem;
}

.kicker {
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--pulse); letter-spacing: 0.02em;
}

.kicker::before { content: "// "; color: var(--faint); }

.hero h1 { margin: 0; }

.hero__lead { font-size: var(--text-lg); color: var(--muted); margin: 0; max-width: 40rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.75rem; }

/*--------------------------------------------------------------
# Section heads
--------------------------------------------------------------*/
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { margin: 0.5rem 0 0.75rem; }
.section-head p { color: var(--muted); margin: 0; }

/*--------------------------------------------------------------
# Service cards
--------------------------------------------------------------*/
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1.25rem;
}

.svc {
	position: relative;
	display: flex; flex-direction: column; gap: 0.875rem;
	padding: 2rem;
	background: var(--panel);
	border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.svc:hover { border-color: var(--accent); transform: translateY(-3px); }

.svc__index {
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--faint);
}

.svc__icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }
.svc__icon svg { width: 100%; height: 100%; }

.svc h3 { margin: 0; }
.svc p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/*--------------------------------------------------------------
# Approach
--------------------------------------------------------------*/
.approach-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 2.5rem 2rem;
}

.approach-item h3 {
	display: flex; align-items: center; gap: 0.625rem;
	font-size: var(--text-md); margin-bottom: 0.5rem;
}

.approach-item h3::before {
	content: "▸"; color: var(--pulse); font-size: 0.8em;
}

.approach-item p { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/*--------------------------------------------------------------
# Stats
--------------------------------------------------------------*/
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1.25rem;
}

.stat {
	padding: 1.75rem 2rem;
	background: var(--panel);
	border: 1px solid var(--line); border-radius: var(--radius);
}

.stat b {
	display: block;
	font-family: var(--font-mono); font-weight: 500;
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	color: var(--accent); line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.stat span { color: var(--muted); font-size: var(--text-sm); }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-grid {
	display: grid; grid-template-columns: 2fr 3fr;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
	align-items: start;
}

.contact-aside p { color: var(--muted); }

.contact-aside .mail {
	font-family: var(--font-mono); font-size: var(--text-sm);
}

.form {
	display: grid; gap: 1.125rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--panel);
	border: 1px solid var(--line); border-radius: var(--radius);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }

.field { display: grid; gap: 0.375rem; }

.field label {
	font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted);
}

.field input, .field textarea {
	font: inherit; font-size: var(--text-sm); color: var(--text);
	padding: 0.8125rem 1rem; width: 100%;
	background: var(--bg); border: 1px solid var(--line); border-radius: 0.5rem;
	transition: border-color 0.2s ease;
}

.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.field textarea { min-height: 9rem; resize: vertical; }

/* honeypot */
.field--hp { position: absolute; left: -9999px; }

.form-response {
	padding: 0.875rem 1.125rem; border-radius: 0.5rem;
	font-size: var(--text-sm);
}

.form-response--success { background: rgba(67, 214, 154, 0.1); color: var(--pulse); border: 1px solid rgba(67, 214, 154, 0.35); }
.form-response--error { background: rgba(227, 93, 65, 0.1); color: #f0917a; border: 1px solid rgba(227, 93, 65, 0.35); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	border-top: 1px solid var(--line-soft);
	background: var(--bg-raise);
	padding-block: 3rem 2rem;
	font-size: var(--text-sm);
	color: var(--muted);
}

.site-footer__grid {
	display: grid; grid-template-columns: 1fr auto;
	gap: 2rem; align-items: start;
}

.site-footer .wordmark { margin-bottom: 0.75rem; }

.site-footer__meta {
	font-family: var(--font-mono); font-size: var(--text-xs);
	color: var(--faint); text-align: right; line-height: 2;
}

.site-footer__bottom {
	margin-top: 2.5rem; padding-top: 1.25rem;
	border-top: 1px solid var(--line-soft);
	font-family: var(--font-mono); font-size: var(--text-xs); color: var(--faint);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/*--------------------------------------------------------------
# Motion
--------------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.reveal { opacity: 1; transform: none; }
	.hero__canvas { display: none; }
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 48rem) {
	.main-nav a:not(.lang-switch) { display: none; }
	.contact-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__meta { text-align: left; }
}

/*--------------------------------------------------------------
# Privacy page & form note
--------------------------------------------------------------*/
.prose { max-width: 44rem; }
.prose h1 { margin-top: 0.5rem; }
.prose h3 { margin-top: 2em; }
.prose p { color: var(--muted); }
.prose .btn { margin-top: 1rem; }

.form-note {
	margin-left: 1rem;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--faint);
}
