/* ============================================================================
   Snellius — styles for the Nieuws pages (overview, posts, template).
   Same tokens, fonts and components as index.html; ../theme.css is linked after
   this file on every page, so palette edits there apply here too.
   ========================================================================== */
:root{
  --bg:#FFFFFF; --ink:#111318; --muted:#8A9199;
  --ray:#E30613; --blue:#0A4FCB; --medium:rgba(10,79,203,.10); --yellow:#FFCE00;
  --font-display:"Syne", sans-serif;
  --font-body:"Work Sans", Georgia, serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0B0E13; --ink:#ECEFF3; --muted:#7E8894;
    --ray:#FF3B30; --blue:#4C86FF; --medium:rgba(76,134,255,.14); --yellow:#FFD429;
  }
}

*{box-sizing:border-box}
html,body{ overflow-x:hidden; }
body{
  margin:0; color:var(--ink); background:var(--bg);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%; text-size-adjust:100%;
}
a{ color:var(--blue); }

/* header: same layout as the homepage (wordmark left, menu + contact button centred,
   hamburger dropdown on phones), but sticky with a solid background */
.site-header{
  position:sticky; top:0; z-index:5; background:var(--bg);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline;
  padding:26px clamp(22px,5vw,64px);
}
.wordmark{
  font-family:var(--font-display); font-weight:700; font-size:clamp(25px,2.4vw,31px); letter-spacing:.01em;
  color:var(--ink); text-decoration:none;
}
.wordmark .dot{ color:var(--ray); }
.headnav{ grid-column:2; justify-self:center; align-self:center; display:flex; gap:12px; align-items:center; flex-wrap:wrap; justify-content:center; }
.headnav nav{
  display:flex; gap:26px; align-items:center;
  font-size:15.5px; letter-spacing:.01em; color:var(--ink);
  padding:10px 24px; border:1px solid var(--muted); border-radius:999px; background:var(--bg);
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}
.headnav nav a{ color:inherit; text-decoration:none; padding-bottom:2px; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
.headnav nav a:hover, .headnav nav a:focus-visible{ color:var(--blue); border-color:var(--blue); outline:none; }
.headnav nav a[aria-current="page"]{ color:var(--ray); }
.header-cta{
  cursor:pointer; font-size:15px; letter-spacing:.01em; white-space:nowrap;
  text-decoration:none; color:var(--bg); background:var(--ink);
  padding:11px 20px; border:1px solid var(--ink); border-radius:999px;
  box-shadow:0 4px 16px rgba(0,0,0,.08); transition:background .2s, border-color .2s, color .2s;
}
.header-cta:hover, .header-cta:focus-visible{ background:var(--blue); border-color:var(--blue); color:#fff; outline:none; }
/* NL | EN language switch, right of the contact button (as on the homepage) */
.lang-switch{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-body); font-size:14.5px; letter-spacing:.04em; color:var(--muted); }
.lang-switch a{ color:inherit; text-decoration:none; padding-bottom:1px; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
.lang-switch a:hover, .lang-switch a:focus-visible{ color:var(--blue); border-color:var(--blue); outline:none; }
.lang-switch [aria-current]{ color:var(--ink); font-weight:500; }
/* the larger menu is for wide screens; smaller laptops and tablets keep the compact size */
@media (max-width:1080px){
  .headnav nav{ gap:22px; font-size:14px; padding:8px 20px; }
  .header-cta{ font-size:13.5px; padding:9px 17px; }
  .lang-switch{ font-size:13px; }
}
@media (max-width:960px){ .headnav nav{ gap:16px; padding:8px 16px; } .headnav{ gap:10px; } }
.menu-toggle{
  grid-column:3; justify-self:end; align-self:center;
  display:none; width:34px; height:34px; padding:0;
  background:var(--bg); border:1px solid var(--muted); border-radius:9px;
  cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.06);
  align-items:center; justify-content:center;
}
.menu-toggle .mt-bars, .menu-toggle .mt-bars::before, .menu-toggle .mt-bars::after{
  content:""; display:block; width:16px; height:2px; border-radius:2px;
  background:var(--ink); transition:transform .22s ease, opacity .18s ease;
}
.menu-toggle .mt-bars{ position:relative; }
.menu-toggle .mt-bars::before{ position:absolute; left:0; top:-5px; }
.menu-toggle .mt-bars::after{ position:absolute; left:0; top:5px; }
.site-header.nav-open .menu-toggle .mt-bars{ background:transparent; }
.site-header.nav-open .menu-toggle .mt-bars::before{ transform:translateY(5px) rotate(45deg); }
.site-header.nav-open .menu-toggle .mt-bars::after{ transform:translateY(-5px) rotate(-45deg); }
@media (max-width:900px){                 /* header: hamburger menu on phones and tablets */
  .site-header{ align-items:center; }
  .menu-toggle{ display:inline-flex; }
  .headnav{
    position:absolute; top:calc(100% - 8px); right:clamp(22px,5vw,64px);
    grid-column:auto; justify-self:auto;
    flex-direction:column; align-items:stretch; gap:14px; flex-wrap:nowrap;
    min-width:min(240px,72vw);
    background:var(--bg); border:1px solid var(--muted); border-radius:14px;
    padding:16px; box-shadow:0 18px 50px rgba(0,0,0,.28);
    opacity:0; transform:translateY(-8px); pointer-events:none;
    transition:opacity .18s ease, transform .18s ease;
  }
  .site-header.nav-open .headnav{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .headnav nav{ flex-direction:column; align-items:stretch; gap:4px; padding:0; border:none; background:none; box-shadow:none; font-size:15px; }
  .headnav nav a{ padding:9px 4px; }
  .headnav .header-cta{ width:100%; text-align:center; font-size:13.5px; padding:11px 14px; }
  .headnav .lang-switch{ justify-content:center; font-size:14px; padding-top:2px; }
}

/* contact popup, as on the homepage (markup is created by nieuws.js) */
.modal[hidden]{ display:none; }
.modal{ position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(8,10,14,.55); backdrop-filter:blur(2px); }
.modal-card{
  position:relative; z-index:1; width:100%; max-width:30rem;
  background:var(--bg); color:var(--ink); border:1px solid var(--muted); border-radius:14px;
  padding:28px 26px 24px; box-shadow:0 24px 70px rgba(0,0,0,.3);
  max-height:calc(100vh - 40px); overflow:auto;
}
.modal-x{ position:absolute; top:11px; right:14px; background:none; border:none; cursor:pointer; font-size:24px; line-height:1; color:var(--muted); }
.modal-x:hover{ color:var(--ray); }
.modal-title{ font-family:var(--font-display); font-weight:500; font-size:clamp(26px,3.4vw,34px); line-height:1.06; letter-spacing:-.015em; margin:0 0 8px; }
.modal-lead{ font-size:14px; line-height:1.5; color:var(--muted); margin:0 0 16px; }
.cta.modal-phone{ margin:0 0 20px; }
.contact-form{ display:flex; flex-direction:column; gap:12px; }
.contact-form label{ display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--ink); }
.contact-form input, .contact-form textarea{ font-family:var(--font-body); font-size:15px; color:var(--ink); background:var(--bg); border:1px solid var(--muted); border-radius:7px; padding:10px 11px; width:100%; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color:var(--blue); }
.contact-form .cta{ margin-top:6px; justify-content:center; cursor:pointer; font-family:var(--font-body); }
.form-note{ font-size:12.5px; line-height:1.45; color:var(--muted); margin:10px 0 0; }
.form-note.is-error{ color:var(--ink); }
.form-privacy{ font-size:12px; line-height:1.45; color:var(--muted); margin:14px 0 0; }
.form-privacy a{ color:inherit; }
.contact-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }   /* honeypot, hidden from people */

