/* Zelf-gehoste webfonts (geen Google Fonts request op runtime -- licht en past
   bij een strikte CSP). Nog steeds beschikbaar/geladen, maar de kleuren/
   typografie hieronder volgen sinds 15 september 2026 bewust de originele
   Wix-pagina (https://perceptivesecurity.wixsite.com/sfsdfsfdsfsdf) i.p.v.
   het donkere www-thema -- Roeland vroeg expliciet om tekstopmaak en de
   transparantie van de achtergrond gelijk te maken aan die Wix-site. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/open-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/open-sans-700.woff2') format('woff2');
}

/* Kleuren/tokens -- overgenomen van de live Wix-pagina's eigen theme-
   variabelen (gemeten via getComputedStyle op :root): witte pagina-
   achtergrond, donkergrijze tekst (#333), blauw als actie-/accentkleur
   (rgb(0,87,225)), en de donkere navy-gradient alleen voor de navbalk. */
:root {
  --bg: #ffffff;
  --card: rgba(0, 0, 0, .035);
  --border: rgba(0, 0, 0, .12);
  --text: #333333;
  --text-dim: #595959;
  --accent: #0057e1;
  --accent-light: #2f74ea;
  --accent-pale: #0057e1;
  --danger: #d64550;
  --radius: 10px;
  --max-width: 1120px;
  --nav-bg-start: #114978;
  --nav-bg-end: #333333;
  --nav-text: rgba(255, 255, 255, .85);
  --nav-text-strong: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  position: relative;
}
/* Zelfde opbouw als de Wix-pagina: effen witte laag + de foto er bovenop op
   maar 5% dekking (een subtiel watermerk, geen donkere hero-overlay). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/images/hero-bg-wix.jpg') center center / cover no-repeat;
  opacity: .05;
  z-index: -1;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; color: var(--text); }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header -- donkere navy-gradient, zelfde kleuren als de navbalk op de
   Wix-pagina (rgb(17,73,120) -> rgb(51,51,51)); blijft dus donker met
   witte tekst, ook al is de rest van de site nu licht. */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: radial-gradient(circle at 50% 50%, var(--nav-bg-start) 0%, var(--nav-bg-end) 100%);
  border-bottom: 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: block; }
.brand-lockup { display: flex; align-items: center; gap: .6rem; }
.brand-icon { display: block; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--nav-text-strong); font-size: 1.125rem; }
.brand-tagline { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: .75rem; font-weight: 700; color: var(--nav-text); letter-spacing: .01em; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav > a { color: var(--nav-text); font-size: .875rem; text-decoration: none; font-weight: 700; }
.site-nav > a.active, .site-nav > a:hover { color: var(--nav-text-strong); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--nav-text-strong); display: block; }

/* Hero */
.hero { padding: 5rem 0 4rem; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.hero-sub { font-size: 1.05rem; max-width: 640px; margin-left: auto; margin-right: auto; color: var(--text); }

/* Paginakoppen (Blog, Over ons, Beheer) */
.page-header { padding: 3.5rem 0 2.5rem; text-align: center; }
.page-header h1 { margin-bottom: 0; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* Buttons */
.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: none; }
.btn-ghost:hover { border-color: var(--accent-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b8363f; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: #fff; color: #1f1f1f; border: 1px solid var(--border);
}
.btn-google:hover { background: #f2f2f2; }

/* Sections */
.section { padding: 3rem 0; }
.section-tight { padding: 1.5rem 0; }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 2rem; font-size: 1.375rem; font-weight: 700; padding-top: 1.75rem; position: relative; }
.section-title::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 1px; background: var(--border); }

/* Diensten -- 3-koloms grid met gecentreerde icoon/titel/tekst per item,
   zelfde opbouw als de originele Wix-pagina (geen sectietitel erboven --
   die heeft Wix ook niet, de grid volgt direct op de intro-paragraaf). */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; max-width: 960px; margin: 0 auto; }
.svc-item { text-align: center; }
.svc-icon { display: block; margin: 0 auto 1.1rem; }
.svc-title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: .0875em; color: var(--text); margin: 0 0 .75rem; }
.svc-item p { font-size: 1rem; letter-spacing: .05em; color: var(--text); margin: 0; }
@media (max-width: 780px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

.contact-cta { text-align: center; }
.contact-cta p { margin: 0 0 .3rem; }
.btn-cta {
  display: inline-block; background: #333333; color: #ffffff; font-size: 1rem;
  font-weight: 400; padding: .8rem 1.9rem; border-radius: 4px; text-decoration: none;
}
.btn-cta:hover { background: #111111; text-decoration: none; }
.cta-phone { margin-top: 1rem; font-size: .95rem; }
.cta-phone a { color: var(--text); text-decoration: underline; }

/* Founders */
.founder-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem; text-align: center; }
.founder-card { width: 160px; }
.founder-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; margin: 0 auto; display: block; }
.founder-card h3 { margin-top: .9rem; font-size: .95rem; font-weight: 600; letter-spacing: .02em; }
.founder-linkedin { display: inline-flex; margin-top: .6rem; }
.founder-linkedin img { width: 26px; height: 26px; border-radius: 5px; }

