/* ============================================================
   RIOLERING SERVICES — Premium one-pager
   Design system: "ondergronds water-infrastructuur"
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Kleuren — ondergrondse water-infrastructuur */
  --abyss:    #07141a;   /* diepste achtergrond */
  --petrol:   #0b2630;   /* sectie-achtergrond  */
  --deep:     #0f3744;   /* verhoogde vlakken / kaarten */
  --deep-2:   #134556;   /* hover / randen */
  --surface:  #eef4f3;   /* lichte tekst / beton */
  --steel:    #8ca3ac;   /* gedempte tekst */
  --steel-d:  #5e747e;   /* zeer gedempt */
  --current:  #1fe3c2;   /* aqua — stromend water (signatuur) */
  --current-d:#0fb89c;
  --alert:    #ff6a2b;   /* safety-oranje — uitsluitend spoed/CTA */
  --alert-d:  #e8551a;

  /* Typografie */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Type-schaal */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.9rem);

  /* Ruimte & vorm */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
  --radius: 16px;
  --radius-lg: 26px;
  --border: 1px solid rgba(140, 163, 172, 0.16);
  --border-strong: 1px solid rgba(31, 227, 194, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --glow: 0 0 48px -8px rgba(31, 227, 194, 0.45);
}

/* ---------- 2. Reset & basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--surface);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection {
  background: var(--current);
  color: var(--abyss);
}

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

/* ---------- 3. Layout helpers ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 9rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--current);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--current), transparent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
  max-width: 18ch;
}

.lead {
  font-size: var(--step-1);
  color: var(--steel);
  max-width: 62ch;
  line-height: 1.55;
  font-weight: 350;
}

.section__head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- 4. Topbalk spoedservice (altijd zichtbaar) ---------- */
.emergency-bar {
  background: var(--alert);
  color: #1a0a04;
}
.emergency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.6rem);
  flex-wrap: wrap;
  padding-block: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}
.emergency-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a0a04;
  flex: none;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #1a0a04;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.emergency-bar__phone {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  border-bottom: 1px solid rgba(26, 10, 4, 0.45);
  padding-bottom: 1px;
  transition: border-color 0.25s var(--ease);
}
.emergency-bar__phone:hover { border-color: #1a0a04; }
.emergency-bar__sep { opacity: 0.55; }
@media (max-width: 560px) {
  .emergency-bar__sep { display: none; }
}

/* ---------- Bel-keuze popover (WhatsApp / gewoon bellen) ---------- */
.callpop { position: relative; display: inline-flex; }
.callpop__trigger {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}
.callpop__trigger .chev {
  transition: transform 0.3s var(--ease);
}
.callpop.is-open .callpop__trigger .chev { transform: rotate(180deg); }
.callpop__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  background: var(--deep);
  border: var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  padding: 0.55rem;
  display: grid;
  gap: 0.25rem;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s;
}
.callpop.is-open .callpop__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.callpop__menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: var(--deep);
  border-left: var(--border-strong);
  border-top: var(--border-strong);
  transform: rotate(45deg);
}
.callpop__head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.5rem 0.7rem 0.3rem;
}
.callpop__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.7rem;
  border-radius: 11px;
  color: var(--surface);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.callpop__item:hover { background: rgba(31, 227, 194, 0.1); transform: translateX(2px); }
.callpop__item .ic {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.callpop__item .ic svg { width: 19px; height: 19px; }
.callpop__item--call .ic { background: rgba(31, 227, 194, 0.16); color: var(--current); }
.callpop__item--wa .ic { background: rgba(37, 211, 102, 0.16); color: #25d366; }
.callpop__item b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.callpop__item span {
  display: block;
  font-size: 0.78rem;
  color: var(--steel);
}

/* ---------- 5. Navigatie ---------- */
/* Volledige header (spoedbalk + menu) blijft staan bij het scrollen */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}
.site-header .emergency-bar {
  position: relative;
  z-index: 3;
}
.nav {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--abyss) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--abyss) 94%, transparent);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.95rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand strong { font-weight: 600; }
.brand span { color: var(--current); }

/* Eigen logo-afbeelding (zie LEESMIJ voor aanbevolen formaat) */
.brand__logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
}
.footer .brand__logo { height: 36px; }
/* De tekst-fallback hieronder toont alleen wanneer er nog geen logo is ingesteld */
.brand__fallback {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  color: var(--steel);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--current);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--surface); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: var(--border);
  border-radius: 10px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--surface);
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--surface);
  transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Buttons ---------- */
