:root {
  --navy: #0b2239;
  --navy-2: #12395f;
  --steel: #eef3f7;
  --ink: #182233;
  --muted: #66768a;
  --orange: #f0783c;
  --orange-2: #ffae72;
  --red: #B41E1E;
  --white: #fff;
  --line: #dce5ec;
  --shadow: 0 22px 60px rgba(11, 34, 57, .14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafc;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Archivo", "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap, .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar .wrap { min-height: 36px; }
.topbar strong { color: var(--white); font-weight: 700; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header .wrap { min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.brand-mark { width: 60px; height: 60px; object-fit: cover; object-position: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Archivo", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.brand-name .prime { color: var(--navy); }
.brand-name .solutions { color: var(--orange); }
.brand-tag { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.brand-tag .excl { color: var(--red); }
nav { display: flex; align-items: center; gap: 22px; color: #314055; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--orange); }
nav a.active { color: var(--orange); }
nav a.button.active { color: var(--white); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 5px; border: 1px solid transparent; font-weight: 800; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--orange); color: var(--white); box-shadow: 0 12px 24px rgba(240,120,60,.26); }
.button.primary:hover { background: #e06a2f; }
.button.light { background: var(--white); color: var(--navy); border-color: rgba(255,255,255,.75); }
.button.ghost { background: transparent; color: var(--navy); border-color: #c7d4df; }

.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.86) 38%, rgba(8,25,43,.34) 72%, rgba(8,25,43,.62) 100%), url("../assets/prime-industrial-hero.jpg") center right / cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(0deg, rgba(247,250,252,1), rgba(247,250,252,0)); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 86px 0 118px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-2); font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--orange); }
h1 { margin: 0; max-width: 780px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; }
.lead { margin: 24px 0 0; max-width: 650px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-strip { position: relative; z-index: 3; margin-top: -74px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(220,229,236,.8); }
.strip-item { padding: 24px 24px 22px; border-right: 1px solid var(--line); min-height: 122px; }
.strip-item:last-child { border-right: 0; }
.strip-item span { display: block; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.strip-item strong { display: block; color: var(--navy); font-size: 20px; line-height: 1.18; }

section { padding: 92px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr); gap: 46px; align-items: end; margin-bottom: 34px; }
h2 { margin: 0; color: var(--navy); font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.intro { background: #f7fafc; }
.intro-panel { display: grid; grid-template-columns: .86fr 1.14fr; gap: 42px; align-items: start; }
.intro-kicker { color: var(--orange); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 16px; }
.intro-text { color: #425166; font-size: 20px; line-height: 1.65; margin: 0; }

.service-grid { display: grid; grid-template-columns: 1.16fr 1fr 1fr; gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); padding: 30px; min-height: 330px; box-shadow: 0 12px 34px rgba(12,34,57,.06); position: relative; overflow: hidden; }
.service.major { background: linear-gradient(145deg, rgba(11,34,57,.98), rgba(18,57,95,.96)), var(--navy); color: var(--white); }
.service-number { color: var(--orange); font-weight: 900; letter-spacing: .08em; font-size: 12px; margin-bottom: 40px; }
.service h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.16; color: var(--navy); }
.service.major h3 { color: var(--white); }
.service p { margin: 0; color: var(--muted); }
.service.major p { color: rgba(255,255,255,.78); }
.ticks { display: grid; gap: 9px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(102,118,138,.22); color: #324259; font-size: 14px; font-weight: 750; }
.service.major .ticks { color: var(--white); border-color: rgba(255,255,255,.18); }

/* Teaser-kaarten op de homepage */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.teaser { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); padding: 30px; box-shadow: 0 12px 34px rgba(12,34,57,.06); }
.teaser h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.16; color: var(--navy); }
.teaser p { margin: 0; color: var(--muted); }
.teaser .button { margin-top: 24px; align-self: flex-start; }

.process { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.process-step { background: var(--white); min-height: 270px; padding: 28px; }
.process-step .tag { color: var(--orange); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 44px; }
.process-step h3, .tile h3 { margin: 0 0 10px; color: var(--navy); font-size: 23px; line-height: 1.18; }
.process-step p, .tile p { margin: 0; color: var(--muted); }

.visual-section { background: linear-gradient(180deg, #f7fafc 0%, #edf3f7 100%); }
.machine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 24px; box-shadow: 0 12px 32px rgba(12,34,57,.05); }
.tile-icon { height: 112px; border: 1px solid #c8d5df; background: linear-gradient(145deg, rgba(255,255,255,.45), rgba(255,255,255,0)), var(--steel); color: var(--navy-2); display: grid; place-items: center; font-weight: 900; font-size: 28px; }

/* Detailpagina's */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding: 74px 0 66px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.9) 45%, rgba(8,25,43,.52) 78%, rgba(8,25,43,.68) 100%), url("../assets/prime-industrial-hero.jpg") center right / cover no-repeat; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-materiaal::before { background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.88) 42%, rgba(8,25,43,.38) 75%, rgba(8,25,43,.55) 100%), url("../assets/silo-leidingwerk.jpg") center right / cover no-repeat; }
.page-hero-control::before { background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.86) 40%, rgba(8,25,43,.28) 72%, rgba(8,25,43,.34) 100%), url("../assets/mes-planbord.png") center right / cover no-repeat; }
.page-hero .service-number { color: var(--orange-2); margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.03em; max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.page-body { padding: 74px 0; }
.page-body .prose { max-width: 780px; }
.page-body .prose p { color: #425166; font-size: 18px; line-height: 1.7; margin: 0 0 20px; }
.feature-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; max-width: 780px; }
.feature-list li { padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--orange); font-weight: 650; color: #324259; }

/* Contactpagina */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: 28px; box-shadow: 0 12px 32px rgba(12,34,57,.05); }
.contact-card .label { color: var(--orange); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.5; }
.contact-card a:hover { color: var(--orange); }

.quote { background: var(--navy); color: var(--white); padding: 76px 0; }
.quote-layout { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.quote h2 { color: var(--white); }
.quote p { margin: 18px 0 0; max-width: 720px; color: rgba(255,255,255,.76); font-size: 18px; }
.quote-actions { display: flex; flex-direction: column; gap: 12px; }

footer { background: #071522; color: rgba(255,255,255,.68); padding: 30px 0; font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
footer a { color: rgba(255,255,255,.85); text-decoration: underline; }
footer a:hover { color: var(--white); }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { min-height: 650px; }
  .strip-grid, .service-grid, .teaser-grid, .process-grid, .machine-grid, .intro-panel, .section-head, .quote-layout, .contact-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .service { min-height: auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .topbar .wrap { align-items: flex-start; flex-direction: column; gap: 2px; padding: 8px 0; }
  .brand { min-width: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.88) 62%, rgba(8,25,43,.7) 100%), url("../assets/prime-industrial-hero.jpg") center / cover no-repeat; }
  .hero-content { padding: 58px 0 110px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-strip { margin-top: -52px; }
  section { padding: 66px 0; }
  .tile { grid-template-columns: 1fr; }
  footer .wrap { align-items: flex-start; flex-direction: column; }
}

/* Paginabeeld met bijschrift */
.figure-section { padding: 0 0 92px; }
.page-figure { margin: 0; }
.page-figure img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-figure figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .figure-section { padding: 0 0 66px; }
}

/* Compacte screenshot-weergave */
.page-figure.screenshot { max-width: 920px; margin: 0 auto; }
.page-figure.screenshot img { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px rgba(11,34,57,.16); }
.page-figure.screenshot figcaption { text-align: center; }

/* Prime Control feature-rijen */
.mes-features { background: var(--white); border-top: 1px solid var(--line); }
.media-rows { display: grid; gap: 72px; margin-top: 14px; }
.media-row { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.media-row.flip .media-img { order: 2; }
.media-img img { width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px rgba(11,34,57,.16); }
.media-kicker { color: var(--orange); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 12px; }
.media-text h3 { margin: 0 0 12px; color: var(--navy); font-size: 27px; line-height: 1.16; }
.media-text p { margin: 0; color: #425166; font-size: 17px; line-height: 1.7; }

@media (max-width: 980px) {
  .media-row { grid-template-columns: 1fr; gap: 24px; }
  .media-row.flip .media-img { order: 0; }
  .media-rows { gap: 56px; }
}

/* Notitie bij feature-rij (o.a. Like Energy audit-vermelding) */
.media-note { margin: 18px 0 0 !important; padding: 14px 18px; background: var(--steel); border-left: 3px solid var(--orange); font-size: 15px !important; color: #324259 !important; }
.media-note strong { color: var(--navy); }
.media-note a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.media-note a:hover strong { color: var(--orange); }

/* Welltec modelkaarten */
.welltec { background: var(--white); border-top: 1px solid var(--line); }
.model-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.model-card { background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(12,34,57,.06); overflow: hidden; }
.model-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; padding: 22px; }
.model-body { padding: 6px 26px 28px; border-top: 1px solid var(--line); }
.model-kicker { color: var(--orange); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 20px 0 10px; }
.model-body h3 { margin: 0 0 10px; color: var(--navy); font-size: 23px; line-height: 1.18; }
.model-body p { margin: 0; color: var(--muted); }
.welltec-note { margin: 30px 0 0; padding: 16px 20px; max-width: 900px; background: var(--steel); border-left: 3px solid var(--orange); color: #324259; font-size: 15px; }
.prose a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.prose a:hover strong { color: var(--orange); }

@media (max-width: 980px) {
  .model-grid { grid-template-columns: 1fr; }
}
.page-hero-machines::before { background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.88) 40%, rgba(8,25,43,.3) 72%, rgba(8,25,43,.38) 100%), url("../assets/welltec-260seiii.jpg") center right / cover no-repeat; }

/* Retrofit-callout op besturingenpagina */
.retrofit-callout { margin-top: 54px; padding: 44px 46px 46px; background: linear-gradient(145deg, rgba(11,34,57,.94), rgba(18,57,95,.82)), url("../assets/droger-ombouw.jpg") center 32% / cover no-repeat, var(--navy); color: var(--white); border-left: 4px solid var(--orange); box-shadow: var(--shadow); }
.retrofit-kicker { color: var(--orange-2); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 14px; }
.retrofit-callout h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 40px); max-width: 720px; }
.retrofit-callout p { margin: 18px 0 0; max-width: 720px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.7; }
.retrofit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (max-width: 640px) {
  .retrofit-callout { padding: 30px 24px 34px; }
  .retrofit-actions { flex-direction: column; align-items: stretch; }
}

