/*
Theme Name: IT Formule
Theme URI: https://www.itformule.nl/
Author: IT Formule B.V.
Description: Thema in de huisstijl van IT Formule. Witte merkkolom links, blauw inhoudspaneel rechts.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itformule
*/

/* Lettertypen uit de huisstijl, lokaal gehost.
   Er gaan dus geen bezoekersgegevens naar Google. */
/* Lettertypen uit de huisstijl van IT Formule, lokaal gehost.
   Montserrat  - koppen, subkoppen, knoppen en links
   Noto Sans   - lopende tekst

   Dit zijn variabele fonts: één bestand dekt alle gewichten van 100 tot 900.
   Lokaal hosten betekent dat er geen gegevens van bezoekers naar Google gaan. */

/* ---------- Montserrat ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Noto Sans ---------- */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/noto-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/noto-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Gedeelde stijl IT Formule tijdelijke site
   Split-layout: links wit (logo + slogan + footer), rechts blauw (menu + inhoud).
   Gebruikt door de homepage en de servicepagina's.
   De juridische pagina's hebben hun eigen (leesbare) opmaak met een menubalk bovenaan. */

:root {
  --brand: #1580a5;
  --brand-dark: #0b5271;
  --ink: #1d1d1b;
  --muted: #5a6a72;
  --line: #e4e9ec;
  --white: #ffffff;
  --bg: #f7fafb;
  /* Hoogte van het menu + de ruimte eronder in het blauwe paneel.
     De witte kolom krijgt dezelfde inspringing, zodat het logo links
     op gelijke hoogte begint met 'Onze dienst' rechts. */
  --nav-h: 40px;
  --nav-gap: 40px;
  --nav-offset: calc(var(--nav-h) + var(--nav-gap));

  /* Achtergrondafbeelding van de witte kolom.
     --brand-bg wordt door script.js vervangen zodra er een eigen
     afbeelding in de map 'afbeeldingen' staat.
     --sluier: 0.80 = foto goed zichtbaar, 0.95 = heel subtiel. */
  --brand-bg: url('assets/afbeeldingen/voorbeeld.svg');
  --sluier: 0.88;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }

/* ---------- Split layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 33% 67%;
  min-height: 100vh;
}

/* LEFT: wit merkvlak */
.brand-side {
  background: #fff;
  padding: 34px 44px 48px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  /* Blijft in beeld en is op élke pagina even hoog, ongeacht hoe lang
     de tekst in het blauwe paneel is. Zo staat het contact- en nieuwsblok
     overal op dezelfde plek en altijd volledig leesbaar. */
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
}
/* Achtergrondafbeelding over de hele witte kolom.
   Zet een bestand 'achtergrond.jpg' in de map afbeeldingen om hem te
   vervangen (zie afbeeldingen/LEESMIJ.txt). De witte sluier eroverheen
   houdt het logo en de teksten leesbaar; pas --sluier aan om de foto
   sterker (lager getal) of zachter (hoger getal) te laten doorkomen. */
.brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,var(--sluier)), rgba(255,255,255,var(--sluier))),
    var(--brand-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.brand-side > * { position: relative; z-index: 1; }

.brand-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Logo begint op dezelfde hoogte als het menu rechts. Dat scheelt
     ruimte, zodat ook de juridische regels zonder scrollen passen. */
  padding-top: 0;
  max-width: 420px;
}
.brand-main > a { display: block; }
.brand-logo { width: 100%; max-width: 300px; height: auto; display: block; margin-bottom: 36px; }
.brand-side h1 {
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}
.brand-side h1 .accent { color: var(--brand); white-space: nowrap; }
.brand-side .tagline { color: var(--muted); font-size: 1.15rem; max-width: 360px; }

.brand-foot { padding-top: 24px; font-size: 0.8rem; color: var(--muted); }
.brand-foot a { color: var(--muted); text-decoration: none; }
.brand-foot a:hover { color: var(--brand); text-decoration: underline; }
.brand-foot .sep { margin: 0 8px; opacity: 0.6; }

/* Contact onderin de witte kolom (servicepagina's) */
.foot-contact { margin-bottom: 18px; }
.foot-contact .foot-label,
.foot-news .foot-label {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px;
}
.foot-contact ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-contact a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem;
  color: var(--ink); text-decoration: none;
  max-width: 100%; word-break: break-word;
}
.foot-contact a:hover { color: var(--brand); text-decoration: none; }
.foot-contact svg { width: 21px; height: 21px; color: var(--brand); flex-shrink: 0; }

