/*
Theme Name: Bedrijvenlijn
Theme URI: https://bedrijvenlijn.nl
Author: Bedrijvenlijn
Description: Zakelijk thema met tabbladen voor Bedrijvenlijn – VoIP, internet en telefonie voor het MKB.
Version: 1.5.2
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: bedrijvenlijn
*/

/* Huisstijllettertype Exo 2 (SIL Open Font License), lokaal gehost. */
@font-face {
	font-family: "Exo 2";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url(assets/fonts/exo2-normal.woff2) format("woff2");
}
@font-face {
	font-family: "Exo 2";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url(assets/fonts/exo2-italic.woff2) format("woff2");
}

:root {
	/* Huisstijlkleuren uit de logopresentatie: blauw, oranje en grijs, elk met lichtere tinten. */
	--navy: #111f52;
	--navy-2: #2f4f95;
	--blue: #4068ab;
	--blue-light: #8fa0cd;
	--blue-pale: #dcdff0;
	--accent: #ed9c27;
	--accent-pale: #fdebd8;
	--grey: #d4d4d4;
	--bg: #f5f5f5;
	--surface: #ffffff;
	--text: #2a2f3d;
	--muted: #5f6675;
	--line: #e5e5e5;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(10, 37, 64, .10);
	--wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Exo 2", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); }
a:hover { color: var(--navy); }

h1, h2, h3 {
	color: var(--blue);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--surface);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

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

/* ---------- Knoppen ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.4em;
	border-radius: 999px;
	background: var(--accent);
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
	color: var(--navy);
	background: #ffb04d;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(243, 154, 46, .35);
}
.btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
}
.btn--ghost:hover {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}

/* ---------- Header ---------- */
.site-header {
	background: var(--surface);
	color: var(--navy);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-block: 10px;
}
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.02em;
	text-decoration: none;
}
.site-brand:hover { color: var(--navy); }
.site-brand__mark {
	display: block;
	width: auto;
	height: clamp(56px, 9vw, 80px);
	flex: none;
}
.custom-logo { display: block; max-height: 48px; width: auto; }

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--blue); }

