/* FidelSec — brand extras beyond theme.json.
   The hero block (.fs-hero / .fs-frame / .fs-crop / .fs-panel / .fs-ruler / .fs-proof)
   is ported near-verbatim from the live fidelsec.nl site (its own custom CSS, not part
   of the Ollie/theme.json system) at the user's explicit request — same design, rebuilt
   on the cleaner theme. See BRIEF.md / SITE-NOTES.md for what changed and why. */

@font-face {
	font-family: 'MONO RGO Modular';
	src: url('../fonts/mono-rgo-modular-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Typografie (Brandbook V2 p.10): Rethink Sans = hoofdletter, JetBrains Mono =
   technisch/secundair (labels, meta, eyebrows), MONO-RGO Modular = ALLEEN nummering. */
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.fs-mono-num { font-family: 'MONO RGO Modular', monospace; }

/* Footer links: the theme's global link color (primary/indigo) otherwise
   beats the tertiary/white text color set on the surrounding paragraphs,
   since browsers give <a> its own color rule regardless of ancestor color. */
footer a {
	color: inherit;
}

/* ---- Header: zoals de live site (wit, dunne onderlijn, logo 120px, kleine menutekst). ---- */
header .fs-header-logo { margin: 0; line-height: 0; }
header .fs-header-logo img { height: auto; width: 120px; max-width: 100%; }
header .wp-block-navigation { --wp--style--block-gap: var(--wp--preset--spacing--small); }

/* ---- Headings default to a true near-black, distinct from body copy's
   softer Fidelity Black — matches the live site (h1 uses #111, body #3B3B3B).
   Skipped when a block already sets its own text color (e.g. white on a
   gradient card), which always carries the has-text-color class too. ---- */
.wp-block-heading:not(.has-text-color):not(.has-text-color .wp-block-heading):not(.wp-block-cover .wp-block-heading) {
	color: #111111;
}

/* ---- Dotted band background, used behind the homepage hero and the
   Managed Services section — exact colors from the live site. ---- */
.fs-dotted {
	background-color: #E4E3E4;
	background-image: radial-gradient(rgba(17, 17, 17, 0.16) 1px, transparent 1px);
	background-size: 20px 20px;
}

/* ================= Homepage hero (ported from live fidelsec.nl) ================= */
.fs-hero {
	--b: #476EA1;
	--p: #8065AC;
	--ink: #111;
	--body: #3B3B3B;
	--bg: #E4E3E4;
	--dot: rgba(17, 17, 17, 0.16);
	background-color: var(--bg);
	background-image: radial-gradient(var(--dot) 1px, transparent 1px);
	background-size: 20px 20px;
	padding: clamp(2.5rem, 4.5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
	font-family: 'Rethink Sans', system-ui, sans-serif;
}
.fs-hero * { box-sizing: border-box; }
.fs-frame { position: relative; max-width: 1160px; margin: 0 auto; }
.fs-crop { position: absolute; width: 14px; height: 14px; }
.fs-crop--tl { left: -12px; top: -12px; border-left: 1px solid var(--b); border-top: 1px solid var(--b); }
.fs-crop--tr { right: -12px; top: -12px; border-right: 1px solid var(--b); border-top: 1px solid var(--b); }
.fs-crop--bl { left: -12px; bottom: -12px; border-left: 1px solid var(--b); border-bottom: 1px solid var(--b); }
.fs-panel {
	background: var(--b);
	padding: 1px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}
.fs-panel__in {
	background: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
	padding: clamp(1.75rem, 2.6vw, 2.25rem) clamp(1.5rem, 2.8vw, 2.5rem) 0;
}
.fs-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--p);
}
.fs-eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--p); flex: none; }
.fs-main { display: flex; gap: clamp(0.875rem, 1.6vw, 1.25rem); margin-top: clamp(1.25rem, 2.2vw, 1.75rem); }
.fs-spine { width: 1px; background: var(--b); opacity: 0.35; position: relative; flex: none; }
.fs-spine::before { content: ""; position: absolute; top: 10px; left: -2.5px; width: 6px; height: 6px; background: var(--b); }
.fs-body { flex: 1; min-width: 0; }
.fs-t1, .fs-t2 { margin: 0; font-size: clamp(1.75rem, 4vw, 3.125rem); line-height: 1.12; font-weight: 700; }
.fs-t1 { color: var(--ink); }
.fs-t2 { color: var(--b); margin-top: 0.15rem; }
.fs-hr { height: 1px; background: var(--b); opacity: 0.3; margin: clamp(1rem, 1.6vw, 1.375rem) 0; max-width: 220px; }
.fs-sub { margin: 0 0 1.5rem; font-size: clamp(1rem, 1.25vw, 1.0625rem); line-height: 1.6; color: var(--body); max-width: 34em; }
.fs-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.fs-cta {
	display: inline-block;
	background: var(--b);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.03em;
	padding: 0.9375rem 1.5rem;
	border-radius: 0;
	transition: background 0.15s;
}
.fs-cta:hover, .fs-cta:focus { background: var(--p); color: #fff; }
.fs-note { font-size: 0.875rem; color: var(--body); margin: 0; }
.fs-ruler { display: flex; gap: 3px; align-items: flex-end; height: 11px; margin-top: clamp(1.5rem, 2.6vw, 2rem); overflow: hidden; }
.fs-ruler i { display: block; width: 1px; height: 4px; background: var(--dot); flex: none; }
.fs-ruler i:nth-child(5n+1) { height: 11px; background: var(--b); }
.fs-foot { border-top: 1px solid rgba(71, 110, 161, 0.25); margin-top: 10px; padding: 0.875rem 0 1.5rem; }
.fs-proof { margin: 0; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.26em; color: var(--b); text-transform: uppercase; line-height: 1.9; }
@media (max-width: 600px) { .fs-spine { display: none; } .fs-main { gap: 0; } }

/* ---- Dark testimonial band: purple accent bar in front of the quote. ---- */
.fs-quote { position: relative; padding-left: 1.6rem; }
.fs-quote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	bottom: 0.1em;
	width: 3px;
	background: var(--wp--preset--color--primary-alt);
}

