/* Auto33 - opmaak van de website */
/* Lettertype Barlow, licentie: fonts/OFL.txt */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Eenvoudige opbouw: kopbalk met één belknop, start, diensten, over ons, bedrijven, contact.
   Telefoonnummer, adres en openingsuren staan alleen bij contact. Bewust één donker thema. */
:root {
  color-scheme: dark;
  --asfalt: #0f1013;
  --vlak: #15171c;
  --vlak-hoog: #1d2026;
  --lijn: #2a2e37;
  --veldrand: #666d7a;
  --tekst: #f5f5f3;
  --zacht: #b0b5bf;
  --rood: #d7141f;
  --rood-donker: #ad0e17;
  --rood-fel: #ff4a54;
  --rood-gloed: rgba(215, 20, 31, .20);
  --wit: #ffffff;
  --open: #3ccf7a;
  --dicht: #f2b135;
  --rubber: #0a0b0d;
  --hoek: 12px;
  --hoek-klein: 8px;
  --kop-hoogte: 74px;
  --kop-font: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --tekst-font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--asfalt); color: var(--tekst); font: 400 1.0625rem/1.6 var(--tekst-font); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--asfalt); z-index: 30; }
a { color: inherit; }
h1, h2, h3, p, ul, address { margin: 0; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--kop-font); text-transform: uppercase; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5.8vw, 4.5rem); font-weight: 800; }
h1 span, h2 span { display: block; color: var(--rood-fel); }
h2 { margin-bottom: clamp(24px, 3vw, 36px); font-size: clamp(2.15rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--wit); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { flex: none; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
section { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--kop-hoogte)); }
.sectie > .wrap { padding-block: clamp(52px, 7vw, 96px); }

.sla-over { position: absolute; left: -9999px; }
.sla-over:focus { left: 16px; top: 8px; z-index: 40; padding: 10px 14px; background: var(--rood); color: var(--wit); }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px; border: 0; border-radius: var(--hoek-klein); background: var(--rood); color: var(--wit); font: 700 1.08rem/1.2 var(--tekst-font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.knop svg { width: 20px; height: 20px; }
@media (hover: hover) { .knop:hover { background: var(--rood-donker); } }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font: 800 1.85rem/1 var(--kop-font); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.logo b { padding: 3px 8px 4px; background: var(--rood); color: var(--wit); font-weight: 800; transform: skewX(-9deg); }

/* Kopbalk en menu */
.kop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--asfalt); border-bottom: 1px solid var(--lijn); }
.kop > .wrap { display: flex; align-items: center; gap: 10px; min-height: var(--kop-hoogte); }
.menu { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 36px); margin-left: auto; }
.menu a { padding: 10px 0 8px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current] { border-bottom-color: var(--rood); }
.menu svg, .menu-knop { display: none; }
.kop .bel { min-height: 46px; margin-left: clamp(8px, 2vw, 24px); padding: 8px 18px; gap: 8px; font-size: 1rem; white-space: nowrap; }

/* Start */
.start { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 50%, var(--rood-gloed), transparent 50%), linear-gradient(160deg, var(--vlak) 0%, var(--asfalt) 65%); }
.start > .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 28px 48px; padding-block: clamp(36px, 6vw, 80px); }
.intro { margin: 18px 0 28px; max-width: 40ch; color: var(--zacht); font-size: 1.2rem; }
.start-foto { justify-self: end; width: 100%; max-width: 470px; margin: 0; background: radial-gradient(closest-side, rgba(215, 20, 31, .75), rgba(215, 20, 31, .38) 64%, rgba(215, 20, 31, 0)); }
.start-foto img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .5)) drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); }

/* Diensten */
.diensten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dienst { display: flex; flex-direction: column; overflow: hidden; background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--hoek); }
.dienst > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dienst > div { padding: 18px 18px 22px; }
.dienst p { margin-top: 8px; color: var(--zacht); font-size: 1rem; line-height: 1.5; }
.diagnose { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 24px 28px; background: linear-gradient(115deg, var(--rood), var(--rood-donker)); color: var(--wit); border-radius: var(--hoek); }
.diagnose svg { width: 46px; height: 46px; }
.diagnose > div { min-width: 0; }
.diagnose p { margin-top: 4px; }
.niet { margin-top: 18px; color: var(--zacht); }
.niet strong { color: var(--tekst); }

/* Over ons */
.over { background: var(--vlak); border-block: 1px solid var(--lijn); }
.over-boven { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 28px clamp(32px, 6vw, 80px); }
.over-boven h2 { margin-bottom: 18px; }
.over-boven p { max-width: 48ch; color: var(--zacht); font-size: 1.15rem; }
.over-foto { margin: 0; }
.over-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 82%; border-radius: var(--hoek); }
.galerij { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.galerij img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hoek-klein); }

/* Voor bedrijven */
.zakelijk-vak { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(24px, 4vw, 44px); background: radial-gradient(ellipse at 0 0, var(--rood-gloed), transparent 60%), var(--vlak); border: 1px solid var(--lijn); border-left: 5px solid var(--rood); border-radius: var(--hoek); }
.zakelijk-vak > div { flex: 1 1 360px; min-width: 0; }
.zakelijk-vak h2 { margin-bottom: 12px; }
.zakelijk-vak p { max-width: 58ch; color: var(--zacht); font-size: 1.1rem; }
.zakelijk-vak p + p { margin-top: 10px; color: var(--tekst); font-weight: 600; }