.btn {
  --bg: var(--current);
  --fg: var(--abyss);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:active { transform: translateY(0); }
.btn--alert { --bg: var(--alert); --fg: #1a0a04; }
.btn--alert:hover { box-shadow: 0 0 42px -8px rgba(255, 106, 43, 0.6); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--surface);
  border-color: rgba(140, 163, 172, 0.28);
}
.btn--ghost:hover {
  --bg: rgba(31, 227, 194, 0.08);
  border-color: var(--current);
  color: var(--current);
  box-shadow: none;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }


/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 1000px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(31, 227, 194, 0.10), transparent 55%),
    radial-gradient(100% 80% at 0% 110%, rgba(15, 55, 68, 0.7), transparent 60%),
    var(--abyss);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 163, 172, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 163, 172, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 75%);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(4rem, 10vw, 7rem);
  width: 100%;
}
.hero__content { max-width: 760px; }
.hero h1 {
  font-size: var(--step-4);
  margin-top: 1.4rem;
  margin-bottom: 1.6rem;
}
.hero h1 .accent {
  color: var(--current);
  position: relative;
}
.hero__lead {
  max-width: 54ch;
  margin-bottom: 2.4rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 3rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--steel);
}
.hero__meta b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--surface);
  letter-spacing: -0.02em;
}
.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.8rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-d);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero__scroll i {
  width: 1px; height: 40px;
  background: linear-gradient(var(--current), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 12px;
  background: var(--current);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: translateY(-12px); }
  100% { transform: translateY(40px); }
}

/* ---------- 9. Diensten ---------- */
.services { background: var(--abyss); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: rgba(140, 163, 172, 0.14);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  position: relative;
  background: var(--petrol);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  transition: background 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, rgba(31, 227, 194, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.service:hover { background: var(--deep); }
.service:hover::before { opacity: 1; }
.service__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--current);
  letter-spacing: 0.1em;
}
.service__icon {
  width: 46px; height: 46px;
  margin-top: 1.4rem;
  color: var(--current);
  transition: transform 0.45s var(--ease);
}
.service:hover .service__icon { transform: translateY(-4px) scale(1.06); }
.service__icon svg { width: 100%; height: 100%; }
.service h3 {
  font-size: var(--step-1);
  margin-top: auto;
  padding-top: 1.6rem;
}
.service__desc {
  color: var(--steel);
  font-size: var(--step-0);
  margin-top: 0.7rem;
}
.service__line {
  margin-top: 1.4rem;
  height: 1px;
  width: 100%;
  background: rgba(140, 163, 172, 0.18);
  position: relative;
  overflow: hidden;
}
.service__line::after {
  content: "";
  position: absolute; inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--current), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.service:hover .service__line::after { transform: translateX(260%); }

/* ---------- 10. Werkwijze ---------- */
.method {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(15, 55, 68, 0.55), transparent 60%),
    var(--petrol);
  border-block: var(--border);
}
.method__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.method__copy .lead { margin-top: 1.4rem; }

/* ---------- Carrousel ---------- */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: var(--border);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(31, 227, 194, 0.10), transparent 60%),
    var(--abyss);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.carousel__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder zolang er nog geen foto is */
.carousel__ph {
  position: absolute;
  inset: 0;
  display: grid;            /* standaard zichtbaar; img dekt 'm af zodra geladen */
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  color: var(--steel);
  background:
    repeating-linear-gradient(45deg, rgba(140,163,172,0.05) 0 16px, transparent 16px 32px);
}
.carousel__ph svg { width: 40px; height: 40px; color: var(--current); opacity: 0.8; }
.carousel__ph span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--border);
  background: color-mix(in srgb, var(--abyss) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--surface);
  z-index: 3;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel__arrow:hover {
  background: var(--current);
  color: var(--abyss);
  border-color: var(--current);
}
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow--prev { left: 0.9rem; }
.carousel__arrow--next { right: 0.9rem; }
.carousel__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.carousel__arrow--next:hover { transform: translateY(-50%) translateX(2px); }
.carousel__dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(238, 244, 243, 0.4);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel__dot.is-active {
  width: 22px;
  background: var(--current);
}
@media (max-width: 880px) {
  .method__layout { grid-template-columns: 1fr; }
  .carousel { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .carousel { aspect-ratio: 4 / 3; }
  .carousel__arrow { width: 40px; height: 40px; }
}

/* ---------- 11. Over ---------- */
.about { background: var(--abyss); }
.about__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__copy .lead { margin-top: 1.4rem; }
.about__stats {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(140, 163, 172, 0.14);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Foto-kolom (zie LEESMIJ voor aanbevolen formaat) */
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(31, 227, 194, 0.10), transparent 60%),
    var(--petrol);
}
.about__media img.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder die toont zolang er nog geen foto is gekoppeld */
.about__media .about__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  color: var(--steel);
  background:
    repeating-linear-gradient(45deg, rgba(140,163,172,0.05) 0 16px, transparent 16px 32px);
}
.about__ph svg { width: 42px; height: 42px; color: var(--current); opacity: 0.8; }
.about__ph span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat {
  background: var(--petrol);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.stat b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--current);
  display: block;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--steel);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .about__layout { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 10; max-height: 380px; order: -1; }
}

