/* N. Boer B.V. - nboer-mechanisatie.nl
   Richting "De servicebus": wit canvas zoals de Husqvarna-dealerpagina, zachte
   groengrijze vlakken, het groen uit logo en busbelettering als enige accent en
   de limegroene streep van de bus als motief. Licht thema bewust vast: het logo
   is een rasterbeeld met witte rand en hoort op wit.
   Radius: kaarten 20px, beelden in kaarten 14px, knoppen/pills/velden rond. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-semi-condensed-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f2f3ef;
  --surface-2: #e6e9e2;
  --line: #d9ddd4;
  --ink: #1b211d;
  --muted: #545c56;
  --green: #13762f;
  --green-dark: #0e5c24;
  --green-soft: #e3f1e4;
  --lime: #3ad04a;
  --r-card: 20px;
  --r-img: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head-h: 104px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 0 0 1px rgb(27 33 29 / .04), 0 2px 6px rgb(27 33 29 / .05), 0 10px 24px rgb(27 33 29 / .08);
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 100px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; width: 1.15em; height: 1.15em; }
.icon-lg { width: 30px; height: 30px; }
.icon-xl { width: 46px; height: 46px; }

/* ---------- knoppen en links */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn .icon { width: 18px; height: 18px; }
.text-link { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .35em; }
.text-link:hover { color: var(--green-dark); }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 4px solid var(--lime); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--head-h); }
.brand { display: block; flex: none; }
.logo { width: 418px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 10px 14px; border-radius: 999px; font: 600 1.15rem/1 var(--display); text-decoration: none; transition: background-color .2s; }
.site-nav ul a:hover { background: var(--surface); }
.site-nav ul a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.menu-toggle { display: none; }

/* ---------- hero */
.hero { padding-block: clamp(28px, 4vw, 52px) clamp(32px, 4.5vw, 60px); background: var(--surface); }
.hero + .section { padding-top: clamp(32px, 4vw, 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy h1 { max-width: 18ch; }
.hero .lead { margin-top: 20px; max-width: 44ch; }
.hero .actions { margin-top: 32px; }
.hero-media { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 5 / 3.4; background: var(--surface); position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--lime) 0 62%, transparent 62%); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.55; }

