/* ==========================================================================
   Ardy Prijs Glastechnieken — stylesheet
   Inspired by the calm, architectural system of fluid.glass; Ardy Prijs blue leads.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand (taken from the Ardy Prijs sign: blue → green stripes) */
  --brand-blue: #009fe3;        /* logo blue — decorative only (lines, stripes) */
  --blue-700: #0068b3;          /* primary actions + small blue text, 5.6:1 on white */
  --blue-800: #00548f;          /* hover */
  --blue-50: #eef6fb;           /* tinted section background */
  --blue-100: #dcecf6;
  --brand-green: #009245;       /* secondary accent, used sparingly */

  /* Neutrals */
  --ink: #0d1820;               /* dark sections, headings */
  --text: #1c2730;
  --muted: #55626c;             /* 6.1:1 on white */
  --line: #dfe4e8;
  --line-strong: #c7cfd5;
  --surface: #ffffff;
  --surface-2: #f5f7f8;

  /* Type */
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.3vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space & layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(72px, 9vw, 144px);
  --header-h: 76px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 900ms;

  /* Layers */
  --z-header: 40;
  --z-menu: 60;
  --z-dialog: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul { margin: 0; padding: 0; }
::selection { background: var(--brand-blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 500;
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--blue-50); }
.section--grey { background: var(--surface-2); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.grid { display: grid; gap: var(--gap, clamp(16px, 2vw, 28px)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typography ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700);
}
.label::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .6; }
.label--plain::after { display: none; }
.on-dark .label, .label--light { color: #7cc8ee; }
.display { font-size: var(--fs-display); font-weight: 400; line-height: .98; letter-spacing: -0.035em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--fs-h3); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Icons ---------- */
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--blue-700); --btn-fg: #fff; --btn-bd: var(--blue-700);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover { --btn-bg: var(--blue-800); --btn-bd: var(--blue-800); }
.btn:hover .icon, .link-arrow:hover .icon, a:hover > .card__arrow .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.85); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--white:hover { --btn-bg: var(--blue-50); --btn-bd: var(--blue-50); --btn-fg: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; width: fit-content;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color var(--dur-fast);
}
.link-arrow .icon { color: var(--blue-700); transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--blue-700); }
.on-dark .link-arrow { color: #fff; }
.on-dark .link-arrow .icon { color: #7cc8ee; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; font-size: .9375rem; color: var(--text);
}
.nav__link .roll { display: inline-block; overflow: hidden; height: 1.5em; line-height: 1.5; }
.nav__link .roll > span { display: block; transition: transform var(--dur) var(--ease-out); }
.nav__link .roll > span::after { content: attr(data-text); display: block; color: var(--blue-700); }
@media (hover: hover) { .nav__link:hover .roll > span { transform: translateY(-100%); } }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--blue-700); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: currentColor;
}
.nav__link .icon { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.nav__item { position: relative; }
.nav__item.is-open .nav__link .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 280px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(13,24,32,.25);
  padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--blue-50); }
