/* Autobedrijf Dennis van Rijbroek, demo-homepage
   Kleuren uit het logo (oranje #fe6600) en de antraciet gevel van het pand. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #17181b;
  --bg-2: #1f2125;
  --bg-3: #272a2f;
  --line: rgb(255 255 255 / 0.12);
  --text: #f2f1ee;
  --muted: #b4b6ba;
  --orange: #fe6600;
  --orange-hi: #ff7a1f;
  --on-orange: #17181b;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --slant: 0.58; /* helling van de oranje baan in het logo */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  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-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(254 102 0 / .25);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--orange); color: var(--on-orange); padding: .6rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

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

.h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.h3 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; font-stretch: 115%; }

/* Iconen */
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Knoppen: hoekig, net als het logo */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 2px solid var(--b);
  background: var(--b); color: var(--on-orange);
  font-weight: 700; font-stretch: 108%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .12s ease-out;
  touch-action: manipulation;
}
.btn:hover { --b: var(--orange-hi); }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: rgb(23 24 27 / .35); color: var(--text); border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { background: rgb(23 24 27 / .6); border-color: var(--text); }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .9375rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--text); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-bottom: 2px;
  transition: color .2s var(--ease-out);
}
.textlink:hover { color: var(--orange-hi); }

/* Navigatie */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-solid, .nav.is-open { background: rgb(23 24 27 / .9); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.nav__logo img { width: 168px; height: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .5rem 0; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease-out); }
.nav__links a:hover { border-color: var(--orange); }
.nav__toggle { display: none; }
.menu { display: none; }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__call { display: none; }
  .nav__logo img { width: 142px; }
  .nav__toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease-out), opacity .2s; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav.is-open .nav__bars { background: transparent; }
  .nav.is-open .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .menu:not([hidden]) {
    display: flex; flex-direction: column; justify-content: space-between;
    height: calc(100dvh - var(--nav-h)); padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg); overscroll-behavior: contain; overflow-y: auto;
    animation: menu-in .3s var(--ease-out);
  }
  .menu nav { display: flex; flex-direction: column; }
  .menu nav a { text-decoration: none; font-size: 2rem; font-weight: 800; font-stretch: 118%; padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .menu__foot { display: grid; gap: .75rem; color: var(--muted); }
  .menu__foot p { margin: 0; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 0 clamp(4.5rem, 10vh, 7rem);
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgb(23 24 27 / .7) 0%, rgb(23 24 27 / .05) 22%, rgb(23 24 27 / .1) 45%, rgb(23 24 27 / .92) 100%),
    linear-gradient(90deg, rgb(23 24 27 / .75) 0%, rgb(23 24 27 / .2) 60%, rgb(23 24 27 / 0) 100%);
}
.hero__band {
  position: absolute; z-index: -1; left: 0; bottom: 0;
  width: min(72%, 980px); height: clamp(10px, 1.4vw, 16px);
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transform-origin: left center;
}
.hero__content { position: relative; }
.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6rem);
  line-height: .98; font-weight: 850; text-wrap: balance; font-stretch: 122%; letter-spacing: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin: 0 0 2rem; max-width: 42ch; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: #e6e5e2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 640px) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 16rem) 0 3.5rem; background: var(--bg); }
  .hero__media { bottom: auto; height: calc(var(--nav-h) + 21rem); }
  .hero__media img { object-position: 78% 50%; }
  .hero__shade {
    bottom: auto; height: calc(var(--nav-h) + 21rem);
    background: linear-gradient(180deg, rgb(23 24 27 / .75) 0%, rgb(23 24 27 / 0) 30%, rgb(23 24 27 / .35) 50%, rgb(23 24 27 / .85) 72%, var(--bg) 86%);
  }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* Status-strook */
