/* M. v.d. Heijden Autocentrum Zijtaart: zwart, wit en het oranje uit het logo */

@font-face { font-family: "Outfit"; src: url("../assets/fonts/outfit-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --line: #2e2e2e;
  --text: #f3f3f1;
  --muted: #a8a8a4;
  --accent: #e7540e;
  --accent-ink: #0e0e0e;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: rgba(231,84,14,.25); background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea, select { caret-color: var(--accent); accent-color: var(--accent); }
html { scrollbar-color: #3a3a3a var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.lead { color: var(--muted); max-width: 58ch; font-size: 1.1rem; margin-top: 1rem; }

/* Knoppen: hoekig, zoals de blokken in het logo */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7em 1.3em; font: 700 1rem/1 var(--display); letter-spacing: .01em; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s ease-out; }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #ff6a22; }
.btn-line { border-color: var(--text); color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn .i { width: 1.1em; height: 1.1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,14,14,.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; }
.nav a { font: 600 .95rem/1 var(--display); text-decoration: none; letter-spacing: .02em; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-call { min-height: 42px; padding: .55em 1em; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle .i { width: 28px; height: 28px; }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; background: var(--bg); }
.mobile-menu li a { display: block; padding: 14px 0; font: 700 1.35rem/1 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* Hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 4.3vw, 3.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 40ch; margin: 1.4rem 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; padding-bottom: 28px; }
.hero-photo-frame { overflow: hidden; aspect-ratio: 960 / 641; background: var(--surface); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.band { position: absolute; left: -18px; right: 22%; bottom: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; transform: skewY(-2deg); transform-origin: left bottom; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.band span { display: block; transform: skewY(2deg); font: italic 700 clamp(1.05rem, 1.7vw, 1.3rem)/1.1 var(--body); letter-spacing: .01em; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: clamp(28px, 4vw, 44px) 0 0; padding: 12px 0; color: var(--muted); font-size: .98rem; border-top: 1px solid var(--line); width: 100%; }
.status strong { color: var(--text); font-weight: 600; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #3ccf6e; flex: none; }
.status .dot.closed { background: var(--muted); }
.status .i { color: var(--accent); }

/* Snelkeuze */
.routes { padding: 8px 0 clamp(56px, 8vw, 96px); }
.routes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.route { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px 24px 30px; background: var(--surface); text-decoration: none; min-height: 168px; transition: background-color .25s var(--ease); }
.route > .i:first-child { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; transition: transform .35s var(--ease); }
.route-title { font: 700 1.25rem/1.15 var(--display); }
.route-text { color: var(--muted); font-size: .95rem; }
.route-arrow { position: absolute; right: 22px; top: 28px; opacity: .5; transition: transform .3s var(--ease), opacity .3s; }
.route:hover { background: var(--surface-2); }
.route:hover > .i:first-child { transform: translateX(4px); }
.route:hover .route-arrow { transform: translateX(4px); opacity: 1; color: var(--accent); }

/* Occasions */
.occasions { padding: 0 0 clamp(64px, 9vw, 120px); }
.occ-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn { width: 52px; height: 52px; display: grid; place-items: center; background: transparent; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s, opacity .2s; }
.rail-btn:hover { border-color: var(--text); }
.rail-btn:active { transform: scale(.96); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-btn .i { width: 22px; height: 22px; }
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-track { display: flex; gap: 16px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: max-content; }
.car { scroll-snap-align: start; width: clamp(272px, 26vw, 340px); flex: none; }
.car > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); text-decoration: none; border: 1px solid var(--line); transition: border-color .25s var(--ease); }
.car > a:hover { border-color: #555; }
.car-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.car-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); -webkit-user-drag: none; user-select: none; }
.car > a:hover .car-img img { transform: scale(1.04); }
.car-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; flex: 1; }
.car-name { font: 700 1.2rem/1.15 var(--display); }
.car-ver { color: var(--muted); font-size: .95rem; }
.car-specs { display: flex; gap: 16px; margin-top: 10px; font-size: .92rem; }
.car-specs > span { display: inline-flex; align-items: center; gap: 6px; }
.car-specs .i { color: var(--muted); width: 1em; height: 1em; }
.car-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.car-feat { color: var(--muted); font-size: .88rem; }
.car-price { font: 800 1.45rem/1 var(--display); color: var(--accent); white-space: nowrap; }
.car-all > a { position: relative; justify-content: end; padding: 0 0 24px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.car-all img { opacity: .2; mix-blend-mode: multiply; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-all-title { position: relative; font: 800 1.6rem/1.05 var(--display); padding: 0 22px; text-transform: uppercase; max-width: 10ch; }
.car-all-text { position: relative; padding: 8px 22px 0; font-weight: 600; }
.car-all .i { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; }
.car-all > a:hover { border-color: var(--text); }
.fineprint { color: var(--muted); font-size: .88rem; margin-top: 22px; max-width: 80ch; }

/* Diensten als genummerde panelen */
.services { padding: 0 0 clamp(64px, 9vw, 120px); }
.services .wrap { display: grid; gap: 20px; }
.panel { background: var(--surface); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: baseline; }
.panel-no { margin: 0; font: 600 1rem/1 var(--display); color: var(--accent); letter-spacing: .08em; }
.panel-title { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.panel-body { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.panel-flip .panel-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.panel-flip .panel-photo { order: 2; }
.panel-photo { overflow: hidden; background: var(--surface-2); }
.panel-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.panel-text { max-width: 60ch; }
.panel-text > p:first-child { font-size: 1.15rem; }
.panel-text .btn { margin-top: 1.4rem; }
.taskgroups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.4rem; }
.taskgroups h3 { font: 700 .95rem/1.2 var(--display); color: var(--accent); margin-bottom: 10px; letter-spacing: .03em; text-transform: uppercase; }
.taskgroups li, .checks li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.taskgroups li::before, .checks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--accent); }
.checks { margin-top: 1.2rem; }
.badge-rdw { width: 200px; margin-top: 1.4rem; background: #fff; }

/* Familieverhaal */
.story { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.statement { font-size: clamp(2.8rem, 8.4vw, 7.6rem); font-weight: 800; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; margin-bottom: clamp(40px, 6vw, 80px); }
.statement .line { display: block; overflow: hidden; padding-bottom: .05em; }
.statement .line > span { display: inline-block; }
.statement .dim { color: var(--accent); }
.timeline { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 320px); gap: clamp(20px, 3vw, 48px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-year { margin: 0; font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.tl-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.tl-text p { color: var(--muted); max-width: 54ch; margin: 0; }
.tl-photo { width: 220px; justify-self: end; filter: grayscale(.15); }
.tl-photo-wide { width: 100%; }

/* Team */
.team { padding: 0 0 clamp(64px, 9vw, 120px); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.coffee { display: flex; gap: 10px; align-items: center; margin-top: 1.4rem; font-weight: 600; }
.coffee .i { color: var(--accent); width: 1.4em; height: 1.4em; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; background: var(--line); border: 2px solid var(--line); }
.crew > div { background: var(--surface); padding: 22px 22px 24px; }
.crew dt { font: 800 3rem/1 var(--display); color: var(--accent); }
.crew dd { margin: 6px 0 0; color: var(--muted); }
.marks { display: flex; gap: 24px; align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.marks img { height: 64px; width: auto; }

/* Contact */
.visit { background: var(--surface); padding: clamp(56px, 8vw, 104px) 0; }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; }
.tabs button { background: transparent; border: 2px solid var(--line); padding: 10px 14px; font: 600 .95rem/1 var(--display); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.tabs button:hover { border-color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pane { margin: 18px 0 14px; }
.hours-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { width: 40%; text-transform: capitalize; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--accent); font-weight: 700; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; font-size: 1.1rem; }
.contact-list .i { color: var(--accent); width: 1.3em; height: 1.3em; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--accent); }

.form { background: var(--bg); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; }
.form h3 { font-size: 1.6rem; font-weight: 700; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface-2); border: 2px solid #3a3a3a; padding: 12px 14px; border-radius: 0; color: var(--text); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #ff8a5c; }
.err { margin: 0; color: #ff8a5c; font-size: .9rem; }
.form .btn { justify-self: start; }
.form-note { margin: 0; padding: 14px 16px; border: 1px solid rgba(231,84,14,.55); background: rgba(231,84,14,.1); }

/* Vacature */
.job { padding: clamp(56px, 8vw, 96px) 0; }
.job-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; border: 2px solid var(--accent); padding: clamp(24px, 4vw, 48px); }
.job-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.job-inner p { margin: 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.footer-grid img { width: 240px; }
.footer-grid address { color: var(--muted); line-height: 1.75; }
.footer-grid address a { color: var(--text); text-decoration: none; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--muted); font-size: .88rem; }
.footer-base p { margin: 0; }

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

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--text); color: var(--bg); padding: 14px 20px; font-weight: 600; max-width: calc(100vw - 32px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }

/* Startstanden voor animaties; alleen als JS draait en beweging mag */
.js-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-motion .hero-title .line > span, .js-motion .statement .line > span { transform: translateY(105%); }
.js-motion [data-reveal-hero] { opacity: 0; transform: translateY(16px); }
.js-motion [data-hero-photo] { clip-path: inset(0 0 100% 0); }
.js-motion [data-band] { transform: skewY(-2deg) scaleX(0); transform-origin: left center; }

@media (max-width: 1100px) {
  .nav ul { gap: 18px; }
  .header-call span { display: none; }
  .header-call { padding: .55em .7em; }
}
@media (max-width: 960px) {
  .nav, .header-call { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .brand img { width: 170px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .routes-grid { grid-template-columns: 1fr 1fr; }
  .panel-body, .panel-flip .panel-body { grid-template-columns: 1fr; }
  .panel-flip .panel-photo { order: 0; }
  .panel-photo img { max-height: 380px; }
  .tl-row { grid-template-columns: 110px minmax(0, 1fr); }
  .tl-photo { grid-column: 2; justify-self: start; }
  .tl-photo-wide { width: 100%; }
  .team-grid, .visit-grid { grid-template-columns: 1fr; }
  .job-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .hero { padding-top: 16px; }
  .hero-title { font-size: clamp(1.9rem, 9.2vw, 2.6rem); }
  .hero-sub { font-size: 1rem; margin: .8rem 0 1.1rem; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; min-height: 46px; padding-block: .6em; }
  .hero-photo { padding-bottom: 20px; margin-bottom: 4px; }
  .hero-photo-frame { aspect-ratio: 16 / 9; }
  .hero-photo-frame img { object-position: 50% 62%; }
  .band { left: -8px; right: 12%; padding: 10px 14px; }
  .status { align-items: flex-start; }
  .routes-grid { grid-template-columns: 1fr; }
  .route { min-height: 0; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .route > .i:first-child { grid-row: span 2; margin: 0; width: 30px; height: 30px; }
  .route-arrow { top: 50%; transform: translateY(-50%); }
  .route:hover .route-arrow { transform: translate(4px, -50%); }
  .occ-head { flex-direction: column; align-items: start; }
  .tabs { gap: 4px; }
  .tabs button { padding: 9px 9px; font-size: .84rem; }
  .rail-controls { display: none; }
  .car { width: 80vw; }
  .taskgroups { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-no { margin-bottom: 10px; }
  .tl-row { grid-template-columns: 1fr; gap: 12px; }
  .tl-photo { grid-column: 1; width: 160px; }
  .tl-photo-wide { width: 100%; }
  .crew dt { font-size: 2.4rem; }
  .marks img { height: 48px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer-base { flex-direction: column; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--accent); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .35s var(--ease); }
  .callbar.is-visible { transform: none; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: var(--accent-ink); font: 700 1.05rem/1 var(--display); text-decoration: none; }
  .callbar a + a { border-left: 1px solid rgba(0,0,0,.25); }
  .toast { bottom: 84px; }
}

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