/* ---------- 12. Portfolio + voor/na slider ---------- */
.portfolio {
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(15, 55, 68, 0.5), transparent 55%),
    var(--petrol);
  border-block: var(--border);
}
.projects { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.project {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.project:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.project:nth-child(even) .project__info { order: 2; }
.project__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--current);
  letter-spacing: 0.1em;
}
.project h3 {
  font-size: var(--step-2);
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}
.project__desc { color: var(--steel); max-width: 46ch; }
.project__tags {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  border: var(--border);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
@media (max-width: 820px) {
  .project,
  .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__info { order: 0; }
}

/* Voor/na vergelijkingsslider */
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  background: var(--abyss);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: var(--shadow);
  cursor: grab;
}
.compare.is-dragging { cursor: grabbing; }
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.compare__after { z-index: 1; }
.compare__before-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 50%;
  overflow: hidden;
  will-change: width;
}
.compare__before-wrap img.compare__img {
  width: 100vw;
  max-width: none;
}
/* placeholder-look wanneer er nog geen foto is */
.compare__img--placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(140,163,172,0.06) 0 14px, transparent 14px 28px),
    var(--deep);
}
.compare__after.compare__img--placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(31,227,194,0.08) 0 14px, transparent 14px 28px),
    var(--deep);
}
.compare__ph-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(7, 20, 26, 0.6);
  padding: 0.5em 1em;
  border-radius: 999px;
  border: var(--border);
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--current);
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(31, 227, 194, 0.7);
  will-change: left;
}
.compare__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--current);
  color: var(--abyss);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(31, 227, 194, 0.6);
}
.compare__grip svg { width: 22px; height: 22px; }
.compare__badge {
  position: absolute;
  z-index: 3;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.compare__badge--before {
  left: 1rem;
  background: rgba(255, 106, 43, 0.18);
  border: 1px solid rgba(255, 106, 43, 0.4);
  color: var(--alert);
}
.compare__badge--after {
  right: 1rem;
  background: rgba(31, 227, 194, 0.16);
  border: 1px solid rgba(31, 227, 194, 0.4);
  color: var(--current);
}

/* ---------- 13. Contact ---------- */
.contact { background: var(--abyss); }
.contact__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact__aside .lead { margin-top: 1.4rem; }
.contact__details {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.1rem;
}
.contact__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact__row .ic {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  border: var(--border);
  display: grid;
  place-items: center;
  color: var(--current);
}
.contact__row .ic svg { width: 20px; height: 20px; }
.contact__row b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-d);
  font-weight: 400;
}
.contact__row span { color: var(--surface); }

.form {
  background: var(--petrol);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--surface);
  background: var(--abyss);
  border: 1px solid rgba(140, 163, 172, 0.2);
  border-radius: 12px;
  padding: 0.85em 1em;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--steel-d); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--current);
  box-shadow: 0 0 0 3px rgba(31, 227, 194, 0.14);
}
.form__foot {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.form__note {
  font-size: var(--step--1);
  color: var(--steel-d);
  max-width: 34ch;
}
.form__status {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--current);
  min-height: 1.2em;
}
@media (max-width: 880px) {
  .contact__layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--abyss);
  border-top: var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 0.65rem; }
.footer__emergency {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--steel);
}
.footer__emergency a { color: var(--alert); font-weight: 700; }
.footer__legal {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: var(--border);
  font-size: var(--step--1);
  color: var(--steel-d);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__legal a:hover { color: var(--current); }
.footer__credit a {
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer__credit a:hover { color: var(--current); border-color: var(--current); }

/* ---------- 15. Reveal-animaties ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ---------- 16. Mobiel menu ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__inner { position: relative; z-index: 56; }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 6rem var(--gutter) 2rem;
    background: var(--petrol);
    border-left: var(--border);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0.45s var(--ease);
    z-index: 55;
  }
  .nav.is-open .nav__links { transform: translateX(0); visibility: visible; }
  .nav__links a { font-size: var(--step-1); color: var(--surface); }
  .nav__cta { display: none; }
  .nav__overlay {
    position: fixed;
    top: 0; right: 0; left: 0;
    height: 100dvh;
    background: rgba(7, 20, 26, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: 54;
  }
  .nav.is-open .nav__overlay { opacity: 1; visibility: visible; }
}

/* ============================================================
   17. Responsive verfijningen (mobiel + tablet)
   ============================================================ */

/* Tablet liggend / kleine laptops: navigatie compacter houden */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.82rem; }
  .nav__cta { padding: 0.7em 1.1em; }
}

/* Tablet portret */
@media (min-width: 600px) and (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 88vh; }
}

/* Telefoons */
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .project__tags { gap: 0.4rem; }
  .compare { aspect-ratio: 3 / 2; }
  .about__media { aspect-ratio: 4 / 3; }
}

/* Bel-keuze popover netjes centreren op smalle schermen (geen overloop) */
@media (max-width: 560px) {
  .callpop__menu {
    left: 50%;
    right: auto;
    min-width: 0;
    width: min(90vw, 320px);
    transform-origin: top center;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
  }
  .callpop.is-open .callpop__menu {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .callpop__menu::before { left: 50%; right: auto; margin-left: -6px; }
}

/* Korte landschap-schermen (bv. telefoon liggend): hero niet te hoog */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 560px; }
}

/* Zeer kleine schermen: spoednummer iets compacter */
@media (max-width: 380px) {
  .emergency-bar__inner { font-size: 0.74rem; }
  .callpop__trigger { font-size: 0.74rem; }
}