/* Laatste nieuwsbericht onderin de witte kolom */
.foot-news { margin-bottom: 18px; }
.foot-news .news-link {
  display: block;
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}
.foot-news .news-link:hover { text-decoration: none; }
.foot-news .n-date { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 3px; }
.foot-news .n-title {
  display: block;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem;
  color: var(--ink); line-height: 1.35;
}
.foot-news .news-link:hover .n-title { color: var(--brand); }
.foot-news .all-news { display: inline-block; margin-top: 9px; font-size: 0.94rem; color: var(--brand); }

.foot-legal { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.foot-legal a { white-space: nowrap; }
.foot-legal a + a { margin-left: 12px; }

/* RIGHT: blauw paneel */
.panel {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 34px 52px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.12) 0, transparent 42%),
    radial-gradient(circle at 10% 92%, rgba(255,255,255,0.08) 0, transparent 45%);
  pointer-events: none;
}

/* Menu in het blauwe vlak */
.panel-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  min-height: var(--nav-h);    /* vaste hoogte: houdt de uitlijning met links exact */
  margin-bottom: var(--nav-gap);
}
.panel-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.panel-nav a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.panel-nav a.active { color: #fff; background: rgba(255,255,255,0.16); }

.panel-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 900px;
}

/* ---------- Inhoud in het blauwe paneel ---------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.75); margin-bottom: 8px;
}
.panel-body h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400; line-height: 1.14; color: #fff; margin-bottom: 12px;
}
.panel-body h2 { font-size: 1.5rem; font-weight: 500; color: #fff; margin-bottom: 20px; }
.panel-body .intro { color: rgba(255,255,255,0.92); font-size: 1.08rem; margin-bottom: 30px; max-width: 560px; }
.section-title { font-size: 1.2rem !important; margin-bottom: 16px !important; }

/* Contactkaarten (homepage) */
.contact-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.contact-list a {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none; color: #fff;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.contact-list a:hover { transform: translateX(3px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.contact-list .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); border-radius: 10px; color: #fff;
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list .label { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.contact-list .value { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.35; }

/* Wat wij bieden (servicepagina's) */
.offer-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.offer-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 14px 16px;
  color: #eaf3f7;
  font-size: 0.96rem;
}
.offer-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: #fff; margin-top: 1px; }
@media (max-width: 560px) { .offer-list { grid-template-columns: 1fr; } }

/* Knoppen */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.cta-note { color: rgba(255,255,255,0.75); font-size: 0.82rem; margin-top: 12px; }

.btn-remote {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--brand);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px; border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.4);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-remote:hover { background: #eef6fa; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,0.45); }
.btn-remote svg { width: 19px; height: 19px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.16); }
.btn-ghost svg { width: 18px; height: 18px; }

/* ---------- Afbeelding bij een pagina ----------
   Vaste beeldverhouding 16:9 met object-fit: cover. Daardoor past elke
   foto netjes, ongeacht de afmetingen van het bestand dat u erin zet. */
.page-image {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 2px 0 30px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 14px 32px -18px rgba(0,0,0,0.6);
}

/* Introtekst links, afbeelding rechts (dienstpagina's).
   De afbeelding staat in de HTML vóór de tekst; met 'order' zetten we
   hem rechts, zodat hij op mobiel onder de tekst uitkomt. */
.intro-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 34px;
}
.intro-row .page-image {
  order: 2;
  flex: 0 0 300px;
  max-width: 300px;
  margin: 4px 0 0;
}
.intro-row .intro-text { order: 1; flex: 1; min-width: 0; }
.intro-row .intro-text .intro { margin-bottom: 14px; max-width: none; }
.intro-row .intro-text .intro:last-child { margin-bottom: 0; }

@media (max-width: 1050px) {
  .intro-row { flex-direction: column; gap: 20px; }
  .intro-row .page-image { flex: none; width: 100%; max-width: 420px; }
}

/* ---------- Specialismen ---------- */
/* Logo's staan op een wit vlak, zodat gekleurde merklogo's leesbaar
   blijven op de blauwe achtergrond. Ontbreekt een logobestand, dan
   verbergt script.js het vlak automatisch (alleen de naam blijft staan). */
/* Kop van een leverancierspagina: titel links, logo klein rechts */
.spec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.spec-head-text { min-width: 0; }
.spec-head-text h1 { margin-bottom: 0; }

.spec-logo {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px;
  padding: 9px 13px;
  min-height: 50px;
  box-shadow: 0 8px 18px -12px rgba(0,0,0,0.45);
}
.spec-logo img { max-height: 30px; max-width: 130px; width: auto; height: auto; display: block; }