/* Besturingsniveaus + compacte praktijktegels */
.levels-grid { grid-template-columns: 1fr 1fr 1.16fr; }
.model-card > img.photo { object-fit: cover; padding: 0; aspect-ratio: 16 / 10; }
.model-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .model-grid-3 { grid-template-columns: 1fr; }
}

/* Klikbare featureregels (snelkoppelingen binnen de pagina) */
.feature-list a { display: block; }
.feature-list li:has(a) { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.feature-list li:has(a):hover { border-left-color: var(--navy); transform: translateX(3px); }
.feature-list a:hover { color: var(--orange); }
section[id] { scroll-margin-top: 96px; }

/* Kopbalk randapparatuur: robot rechts op witte ondergrond */
.page-hero-rand::before { background: linear-gradient(90deg, rgba(8,25,43,.97) 0%, rgba(8,25,43,.9) 45%, rgba(8,25,43,.3) 75%, rgba(8,25,43,.36) 100%), url("../assets/rand-robot-header.jpg") right 60px center / auto 100% no-repeat, #fff; }
@media (max-width: 1100px) {
  .page-hero-rand::before { background: linear-gradient(145deg, rgba(11,34,57,.98), rgba(18,57,95,.96)), var(--navy); }
}

/* Doorklikbare tegels en tekstlinks */
.tile h3 a:hover { color: var(--orange); }
.retrofit-callout a { text-decoration: underline; text-decoration-color: var(--orange-2); text-underline-offset: 3px; }
.retrofit-callout a:hover { color: var(--orange-2); }
.model-body p a, .media-text p a, .section-head p a, .intro-text a, .welltec-note a {
  text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px;
}
.model-body p a:hover, .media-text p a:hover, .section-head p a:hover, .intro-text a:hover, .welltec-note a:hover { color: var(--orange); }
.topbar a[target="_blank"] { text-decoration: underline; text-underline-offset: 2px; }

/* Vijfde teaser over volle breedte */
.teaser-grid .teaser:nth-child(odd):last-child { grid-column: 1 / -1; }

/* Klikbare hero-strip */
a.strip-item { transition: background .15s ease; }
a.strip-item:hover { background: var(--steel); }
a.strip-item:hover strong { color: var(--orange); }

/* Mobiel menu (hamburger) */
.nav-toggle { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .site-header .wrap { position: relative; }
  .nav-toggle { display: block; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 22px 40px rgba(11,34,57,.14); padding: 6px 20px 18px; }
  body.nav-open .site-header nav { display: flex; }
  .site-header nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .site-header nav a.button { margin-top: 14px; border-bottom: 0; }
}

/* Compacte topbar op mobiel */
@media (max-width: 640px) {
  .topbar { font-size: 12px; }
  .topbar .wrap { flex-direction: row; flex-wrap: wrap; padding: 5px 0; min-height: 0; gap: 2px 10px; }
  .topbar .wrap > span:first-child { display: none; }
}

/* Focus-states voor toetsenbordbediening */
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.button:focus-visible, .button.primary:focus-visible { outline-color: var(--navy); }
.quote a:focus-visible, .retrofit-callout a:focus-visible, .page-hero a:focus-visible { outline-color: var(--orange-2); }

/* Dim-overlay achter open mobiel menu */
@media (max-width: 980px) {
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(11,34,57,.45); backdrop-filter: blur(2px); }
}

/* Volledig klikbare tegels met hover */
.tile { transition: transform .15s ease, box-shadow .15s ease; }
.tile:has(h3 a) { position: relative; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile:has(h3 a):hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(12,34,57,.13); }
.tile:has(h3 a):hover h3 a { color: var(--orange); }
.tile:has(h3 a) h3 a::before { content: "\2192\00a0"; color: var(--orange); font-weight: 900; }

/* Subkop binnen Welltec-sectie */
.welltec-sub { margin: 44px 0 26px; max-width: 780px; }
.welltec-sub h3 { margin: 0 0 10px; color: var(--navy); font-size: 24px; line-height: 1.18; }
.welltec-sub p { margin: 0; color: #425166; font-size: 17px; line-height: 1.7; }