/* ---------- secties */
.section { padding-block: clamp(40px, 5.5vw, 80px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px); }
.section-last { padding-bottom: clamp(64px, 8vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.section-title { max-width: 22ch; margin-bottom: clamp(24px, 3vw, 40px); }
.page-head { padding-block: clamp(32px, 4.5vw, 60px) clamp(32px, 4vw, 52px); background: var(--surface); }
.page-head + .section { padding-top: clamp(32px, 4vw, 52px); }
.page-head .lead { margin-top: 16px; max-width: 60ch; }
.page-404 { padding-bottom: 120px; }
.page-404 .actions { margin-top: 32px; }

/* ---------- pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 32px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .98rem; text-decoration: none; transition: background-color .2s, color .2s; }
.pill span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .82rem; font-weight: 600; }
.pill:hover { background: var(--surface-2); }
.pill[aria-current="true"] { background: var(--ink); color: #fff; }
.pill[aria-current="true"] span { background: rgb(255 255 255 / .16); color: #fff; }

/* ---------- advertenties */
.ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.ad-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-card); }
.ad-media { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ad:hover .ad-media img { transform: scale(1.035); }
.ad-body { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.ad-meta { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.ad-nr { font-weight: 600; color: var(--green-dark); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ad-title { margin-top: 10px; font-size: 1.35rem; }
.ad-text { margin-top: 6px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.chips li { font-size: .84rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.ad-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price strong { font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.price span { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.ad-grid-4 .ad-foot { flex-direction: column; align-items: flex-start; }
.ad-grid-4 .ad-text, .ad-grid-4 .chips { display: none; }

/* aanbodpagina */
.filterbar { position: sticky; top: calc(var(--head-h) + 4px); z-index: 10; background: rgb(255 255 255 / .96); border-bottom: 1px solid var(--line); }
.filterbar .pills { margin: 0; padding-block: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filterbar .pills::-webkit-scrollbar { display: none; }
.filterbar .pill { white-space: nowrap; }
.groups { display: grid; gap: clamp(48px, 6vw, 80px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.group-head p { color: var(--muted); }
.group[hidden] { display: none; }
.group.is-shown { animation: fade-up .5s var(--ease) both; }
.empty { padding: 32px; border-radius: var(--r-card); background: var(--surface); color: var(--muted); }
.empty a { color: var(--green); font-weight: 600; }
.note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--surface); }
.note h2 { font-size: 1.6rem; }
.note p { color: var(--muted); grid-column: 1; }
.note .btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- Husqvarna-dealerblok */
.dealer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.dealer-copy h2 { margin-top: 18px; max-width: 18ch; }
.dealer-copy p { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.dealer-copy .btn { margin-top: 26px; }
.dealer-mark { width: 44px; height: 44px; }
.dealer-media { position: relative; min-height: 340px; }
.dealer-media img { position: absolute; height: auto; filter: drop-shadow(0 18px 24px rgb(27 33 29 / .14)); }
.dealer-media .d1 { width: 64%; left: 2%; top: 4%; }
.dealer-media .d2 { width: 56%; right: 0; bottom: 0; }
.dealer-media .d3 { width: 46%; left: 6%; bottom: 2%; }
.dealer-slim { grid-template-columns: 1fr; }

/* ---------- bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.cell { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 28px; border-radius: var(--r-card); overflow: hidden; text-decoration: none; }
.cell p { max-width: 40ch; }
.cell-wide { grid-column: span 8; grid-row: span 2; }
.cell-green { grid-column: span 4; background: var(--green); color: #fff; }
.cell-green p { color: rgb(255 255 255 / .86); }
.cell-soft { grid-column: span 4; background: var(--surface); }
.cell-soft p { color: var(--muted); }
.cell .icon-lg { margin-bottom: auto; }
.bento .cell-photo:last-child { grid-column: span 12; min-height: 300px; }
.cell-photo { color: #fff; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 14 11 / 0) 40%, rgb(10 14 11 / .78)); }
.cell-photo:hover img { transform: scale(1.03); }
.cell-caption { position: relative; z-index: 1; display: grid; gap: 6px; }
.cell-caption p { color: rgb(255 255 255 / .88); }

/* ---------- verhaal */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-quote { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); line-height: 1.1; padding-top: 26px; background: linear-gradient(var(--lime), var(--lime)) left top / 96px 6px no-repeat; }
.story-text { display: grid; gap: 16px; color: var(--muted); }
.story-text .text-link { justify-self: start; }

/* ---------- bezoek */
.visit { padding: clamp(28px, 5vw, 56px); border-radius: var(--r-card); border: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.visit-item { display: grid; gap: 10px; align-content: start; }
.visit-item .icon-lg { color: var(--green); }
.visit-item a:not(.text-link) { text-decoration: none; }
.visit-item a:not(.text-link):hover { color: var(--green); }
.visit-item p { color: var(--muted); }
.visit-item strong { color: var(--ink); font-weight: 600; }

/* ---------- inhoudspagina's */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-rev .split-media { order: 2; }
.split-media { margin: 0; border-radius: var(--r-card); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-tall { align-self: start; position: sticky; top: calc(var(--head-h) + 28px); }
.split-tall img { aspect-ratio: 4 / 5; object-position: 46% 50%; }
.split-media figcaption { padding: 12px 4px 0; font-size: .9rem; color: var(--muted); background: #fff; }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }
.prose h2:not(:first-child) { margin-top: 16px; }
.prose p { color: var(--muted); max-width: 62ch; }
.prose .text-link { justify-self: start; }
.prose-narrow { max-width: 760px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: .2em; }
.band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-card); background: var(--green); color: #fff; }
.band p { margin-top: 10px; color: rgb(255 255 255 / .88); max-width: 62ch; }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-photo { margin: 0; border-radius: var(--r-card); overflow: hidden; }
.contact-photo img { aspect-ratio: 5 / 3; object-fit: cover; width: 100%; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-card); background: var(--surface); }
.form h2 { font-size: 1.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid #b9beb6; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(19 118 47 / .2); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.err { color: #b3261e; font-size: .9rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form .btn { justify-self: start; }
.status { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.status.ok { background: var(--green-soft); color: var(--green-dark); }
.status.fout { background: #fbe9e7; color: #8c1d18; }

/* ---------- footer */
.site-footer { border-top: 4px solid var(--lime); background: var(--ink); color: #dfe3dc; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-name { font: 700 1.5rem/1.1 var(--display); color: #fff; margin-bottom: 8px; }
.footer-h { font: 600 .95rem/1.2 var(--body); color: #fff; margin-bottom: 10px; }
.site-footer p { color: #b9c0b8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .text-link { color: #8fe39a; margin-top: 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: #b9c0b8; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px 28px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9rem; }
.footer-legal p, .footer-legal a { color: #9aa29a; }

/* ---------- beweging: rustig opkomen bij binnenscrollen */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .hero-media img { animation: settle 1.8s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsief */
@media (max-width: 1100px) {
  :root { --head-h: 88px; }
  .logo { width: 340px; }
  .site-nav { gap: 16px; }
  .site-nav ul a { padding: 10px 10px; }
  .ad-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-grid-4 .ad-text, .ad-grid-4 .chips { display: revert; }
  .ad-grid-4 .chips { display: flex; }
  .ad-grid-4 .ad-foot { flex-direction: row; align-items: center; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .menu-toggle .icon { width: 24px; height: 24px; }
  .menu-close, .menu-open.is-hidden { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .menu-toggle[aria-expanded="true"] .menu-open { display: none; }
  .site-nav { position: fixed; inset: calc(var(--head-h) + 4px) 0 0; z-index: 19; flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { font-size: 1.7rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { background: none; color: var(--green); }
  .nav-call { justify-content: center; }
  body.menu-open { overflow: hidden; }
  .hero-grid, .story, .split, .contact-grid, .dealer { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-media { order: 0; }
  .split-tall { position: static; }
  .split-tall img { aspect-ratio: 5 / 3; }
  .hero-copy h1 { max-width: 16ch; }
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dealer-media { min-height: 280px; }
  .bento .cell-wide, .bento .cell-green, .bento .cell-soft { grid-column: span 12; }
  .bento .cell-wide { grid-row: span 1; min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --head-h: 72px; }
  body { font-size: 16px; }
  .logo { width: min(240px, 62vw); }
  .ad-grid, .ad-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .visit-grid, .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .note { grid-template-columns: minmax(0, 1fr); }
  .note .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .dealer-media { min-height: 220px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-legal { flex-direction: column; }
}