/* the logo motif as a divider: a red ray refracting through a black line */
.rule{ position:relative; height:3px; margin:62px 0 46px; }   /* top margin leaves room for the ray */
.rule span{ position:absolute; inset:0; background:var(--ink); border-radius:2px; z-index:1; }
.rule::before, .rule::after{
  content:""; position:absolute; left:46px; top:0; height:3px; background:var(--ray);
  border-radius:2px; transform-origin:0 50%;
}
.rule::before{ width:58px; transform:rotate(-130deg); }   /* incoming: 40° from the normal */
.rule::after{ width:44px; transform:rotate(75deg); }      /* refracted: 15° from the normal */
/* in an article the line is thinner; on wide screens it runs edge to edge and the ray falls left of the text */
.article > .rule span{ top:.5px; bottom:.5px; }
@media (min-width:1000px){
  .article > .rule{ margin-top:90px; }
  .article > .rule span{ left:calc(50% - 50vw); right:calc(50% - 50vw); border-radius:0; }
  .article > .rule::before, .article > .rule::after{ left:-60px; }
  .article > .rule::before{ width:100px; }
  .article > .rule::after{ width:96px; }
}

main{ padding:clamp(28px,6vw,72px) clamp(18px,6vw,90px) 80px; }
/* overview: content column (64rem, as .posts) centred on the page */
main.overview{ padding-inline:max(clamp(18px,6vw,90px), calc((100% - 64rem) / 2)); }