.site-header__phone {
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.site-header__phone:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
	padding: clamp(56px, 9vw, 120px) 0;
	background:
		linear-gradient(90deg, rgba(6, 8, 16, .05) 0%, rgba(6, 8, 16, .7) 100%),
		#06080f url(assets/img/hero.jpg) left center / cover no-repeat;
	color: #fff;
}
.hero__inner {
	max-width: 640px;
	margin-left: auto;
	text-align: right;
}
.hero h1 {
	color: #fff;
	font-size: clamp(1.9rem, 4.6vw, 3.1rem);
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.hero__text {
	margin-left: auto;
	max-width: 520px;
	color: rgba(255, 255, 255, .9);
	font-size: 1.15rem;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 26px;
}

/* ---------- Tabbladen ---------- */
.tabs { margin-bottom: 64px; }
/* Blauwe band onder de hero, zoals in de homepage-impressie van de huisstijl. */
.tabs__band {
	padding-top: 14px;
	background: var(--blue);
}
.tabs__list {
	position: relative;
	display: flex;
	gap: 4px;
	margin: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
	flex: 1 0 auto;
	padding: 14px 22px;
	border-radius: 10px 10px 0 0;
	color: #fff;
	font-weight: 700;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, color .15s ease;
}
.tabs__tab:hover {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}
.tabs__tab[aria-selected="true"] {
	background: var(--surface);
	color: var(--blue);
	box-shadow: inset 0 4px 0 var(--accent);
}
.tabs__tab:focus-visible { outline-offset: -3px; }
.tabs__panel {
	padding: clamp(24px, 5vw, 48px);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.tabs__panel:last-child { border-radius: 0 0 var(--radius) var(--radius); }
/* Zonder JavaScript staan alle panelen onder elkaar. */
.tabs__panel + .tabs__panel { border-top: 1px solid var(--line); }
.tabs__panel[hidden],
.js .tabs:not(.is-ready) .tabs__panel ~ .tabs__panel { display: none; }
.js .tabs__panel {
	border-top: 0;
	border-radius: 0 0 var(--radius) var(--radius);
	animation: tab-in .25s ease;
}
@keyframes tab-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .tabs__panel { animation: none; }
	.btn { transition: none; }
}

.tabs__panel > :last-child { margin-bottom: 0; }
.lead {
	max-width: 68ch;
	color: var(--muted);
	font-size: 1.15rem;
}

/* ---------- Inhoudsblokken ---------- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 28px;
}
.split {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 28px 44px;
	align-items: center;
}
.split > div > :last-child { margin-bottom: 0; }
.split__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 14px 14px 0 var(--accent-pale);
}
.wide-photo {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 32px;
	border-radius: var(--radius);
}
.split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split--reverse .split__photo {
	order: -1;
	box-shadow: -14px 14px 0 var(--blue-pale);
}
@media (max-width: 860px) {
	.split,
	.split--reverse { grid-template-columns: minmax(0, 1fr); }
	.split .split__photo { order: 0; box-shadow: none; }
}

.card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: var(--shadow);
}
.card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-bottom: 4px solid var(--accent);
}
.card__body { padding: 20px 22px 24px; }
.card p {
	margin: 0;
	color: var(--muted);
	font-size: .97rem;
}
.card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--blue-pale);
	color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }

.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.steps li {
	counter-increment: step;
	position: relative;
	padding: 24px 24px 24px 76px;
	border-radius: var(--radius);
	background: var(--bg);
}
.steps li::before {
	content: counter(step);
	position: absolute;
	top: 22px;
	left: 22px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--navy);
	font-weight: 800;
}
.steps p {
	margin: 0;
	color: var(--muted);
	font-size: .97rem;
}

.checklist {
	display: grid;
	gap: 10px;
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}
.checklist li {
	position: relative;
	padding-left: 32px;
}
.checklist li::before {
	content: "";
	position: absolute;
	top: .45em;
	left: 0;
	width: 18px;
	height: 10px;
	border-left: 3px solid var(--accent);
	border-bottom: 3px solid var(--accent);
	transform: rotate(-45deg) scale(.8);
	transform-origin: left bottom;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 8px 40px;
	align-items: start;
}
@media (max-width: 860px) {
	.contact-grid { grid-template-columns: minmax(0, 1fr); }
}
.contact-list {
	display: grid;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.contact-list li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--bg);
}
.contact-list strong {
	min-width: 90px;
	color: var(--navy);
}
.contact-list a { font-weight: 700; }
.notice {
	padding: 14px 18px;
	border-left: 4px solid var(--accent);
	border-radius: 8px;
	background: var(--bg);
	color: var(--muted);
	font-size: .95rem;
}

/* ---------- Formulier ---------- */
.form {
	max-width: 720px;
	margin-top: 28px;
}
.form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 20px;
}
.form__field { margin: 0 0 18px; }
.form label {
	display: block;
	margin-bottom: 6px;
	color: var(--navy);
	font-size: .95rem;
	font-weight: 700;
}
.form label span { color: var(--blue); }
.form input,
.form select,
.form textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	transition: border-color .15s ease, background .15s ease;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus {
	border-color: var(--blue);
	background: var(--surface);
	outline: 3px solid rgba(58, 95, 181, .22);
	outline-offset: 0;
}
.form button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.form__note {
	color: var(--muted);
	font-size: .9rem;
}
.form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-message {
	max-width: 720px;
	margin-top: 24px;
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 600;
}
.form-message--ok { background: #e3f5e9; color: #1b6b3a; }
.form-message--error { background: #fdecec; color: #a12020; }

/* ---------- Gewone pagina's en berichten ---------- */
.page-head {
	padding: 48px 0 96px;
	background: var(--blue);
}
.page-head h1 { margin: 0; color: #fff; }
.content {
	margin-top: -56px;
	margin-bottom: 64px;
}
.entry {
	padding: clamp(24px, 5vw, 48px);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.entry + .entry { margin-top: 24px; }
.entry > :last-child { margin-bottom: 0; }
.entry__title a { color: inherit; text-decoration: none; }
.entry__title a:hover { color: var(--blue); }
.entry__meta {
	color: var(--muted);
	font-size: .9rem;
}
.pagination { margin-top: 28px; text-align: center; }
.pagination .page-numbers {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 8px;
	background: var(--surface);
	text-decoration: none;
}
.pagination .current { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 28px 0;
	background: var(--blue);
	color: rgba(255, 255, 255, .9);
	font-size: .92rem;
}
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}
.site-footer a { color: #fff; }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.tabs__tab { padding: 12px 16px; }
}
