/* ===== Milex Works ===== */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --black: #151515;
  --char: #1E1E1E;
  --char-2: #262626;
  --red: #E2231A;
  --red-dark: #B81810;
  --paper: #F5F2EE;
  --white: #FFFFFF;
  --ink: #1B1B1B;
  --muted: #5F5F5F;
  --line: rgba(0, 0, 0, .1);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1; margin: 0 0 .45em; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.45rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.eyebrow--light { color: #FF6B63; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .8em 1.4em; border-radius: 10px; border: 2px solid transparent; transition: transform .15s ease, background .15s, box-shadow .15s; }
.btn svg { width: 1.2em; height: 1.2em; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(226, 35, 26, .7); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--big { font-size: 1.4rem; padding: .9em 1.7em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(21, 21, 21, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav__inner { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .04em; }
.brand b { color: var(--red); font-weight: 600; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__menu .nav__cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav__menu .nav__cta:hover { background: var(--red-dark); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: #fff; border-radius: 3px; transition: transform .25s, opacity .25s; }
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--black); border-bottom: 3px solid var(--red); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s ease; }
  .nav__menu a { padding: 12px 16px; font-size: 1.1rem; }
  .nav__menu .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; isolation: isolate; }
/* Desktop: foto rechts (Niels en de bestelwagen in beeld), links zacht in het zwart. Gsm: foto achter de tekst. */
.hero__bg { position: absolute; top: 0; bottom: 0; right: 0; left: 38%; z-index: -1; background: url("../img/cover.webp") 30% center / cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black) 0%, rgba(21, 21, 21, .55) 22%, rgba(21, 21, 21, .05) 48%), linear-gradient(0deg, var(--black) 0%, rgba(21, 21, 21, .4) 22%, transparent 45%); }
@media (max-width: 860px) {
  .hero__bg { left: 0; background-position: 40% center; }
  .hero__bg::after { background: linear-gradient(0deg, var(--black) 8%, rgba(21, 21, 21, .82) 45%, rgba(21, 21, 21, .6) 100%); }
}
.hero__content { padding: clamp(64px, 11vh, 120px) 0 170px; }
.hero__kicker { display: inline-block; font-family: var(--display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #FF6B63; margin-bottom: 1em; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); max-width: 10em; line-height: .92; margin-bottom: .35em; }
.hero h1 span { color: var(--red); display: block; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 32em; color: rgba(255, 255, 255, .86); margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2em; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: rgba(255, 255, 255, .8); font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.hero__facts strong { color: #fff; font-family: var(--display); font-size: 1.4rem; }

/* Rijdend wagentje */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; border-bottom: 3px solid rgba(255, 255, 255, .18); }
.road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 40px, transparent 40px 80px); animation: lane 1.2s linear infinite; }
.truck { position: absolute; bottom: 4px; left: 0; width: 150px; animation: drive 14s linear infinite; }
.truck svg { width: 150px; height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(226, 35, 26, .35)); }
.truck__body { animation: bump .45s ease-in-out infinite alternate; }
.wheel { animation: spin .55s linear infinite; }
.puff { position: absolute; left: 4px; bottom: 16px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); animation: puff 1.2s ease-out infinite; }
.puff.p2 { animation-delay: .4s; }
.puff.p3 { animation-delay: .8s; }
@keyframes drive { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bump { to { transform: translateY(-1.2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lane { to { background-position: -80px 0; } }
@keyframes puff { from { transform: translate(0, 0) scale(.6); opacity: .8; } to { transform: translate(-34px, -14px) scale(1.8); opacity: 0; } }

/* Diensten */
.services { padding: clamp(70px, 9vw, 120px) 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--red); box-shadow: 0 1px 0 var(--line), 0 18px 36px -26px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.service:hover { transform: translateY(-4px); }
.service svg { width: 52px; height: 52px; margin-bottom: 16px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.service p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* Werkwijze */
.steps { background: var(--char); color: #fff; padding: clamp(50px, 7vw, 80px) 0; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-left: 70px; }
.step span { position: absolute; left: 0; top: -4px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-family: var(--display); font-weight: 600; font-size: 1.7rem; }
.step p { color: rgba(255, 255, 255, .75); margin: 0; }
@media (max-width: 860px) { .steps__grid { grid-template-columns: 1fr; } }

/* Werk */
.work { padding: clamp(70px, 9vw, 120px) 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.g { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.g--tall { grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g:hover img { transform: scale(1.05); }
.g figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .g--tall { grid-row: span 1; } }

/* Over Niels */
.about { background: #fff; padding: clamp(70px, 9vw, 120px) 0; }
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__avatar { position: relative; justify-self: center; }
.about__avatar img { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .25)); animation: float 5s ease-in-out infinite; }
.about__wave { position: absolute; top: 4%; right: -8%; margin: 0; background: var(--red); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.4rem; padding: 8px 16px; border-radius: 16px 16px 16px 4px; transform: rotate(6deg); }
.about__text p { color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } .about__wave { right: -4%; } }

/* Reviews */
.reviews { padding: clamp(70px, 9vw, 120px) 0; }
.reviews__sub { color: var(--muted); margin: 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px 26px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 36px -26px rgba(0, 0, 0, .4); position: relative; }
.review::before { content: "★★★★★"; display: block; color: var(--red); letter-spacing: .15em; margin-bottom: 10px; }
.review p { font-size: 1.12rem; }
.review cite { font-style: normal; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--black); color: #fff; padding: clamp(70px, 9vw, 120px) 0; }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.contact__text p { color: rgba(255, 255, 255, .8); font-size: 1.12rem; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact__list span { font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #FF6B63; }
.contact__list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: #FF6B63; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } .contact__list li { grid-template-columns: 100px 1fr; } }

/* Footer */
.footer { background: #0E0E0E; color: rgba(255, 255, 255, .7); padding: 30px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.footer__small { margin: 0; font-size: .9rem; }
.brand--footer { font-size: 1.3rem; }

/* Reveal */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
  .truck { left: 50%; transform: translateX(-50%); }
}

/* Havenlicht-credit (footer). Neemt de tekstkleur van de footer over. */
.hl-credit { display: inline-flex; align-items: center; gap: .45em; font-size: .85rem; line-height: 1; color: inherit; text-decoration: none; opacity: .85; transition: opacity .2s; }
.hl-credit:hover, .hl-credit:focus-visible { opacity: 1; }
.hl-credit:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hl-credit strong { font-weight: 600; }
.hl-credit__icon { width: 2.1em; height: 1.7em; flex: none; overflow: visible; }
/* Fl(3) W 10s: drie schitteringen kort na elkaar, dan donker. */
.hl-credit__beam { opacity: 0; animation: hl-fl3 10s linear infinite; }
@keyframes hl-fl3 {
  0%, 3%, 9%, 18%, 24%, 33%, 39%, 100% { opacity: 0; }
  6%, 21%, 36% { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) { .hl-credit__beam { animation: none; opacity: .6; } }