.eyebrow{
  font-family:var(--font-body); font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ray); margin:0 0 18px;
}
h1{
  font-family:var(--font-display); font-weight:500;
  font-size:clamp(34px,4.6vw,60px); line-height:1.03; letter-spacing:-.02em;
  margin:0 0 20px; text-wrap:balance; max-width:22ch;
}
h1 em{ font-style:italic; color:var(--ray); font-weight:500; }
.lead{ font-size:clamp(17px,1.4vw,20px); line-height:1.55; color:var(--muted); margin:0; max-width:40rem; }
.lead strong{ color:var(--ink); font-weight:500; }

/* ---------- overview ---------- */
/* an index, not a pile of cards: one row per post between thin lines.
   On hover the ray from the logo refracts through the row's top line. */
.posts{ max-width:64rem; margin-top:clamp(40px,6vw,72px); border-bottom:1px solid var(--muted); }
.post-card{
  position:relative; display:grid; grid-template-columns:10rem minmax(0,1fr) auto; align-items:baseline;
  gap:clamp(16px,3vw,40px); padding:clamp(24px,3vw,34px) 0;
  border-top:1px solid var(--muted); color:inherit; text-decoration:none;
}
.post-card[hidden]{ display:none; }
.post-card::before, .post-card::after{
  content:""; position:absolute; left:28px; top:-1px; height:2px; background:var(--ray);
  border-radius:2px; transform-origin:0 50%; opacity:0; transition:opacity .25s;
}
.post-card::before{ width:30px; transform:rotate(-130deg); }
.post-card::after{ width:24px; transform:rotate(75deg); }
.post-card:hover::before, .post-card:hover::after,
.post-card:focus-visible::before, .post-card:focus-visible::after{ opacity:1; }
.post-card:focus-visible{ outline:none; }
.post-meta{ display:flex; flex-direction:column; gap:6px; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0; }
.post-meta .cat{ color:var(--blue); }
.post-card .text{ display:flex; flex-direction:column; gap:10px; }
.post-card h2{
  font-family:var(--font-display); font-weight:500; font-size:clamp(24px,2.6vw,34px); line-height:1.1;
  letter-spacing:-.012em; margin:0; text-wrap:balance; transition:color .2s;
}
.post-card:hover h2, .post-card:focus-visible h2{ color:var(--ray); }
.post-card p.excerpt{ font-size:clamp(15.5px,1.15vw,17.5px); line-height:1.6; color:var(--muted); margin:0; max-width:36rem; }
.post-card .more{ font-size:22px; color:var(--muted); transition:color .2s, transform .2s; }
.post-card:hover .more, .post-card:focus-visible .more{ color:var(--ray); transform:translateX(4px); }
/* optional photo: sits between the text and the arrow; rows without one keep the same layout */
.post-card{ grid-template-columns:10rem minmax(0,1fr) auto auto; }
.post-card .thumb{
  grid-column:3; grid-row:1; align-self:center; display:block; width:clamp(140px,16vw,220px);
  aspect-ratio:3 / 2; object-fit:cover; border-radius:8px; transition:transform .3s;
}
.post-card .more{ grid-column:4; grid-row:1; }
.post-card:hover .thumb, .post-card:focus-visible .thumb{ transform:scale(1.03); }
@media (max-width:700px){
  .post-card{ grid-template-columns:minmax(0,1fr) auto; row-gap:12px; }
  .post-meta{ grid-column:1 / -1; flex-direction:row; gap:10px; }
  .post-card .thumb{ grid-column:1 / -1; width:100%; margin-bottom:6px; }
  .post-card .more{ grid-column:2; grid-row:auto; }
}
.follow{ margin:56px 0 0; font-size:15.5px; color:var(--muted); }

/* ---------- products page: one row per service, laid out like the news overview ---------- */
.offers{ max-width:64rem; margin-top:clamp(40px,6vw,72px); border-bottom:1px solid var(--muted); }
.offer{
  display:grid; grid-template-columns:10rem minmax(0,1fr); align-items:baseline;
  gap:clamp(16px,3vw,40px); padding:clamp(24px,3vw,34px) 0; border-top:1px solid var(--muted);
}
.offer{ scroll-margin-top:24px; }
.offer-num{ font-size:12.5px; letter-spacing:.08em; color:var(--blue); margin:0; }
.offer h2{
  font-family:var(--font-display); font-weight:500; font-size:clamp(24px,2.6vw,34px); line-height:1.1;
  letter-spacing:-.012em; margin:0 0 10px; text-wrap:balance;
}
.offer p:not(.offer-num){ font-size:clamp(15.5px,1.15vw,17.5px); line-height:1.6; color:var(--muted); margin:0; max-width:40rem; }
main.overview > .lead{ margin-top:4px; }
main.overview > .offers + .post-cta{ max-width:64rem; margin-top:0; border-top:none; }
@media (max-width:700px){ .offer{ grid-template-columns:1fr; row-gap:8px; } }

