/*
Theme Name: AGPCS
Theme URI: https://agpcs.nl
Author: AGPCS
Description: Strakke one-page thema voor AGPCS (ICT-consultancy en computersystemen op maat). Zwart, wit en rood, afgeleid van het logo. Alle teksten zijn aan te passen via Weergave > Customizer > AGPCS inhoud.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agpcs
*/

/* ==========================================================================
   Fonts (lokaal gehost, geen verbinding met externe servers)
   ========================================================================== */
@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #111111;
	--paper: #ffffff;
	--mist: #f0f0f0;
	--grey: #595959;
	--grey-light: #c9c9c9;
	--red: #e10600;
	--red-deep: #b30500;

	--font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
	--font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1280px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section: clamp(4.5rem, 9vw, 8rem);
	--header-h: 72px;
	--rule: 2px;
}

/* ==========================================================================
   Basis
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--red-deep);
}

::selection {
	background: var(--red);
	color: var(--paper);
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: 0.005em;
}

p {
	margin: 0 0 1.1em;
	max-width: 62ch;
}

ul,
ol,
dl,
dd {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
}

.skip-link:focus {
	top: 8px;
	color: var(--paper);
}

/* Titels van secties */
.section-title {
	font-size: clamp(2.75rem, 6vw, 5.25rem);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ==========================================================================
   Knoppen
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.8rem 1.75rem;
	border: var(--rule) solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	background: var(--red);
	border-color: var(--red);
	color: var(--paper);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
}

.btn--ghost:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: var(--rule) solid var(--ink);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

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

.site-logo {
	display: block;
	line-height: 0;
}

.site-logo img {
	height: 28px;
	width: auto;
}

.site-logo .custom-logo {
	max-height: 40px;
	width: auto;
}

.primary-nav ul {
	display: flex;
	gap: clamp(1.25rem, 3vw, 2.5rem);
}

.primary-nav a {
	display: inline-block;
	padding: 0.4rem 0;
	font-size: 0.975rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: var(--rule) solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
	color: var(--ink);
	border-bottom-color: var(--red);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: var(--ink);
	font: 600 1rem var(--font-body);
	cursor: pointer;
}

.menu-toggle__bars {
	position: relative;
	width: 24px;
	height: 14px;
	border-top: var(--rule) solid currentColor;
	border-bottom: var(--rule) solid currentColor;
}

.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: var(--rule);
	margin-top: -1px;
	background: currentColor;
}