/* Contact */
.contact { background: var(--vlak); border-top: 1px solid var(--lijn); }
.contact-raster { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.vak { padding: 28px; background: var(--vlak-hoog); border: 1px solid var(--lijn); border-radius: var(--hoek); }
.rij { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 16px; padding-block: 22px; border-bottom: 1px solid var(--lijn); }
.rij:first-child { padding-top: 0; }
.rij:last-child { padding-bottom: 0; border-bottom: 0; }
.rij > svg { grid-row: 1 / span 4; width: 24px; height: 24px; margin-top: 2px; color: var(--rood-fel); }
.rij h3 { color: var(--zacht); font: 700 .8rem/1.6 var(--tekst-font); letter-spacing: .14em; }
.waarde { font: 700 1.65rem/1.25 var(--kop-font); font-variant-numeric: tabular-nums; user-select: text; }
a.waarde { padding-block: 5px; text-decoration: none; justify-self: start; }
.route { justify-self: start; display: inline-block; padding-block: 8px; font-weight: 600; text-decoration-color: var(--rood); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-block: 4px 6px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--zacht); }
.status.is-open::before { background: var(--open); }
.status.is-dicht::before { background: var(--dicht); }
.uren { color: var(--zacht); font-variant-numeric: tabular-nums; }

/* Formulier */
form { display: grid; gap: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
input, textarea { width: 100%; padding: 14px; background: var(--asfalt); color: var(--tekst); border: 1px solid var(--veldrand); border-radius: var(--hoek-klein); font: 400 1.0625rem/1.4 var(--tekst-font); }
textarea { min-height: 130px; resize: vertical; }
::placeholder { color: var(--zacht); opacity: .75; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--rood-fel); }
.fout { margin-top: 5px; color: var(--rood-fel); font-weight: 600; font-size: .96rem; }
.fout:empty, .melding:empty { display: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.keuzes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.keuzes label { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 8px 14px; background: var(--asfalt); border: 1px solid var(--veldrand); border-radius: var(--hoek-klein); cursor: pointer; }
.keuzes label:has(input:checked) { border-color: var(--rood-fel); background: var(--rood-gloed); }
.keuzes input { flex: none; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--rood); }
.uitlegje { color: var(--zacht); font-size: .93rem; text-align: center; }
.melding { padding: 14px 16px; background: var(--asfalt); border: 1px solid var(--veldrand); border-radius: var(--hoek-klein); font-weight: 600; }

/* Voettekst: alleen de firmagegevens */
footer { background: var(--rubber); border-top: 3px solid var(--rood); color: var(--zacht); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 28px calc(28px); }
footer .logo { color: var(--tekst); }

@media (max-width: 1079px) {
  .diensten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dienst > img { aspect-ratio: 16 / 9; }
}

/* Vanaf hier: gsm en kleine tablet */
@media (max-width: 899px) {
  :root { --kop-hoogte: 66px; }
  .kop .bel { order: 1; margin-left: auto; padding-inline: 14px; }
  .menu-knop { order: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 12px; border: 1px solid var(--veldrand); border-radius: var(--hoek-klein); background: transparent; color: var(--tekst); font: 700 1rem/1 var(--tekst-font); cursor: pointer; }
  .menu-knop svg { width: 22px; height: 22px; }
  .menu-knop .i-dicht, .menu-knop[aria-expanded="true"] .i-open { display: none; }
  .menu-knop[aria-expanded="true"] .i-dicht { display: block; }
  .js .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - var(--kop-hoogte) - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--kop-hoogte) - env(safe-area-inset-top, 0px)); overflow-y: auto; padding: 0 max(18px, env(safe-area-inset-right, 0px)) 8px max(18px, env(safe-area-inset-left, 0px)); background: var(--vlak); border-bottom: 3px solid var(--rood); box-shadow: 0 28px 48px rgba(0, 0, 0, .6); }
  .js .menu.open { display: flex; }
  body.menu-open main, body.menu-open footer { cursor: pointer; } /* iPhone: tik naast het menu sluit het */
  .js .menu a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0; font-size: 1.2rem; border-bottom: 1px solid var(--lijn); }
  .js .menu a:last-child { border-bottom: 0; }
  .js .menu svg { display: block; width: 18px; height: 18px; color: var(--rood-fel); }
  .js .menu a[aria-current] { color: var(--rood-fel); }
  html:not(.js) .menu-knop { display: none; }
  html:not(.js) .kop > .wrap { flex-wrap: wrap; }
  html:not(.js) .menu { order: 3; justify-content: space-between; width: 100%; padding-bottom: 6px; }
  .start > .wrap, .over-boven, .contact-raster { grid-template-columns: minmax(0, 1fr); }
  .start-foto { justify-self: center; max-width: 400px; }
  .over-foto { max-width: 560px; }
}
@media (max-width: 619px) {
  .knop { width: 100%; }
  .kop .bel { width: auto; }
  .start-foto { max-width: 340px; }
  .diensten { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dienst { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .dienst > img { position: absolute; top: 0; left: 0; width: 108px; height: 100%; aspect-ratio: auto; }
  .dienst > div { grid-column: 2; padding: 14px; }
  .dienst h3 { font-size: 1.2rem; }
  .dienst p { margin-top: 4px; font-size: .96rem; line-height: 1.45; }
  .diagnose { align-items: flex-start; gap: 14px; padding: 20px 16px; }
  .diagnose svg { width: 32px; height: 32px; }
  .vak { padding: 22px 16px; }
  .galerij { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 24px; padding-bottom: 10px; }
  .galerij li { flex: 0 0 74%; scroll-snap-align: start; }
}
@media (max-width: 400px) {
  .logo { font-size: 1.55rem; }
  .logo b { padding-inline: 5px; }
  .bel .ons { display: none; }
}
@media (max-width: 370px) {
  h1 { font-size: 2.3rem; }
  .kop > .wrap { gap: 6px; }
  .menu-knop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-knop { width: 46px; padding: 0; }
  .keuzes { grid-template-columns: minmax(0, 1fr); }
  form .knop { gap: 8px; padding-inline: 10px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
