/* Autobedrijf van den Elsen, demo-homepage */
:root {
  --blue: #343c95;
  --blue-d: #262c73;
  --blue-dd: #181c4d;
  --ink: #15173a;
  --text: #2a2c3a;
  --muted: #545768;
  --grey: #eef0f5;
  --grey-2: #e3e6ef;
  --line: #d3d7e3;
  --white: #fdfdfe;
  --focus: #f2b705;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Lexend", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hdr: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
a, button, input, textarea { touch-action: manipulation; -webkit-tap-highlight-color: rgba(52,60,149,.15); }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.ic-sm { width: .9em; height: .9em; vertical-align: -1px; }

/* Typografie: smalle zware koppen in hoofdletters (ref mirandabikeparts.com) */
.h2 {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: .95;
  letter-spacing: -.005em;
  color: var(--blue);
  margin-bottom: .55em;
  max-width: 18ch;
}
.h3 {
  font-family: var(--head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: .45em;
}
.label {
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  font: 600 1rem/1.1 var(--body);
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .12s ease-out;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-d); }
.btn-line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--grey); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover > .ic:last-child:not(:first-child) { transform: translateX(3px); }

.more {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none; color: var(--blue);
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.more .ic { transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,253,254,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(21,23,58,.06); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 24px; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 22px; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; background: linear-gradient(var(--blue),var(--blue)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.nav ul a:hover { background-size: 100% 2px; }
.nav-actions { display: flex; gap: 10px; }
.nav-actions .btn { min-height: 44px; padding: .55em 1em; font-size: .95rem; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav ul { gap: 16px; }
  .nav-actions .btn-line span { display: none; }
}
@media (max-width: 920px) {
  :root { --hdr: 64px; }
  .brand img { width: 150px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 2px solid var(--blue); background: transparent; color: var(--blue); border-radius: 2px; cursor: pointer;
  }
  .menu-btn .ic { width: 24px; height: 24px; }
  .menu-btn .ic-close { display: none; }
  .menu-btn[aria-expanded="true"] .ic-open { display: none; }
  .menu-btn[aria-expanded="true"] .ic-close { display: block; }
  .nav {
    position: fixed; inset: var(--hdr) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gut) 32px; background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(21,23,58,.12);
    max-height: calc(100dvh - var(--hdr)); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 12px 0; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; border-bottom: 1px solid var(--grey-2); background: none; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { justify-content: center; min-height: 52px; }
  .nav-actions .btn-line span { display: inline; }
}

/* HERO (ref kabat.pl) */
.hero {
  position: relative;
  min-height: min(calc(100dvh - var(--hdr)), 780px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--blue-dd);
  isolation: isolate;
}
.hero-photo { position: absolute; inset: 0 0 0 36%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero-wedge {
  position: absolute; inset: 0; z-index: -1;
  background: var(--blue);
  clip-path: polygon(0 0, 58% 0, 44% 100%, 0 100%);
}
.hero-band { /* doorzichtige band langs de schuine rand, zoals bij Kabat */
  position: absolute; inset: 0; z-index: -1;
  background: rgba(38,44,115,.62);
  clip-path: polygon(58% 0, 64% 0, 50% 100%, 44% 100%);
}
.hero-ring { position: absolute; left: -9%; bottom: -26%; width: 62vh; height: 62vh; min-width: 380px; min-height: 380px; fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; }
.hero-ring circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-in { position: relative; padding-top: 56px; padding-bottom: 72px; }
.hero-copy { max-width: 640px; color: #fff; }
.hero-title {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: .86; letter-spacing: -.01em; color: #fff;
  margin-bottom: 24px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: #fff; max-width: 34ch; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero { min-height: auto; flex-direction: column; align-items: stretch; background: var(--blue); }
  .hero-photo { position: relative; inset: auto; order: 2; height: 44vh; min-height: 260px; }
  .hero-photo img { object-position: 40% 60%; }
  .hero-wedge { inset: auto 0 0 0; height: calc(44vh + 1px); min-height: 261px; clip-path: polygon(0 0, 22% 0, 0 38%); background: var(--blue); z-index: 1; }
  .hero-band { display: none; }
  .hero-ring { display: none; }
  .hero-in { order: 1; padding-top: 40px; padding-bottom: 40px; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 4.6rem); }
}

/* Keurmerken */
.keur { border-bottom: 1px solid var(--grey-2); }
.keur-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.keur-text { margin: 0; color: var(--muted); max-width: 46ch; font-size: .98rem; }
.keur-logos { display: flex; align-items: center; gap: 28px; }
.keur-logos img { height: 46px; width: auto; }
.keur-logos img.bosch { height: 64px; }

/* Diensten (ref hbbody.com) */
.diensten { padding: clamp(72px, 9vw, 120px) 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 8px; }
.card { position: relative; padding: clamp(24px, 2.6vw, 36px); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.card p { color: var(--muted); max-width: 42ch; }
.card .more { margin-top: auto; align-self: flex-start; }
.card-part { background: var(--grey); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.card-part .card-text { display: flex; flex-direction: column; height: 100%; }
.part { position: relative; align-self: center; }
.part img { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 62%, transparent 100%); position: relative; z-index: 1; transition: transform .6s var(--ease); }
.card-part:hover .part img { transform: scale(1.04) rotate(-1.5deg); }
.part-ring { position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 2px solid rgba(52,60,149,.22); border-radius: 50%; }
.c-onderhoud { grid-column: span 7; min-height: 380px; }
.c-apk { grid-column: span 5; min-height: 380px; grid-template-columns: 1.1fr .9fr; }
.c-banden { grid-column: span 4; }
.c-airco { grid-column: span 3; }
.c-reparatie { grid-column: span 5; }
.c-schade { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.c-schade .h3 { margin: 0; }
.c-schade p { margin: 0; flex: 1 1 320px; }
.c-schade .more { margin-top: 0; }
.card-blue { background: var(--blue); color: #fff; }
.card-blue .h3, .card-blue p, .card-blue .more { color: #fff; }
.card-blue p { color: #e3e6fb; }
.card-grey { background: var(--grey-2); }
.card-line { border: 2px solid var(--blue); background: transparent; }
.profiel { display: flex; gap: 24px; margin: 6px 0 14px; }
.profiel div { border-left: 1px solid rgba(255,255,255,.4); padding-left: 14px; }
.profiel dt { font-size: .82rem; color: #d9ddfa; }
.profiel dd { margin: 0; font-family: var(--head); font-weight: 800; font-size: 3.6rem; line-height: 1; }
.profiel small, .big-num small { font-size: .4em; margin-left: 4px; font-weight: 700; }
.big-num { font-family: var(--head); font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--blue) !important; margin: 4px 0 14px; }

@media (max-width: 1000px) {
  .c-onderhoud, .c-apk { grid-column: span 12; }
  .c-banden { grid-column: span 6; }
  .c-airco { grid-column: span 6; }
  .c-reparatie { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento { gap: 12px; }
  .card-part { grid-template-columns: 1fr; }
  .card-part .part { order: -1; max-width: 300px; justify-self: center; }
  .c-onderhoud, .c-apk, .c-banden, .c-airco, .c-reparatie { grid-column: span 12; min-height: 0; }
  .c-apk .part { max-width: 200px; }
  .card .more { margin-top: 8px; }
}

/* Ford: feitenrij (ref hbbody.com) */
.ford { background: var(--blue); color: #fff; padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 90px); position: relative; overflow: hidden; }
.ford-title {
  font-family: var(--head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .9; color: #fff; max-width: 14ch; margin-bottom: 28px;
}
.ford-lead { max-width: 52ch; color: #e3e6fb; font-size: 1.12rem; margin-bottom: clamp(48px, 6vw, 80px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.3); }
.facts li { padding: 28px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.3); display: flex; flex-direction: column; gap: 10px; }
.facts li + li { padding-left: 28px; }
.facts li:last-child { border-right: 0; }
.fact-num { font-family: var(--head); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .9; font-variant-numeric: tabular-nums; }
.fact-txt { color: #dfe2fa; max-width: 26ch; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.3); }
}

/* Werkplaats */
.werkplaats { padding: clamp(72px, 9vw, 120px) 0; }
.werk-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.werk-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wp { overflow: hidden; background: var(--grey); }
.wp img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wp:hover img { transform: scale(1.03); }
.wp-1 { grid-column: span 2; aspect-ratio: 16 / 10; }
.wp-2, .wp-3 { aspect-ratio: 4 / 3; }
.werk-copy p { max-width: 50ch; }
.hours { border-collapse: collapse; width: 100%; max-width: 460px; margin: 24px 0 28px; font-size: .98rem; }
.hours caption { text-align: left; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-top: 1px solid var(--grey-2); font-weight: 400; }
.hours td { white-space: nowrap; padding-left: 16px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.werk-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .werk-in { grid-template-columns: 1fr; } }

/* Historie (ref heritage.kaessbohrer.com) */
.historie { padding: clamp(72px, 9vw, 120px) 0; background: var(--grey); }
.hist-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; margin-bottom: 32px; }
.chapters { display: flex; flex-direction: column; }
.chapter { display: grid; grid-template-columns: 76px 1fr; gap: 0 12px; padding: 28px 0; border-top: 1px solid var(--line); transition: opacity .4s var(--ease); }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.ch-num { font-family: var(--head); font-weight: 800; font-size: 3.2rem; line-height: .9; color: var(--blue); }
.ch-body p { color: var(--muted); margin: 0; max-width: 40ch; }
.ch-photo { grid-column: 1 / -1; margin-top: 18px; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.hist-stage { position: sticky; top: calc(var(--hdr) + 40px); aspect-ratio: 4 / 3.1; }
.stage-ring { position: absolute; width: 74%; aspect-ratio: 1; right: -6%; top: -8%; border-radius: 50%; background: var(--blue); }
.stage-frame { position: absolute; inset: 8% 6% 4% 0; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); background: var(--ink); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.05); }
.stage-img.is-on { opacity: 1; transform: none; }

@media (min-width: 901px) {
  .ch-photo { display: none; }
  .chapter { opacity: .45; min-height: 30vh; align-content: center; }
  .chapter.is-active { opacity: 1; }
}
@media (max-width: 900px) {
  .hist-in { grid-template-columns: 1fr; }
  .hist-stage { display: none; }
}

/* Occasions */
.occasions { padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.occ-in { position: relative; }
.occ-ring { position: absolute; right: -4%; top: 50%; width: min(520px, 60vw); transform: translateY(-50%); fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: .9; }
.occ-ring circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.occ-copy { position: relative; max-width: 620px; }
.occ-copy p { font-size: 1.12rem; max-width: 44ch; }
.occ-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 700px) { .occ-ring { width: 340px; right: -40%; top: 20%; opacity: .35; } }

/* Contact */
.contact { padding: clamp(72px, 9vw, 120px) 0; background: var(--grey); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.big-phone { display: inline-flex; align-items: center; gap: 14px; font-family: var(--head); font-weight: 800; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; color: var(--blue); text-decoration: none; margin: 4px 0 30px; }
.big-phone .ic { width: .7em; height: .7em; }
.big-phone:hover { color: var(--blue-d); }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-list .ic { color: var(--blue); margin-top: 4px; }
.info-list a { font-weight: 500; }
.form { background: var(--white); padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(21,23,58,.06); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 500; color: var(--ink); font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #8a8ea3; border-radius: 2px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(52,60,149,.25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.err { color: #b3261e; font-size: .9rem; margin: 0; }
.form-note { margin: 16px 0 0; padding: 14px 16px; background: #e6e8f6; color: var(--ink); }
@media (max-width: 900px) { .contact-in { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--blue-dd); color: #d5d8f2; padding: 64px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 230px; }
.foot-h { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.foot-col li { padding: 3px 0; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.foot-bottom p { margin: 0; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } }

/* Vaste belbalk op mobiel */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr;
    background: var(--white); border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .callbar.is-visible { transform: none; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); color: var(--blue); border-radius: 2px; }
  .callbar a.is-primary { background: var(--blue); color: #fff; }
  .footer { padding-bottom: 96px; }
}

/* Melding */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0;
  width: min(520px, calc(100% - 32px));
  background: var(--ink); color: #fff; padding: 16px 20px; font-size: .98rem;
  box-shadow: 0 18px 40px rgba(21,23,58,.3);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 84px; } }

/* Reveal: alleen verborgen als JS en beweging aan staan */
.js-motion .reveal { opacity: 0; transform: translateY(28px); }

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