@media (max-width: 640px) {
  .spec-head { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
}

.spec-logo.is-empty { display: none; }

.spec-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.spec-grid > li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.spec-grid > li:hover { transform: translateY(-2px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.spec-grid a { display: block; padding: 15px 17px; text-decoration: none; color: #fff; }
.spec-grid .s-name {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  color: #fff; margin-bottom: 3px;
}
.spec-grid .s-desc { font-size: 0.84rem; color: rgba(255,255,255,0.82); line-height: 1.4; margin: 0; }

.spec-cat {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,255,255,0.7); margin: 26px 0 10px;
}
.spec-cat:first-of-type { margin-top: 20px; }

@media (max-width: 1150px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Nieuws / blog ---------- */
.news-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.news-list > li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.news-list > li:hover { transform: translateX(3px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.news-list a { display: block; padding: 18px 20px; text-decoration: none; color: #fff; }
.news-list .n-date {
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.7);
}
.news-list .n-title {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.08rem;
  color: #fff; margin: 5px 0 6px; line-height: 1.3;
}
.news-list .n-excerpt { color: rgba(255,255,255,0.85); font-size: 0.94rem; margin: 0; }
.news-empty { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin-top: 6px; }

/* Losse nieuwsartikelen gebruiken .doc (zie hieronder) */
.article-meta { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 26px; }
.back-to-news {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-weight: 600; font-size: 0.9rem; margin-bottom: 18px;
}
.back-to-news:hover { color: #fff; }
.back-to-news svg { width: 16px; height: 16px; }

/* ---------- Responsief ---------- */
/* Grote schermen: tekst en afbeelding iets ruimer, zodat de kolom
   niet smal en de letters niet klein ogen. */
@media (min-width: 1600px) {
  .panel-body { max-width: 1000px; }
  .panel-body .intro { font-size: 1.16rem; }
  .offer-list li { font-size: 1.02rem; }
  .intro-row .page-image { flex-basis: 340px; max-width: 340px; }
}

/* Smallere desktopschermen: menu compacter zodat het op één regel blijft
   en de uitlijning met de witte kolom klopt. */
@media (min-width: 861px) and (max-width: 1350px) {
  .panel { padding-left: 34px; padding-right: 34px; }
  .panel-nav { gap: 2px; }
  .panel-nav a { padding: 8px 9px; font-size: 0.84rem; }
}
@media (min-width: 861px) and (max-width: 1050px) {
  .panel-nav a { padding: 7px 7px; font-size: 0.79rem; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .brand-side {
    padding: 40px 26px 28px;
    text-align: center;
    /* Gestapeld: geen vaste hoogte, gewoon meelopen met de pagina.
       relative (niet static) zodat de achtergrondafbeelding blijft passen. */
    position: relative;
    height: auto;
    overflow: visible;
  }
  .brand-main { margin: 0 auto; padding-top: 0; }
  .panel-nav { height: auto; margin-bottom: 32px; }
  .brand-logo { margin-left: auto; margin-right: auto; }
  .brand-side .tagline { margin: 0 auto; }
  .brand-foot { text-align: center; }
  .panel { padding: 28px 26px 44px; }
  .panel-nav { justify-content: center; }
  .panel-body { max-width: none; }
}

/* ---------- Lange documenten (juridische pagina's) ---------- */
/* De linkerkolom blijft staan terwijl het document rechts scrollt
   (geregeld bij .brand-side hierboven). */
.layout-doc .panel-body { max-width: 780px; }

.doc h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; color: #fff; margin-bottom: 6px; }
.doc .updated { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 30px; }
.doc h2 {
  font-size: 1.18rem; font-weight: 500; color: #fff;
  margin: 30px 0 10px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.doc h3 { font-size: 1rem; font-weight: 500; color: #fff; margin: 20px 0 8px; }
.doc p, .doc li { color: rgba(255,255,255,0.92); margin-bottom: 11px; }
.doc ul, .doc ol { margin: 0 0 12px 22px; }
.doc ul { margin-top: 8px; }
.doc a { color: #fff; }
.doc strong { color: #fff; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; min-width: 380px; font-size: 0.93rem; }
.doc th, .doc td { border: 1px solid rgba(255,255,255,0.25); padding: 10px 14px; text-align: left; color: rgba(255,255,255,0.92); }
.doc th { background: rgba(255,255,255,0.12); color: #fff; font-family: 'Montserrat', sans-serif; }


/* ---------- Menubalk (niet meer in gebruik, bewaard voor compatibiliteit) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1120px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo svg { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--ink); text-decoration: none; padding: 8px 13px; border-radius: 8px;
  transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); background: rgba(21,128,165,0.07); }
.nav-links a.active { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; line-height: 0; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; box-shadow: 0 16px 28px -18px rgba(0,0,0,0.35);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Cookiemelding ----------
   De melding wordt door script.js aangemaakt, zodat hij op elke pagina
   verschijnt zonder dat er iets in de HTML hoeft te staan. */
.cookiemelding {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 20px 44px -18px rgba(11,82,113,0.45);
  font-size: 0.92rem;
  line-height: 1.55;
}
.cookiemelding h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem; font-weight: 600;
  margin-bottom: 8px; color: var(--ink);
}
.cookiemelding p { color: var(--muted); margin-bottom: 16px; }
.cookiemelding a { color: var(--brand); }
.cookiemelding .knoppen { display: flex; flex-wrap: wrap; gap: 10px; }
.cookiemelding button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 10px 18px; border-radius: 9px;
  cursor: pointer; border: 1px solid var(--brand);
  transition: background .15s ease, color .15s ease;
}
.cookiemelding .ja { background: var(--brand); color: #fff; }
.cookiemelding .ja:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.cookiemelding .nee { background: #fff; color: var(--brand); }
.cookiemelding .nee:hover { background: #eef6fa; }

@media (max-width: 520px) {
  .cookiemelding { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px; }
  .cookiemelding .knoppen button { flex: 1 1 auto; }
}

/* ---------- WordPress: opmaak beschermen ----------
   Zorgt dat de knoppen en afstanden exact blijven zoals bedoeld,
   ook als WordPress of een plugin eigen stijlen meestuurt. */
.panel-body .btn-remote,
.panel-body .btn-ghost {
	width: auto;
	max-width: 100%;
	line-height: 1.2;
	box-sizing: border-box;
	text-align: left;
}
.panel-body .btn-remote { padding: 13px 24px; font-size: 0.95rem; }
.panel-body .btn-ghost  { padding: 12px 20px; font-size: 0.95rem; }
.actions p { margin: 0; }
.actions br { display: none; }

/* Adres in de witte kolom (span, dus zonder link) */
.foot-contact .foot-adres {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.92rem;
	color: var(--ink);
	max-width: 100%; word-break: break-word;
}
.foot-contact .foot-adres svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }

/* ---------- Knop hulp op afstand, onder het nieuwsblok ----------
   Let op: selector .brand-foot .foot-remote is nodig, anders wint de
   grijze kleur van .brand-foot a en wordt de tekst onleesbaar. */
.brand-foot .foot-remote {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  background: var(--brand);
  color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 24px; border-radius: 10px;
  margin: 4px 0 18px;
  box-shadow: 0 10px 22px -12px rgba(11,82,113,0.6);
  transition: background .15s ease, transform .15s ease;
}
.brand-foot .foot-remote:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
/* Vaste maat, zodat het pictogram nooit kan uitrekken */
.brand-foot .foot-remote svg {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px;
  color: #fff;
  display: block;
}

/* ---------- Lage schermen: witte kolom compacter ----------
   Op laptops met weinig beeldhoogte wordt alles iets kleiner, zodat
   het contact-, nieuws- en juridische blok zonder scrollen passen. */
@media (min-width: 861px) and (max-height: 900px) {
  .brand-logo { max-width: 250px; margin-bottom: 22px; }
  .brand-side h1 { font-size: 1.95rem; margin-bottom: 10px; }
  .brand-side .tagline { font-size: 1.05rem; }
  .brand-foot { padding-top: 16px; }
  .foot-contact { margin-bottom: 12px; }
  .foot-news { margin-bottom: 12px; }
  .foot-contact ul { gap: 6px; }
  .brand-foot .foot-remote { padding: 10px 18px; font-size: 0.88rem; margin: 2px 0 12px; }
  .foot-legal { padding-top: 11px; margin-top: 12px; }
}

@media (min-width: 861px) and (max-height: 760px) {
  .brand-side { padding: 26px 36px 30px; }
  .brand-logo { max-width: 215px; margin-bottom: 16px; }
  .brand-side h1 { font-size: 1.7rem; }
  .brand-side .tagline { font-size: 1rem; }
  .foot-contact a, .foot-contact .foot-adres { font-size: 0.86rem; }
  .foot-news .n-title { font-size: 0.86rem; }
  .brand-foot .foot-remote { padding: 9px 16px; font-size: 0.84rem; }
}

/* KvK-nummer onder de contactgegevens */
.foot-kvk {
  margin-top: 11px;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Sitemap ---------- */
.sitemap-lijst {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 24px;
  margin-bottom: 6px;
}
.sitemap-lijst li {
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 8px 0;
}
.sitemap-lijst a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
}
.sitemap-lijst a:hover { text-decoration: underline; }
.sitemap-datum { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Copyright op een eigen regel, links eronder links uitgelijnd (zonder bullet) */
.foot-legal .foot-copy { display: block; margin-bottom: 6px; }
.foot-legal .foot-links a:first-child { margin-left: 0; }