/* Blog-lijst (hergebruikt de advisory-list/-item-stijl van www.perceptivesecurity.com) */
.advisory-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.advisory-item { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem; }
.advisory-meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-dim); margin-bottom: .4rem; }
.badge { text-transform: uppercase; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 5px; background: var(--accent); color: #fff; }
.advisory-item h3 { margin: 0 0 .4rem; color: var(--text); font-size: 1.05rem; }
.advisory-item h3 a { color: inherit; text-decoration: none; }
.advisory-item h3 a:hover { text-decoration: underline; }

/* Blogdetail */
.detail-back { display: inline-block; margin-bottom: 1.25rem; color: var(--text-dim); font-size: .85rem; }
.detail-header { text-align: left; padding: 1.5rem 0 1rem; }
.detail-header .advisory-meta { margin-bottom: .75rem; }
.detail-header h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; margin-bottom: 0; }
.meta-sep { color: var(--text-dim); }

/* Artikeltekst -- links uitgelijnd, ruimere leesbreedte dan .prose (dat is
   voor gecentreerde korte teksten), met opmaak voor alles wat de
   Markdown->HTML-sanitizer in db/posts.js toestaat. */
.prose-wide { max-width: 720px; margin: 0 auto; }
.prose-wide h2 { margin-top: 2rem; font-size: 1.3rem; }
.prose-wide h3 { margin-top: 1.5rem; font-size: 1.1rem; }
.prose-wide ul, .prose-wide ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose-wide li { margin-bottom: .4rem; }
.prose-wide blockquote { border-left: 3px solid var(--accent); margin: 1.25rem 0; padding: .25rem 0 .25rem 1rem; color: var(--text-dim); }
.prose-wide pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; overflow-x: auto; margin: 1.25rem 0; }
.prose-wide code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: .85em; background: rgba(0,0,0,.06); border-radius: 4px; padding: .1em .35em; }
.prose-wide pre code { background: none; padding: 0; }
.prose-wide img { border-radius: var(--radius); margin: 1rem 0; }
.prose-wide hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.note { font-size: .85rem; color: var(--text-dim); font-style: italic; }
.prose { max-width: 760px; margin: 0 auto; text-align: center; }

/* Auth: login */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.auth-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.form-field label { font-size: .85rem; color: var(--text-dim); }
.form-field input[type=text], .form-field input[type=search], .form-field textarea, .form-field select {
  background: #ffffff; border: 1px solid var(--border); color: var(--text);
  font-family: inherit; padding: .65rem .8rem; border-radius: var(--radius); font-size: .95rem;
}
.form-field textarea { resize: vertical; min-height: 2.4rem; font-family: 'SFMono-Regular', Consolas, monospace; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.form-hint { font-size: .8rem; color: var(--text-dim); margin: -.5rem 0 1rem; }
.form-error { background: rgba(214,69,80,.1); border: 1px solid var(--danger); color: #a3313a; border-radius: var(--radius); padding: .7rem 1rem; font-size: .85rem; margin-bottom: 1.25rem; }
.form-success { background: rgba(0,87,225,.08); border: 1px solid var(--accent); color: var(--accent); border-radius: var(--radius); padding: .7rem 1rem; font-size: .85rem; margin-bottom: 1.25rem; }
.logout-form { display: inline; }
.logout-form button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--text-dim); text-decoration: underline; font-size: .875rem;
}
.logout-form button:hover { color: var(--text); }
.logout-form-nav { display: inline-flex; align-items: center; }

/* Beheer (/admin, alleen ingelogde admins) */
.admin-wrap-wide { max-width: 900px; margin: 0 auto; }
.admin-advisory-list { gap: .75rem; }
.admin-advisory-item p { color: var(--text-dim); font-size: .9rem; margin: 0 0 .75rem; }
.admin-row-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.admin-row-actions .btn { padding: .4rem .9rem; font-size: .85rem; }
.admin-delete-form { display: inline; }
.admin-delete-standalone { margin-top: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; text-align: center; }
.footer-inner { padding: 2rem 1.25rem 0; }
.footer-inner a { color: var(--text-dim); font-size: .875rem; text-decoration: underline; }
.footer-inner a:hover { color: var(--text); }
.footer-bottom { padding: .75rem 1.25rem 2.5rem; color: var(--text-dim); font-size: .75rem; }
.footer-bottom p { margin: 0 0 .3rem; }

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--nav-bg-start); flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1rem 1.25rem; border-bottom: 0; display: none; }
  .site-nav.open { display: flex; }
}
