/* ===================================================================
   Ries ICT Advies - stylesheet
   Identiteit: editorial-technisch. Koel papier, Spectral display,
   IBM Plex Sans body, IBM Plex Mono labels, teal accent.
   =================================================================== */

:root {
  --ink: #16202e;
  --ink-soft: #33465c;
  --paper: #f4f6f8;
  --paper-deep: #eceff3;
  --surface: #ffffff;
  --accent: #0f767c;
  --accent-dark: #0a5a5f;
  --accent-wash: #e4f0f0;
  --border: #dfe4e9;
  --border-strong: #c6ced6;
  --muted: #5c6773;
  --yes: #0f767c;
  --no: #b0402f;
  --soms: #b07d1a;

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

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(22, 32, 46, .05), 0 8px 24px rgba(22, 32, 46, .06);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); }

a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* -------------------------------------------------------------------
   Eyebrow (mono label + accent rule) - signature typographic device
   ------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px; background: var(--accent);
  display: inline-block;
}

/* -------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 9px 14px; border-radius: var(--radius);
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.nav-list a:hover { background: var(--paper-deep); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-wash); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .2s ease;
}
.nav-toggle-bar { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* -------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #eef2f6; }
.hero-inner { position: relative; z-index: 2; padding: 96px 24px 104px; max-width: 820px; }
.hero .eyebrow { color: #6fd3d8; }
.hero .eyebrow::before { background: #6fd3d8; }
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 22px; color: #fff;
}
.hero-lead { font-size: 1.2rem; line-height: 1.6; color: #c3ced9; max-width: 620px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(111, 211, 216, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 211, 216, .10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 62%);
}

/* -------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #eef2f6; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.section .btn-ghost, .cta-block .btn-ghost { color: var(--ink); border-color: var(--border-strong); }
.section .btn-ghost:hover, .cta-block .btn-ghost:hover { background: var(--paper-deep); color: var(--ink); }

/* -------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 24px; }
.link-more { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }

/* Page head (interior pages) */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 62px 0 54px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; margin: 0 0 16px; }
.page-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; margin: 0; }

/* -------------------------------------------------------------------
   Topic grid (home)
   ------------------------------------------------------------------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.topic { background: var(--surface); padding: 30px 26px 34px; }
.topic-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .06em; }
.topic h3 { font-size: 1.18rem; margin: 16px 0 10px; }
.topic p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* -------------------------------------------------------------------
   Callout (home - DON)
   ------------------------------------------------------------------- */
.callout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
  background: var(--ink); color: #dbe4ec; border-radius: var(--radius-lg); padding: 44px;
}
.callout-body h3 { color: #fff; font-size: 1.6rem; margin: 0 0 14px; }
.callout-body p { color: #c3ced9; margin: 0 0 26px; }
.callout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.callout-list li { position: relative; padding-left: 26px; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; color: #eef2f6; }
.callout-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid #6fd3d8; border-bottom: 2px solid #6fd3d8; transform: rotate(-45deg);
}

/* -------------------------------------------------------------------
   Article cards
   ------------------------------------------------------------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-grid-wide { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: block; padding: 26px 24px 28px; text-decoration: none; color: inherit; height: 100%; }
.card-cat { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-wash); padding: 4px 9px; border-radius: 100px; }
.card-title { font-size: 1.28rem; line-height: 1.25; margin: 16px 0 12px; }
.card:hover .card-title { color: var(--accent-dark); }
.card-desc { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.card-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; }

/* -------------------------------------------------------------------
   Article (post)
   ------------------------------------------------------------------- */
.post-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 46px 0 44px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.post-cat { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-wash); padding: 4px 10px; border-radius: 100px; }
.post-title { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: 18px 0 18px; }
.post-lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 18px; }
.post-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .03em; margin: 0; }
.post-body { padding: 50px 0 8px; }