.fs-star { color: #E67A45; letter-spacing: 0.1em; padding-top: 1.1rem; border-top: 1px dotted rgba(255, 255, 255, 0.25); }

/* Step numbers in the "5 stappen" services grid. */
.fs-step-num { font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--primary-alt); }

/* Primary buttons darken toward the accent purple on hover, like .fs-cta. */
.wp-element-button.has-primary-background-color:hover {
	background-color: var(--wp--preset--color--primary-alt) !important;
}


/* ================= Brandbook V2: vormtaal, labels, sublabels ================= */
:root { --fs-chamfer: 18px; }

/* Eyebrows/labels = JetBrains Mono (technisch, secundair). */
.fs-eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.16em; }

/* Vormtaal (p.8): geometrisch, afgeschuinde hoek rechtsonder — zoals de paneel-
   en kaartvormen in het merk. Alleen op gevulde vlakken; omlijnde knoppen houden
   hun rand heel. */
.wp-block-button:not(.is-style-outline) .wp-element-button {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
/* Sublabels (p.9): Managed Services = Encrypted Teal, Compliance & Governance =
   Cyber Dusk. Het primaire FidelSec-merk blijft dominant; het sublabel is een badge. */
.fs-badge, .fs-managed .fs-eyebrow {
	display: flex; width: fit-content; align-items: center; gap: 0; padding: .3rem .85rem .3rem .7rem;
	color: #fff; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.fs-managed .fs-eyebrow { background: #3E6868; }
.fs-managed .fs-eyebrow::before { display: none; }
.fs-badge--cg { background: var(--wp--preset--gradient--cyber-dusk); }
.fs-badge--ms { background: #3E6868; }
.fs-managed .wp-block-button.is-style-outline .wp-element-button { border-color: #3E6868; }
.fs-managed .wp-element-button.has-background:hover { background-color: #111111 !important; }

/* ---- Hero in gewone blokken: afstanden, liniaal en knop (geen HTML-blok meer) ---- */
.fs-hero .wp-block-group, .fs-hero p, .fs-hero .wp-block-buttons, .fs-hero .wp-block-button { margin-block: 0; }
.fs-hero .fs-frame { display: block; }
.fs-hero .fs-panel > .fs-panel__in { margin: 0; }
.fs-hero .fs-main { display: flex; gap: clamp(0.875rem, 1.6vw, 1.25rem); margin-top: clamp(1.25rem, 2.2vw, 1.75rem); }
.fs-hero .fs-hr { height: 1px; background: var(--b); opacity: 0.3; margin: clamp(1rem, 1.6vw, 1.375rem) 0; max-width: 220px; }
.fs-hero .fs-body > p:not([class]) { margin: 0 0 1rem; }
.fs-hero .fs-sub { margin: 0 0 1.5rem; }
.fs-hero .fs-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.fs-hero .fs-cta-buttons { margin: 0; }
.fs-hero .fs-cta-buttons .wp-block-button__link {
	background: var(--b); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; padding: 0.9375rem 1.5rem; border-radius: 0; transition: background 0.15s;
}
.fs-hero .fs-cta-buttons .wp-block-button__link:hover, .fs-hero .fs-cta-buttons .wp-block-button__link:focus { background: var(--p); color: #fff; }
/* Liniaal: streepjes met CSS i.p.v. 60 losse elementen */
.fs-hero .fs-ruler {
	display: block; height: 11px; margin-top: clamp(1.5rem, 2.6vw, 2rem); overflow: hidden;
	background:
		repeating-linear-gradient(90deg, var(--b) 0 1px, transparent 1px 20px) left bottom / 100% 11px no-repeat,
		repeating-linear-gradient(90deg, var(--dot) 0 1px, transparent 1px 4px) left bottom / 100% 4px no-repeat;
}

/* Lijstafstand zoals op de oude site (stond daar in de Global Styles van de database). */
:root :where(.wp-block-list > li) { margin-bottom: var(--wp--preset--spacing--small); }

/* ---- Niet zijwaarts scrollen: volle-breedte blokken (100vw) tellen de scrollbalk mee ---- */
html, body { overflow-x: clip; }

/* ---- Ademruimte rond brede vlakken (bijv. de "Meer weten?"-band) ---- */
.wp-block-post-content > .wp-block-group.alignwide[class*="-background"] { margin-top: var(--wp--preset--spacing--large) !important; }
.wp-block-post-content:has(> .alignwide:last-child[class*="-background"]) { padding-bottom: var(--wp--preset--spacing--large); }

/* ---- Taalkeuze (MultilingualPress "Read In") als twee knoppen met vlag: NL en EN ---- */
.mlp-quicklinks { max-width: 1280px; margin: 0 auto; padding: 1.5rem var(--wp--preset--spacing--medium); }
.mlp-quicklinks .mlp-quicklinks-list > h5 { display: none; }
.mlp-quicklinks .mlp-quicklinks-list > ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.mlp-quicklinks .mlp-quicklinks-list > ul::before,
.mlp-quicklinks .mlp-quicklinks-link {
	display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid #E4E3E4; background: #fff; color: #111;
	font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; line-height: 1;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.mlp-quicklinks .mlp-quicklinks-list > ul::before { content: "NL"; padding-left: 2.1rem; border-color: #476EA1; background: #476EA1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='2' y='0' fill='%23AE1C28'/%3E%3Crect width='9' height='2' y='2' fill='%23fff'/%3E%3Crect width='9' height='2' y='4' fill='%2321468B'/%3E%3C/svg%3E") no-repeat .7rem center / 1.05rem 0.7rem; color: #fff; }
.mlp-quicklinks .mlp-quicklinks-link { font-size: 0; padding-left: 2.1rem; position: relative; }
.mlp-quicklinks .mlp-quicklinks-link::before { content: ""; position: absolute; left: .7rem; top: 50%; width: 1.05rem; height: .7rem; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23012169'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/%3E%3Cpath d='M0 0l60 40M60 0L0 40' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='8'/%3E%3C/svg%3E") center / cover no-repeat; }
.mlp-quicklinks .mlp-quicklinks-link::after { content: "EN"; font-size: .78rem; }
.mlp-quicklinks .mlp-quicklinks-link:hover { border-color: #476EA1; color: #476EA1; }

/* ---- Lange links/woorden breken op smalle schermen i.p.v. de pagina te verbreden ---- */
.wp-block-post-content :where(p, li, a, td, th, h1, h2, h3, h4, figcaption), .eckb-article-title, #eckb-article-content-body :where(p, li, a, td, th) { overflow-wrap: break-word; }