.status { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.status__inner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 1.5rem 2.5rem; align-items: center; padding-block: 1.5rem; }
.status__label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .15rem; }
.status__now strong { font-weight: 700; font-stretch: 108%; }
.status__now.is-open strong::before, .status__now.is-closed strong::before {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; vertical-align: .05em;
  background: #3ecf6e; clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}
.status__now.is-closed strong::before { background: var(--muted); }
.status__addr a { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.status__addr a:hover { border-color: var(--orange); }
.status__marks { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; align-items: center; }
.status__marks img { height: 52px; width: auto; }
@media (max-width: 760px) {
  .status__inner { grid-template-columns: 1fr; gap: 1rem; }
  .status__marks img { height: 44px; }
}

/* Diensten */
.services { padding-block: clamp(4.5rem, 10vw, 8rem); }
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.services__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.services__head p { max-width: 38ch; margin: 0; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc__item { position: relative; padding: 2rem 0 2.25rem 2.25rem; border-top: 1px solid var(--line); }
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__item::before {
  content: ""; position: absolute; left: 0; top: 2.55rem;
  width: 14px; height: 2.4rem; background: var(--orange);
  clip-path: polygon(0 0, 45% 0, 100% 100%, 55% 100%);
  transform-origin: top left;
}
.svc__name { margin: 0 0 .5rem; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.05; font-weight: 850; font-stretch: 122%; letter-spacing: -0.02em; }
.svc__item p { margin: 0 0 1.1rem; max-width: 48ch; color: var(--muted); }
.svc__link { font-weight: 700; text-decoration: none; color: var(--text); border-bottom: 2px solid var(--orange); padding-bottom: 2px; transition: color .2s var(--ease-out); }
.svc__link:hover { color: var(--orange-hi); }
@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__head { position: static; }
}

/* Werkplaats */
.shop { position: relative; }
.shop__media { position: relative; height: clamp(420px, 78vh, 820px); overflow: hidden; }
.shop__media img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 55%; will-change: transform; }
.shop__panel { position: relative; margin-top: clamp(-9rem, -12vw, -5rem); }
.shop__card {
  position: relative; max-width: 560px; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-2);
}
.shop__card::before {
  content: ""; position: absolute; top: 0; left: clamp(1.75rem, 4vw, 2.75rem); width: 88px; height: 8px; transform: translateY(-50%);
  background: var(--orange); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.shop__card p { margin: 0 0 1.5rem; color: var(--muted); }
@media (max-width: 640px) {
  .shop__media { height: 360px; }
  .shop__panel { margin-top: -3rem; padding-inline: 1rem; }
}

/* Reviews */
.reviews { padding-block: clamp(4.5rem, 10vw, 8rem); }
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.score { margin: 0 0 .5rem; display: flex; align-items: baseline; gap: .25rem; line-height: .9; }
.score__num { font-size: clamp(6rem, 4rem + 8vw, 10rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; color: var(--orange); }
.score__of { font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.reviews__score { margin-bottom: 1rem; }
.reviews__score p { margin: 0; max-width: 30ch; }
.quote { margin: 0; padding: 1.75rem; background: var(--bg-2); }
.quote blockquote { margin: 0 0 1.25rem; }
.quote p { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.quote figcaption { display: flex; gap: .75rem; align-items: baseline; font-size: .9375rem; }
.quote figcaption span { color: var(--muted); }
.quote--main { background: transparent; padding: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
.quote--main p { font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); line-height: 1.3; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; text-wrap: pretty; }
@media (min-width: 861px) {
  .reviews__grid { grid-template-columns: 4fr 4fr 4fr; column-gap: clamp(1.5rem, 3vw, 2.5rem); row-gap: 2rem; }
  .reviews__score { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-right: 1rem; }
  .quote--main { grid-column: 2 / span 2; grid-row: 1; }
  .reviews__grid > .quote:nth-of-type(2) { grid-column: 2; grid-row: 2; }
  .reviews__grid > .quote:nth-of-type(3) { grid-column: 3; grid-row: 2; }
}

/* Contact */
.contact { padding-block: clamp(4.5rem, 10vw, 7rem); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__form-wrap > p { margin: 0 0 2rem; max-width: 46ch; }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label, .chips legend { font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  background: var(--bg); border: 1px solid rgb(255 255 255 / .28); border-radius: 0;
  font-size: 1rem; transition: border-color .2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: rgb(255 255 255 / .5); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.field input::placeholder { color: #8d9096; }
.field input[aria-invalid="true"] { border-color: #ff8a73; }
.field__err { margin: 0; color: #ff9d8a; font-size: .9375rem; }
.plate { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { padding: 0; margin-bottom: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid rgb(255 255 255 / .28); font-weight: 600;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s;
}
.chips label:hover span { border-color: rgb(255 255 255 / .55); }
.chips input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form__note { margin: 0; padding: 1rem 1.1rem; background: var(--bg-3); }

.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .6rem 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--orange-hi); font-weight: 700; }
.direct { margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.direct dt { font-size: .8125rem; color: var(--muted); }
.direct dd { margin: 0; font-weight: 700; font-size: 1.125rem; }
.direct a { text-decoration: none; border-bottom: 1px solid var(--line); }
.direct a:hover { border-color: var(--orange); }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
}

/* Footer */
.foot { position: relative; padding: 4rem 0 6rem; }
.foot__band { position: absolute; top: 0; right: 0; width: min(45%, 520px); height: 10px; background: var(--orange); clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; }
.foot__grid img { width: 200px; }
.foot address { font-style: normal; color: var(--muted); line-height: 1.8; }
.foot address a { color: var(--text); text-decoration: none; }
.foot address a:hover { color: var(--orange-hi); }
.foot__social > a { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; text-decoration: none; }
.foot__social > a:hover { color: var(--orange-hi); }
.foot__marks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; gap: 1rem; align-items: center; }
.foot__marks img { height: 44px; width: auto; }
.foot__copy { margin-top: 3rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* Vaste belbalk op mobiel */
.callbar { display: none; }
@media (max-width: 760px) { html { scroll-padding-bottom: 84px; } }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgb(23 24 27 / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease-out);
  }
  .callbar.is-visible { transform: none; }
  .callbar .btn { min-height: 46px; padding-inline: .75rem; }
}

/* Beginstand van reveals, alleen als JS en beweging aan staan */
@media (prefers-reduced-motion: no-preference) {
  .has-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
  .has-motion .svc__item::before { transform: scaleY(0); transition: transform .7s var(--ease-out) .25s; }
  .has-motion .svc__item.is-in::before { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid, .nav.is-open, .callbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