@media (max-width: 780px) {
	.menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		background: var(--paper);
		border-bottom: var(--rule) solid var(--ink);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem var(--gutter) 1.25rem;
	}

	.primary-nav a {
		display: block;
		padding: 0.9rem 0;
		font-family: var(--font-display);
		font-size: 1.75rem;
		font-weight: 400;
		text-transform: uppercase;
		border-bottom: 0;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	padding-block: clamp(3rem, 7vw, 6rem) var(--section);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.hero__title {
	font-size: clamp(3.5rem, 10.5vw, 9.25rem);
	line-height: 0.94;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hero__title span {
	display: block;
	text-wrap: balance;
}

/* Contour tegenover gevuld: de werking van het logo (AG / PCS) */
.hero__outline {
	color: var(--paper);
	-webkit-text-stroke: clamp(1.5px, 0.016em, 3px) var(--ink);
	paint-order: stroke fill;
}

.hero__intro {
	font-size: clamp(1.125rem, 1.6vw, 1.3rem);
	line-height: 1.55;
	max-width: 46ch;
	margin-bottom: 2rem;
}

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

.hero__art {
	justify-self: end;
	width: min(100%, 440px);
}

.mouse {
	width: 100%;
	height: auto;
	overflow: visible;
}

.mouse__cable,
.mouse__body {
	fill: none;
	stroke: var(--ink);
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1 1.1;
	stroke-dashoffset: 1.03;
	animation: mouse-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

.mouse__cable {
	stroke-width: 28;
}

.mouse__body {
	stroke-width: 14;
	animation-duration: 1s;
	animation-delay: 1.2s;
}

.mouse__wheel {
	fill: var(--red);
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	animation: mouse-wheel 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 2.1s forwards;
}

@keyframes mouse-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes mouse-wheel {
	from {
		opacity: 0;
		transform: scaleY(0.2);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.mouse__cable,
	.mouse__body {
		animation: none;
		stroke-dashoffset: 0;
	}

	.mouse__wheel {
		animation: none;
		opacity: 1;
	}
}

@media (max-width: 900px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__art {
		justify-self: start;
		width: min(70%, 300px);
	}
}

/* ==========================================================================
   Diensten
   ========================================================================== */
.services {
	padding-block: var(--section);
	background: var(--mist);
	border-top: var(--rule) solid var(--ink);
	border-bottom: var(--rule) solid var(--ink);
}

.service {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
	gap: clamp(1.25rem, 4vw, 3.5rem);
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
	border-top: var(--rule) solid var(--ink);
}

.service:last-child {
	border-bottom: var(--rule) solid var(--ink);
}

.service__title {
	font-size: clamp(1.9rem, 2.8vw, 2.6rem);
	overflow-wrap: break-word;
	min-width: 0;
}

.service__text {
	margin: 0;
}

.points li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.5rem;
	font-weight: 500;
}

/* Het scrollwiel uit het logo als opsommingsteken */
.points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 7px;
	height: 15px;
	border-radius: 4px;
	background: var(--red);
}

@media (max-width: 900px) {
	.service {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
}

/* ==========================================================================
   Werkwijze
   ========================================================================== */
.process {
	padding-block: var(--section);
	background: var(--ink);
	color: var(--paper);
}

.process a {
	color: var(--paper);
}

.process :focus-visible {
	outline-color: var(--paper);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
	padding-top: 1.5rem;
	border-top: var(--rule) solid var(--paper);
}

.step__number {
	display: block;
	margin-bottom: 1.25rem;
	font-family: var(--font-display);
	font-size: clamp(4.5rem, 7vw, 6.5rem);
	line-height: 0.9;
	color: var(--ink);
	-webkit-text-stroke: 2px var(--paper);
	paint-order: stroke fill;
}

.step__title {
	margin-bottom: 0.75rem;
	font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.step__text {
	margin: 0;
	color: var(--grey-light);
}

@media (max-width: 1000px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 3rem;
	}
}

@media (max-width: 560px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Over
   ========================================================================== */
.about {
	padding-block: var(--section);
}

.about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(2rem, 7vw, 6rem);
	align-items: start;
}

.about .section-title {
	margin-bottom: 0;
}

.about__text p {
	font-size: 1.1875rem;
}

.principles {
	margin-top: 2.5rem;
}

.principle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 1.5rem;
	padding-block: 1.25rem;
	border-top: var(--rule) solid var(--ink);
}

.principle:last-child {
	border-bottom: var(--rule) solid var(--ink);
}

.principle dt {
	font-family: var(--font-display);
	font-size: 1.75rem;
	line-height: 1.1;
	text-transform: uppercase;
}

.principle dd {
	margin: 0;
	color: var(--grey);
}

@media (max-width: 900px) {
	.about__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.about .section-title {
		margin-bottom: 1rem;
	}
}

@media (max-width: 520px) {
	.principle {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
	padding-block: var(--section);
	background: var(--red);
	color: var(--paper);
}

.contact a {
	color: var(--paper);
}

.contact a:hover {
	color: var(--ink);
}

.contact :focus-visible {
	outline-color: var(--ink);
}

.contact__title {
	max-width: 16ch;
	text-wrap: balance;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	font-size: clamp(3rem, 8.5vw, 7.5rem);
	line-height: 0.95;
}

.contact__text {
	font-size: 1.1875rem;
	max-width: 44ch;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0;
	border-top: var(--rule) solid var(--paper);
}

.contact__item {
	padding: 1.25rem 1.5rem 0.5rem 0;
}

.contact__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.contact__value {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 2.6vw, 2.3rem);
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	padding-block: 3rem;
	background: var(--ink);
	color: var(--paper);
}

.site-footer a {
	color: var(--paper);
}

.site-footer :focus-visible {
	outline-color: var(--paper);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.site-footer__logo img {
	height: 30px;
	width: auto;
}

.site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.site-footer__nav a {
	font-size: 0.95rem;
	font-weight: 500;
}

.site-footer__nav a:hover {
	color: var(--paper);
	text-decoration-color: var(--red);
}

.site-footer__legal {
	width: 100%;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	color: var(--grey-light);
	font-size: 0.9rem;
	max-width: none;
}

/* ==========================================================================
   Gewone pagina's en berichten (fallback templates)
   ========================================================================== */
.page-main {
	padding-block: clamp(3rem, 6vw, 5rem) var(--section);
	min-height: 60vh;
}

.page-main .entry {
	max-width: 760px;
}

.entry__title {
	margin-bottom: 2rem;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.entry__content > * + * {
	margin-top: 1.25em;
}

.entry__content h2,
.entry__content h3 {
	margin-top: 2em;
	line-height: 1.05;
}

.entry__content h2 {
	font-size: 2.25rem;
}

.entry__content h3 {
	font-size: 1.6rem;
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.25rem;
}

.entry__content ul li {
	list-style: disc;
}

.entry__content ol li {
	list-style: decimal;
}

.entry__content img {
	height: auto;
}

.post-list > * + * {
	margin-top: 3rem;
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}