.dropdown a strong { font-weight: 500; color: var(--ink); }
.dropdown a span { font-size: .8125rem; color: var(--muted); }
.header-cta { margin-left: 12px; }
.header-phone { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; margin-right: -12px; }
.menu-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1120px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-phone { display: inline-flex; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--blue-700); }
  .header-phone + .menu-toggle { margin-left: 0; }
  .logo img { height: 38px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.mobile-menu__top .label { color: #7cc8ee; }
.mobile-menu__close { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin-right: -12px; }
.mobile-menu__close .icon { width: 26px; height: 26px; }
.mobile-menu nav { margin-top: 12px; }
.mobile-menu__list { list-style: none; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu__list > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font-size: 1.75rem; letter-spacing: -0.02em; }
.mobile-menu__sub { list-style: none; padding: 0 0 16px; display: grid; gap: 2px; }
.mobile-menu__sub a { display: flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.75); font-size: 1.0625rem; }
.mobile-menu__sub a:hover { color: #fff; }
.mobile-menu__footer { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.mobile-menu__footer a:not(.btn) { display: flex; align-items: center; gap: 12px; min-height: 44px; color: rgba(255,255,255,.85); }
body.no-scroll { overflow: hidden; }

/* ---------- Brand stripe (from the company sign) ---------- */
.brand-stripe { display: flex; height: 6px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: #009ee0; }
.brand-stripe span:nth-child(2) { background: #00ace6; }
.brand-stripe span:nth-child(3) { background: #6ec1ea; }
.brand-stripe span:nth-child(4) { background: #9acbe0; }
.brand-stripe span:nth-child(5) { background: #b3dcbf; }
.brand-stripe span:nth-child(6) { background: #9cc7a9; }
.brand-stripe span:nth-child(7) { background: #6bb389; }
.brand-stripe span:nth-child(8) { background: #2ba466; }
.brand-stripe span:nth-child(9) { background: #009246; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(88vh, 900px); min-height: min(88dvh, 900px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: hero-in 2.2s var(--ease-out) forwards; }
@keyframes hero-in { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,16,22,.82) 0%, rgba(8,16,22,.55) 45%, rgba(8,16,22,.08) 80%),
    linear-gradient(0deg, rgba(8,16,22,.6) 0%, rgba(8,16,22,0) 45%);
}
.hero__content { padding-block: clamp(96px, 14vh, 160px) clamp(48px, 8vh, 88px); }
.hero h1 { color: #fff; max-width: 12ch; }
.hero__sub { margin-top: 20px; font-size: var(--fs-lead); color: rgba(255,255,255,.9); max-width: 40ch; }
.hero .btn-row { margin-top: 36px; }
.hero__scroll { display: flex; align-items: center; gap: 16px; margin-top: clamp(40px, 7vh, 72px); font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero__scroll::before { content: ""; width: 48px; height: 2px; background: var(--brand-blue); }

/* Page hero (sub pages) */
.page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.page-hero--tint { background: var(--blue-50); }
.page-hero .label { margin-bottom: 24px; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .label { justify-content: center; }
.page-hero--center .label::before { content: ""; width: 0; }

.breadcrumb { font-size: .8125rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--blue-700); }

.page-hero-media { position: relative; }
.page-hero-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .page-hero-media img { aspect-ratio: 4 / 3; } }

/* ---------- Section heading row ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head > div { max-width: 760px; }
.section-head .label { margin-bottom: 18px; }

.intro-split { display: grid; grid-template-columns: minmax(200px, 4fr) 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.intro-split .lead { margin-top: 24px; }
@media (max-width: 860px) { .intro-split { grid-template-columns: 1fr; } }

/* ---------- Image utilities ---------- */
.media { position: relative; overflow: hidden; background: var(--blue-100); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11 { aspect-ratio: 1 / 1; }
.pos-top { object-position: 50% 22% !important; }
@media (hover: hover) { a:hover .media img, .card:hover .media img { transform: scale(1.04); } }

/* ---------- Solution cards (photo with title overlay) ---------- */
.card { position: relative; display: block; }
.card--overlay { color: #fff; }
.card--overlay .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,22,.72) 0%, rgba(8,16,22,0) 52%); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: clamp(18px, 2vw, 28px); }
.card__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.05; color: inherit; }
.card__meta { display: block; margin-top: 8px; font-size: .875rem; color: rgba(255,255,255,.85); }
.card__arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-700); color: #fff;
  transition: background var(--dur-fast);
}
.card:hover .card__arrow { background: #fff; color: var(--blue-700); }
.card__index { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--blue-700); }

/* Simple card (image + caption under) */
.tile { display: block; }
.tile .media { margin-bottom: 14px; }
.tile__title { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--ink); }
.tile__title .icon { color: var(--blue-700); transition: transform var(--dur) var(--ease-out); }
.tile:hover .tile__title .icon { transform: translateX(4px); }
.tile__text { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 99px; }

/* Solutions row on home: 5 cards, first two big */
.solutions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.solutions > :nth-child(1), .solutions > :nth-child(2) { grid-column: span 3; }
.solutions > :nth-child(1) .media, .solutions > :nth-child(2) .media { aspect-ratio: 4 / 3; }
.solutions > :nth-child(n+3) { grid-column: span 2; }
.solutions > :nth-child(n+3) .media { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .solutions { grid-template-columns: 1fr 1fr; }
  .solutions > :nth-child(n) { grid-column: auto; }
  .solutions > :nth-child(1) { grid-column: 1 / -1; }
  .solutions > :nth-child(n) .media { aspect-ratio: 4 / 5; }
  .solutions > :nth-child(1) .media { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .solutions { grid-template-columns: minmax(0, 1fr); }
  .solutions > :nth-child(n) .media, .solutions > :nth-child(1) .media { aspect-ratio: 4 / 3; }
}

.chips-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.chips-line a:hover { color: var(--blue-700); }
.chips-line span[aria-hidden] { color: var(--line-strong); }

/* ---------- Feature projects (home) ---------- */
.feature-projects { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.feature-projects > :nth-child(1) .media { aspect-ratio: 16 / 11; }
.feature-projects > :nth-child(2) .media { aspect-ratio: 4 / 5; }
.feature-projects > :nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 760px) { .feature-projects { grid-template-columns: 1fr; } .feature-projects > :nth-child(2) { margin-top: 0; } .feature-projects .media { aspect-ratio: 4 / 3 !important; } }

/* ---------- Dark band ---------- */
.band { background: var(--ink); color: rgba(255,255,255,.82); }
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(255,255,255,.78); }
.band-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.band-split__media { position: relative; min-height: 420px; }
.band-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-split__content { padding: clamp(48px, 7vw, 112px) var(--gutter); display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.band-split__content .lead { margin-top: 20px; }
.band-split__content .btn-row, .band-split__content .link-arrow { margin-top: 32px; }
.band-split--reverse .band-split__media { order: 2; }
@media (max-width: 860px) { .band-split { grid-template-columns: 1fr; } .band-split__media { min-height: 0; aspect-ratio: 4 / 3; } .band-split--reverse .band-split__media { order: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.16); }
.facts > div { padding: 20px 20px 0 0; }
.facts dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #7cc8ee; }
.facts dd { margin: 8px 0 0; color: #fff; font-size: 1.0625rem; line-height: 1.35; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Split section (light) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--wide-media { grid-template-columns: 7fr 5fr; }
.split__media .media { aspect-ratio: 4 / 5; }
.split--landscape .split__media .media { aspect-ratio: 4 / 3; }
.split__content .label { margin-bottom: 20px; }
.split__content .lead { margin-top: 20px; }
.split__content .btn-row, .split__content > .link-arrow { margin-top: 32px; }
@media (max-width: 860px) { .split, .split--wide-media { grid-template-columns: 1fr; } .split--flip .split__media { order: -1; } }
@media (min-width: 861px) { .split--flip .split__media { order: 2; } }

/* Check list */
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: .3em; color: var(--blue-700); }
.on-dark .checklist .icon { color: #7cc8ee; }
.checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 640px) { .checklist--cols { grid-template-columns: 1fr; } }

/* ---------- Steps (werkwijze) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 28px 28px 8px 0; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--blue-700); margin-bottom: 28px; }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--brand-blue); }
.steps h3 { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.steps p { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } .steps li::before { margin-bottom: 14px; } }

/* ---------- Carousel ---------- */
.carousel-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.carousel-head .rule { flex: 1; height: 1px; background: var(--line-strong); }
.carousel-btns { display: flex; gap: 8px; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.icon-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3.15); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (max-width: 960px) { .carousel { grid-auto-columns: 46%; } }
@media (max-width: 560px) { .carousel { grid-auto-columns: 84%; gap: 12px; } }

/* ---------- Tabs / filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.filter-btn { position: relative; min-height: 48px; padding: 0 12px; font-size: 1rem; color: var(--muted); transition: color var(--dur-fast); }
.filter-btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--blue-700); transform: scaleX(0); transition: transform var(--dur) var(--ease-out); }
.filter-btn:hover { color: var(--ink); }
.filter-btn[aria-pressed="true"] { color: var(--blue-700); }
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
[data-filter-item][hidden] { display: none !important; }
.filter-status { font-size: var(--fs-small); color: var(--muted); margin: -16px 0 24px; }

/* ---------- Link list (rows with arrows) ---------- */
.link-list { list-style: none; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 20px 0; min-height: 64px; transition: color var(--dur-fast), padding var(--dur) var(--ease-out); }
.link-list a strong { display: block; font-weight: 400; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--ink); }
.link-list a span { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.link-list a .icon { color: var(--blue-700); transition: transform var(--dur) var(--ease-out); }
.link-list a:hover strong { color: var(--blue-700); }
.link-list a:hover .icon { transform: translateX(6px); }

/* ---------- Spec / options ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec-grid > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.spec-grid h3 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 14px; }
.spec-grid ul { list-style: none; display: grid; gap: 6px; }
.spec-grid li { color: var(--text); }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } .spec-grid > div { padding-right: 0; } }

/* Feature cards (icon + text) */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.feature { padding: 28px; background: #fff; border: 1px solid var(--line); }
.section--tint .feature { border-color: transparent; }
.feature__icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 20px; }
.section--tint .feature__icon { background: var(--blue-100); }
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature p { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: clamp(12px, 1.6vw, 20px); }
.gallery__item { display: block; width: 100%; margin-bottom: clamp(12px, 1.6vw, 20px); break-inside: avoid; position: relative; overflow: hidden; background: var(--blue-100); cursor: zoom-in; }
.gallery__item img { width: 100%; transition: transform 1.2s var(--ease-out), opacity var(--dur); }
.gallery__item:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,14,19,.96); color: #fff; }
.lightbox::backdrop { background: rgba(8,14,19,.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.lightbox .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.lightbox .icon-btn:hover { background: #fff; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-700); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 70ch; color: var(--muted); }

/* ---------- CTA block ---------- */
.cta { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cta h2 { font-size: var(--fs-h2); }
.cta__contact { list-style: none; display: grid; gap: 10px; padding-left: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line-strong); }
.cta__contact a, .cta__contact li { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.cta__contact .icon { color: var(--blue-700); }
.cta__contact a:hover { color: var(--blue-700); }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; } .cta__contact { border-left: 0; padding-left: 0; } }

/* ---------- Project page ---------- */
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 40px; }
.project-meta > div { padding: 18px 18px 0 0; }
.project-meta dt { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); }
.project-meta dd { margin: 6px 0 0; color: var(--ink); }
@media (max-width: 640px) { .project-meta { grid-template-columns: 1fr 1fr; } }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 4px; max-width: 45%; }
.pager a span { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pager a strong { font-weight: 400; font-size: 1.1875rem; color: var(--ink); }
.pager a:hover strong { color: var(--blue-700); }
.pager a:last-child { text-align: right; margin-left: auto; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.field .req { color: var(--blue-700); }
.field .hint { font-size: .8125rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2730' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(0,104,179,.18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #b42318; }
.field__error { display: none; align-items: center; gap: 6px; font-size: .8125rem; color: #b42318; }
.field.has-error .field__error { display: flex; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .9375rem; transition: all var(--dur-fast); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-note a { text-decoration: underline; }
.form-status { padding: 14px 16px; font-size: .9375rem; border-left: 3px solid var(--blue-700); background: var(--blue-50); }
.form-status[hidden] { display: none; }
.form-status--error { border-color: #b42318; background: #fef3f2; color: #7a271a; }

/* ---------- Quote dialog (slide-in panel) ---------- */
.quote { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); height: 100dvh; max-height: none; max-width: none; margin: 0 0 0 auto; padding: 0; border: 0; background: #fff; color: var(--text); overflow: hidden; }
.quote::backdrop { background: rgba(8,16,22,.5); }
.quote[open] { display: flex; flex-direction: column; animation: slide-in var(--dur) var(--ease-out); }
.quote[open]::backdrop { animation: fade-in var(--dur) var(--ease-out); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.quote__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.quote__body { padding: 28px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; }
.quote__body h2 { font-size: 2rem; margin-bottom: 8px; }
.quote__body .lead { margin-bottom: 28px; font-size: 1rem; }
@media (min-width: 600px) { .quote__head, .quote__body { padding-inline: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: var(--fs-small); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(56px, 7vw, 96px) 48px; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.footer-logo { display: inline-flex; background: #fff; padding: 10px 14px; }
.footer-logo img { height: 40px; width: auto; }
.site-footer h2 { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #7cc8ee; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; color: rgba(255,255,255,.6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Content placeholders (to fill in) ---------- */
.todo { background: #fff6d6; outline: 1px dashed #c99a00; padding: 0 4px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-in-out); transition-delay: var(--delay, 0ms); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__media img { transform: none; }
}

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .quote, .mobile-menu { display: none !important; } }

/* Contact page: form + sidebar */
.split--form { align-items: start; }
@media (min-width: 861px) { .split--form { grid-template-columns: 7fr 5fr; } }
@media (max-width: 640px) { .grid-3 .ratio-45 { aspect-ratio: 4 / 3; } .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .filter-btn { white-space: nowrap; } }

/* ==========================================================================
   WordPress additions
   ========================================================================== */
.has-adminbar .site-header { top: 32px; }
@media (max-width: 782px) { .has-adminbar .site-header { top: 46px; } }
@media (max-width: 600px) { .has-adminbar .site-header { top: 0; } }

/* Label directly followed by a title outside a section-head */
.label + .h2, .label + h2 { margin-top: 20px; }
.section-head .label + .h2, .section-head .label + h2,
.split__content .label + .h2, .split__content .label + h2 { margin-top: 0; }

/* Editor content */
.prose--intro > p:first-of-type { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); }
.prose img { height: auto; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--brand-blue); color: var(--muted); }
.entry-content > * + * { margin-top: 1em; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.nav-links { display: flex; gap: 8px; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Team */
.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.team__member .media { margin-bottom: 14px; display: flex; align-items: center; justify-content: center; background: var(--blue-100); }
.team__initials { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); letter-spacing: -0.03em; color: var(--blue-700); }
@media (max-width: 1024px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cookie banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin-left: auto;
  display: grid; gap: 16px; padding: 20px 22px;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(13,24,32,.35);
  font-size: var(--fs-small);
}
.consent[hidden] { display: none; }
.consent a { color: var(--blue-700); text-decoration: underline; }
.consent__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent .btn { min-height: 44px; }