/* Prose */
.prose, .post-body { font-size: 17.5px; line-height: 1.72; color: var(--ink-soft); }
.prose > p, .post-body > p { margin: 0 0 22px; }
.prose h2, .post-body h2 { font-size: 1.55rem; color: var(--ink); margin: 42px 0 16px; letter-spacing: -.01em; }
.prose h3, .post-body h3 { font-size: 1.25rem; color: var(--ink); margin: 32px 0 12px; }
.prose ul, .prose ol, .post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.prose li, .post-body li { margin: 0 0 10px; }
.prose strong, .post-body strong { color: var(--ink); font-weight: 600; }
.prose-note { margin-top: 26px; font-size: 15px; color: var(--muted); }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { position: relative; padding-left: 42px; margin-bottom: 14px; }
.prose ol > li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1px; font-family: var(--font-mono); font-size: 13px;
  color: var(--accent-dark); font-weight: 500;
}

/* -------------------------------------------------------------------
   Comparison table
   ------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-body); font-weight: 600; color: var(--ink); background: var(--paper-deep); font-size: 14.5px; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .col-highlight { background: var(--accent-wash); }
.compare thead .col-highlight { background: var(--accent); color: #fff; }
.compare .yes { color: var(--yes); font-weight: 600; }
.compare .no { color: var(--no); font-weight: 600; }
.compare .soms { color: var(--soms); font-weight: 600; }
.table-note { font-size: 13.5px; color: var(--muted); margin: 14px 2px 0; }

/* -------------------------------------------------------------------
   Provider grid
   ------------------------------------------------------------------- */
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.provider { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.provider h3 { font-size: 1.2rem; margin: 0 0 12px; }
.provider p { margin: 0; color: var(--muted); font-size: 15px; }
.provider-accent { border-color: var(--accent); background: var(--accent-wash); }
.provider-accent h3 { color: var(--accent-dark); }
.provider-accent p { color: var(--ink-soft); }

/* -------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; }
.price-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.price-name { font-size: 1.3rem; margin: 0 0 12px; }
.price-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); margin: 0 0 22px; }
.price-amount span { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; flex: 1; }
.price-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price-fine { font-size: 12.5px; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------------
   CTA block
   ------------------------------------------------------------------- */
.cta-block { background: var(--ink); color: #dbe4ec; border-radius: var(--radius-lg); padding: 48px 44px; text-align: center; }
.cta-block h2 { color: #fff; font-size: 1.9rem; margin: 0 0 14px; }
.cta-block p { color: #c3ced9; max-width: 540px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-block .btn-ghost { color: #eef2f6; border-color: rgba(255,255,255,.35); }
.cta-block .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.cta-fine { font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; margin: 22px 0 0; color: #93a3b3; }

/* -------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------- */
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-card h2 { font-size: 1.4rem; margin: 0 0 12px; }
.contact-card p { color: var(--muted); }
.contact-card .btn { margin-top: 12px; }
.contact-address { margin-top: 22px; font-family: var(--font-mono); font-size: 15px; }

/* -------------------------------------------------------------------
   Legal
   ------------------------------------------------------------------- */
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0 0 30px; }
.legal h2 { font-size: 1.3rem; }

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #a9b6c3; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 60px 24px 44px; }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; display: block; margin-bottom: 12px; }
.footer-brand p { margin: 0; font-size: 14.5px; color: #93a3b3; max-width: 300px; }
.footer-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6f8195; margin: 0 0 16px; font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #c3ced9; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--font-mono); font-size: 12.5px; color: #6f8195; }

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 940px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-badge { left: 28px; }
  .callout { grid-template-columns: 1fr; gap: 30px; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px); flex-direction: column; gap: 2px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 10px; min-width: 210px; display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 11px 14px; }
  .hero-inner { padding: 70px 24px 76px; }
  .section { padding: 56px 0; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .article-grid, .article-grid-wide, .provider-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .cta-block, .contact-card, .callout { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
