/* Installatiebedrijf Kerste - demo homepage
   Donker thema naar de zwarte bus met limoengroene belettering. */

@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101211;
  --bg-2: #161917;
  --bg-3: #1d211e;
  --line: #2a2f2b;
  --text: #eef0ec;
  --muted: #a9aea7;
  --grey: #97989a;
  --lime: #aede54;
  --lime-2: #c3ea7c;
  --on-lime: #111410;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
a, button, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(174 222 84 / 0.18); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* Typografie */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.lead { color: var(--muted); font-size: 1.125rem; max-width: 46ch; margin-top: 14px; text-wrap: pretty; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 1.0625rem/1 "Jost", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-2); }
.btn--ghost { color: var(--text); border-color: #4a514b; background: transparent; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--ghost .ic { transition: transform 200ms var(--ease); }
.btn--ghost:hover .ic { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1rem; }

.link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  color: var(--lime); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid rgb(174 222 84 / 0.35); padding-bottom: 4px;
  transition: border-color 200ms ease;
}
.link:hover { border-color: var(--lime); }

/* Navigatie */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(16 18 17 / 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.nav__logo img { width: 150px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 180ms ease; padding: 6px 0; }
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 999px;
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle .ic { width: 22px; height: 22px; }
.nav__toggle .ic--close { display: none; }
.nav__toggle[aria-expanded="true"] .ic--open { display: none; }
.nav__toggle[aria-expanded="true"] .ic--close { display: block; }
.menu { border-top: 1px solid var(--line); background: var(--bg); }
.menu nav { display: flex; flex-direction: column; padding-block: 12px 24px; }
.menu a:not(.btn) { padding: 14px 0; font-size: 1.375rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: 1.2fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 72px);
  min-height: calc(100dvh - var(--nav-h)); max-height: 900px; padding-block: 48px 64px;
}
.hero__copy { position: relative; }
.hero__k {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(360px, 44vw, 640px); height: auto;
  left: 38%; top: -4%; transform: translateY(-30%);
  opacity: 0.13;
}
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 600;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__sub { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 42ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media {
  position: relative; height: min(640px, 72dvh);
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
}
.hero__ph { overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.hero__ph--a { grid-row: 1 / 3; }
.hero__ph--b { margin-top: 28px; }
.hero__ph--c { margin-bottom: 28px; }

/* Beginstand van de hero-intro (alleen met JS en zonder reduced motion) */
.anim .hero__title .line > span { transform: translateY(105%); }
.anim .hero__sub, .anim .hero__cta, .anim .hero__ph { opacity: 0; }
.anim .hero__k { clip-path: inset(0 100% 0 0); }

/* Bus-strook: de werkzaamheden zoals op de zijkant van de bus, met de K als scheiding */
.van { border-block: 1px solid var(--line); background: var(--bg-2); }
.van__list { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 22px; padding-block: 22px; }
.van__list li {
  display: inline-flex; align-items: center; gap: 22px;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem); font-weight: 500; color: var(--text); letter-spacing: -0.005em;
}
.van__list li + li::before {
  content: ""; width: 26px; height: 17px; flex: none;
  background: url("../assets/k-swash.svg") center / contain no-repeat;
}

/* Diensten */
.svc { padding-block: clamp(80px, 10vw, 140px); }
.svc__in { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.svc__ph { margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; max-width: 380px; }
.svc__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc__item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: border-color 250ms ease, background-color 250ms ease;
}
.svc__item:hover { border-color: #3c4a2c; background: var(--bg-3); }
.svc__item:nth-child(3n + 1) { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; }
.svc__item:nth-child(3n + 1) .ic--svc { grid-row: 1 / 3; }
.ic--svc { width: 34px; height: 34px; color: var(--lime); margin-bottom: 18px; }
.svc__item:nth-child(3n + 1) .ic--svc { margin: 2px 0 0; width: 40px; height: 40px; }
.svc__item h3 { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.2; }
.svc__item p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* Werk */
.work { padding-block: clamp(72px, 9vw, 128px); background: var(--bg-2); border-block: 1px solid var(--line); }
.work__head { margin-bottom: 44px; }
.work__grid {
  display: grid; gap: 16px;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  grid-template-areas:
    "tall a b wide"
    "tall c d wide";
}
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile__img { overflow: hidden; border-radius: var(--radius); background: var(--bg-3); flex: 1; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover .tile__img img { transform: scale(1.035); }
.tile figcaption { color: var(--muted); font-size: 0.95rem; }
.tile--tall { grid-area: tall; }
.tile--tall .tile__img { min-height: 560px; }
.tile:nth-child(2) { grid-area: a; }
.tile:nth-child(3) { grid-area: b; }
.tile:nth-child(4) { grid-area: c; }
.tile:nth-child(5) { grid-area: d; }
.tile:not(.tile--tall):not(.tile--wide) .tile__img { aspect-ratio: 4 / 4.6; }
.tile--wide { grid-area: wide; }
.tile--wide .tile__img { min-height: 560px; }
.tile--wide img { object-position: center 70%; }

/* Over */
.about { padding-block: clamp(80px, 10vw, 140px); }
.about__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__ph { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about__ph img { width: 100%; aspect-ratio: 472 / 358; object-fit: cover; }
.about__quote { margin: 32px 0 0; padding-left: 20px; border-left: 3px solid var(--lime); }
.about__quote p { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }

/* Reviews */
.rev { padding-block: 0 clamp(80px, 10vw, 140px); }
.rev .h2 { margin-bottom: 40px; }
.rev__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.rev__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
}
.rev__card blockquote { margin: 0; }
.rev__card p { font-size: 1.125rem; line-height: 1.5; }
.rev__card--big { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.rev__card--big p { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.4; font-weight: 500; }
.rev__card figcaption { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.rev__card--big figcaption { color: #2c3a17; }

/* Contact */
.contact { padding-block: clamp(80px, 10vw, 128px); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__list { margin-top: 36px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1875rem; }
.contact__list .ic { color: var(--lime); margin-top: 0.25em; }
.contact__list a { text-decoration: none; border-bottom: 1px solid #4a514b; transition: border-color 180ms ease, color 180ms ease; }
.contact__list a:hover { color: var(--lime); border-color: var(--lime); }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.form__title { font-size: 1.5rem; letter-spacing: -0.01em; }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { padding: 0; margin-bottom: 10px; font-weight: 500; color: var(--text); }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #3b423c; color: var(--muted); font-weight: 500; font-size: 0.975rem;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms var(--ease);
}
.form__chips label:hover span { border-color: var(--lime); color: var(--text); }
.form__chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.form__chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.form__chips label:active span { transform: scale(0.97); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.975rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid #3b423c; border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: #57605a; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgb(174 222 84 / 0.25); }
.field input[aria-invalid="true"] { border-color: #ff8a7a; }
.field__err { color: #ff9b8d; font-size: 0.925rem; }
.form__submit { justify-self: start; margin-top: 4px; }
.form__note { background: var(--bg-3); border: 1px solid #3c4a2c; border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); }

/* Footer */
.foot { padding-block: 48px calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.foot__in img { width: 130px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lime); }

/* Vaste belbalk op mobiel */
.callbar { display: none; }

/* Responsief */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__call { margin-left: auto; }
  .nav__toggle { display: inline-flex; margin-left: 0; }
  .hero__in { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-block: 40px 56px; }
  .hero__media { height: 480px; }
  .svc__in { grid-template-columns: 1fr; }
  .svc__head { position: static; }
  .svc__ph { display: none; }
  .about__in, .contact__in { grid-template-columns: 1fr; }
  .rev__grid { grid-template-columns: 1fr 1fr; }
  .rev__card--big { grid-column: span 2; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  html { scroll-padding-bottom: 84px; }
  body { font-size: 1.0625rem; }
  .nav__in { gap: 12px; }
  .nav__logo img { width: 128px; }
  .nav__call { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__in { padding-block: 28px 48px; gap: 36px; }
  .hero__k { width: 300px; left: -14%; top: 30%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__media { height: 420px; gap: 10px; grid-template-columns: 1.4fr 1fr; }
  .hero__ph--b { margin-top: 18px; }
  .hero__ph--c { margin-bottom: 18px; }
  .van__list { justify-content: flex-start; gap: 8px 16px; padding-block: 18px; }
  .van__list li { gap: 16px; font-size: 1.05rem; }
  .van__list li + li::before { width: 20px; height: 13px; }
  .svc__list { grid-template-columns: 1fr; }
  .svc__list { gap: 10px; }
  .svc__item, .svc__item:nth-child(3n + 1) { grid-column: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px 20px 22px; }
  .svc__item .ic--svc, .svc__item:nth-child(3n + 1) .ic--svc { grid-row: auto; margin: 0; width: 28px; height: 28px; }
  .svc__item p { grid-column: 1 / -1; margin-top: 8px; }
  .work__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "tall tall" "a b" "c d" "wide wide"; gap: 12px; }
  .tile--wide .tile__img { min-height: 0; aspect-ratio: 4 / 3.4; }
  .tile--tall .tile__img { min-height: 0; aspect-ratio: 4 / 4.4; }
  .tile figcaption { font-size: 0.9rem; }
  .rev__grid { grid-template-columns: 1fr; }
  .rev__card--big { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .foot__in { grid-template-columns: 1fr; gap: 18px; padding-bottom: 72px; }

  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(16 18 17 / 0.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 320ms var(--ease);
  }
  .callbar .btn { min-height: 48px; }
  .callbar.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .tile:hover .tile__img img { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .callbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