/* ---------- article ---------- */
.article{ max-width:42rem; margin-inline:auto; }
.article .back{ display:inline-block; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); text-decoration:none; margin:0 0 30px; }
.article .back:hover{ color:var(--blue); }
.byline{ font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:22px 0 0; }
.prose{ font-size:clamp(16.5px,1.2vw,18px); line-height:1.72; }
.prose p, .prose ul, .prose ol{ margin:0 0 1.15em; }
.prose h2{
  font-family:var(--font-display); font-weight:500; font-size:clamp(23px,2.2vw,30px);
  line-height:1.12; letter-spacing:-.012em; margin:1.9em 0 .6em; text-wrap:balance;
}
.prose h3{ font-family:var(--font-display); font-weight:600; font-size:19px; margin:1.6em 0 .4em; }
.prose li{ margin:0 0 .45em; }
.prose strong{ font-weight:500; }
.prose blockquote{
  margin:1.6em 0; padding:2px 0 2px 22px; border-left:3px solid var(--ray);
  font-family:var(--font-display); font-size:1.18em; line-height:1.4;
}
.prose .formula{ text-align:center; font-family:"Times New Roman", serif; font-size:1.3em; margin:1.2em 0 1.4em; }
.prose .formula var{ font-style:italic; }
/* optional photo at the top of an article, under the divider */
.article .hero{ margin:0 0 40px; }
.article .hero img{ display:block; width:100%; height:auto; border-radius:10px; }
.article .hero figcaption{ font-size:13.5px; color:var(--muted); margin-top:8px; }
.article .hero figcaption a{ color:inherit; }
.prose figure{ margin:1.8em 0; }
.prose figure img, .prose figure video{ display:block; width:100%; height:auto; border-radius:10px; border:1px solid var(--muted); }
.prose figcaption{ font-size:13.5px; color:var(--muted); margin-top:8px; }
.callout{
  background:var(--medium); border-radius:12px; padding:22px 24px; margin:1.8em 0;
}
.callout h3{ margin-top:0; }
.callout ol, .callout ul{ margin-bottom:0; }

/* closing call to action under every post */
.post-cta{ border-top:1px solid var(--muted); margin-top:56px; padding-top:34px; }
.post-cta h2{ font-family:var(--font-display); font-weight:500; font-size:clamp(23px,2.2vw,30px); margin:0 0 10px; }
.post-cta p{ color:var(--muted); line-height:1.6; margin:0; }
.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.cta{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink); text-decoration:none;
  border:1px solid var(--ink); border-radius:2px; padding:13px 22px;
  transition:background .2s, color .2s, border-color .2s;
}
.cta:hover, .cta:focus-visible{ background:var(--blue); border-color:var(--blue); color:#fff; outline:none; }
.cta.cta-primary{ background:var(--ink); color:var(--bg); }
.cta.cta-primary:hover, .cta.cta-primary:focus-visible{ background:var(--blue); border-color:var(--blue); color:#fff; }
@media (max-width:600px){ .cta-row .cta{ width:100%; justify-content:center; } }

/* footer, as on the homepage */
.site-footer{
  border-top:1px solid var(--muted);
  padding:44px clamp(18px,6vw,90px) 52px;
  display:grid; grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)); align-items:start;
  gap:28px clamp(28px,5vw,64px);
  font-size:14px; line-height:1.7; color:var(--muted);
}
.site-footer .footer-name{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--ink); }
.site-footer address{ font-style:normal; }
.site-footer .footer-col{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.site-footer .footer-head{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink); margin:0 0 6px; }
.site-footer .footer-brand .footer-name{ margin-bottom:6px; }
.site-footer .footer-head a{ color:inherit; }
/* tablets and phones: two columns, company details across the top; on phones the
   contact column gets the full width so the email address fits */
@media (max-width:900px){ .site-footer{ grid-template-columns:1fr 1fr; grid-auto-flow:dense; } .site-footer .footer-brand{ grid-column:1 / -1; } }
@media (max-width:500px){ .site-footer .footer-contact{ grid-column:1 / -1; } }
.site-footer .footer-label{ color:var(--ink); }
.site-footer a{ color:inherit; text-decoration:none; border-bottom:1px solid transparent; }
.site-footer a:hover, .site-footer a:focus-visible{ color:var(--blue); border-color:var(--blue); outline:none; }
.site-footer .footer-social{ display:inline-flex; align-items:center; gap:8px; }
