/* All-Cars: flat, vertrouwd, het onderhoudsboekje en de garagestempel. Tokens eerst. */

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

:root {
  --ground: #f3f5f9;
  --paper: #ffffff;
  --surface: #e4e9f1;
  --rule: #c9d2e0;
  --ink: #0e1a33;
  --ink-2: #44506a;
  --stamp: #1f44b8;
  --stamp-dark: #18379a;
  --on-stamp: #ffffff;
  --field: #0e1a33;
  --on-field: #f3f5f9;
  --on-field-2: #b9c3d6;
  --focus: #1f44b8;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.125rem;
  --step-1: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --step-2: clamp(2.1rem, 1.5rem + 2.6vw, 3.75rem);
  --step-3: clamp(2.6rem, 1.6rem + 5vw, 6.5rem);
  --small: 1rem;

  --gutter: clamp(1rem, 0.6rem + 2.2vw, 3rem);
  --wrap: 80rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --header-h: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-text); font-size: var(--step-0); line-height: 1.55; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { max-width: 66ch; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--stamp); color: var(--on-stamp); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--ink); color: var(--ground); padding: 0.75rem 1rem; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 0.5rem; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display, .head, .title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.display { font-size: var(--step-3); line-height: 0.95; }
.head { font-size: var(--step-2); line-height: 1; }
.title { font-size: var(--step-1); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.lead { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; font-family: var(--font-text); }
.muted { color: var(--ink-2); }
.nobr { white-space: nowrap; }
p + p { margin-top: 1em; }

/* Buttons: pill, flat */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.375rem; padding: 0.8rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--stamp); color: var(--on-stamp);
  font-family: var(--font-text); font-weight: 600; font-size: 1.125rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-1) ease, transform var(--dur-1) var(--ease-out);
}
.button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.button--ink { background: var(--ink); color: var(--ground); }
.button--light { background: var(--paper); color: var(--ink); }
@media (hover: hover) {
  .button:hover { background: var(--stamp-dark); transform: translateY(-2px); }
  .button--ink:hover { background: #22304f; }
  .button--light:hover { background: var(--surface); }
}
.button:active { transform: scale(0.98); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: color var(--dur-1) ease; }
@media (hover: hover) { .text-link:hover { color: var(--stamp); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.header-bar { display: flex; align-items: center; gap: 0.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; min-height: 2.75rem; text-decoration: none; }
.brand svg { width: 8.25rem; height: auto; }
.main-nav { display: none; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem; text-decoration: none; font-weight: 500; transition: color var(--dur-1) ease; }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
@media (hover: hover) { .nav-list a:hover { color: var(--stamp); } }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-tel, .header-cta, .menu-toggle { min-height: 2.75rem; min-width: 2.75rem; }
.header-tel { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0 0.75rem; border-radius: 999px; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; transition: background-color var(--dur-1) ease; }
.header-tel svg { width: 1.15rem; height: 1.15rem; }
.header-tel .tel-num { display: none; }
.header-cta { display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; background: var(--stamp); color: var(--on-stamp); text-decoration: none; font-weight: 600; transition: background-color var(--dur-1) ease; }
@media (hover: hover) { .header-tel:hover { background: #22304f; } .header-cta:hover { background: var(--stamp-dark); } }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; }
.menu-toggle svg { width: 1.6rem; height: 1.6rem; }
.menu-toggle [hidden] { display: none; }
.mobile-nav { background: var(--ground); padding-bottom: 1rem; }
.mobile-nav ul { display: grid; gap: 0.25rem; }
.mobile-nav a { display: flex; align-items: center; min-height: 3.25rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); text-decoration: none; }
.mobile-nav[hidden] { display: none; }
@media (max-width: 23.4rem) { .brand svg { width: 7rem; } }
@media (min-width: 64rem) {
  :root { --header-h: 5rem; }
  .brand svg { width: 9.5rem; }
  .main-nav { display: block; margin-right: 1rem; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .header-tel .tel-num { display: inline; }
}

/* Grid and sections */
.section { padding-top: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: 2rem; }
.grid > * { grid-column: 1 / -1; min-width: 0; }
figure figcaption { margin-top: 0.6rem; font-size: var(--small); color: var(--ink-2); }
.field figcaption { color: var(--on-field-2); }

/* Hero */
.hero { padding-top: clamp(1rem, 3vw, 3rem); }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.hero-actions .button { width: 100%; }
.hero-facts { display: grid; gap: 0.25rem; color: var(--ink-2); }
.hero-facts strong { color: var(--ink); font-weight: 600; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.hero-stamp { position: absolute; right: 0.75rem; top: -1.6rem; width: 9.5rem; transform: rotate(-7deg); }
@media (min-width: 30rem) { .hero-actions .button { width: auto; } }
@media (min-width: 60rem) {
  .hero .grid { align-items: end; }
  .hero-copy { grid-column: 1 / span 7; padding-bottom: 1rem; }
  .hero-media { grid-column: 8 / -1; }
  .hero-media img { aspect-ratio: 4 / 5; }
  .hero-stamp { right: auto; left: -4.5rem; top: auto; bottom: 2.5rem; width: 13rem; }
}

/* Services list beside a tall photo */
.trades-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trades-copy { display: grid; gap: 1.25rem; align-content: start; }
.trades { display: grid; gap: 1.75rem; margin-top: 0.75rem; }
.trade { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: start; }
.trade svg { width: 3.25rem; height: 3.25rem; color: var(--stamp); }
.trade h3 { margin-bottom: 0.3rem; }
.trade a { font-weight: 600; }
@media (min-width: 48rem) and (max-width: 59.9rem) { .trades { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 60rem) {
  .trades-photo { grid-column: 1 / span 5; grid-row: 1; }
  .trades-copy { grid-column: 7 / -1; grid-row: 1; }
}

/* Booklet (live thing) on a navy field */
.field { background: var(--field); color: var(--on-field); margin-top: var(--section); padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); }
.field .muted { color: var(--on-field-2); }
.booklet-copy { display: grid; gap: 1.25rem; align-content: start; }
.booklet-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; max-width: 26rem; }
.booklet { background: var(--paper); color: var(--ink); padding: clamp(1.1rem, 3vw, 2.25rem); display: grid; gap: 1.25rem; }
.booklet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.booklet-head svg { width: 6.5rem; flex: none; }
.booklet-inputs { display: grid; gap: 1rem; }
.booklet label { display: grid; gap: 0.35rem; font-weight: 600; }
.booklet input { width: 100%; min-height: 3.25rem; padding: 0.6rem 0.8rem; border: 2px solid var(--ink-2); border-radius: 0.375rem; background: var(--paper); font-size: 1.125rem; }
.booklet input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.log { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.log th, .log td { text-align: left; padding: 0.7rem 0.5rem 0.7rem 0; border-bottom: 2px solid var(--rule); vertical-align: middle; }
.log thead th { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; border-bottom: 3px solid var(--ink); }
.log .next td { color: var(--stamp); font-weight: 600; }
.log .stamp-cell svg { width: 4.25rem; transform: rotate(-6deg); }
.booklet-out { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.booklet-note { color: var(--ink-2); font-size: var(--small); }
@media (min-width: 40rem) { .booklet-inputs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) {
  .booklet-copy { grid-column: 1 / span 5; }
  .booklet { grid-column: 6 / -1; }
}

/* Used cars */
.sale-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sale-copy { display: grid; gap: 1.25rem; align-content: start; }
.checklist { display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li svg { position: absolute; left: 0; top: 0.2em; width: 1.35rem; height: 1.35rem; color: var(--stamp); }
.field .checklist li svg { color: var(--on-field); }
@media (min-width: 60rem) {
  .sale-photo { grid-column: 1 / span 6; grid-row: 1; }
  .sale-copy { grid-column: 8 / -1; grid-row: 1; }
}

/* Place: Koningshooikt */
.place-copy { display: grid; gap: 1.25rem; align-content: start; }
.place-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 0.75rem; align-items: end; }
.place-photos img { width: 100%; object-fit: cover; }
.place-photos .p-wide img { aspect-ratio: 3 / 2; }
.place-photos .p-tall img { aspect-ratio: 4 / 5; }
.hours { width: 100%; max-width: 28rem; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 2px solid var(--rule); font-weight: 400; }
.hours th { font-weight: 600; }
@media (min-width: 60rem) {
  .place-copy { grid-column: 1 / span 5; }
  .place-photos { grid-column: 6 / -1; }
}

/* FAQ */
.faq-head { display: grid; gap: 1rem; align-content: start; }
.faq-list { display: grid; gap: 0.5rem; }
.faq-list details { background: var(--paper); border-radius: 0.5rem; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.9rem 1.15rem; cursor: pointer; list-style: none; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--stamp); transition: transform var(--dur-2) var(--ease-out); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details > div { padding: 0 1.15rem 1.15rem; }
@media (min-width: 60rem) { .faq-head { grid-column: 1 / span 4; } .faq-list { grid-column: 6 / -1; } }

/* Contact close */
.close { display: grid; gap: 2rem; }
.close-tel { display: inline-block; padding-block: 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1; letter-spacing: -0.01em; text-decoration: none; transition: color var(--dur-1) ease; }
@media (hover: hover) { .close-tel:hover { color: var(--stamp); } }
.close-list { display: grid; gap: 1rem; }
.close-list dt { font-weight: 600; }
.close-list dd a { font-weight: 600; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 29.9rem) { .page-actions .button { width: 100%; } }
@media (min-width: 48rem) { .close { grid-template-columns: 7fr 5fr; align-items: end; } }

/* Subpages */
.page-head { padding-top: clamp(1.5rem, 4vw, 4rem); }
.page-head-copy { display: grid; gap: 1.25rem; align-content: start; }
.page-head-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 60rem) {
  .page-head .grid { align-items: end; }
  .page-head-copy { grid-column: 1 / span 6; padding-bottom: 1rem; }
  .page-head-media { grid-column: 8 / -1; }
}
.svc-copy { display: grid; gap: 1.1rem; align-content: start; }
.svc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.svc-photo--wide img { aspect-ratio: 3 / 2; }
@media (min-width: 60rem) {
  .svc-copy { grid-column: 1 / span 6; }
  .svc-side { grid-column: 8 / -1; }
  .svc--flip .svc-copy { grid-column: 7 / -1; grid-row: 1; }
  .svc--flip .svc-side { grid-column: 1 / span 5; grid-row: 1; }
}
.steps { display: grid; gap: 1.5rem; }
.steps li { display: grid; gap: 0.3rem; }
@media (min-width: 48rem) and (max-width: 59.9rem) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }

/* Forms */
.contact-grid { display: grid; gap: 3rem; }
.contact-direct { display: grid; gap: 1.25rem; align-content: start; }
.form { display: grid; gap: 1.1rem; }
.field-group { display: grid; gap: 0.4rem; }
.field-group label, .field-group legend { font-weight: 600; }
.hint { color: var(--ink-2); font-weight: 400; }
.form input:not([type="radio"]), .form select, .form textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem; background: var(--paper); border: 2px solid var(--ink-2); border-radius: 0.375rem; font-size: 1.125rem; }
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.choice-row { display: grid; gap: 0.5rem; }
.choice { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.4rem 1rem; background: var(--paper); border-radius: 999px; cursor: pointer; }
.choice input { width: 1.35rem; height: 1.35rem; accent-color: var(--stamp); margin: 0; flex: none; }
.two-col { display: grid; gap: 1.1rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* taste-skill-ignore: honeypot, visually hidden */
.form-status { padding: 1rem 1.15rem; background: var(--ink); color: var(--ground); border-radius: 0.5rem; }
.form-status[hidden] { display: none; }
.form-status a { color: inherit; font-weight: 600; }
@media (min-width: 40rem) { .choice-row, .two-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 59.9rem) { .contact-grid .form { order: -1; } }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 5vw, 5rem); } }

/* Footer */
.site-footer { background: var(--field); color: var(--on-field); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; margin-top: var(--section); }
.footer-stamp { width: min(100%, 30rem); color: var(--on-field); }
@media (min-width: 60rem) {
  .site-footer .wrap { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .site-footer .footer-cols { margin-top: 0; }
  .site-footer .footer-legal { grid-column: 1 / -1; }
}
.footer-stamp svg { width: 100%; height: auto; }
.footer-cols { display: grid; gap: 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.footer-cols h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); margin-bottom: 0.5rem; }
.footer-cols li + li { margin-top: 0.25rem; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-color: var(--on-field-2); text-underline-offset: 0.2em; transition: color var(--dur-1) ease; }
@media (hover: hover) { .footer-cols a:hover { color: #9fb4f0; } }
.footer-legal { margin-top: 2.5rem; color: var(--on-field-2); font-size: var(--small); display: grid; gap: 0.5rem; }
.footer-legal a { color: inherit; }
@media (min-width: 48rem) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* Stamp graphics */
.stamp-ink { fill: none; stroke: currentColor; }
.stamp-text { fill: currentColor; font-family: var(--font-display); font-weight: 700; }
.stamp-blue { color: var(--stamp); }

/* Motion */
.js [data-rise] { opacity: 0; transform: translateY(22px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
/* Signature: the stamp is pressed onto the page */
.js [data-stamp] { opacity: 0; transform: rotate(-7deg) scale(1.35); }
.js [data-stamp].is-in { opacity: 1; transform: rotate(-7deg) scale(1); transition: transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 160ms ease-out; transition-delay: 420ms; }
.hero-media img { transition: transform 1.6s var(--ease-out); }
.js .hero-media:not(.is-in) img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .js [data-stamp] { opacity: 1; transform: rotate(-7deg); }
  .js .hero-media:not(.is-in) img { transform: none; }
}

.field-list { gap: 1rem; font-size: var(--step-1); line-height: 1.35; align-content: start; }
.field-list li { padding-left: 2.4rem; }
.field-list li svg { width: 1.6rem; height: 1.6rem; top: 0.1em; }
@media (min-width: 60rem) { .field-list { grid-column: 7 / -1; } }
@media (max-width: 29.9rem) {
  .log th:nth-child(3), .log td:nth-child(3) { display: none; }
  .log th, .log td { white-space: nowrap; }
}
