/* Goodtogo homepage – "de snelweg bij nacht". Tokens komen uit site.css. */

.home section { padding-block: clamp(64px, 9vw, 112px); }
.home h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.01em; }
.home h3 { font-weight: 900; }

/* knoppen: bordblauw, hoekig zoals een bord */
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #0c5cc0; border-color: #0c5cc0; }

/* ---------- hero: nachtweg ---------- */
.weg { position: relative; isolation: isolate; color: var(--road-ink); background: #0b0f13; min-height: min(92svh, 860px); display: grid; align-items: end; overflow: hidden; padding-block: 0 !important; }
.weg-beeld { position: absolute; inset: 0; z-index: -1;
  /* stilstaand beeld (ook bij 'minder beweging'): horizon, weg in perspectief, belijning */
  background:
    radial-gradient(120% 60% at 50% 46%, rgba(120,150,190,.28), transparent 60%),
    linear-gradient(#070a0d 0%, #111a24 40%, #1a222b 47%, #121619 47.2%, #0d1012 100%);
}
.weg-beeld::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 160%; height: 53%; transform: translateX(-50%);
  clip-path: polygon(48.6% 0, 51.4% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 49.75%, rgba(242,244,245,.75) 49.75% 50.25%, transparent 50.25%) center / 100% 9% repeat-y,
    linear-gradient(#22292f, #15191c);
}
.weg-beeld canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.weg-beeld.live canvas { opacity: 1; }
.weg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(transparent, rgba(8,10,12,.85)); pointer-events: none; }

.weg-inhoud { padding-block: clamp(120px, 22vh, 220px) clamp(36px, 6vh, 64px); display: grid; gap: 22px; }
.weg h1 { font-size: clamp(2.5rem, 6.6vw, 5.4rem); font-weight: 900; line-height: .98; letter-spacing: -.02em; max-width: 13ch; }
.weg-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d1d6; max-width: 56ch; }
.weg-feiten { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #9aa6ad; font-size: .95rem; }

/* portaal met twee bewegwijzeringsborden */
.portaal { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; padding-top: 18px; max-width: 880px; }
.portaal::before { content: ""; position: absolute; left: -12px; right: -12px; top: 0; height: 10px; border-radius: 2px;
  background: repeating-linear-gradient(135deg, #7d878e 0 6px, #5d666c 6px 12px); box-shadow: 0 2px 0 #2a3035; }
.bord { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 104px; padding: 18px 22px;
  background: var(--accent); color: #fff; text-decoration: none; border-radius: 9px;
  box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 8px #fff, 0 18px 40px -18px rgba(0,0,0,.9);
  transition: transform .2s ease, background-color .2s ease; }
.bord::before { content: ""; position: absolute; top: -18px; left: 22%; width: 6px; height: 18px; background: #5d666c; box-shadow: calc(var(--paal, 280px)) 0 0 #5d666c; }
.bord:hover { background-color: #0c5cc0; box-shadow: inset 0 0 0 5px #0c5cc0, inset 0 0 0 8px #fff, 0 22px 44px -18px rgba(0,0,0,.95); transform: translateY(-2px); }
.bord:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.bord-tekst { display: grid; gap: 2px; }
.bord-tekst b { font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.05; }
.bord-tekst span { font-size: .98rem; color: #dbe6f7; }
.bord-pijl { flex: none; width: 44px; height: 44px; }
.bord-pijl svg { width: 100%; height: 100%; }
@media (max-width: 640px) {
  .portaal { grid-template-columns: 1fr; }
  .bord { min-height: 84px; }
  .bord:first-child { flex-direction: row-reverse; }
  .bord::before { display: none; }
}

/* ---------- diensten als twee rijstroken ---------- */
.stroken { background: var(--bg); }
.stroken-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; position: relative; }
.stroken-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%);
  background: repeating-linear-gradient(var(--line) 0 34px, transparent 34px 68px); }
.strook { display: grid; gap: 16px; align-content: start; padding: 8px clamp(20px, 5vw, 64px); }
.strook:first-child { padding-left: 0; }
.strook:last-child { padding-right: 0; }
.strook-voor { font-weight: 700; color: var(--accent); }
.strook ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 10px; }
.strook li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.strook li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; border-radius: 3px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 3.5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 3.5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.strook .btn { justify-self: start; }
@media (max-width: 760px) {
  .stroken-grid { grid-template-columns: 1fr; gap: 56px; }
  .stroken-grid::before { display: none; }
  .strook { padding: 0 !important; }
  .strook + .strook { border-top: 4px dashed var(--line); padding-top: 48px !important; }
}

/* ---------- werkwijze: hectometerpaaltjes ---------- */
.hecto { background: var(--surface); }
.hecto h2 { margin-bottom: 40px; }
.paaltjes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.paaltjes::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; height: 4px; background: var(--ink); opacity: .85; }
.paaltjes li { display: grid; gap: 8px; align-content: start; }
.paal { width: 44px; height: 60px; display: grid; place-items: start center; padding-top: 8px; background: var(--hecto); color: #fff; font-weight: 900; font-size: 1.35rem; border-radius: 4px 4px 0 0; position: relative; z-index: 1; margin-bottom: 10px;
  box-shadow: inset 0 -12px 0 #fff, inset 0 -14px 0 var(--hecto); }
.paaltjes p { color: var(--muted); }
@media (max-width: 860px) { .paaltjes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .paaltjes::before { display: none; } }
@media (max-width: 440px) { .paaltjes { grid-template-columns: 1fr; } }

/* ---------- werkgebied: afstandsbord ---------- */
.gebied { background: var(--road); color: var(--road-ink); }
.gebied .lead { color: var(--road-muted); margin-top: 16px; }
.gebied-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.gebied-steden { margin-top: 18px; color: var(--road-muted); }
.gebied-steden a { color: var(--road-ink); }
.afstandsbord { background: var(--accent); border-radius: 10px; padding: 22px 26px 16px; display: grid; gap: 10px;
  box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 9px #fff, 0 24px 50px -24px rgba(0,0,0,.9); }
.afstandsbord [role="row"] { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: #fff; }
.afstandsbord .wegnr { justify-self: start; background: #c8102e; color: #fff; font-size: 1rem; font-weight: 900; padding: 3px 8px 1px; border: 2px solid #fff; border-radius: 4px; }
.afstandsbord .km { font-weight: 900; font-variant-numeric: tabular-nums; }
.bord-voet { font-size: .85rem; color: #cfdcf2; margin-top: 4px; }
@media (max-width: 860px) { .gebied-grid { grid-template-columns: 1fr; } }

/* ---------- offerte ---------- */
.offerte-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.offerte .lead { margin-top: 16px; }
.contact { display: grid; gap: 18px; margin: 32px 0 0; }
.contact dt { font-size: .92rem; color: var(--muted); }
.contact dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; }
#quote-form { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
#quote-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; min-width: 0; }
#quote-form input, #quote-form textarea { font-weight: 400; }
#quote-form textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; border: 0; margin: 0; padding: 0; }
.type-toggle legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.type-toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.type-toggle label { border: 2px solid var(--line); border-radius: var(--radius); padding: .7em; text-align: center; cursor: pointer; font-size: 1.1rem; }
.type-toggle input:checked + label { border-color: var(--accent); background: var(--accent); color: #fff; }
.type-toggle input:focus-visible + label { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.form-note { font-size: .9rem; color: var(--muted); }
.result { border: 2px solid var(--ok); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.result pre { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: .95rem; background: var(--bg); padding: 12px; border-radius: 4px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .offerte-grid { grid-template-columns: 1fr; } }

/* footer */
.home footer .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
@media (max-width: 760px) { .home footer .wrap { grid-template-columns: 1fr 1fr; } }

/* feiten onder het portaal */
ul.weg-feiten { list-style: none; margin: 0; padding: 0; }
ul.weg-feiten li { display: inline-flex; align-items: center; gap: 8px; }
ul.weg-feiten li::before { content: ""; width: 14px; height: 14px; background: var(--accent-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 3.5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4L14 3.5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }

/* landelijk netwerk: twee ritten naast elkaar */
.model { background: var(--surface); }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.model .lead { margin-top: 16px; }
.rit { margin: 0; display: grid; gap: 22px; padding: 28px; background: var(--road); color: var(--road-ink); border-radius: 10px; }
.rit-rij { display: grid; gap: 8px; }
.rit-label { font-weight: 700; }
.rit-balk { position: relative; display: block; height: 34px; border-radius: 4px; background: var(--road-2); overflow: hidden; }
.rit-balk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(242,244,245,.55) 0 18px, transparent 18px 36px); }
.rit-balk::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.rit-balk.ver::after { width: 100%; background: linear-gradient(90deg, rgba(224,53,43,.85), rgba(224,53,43,.55)); }
.rit-balk.dicht::after { width: 16%; background: var(--accent); }
.rit-balk > span { position: relative; z-index: 1; display: block; padding: 6px 12px; font-size: .92rem; font-weight: 700; color: #fff; }
.rit-balk.dicht > span { padding-left: calc(16% + 12px); color: var(--road-ink); }
.rit-voet { font-size: .9rem; color: var(--road-muted); }
@media (prefers-reduced-motion: no-preference) {
  .rit-balk.ver::after { animation: rit 2.4s ease-out both; }
  .rit-balk.dicht::after { animation: rit 0.5s ease-out 0.4s both; }
  @keyframes rit { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
}
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr; } }

/* Goodtogo-standaard: keurkaart */
.keuring { background: var(--bg); }
.keuring-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.keuring .lead { margin-top: 16px; }
.keurkaart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(10,40,80,.45); }
.keurkaart-kop { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--accent); color: #fff; }
.keurkaart-kop b { display: block; font-size: 1.35rem; font-weight: 900; }
.keurkaart-kop span { color: #dbe6f7; font-size: .95rem; }
.stempel { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #fff; color: #fff; }
.stempel svg { width: 30px; height: 30px; }
.keurlijst { list-style: none; margin: 0; padding: 8px 24px 16px; counter-reset: k; }
.keurlijst li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); counter-increment: k; }
.keurlijst li:last-child { border-bottom: 0; }
.keurlijst li::before { content: ""; grid-row: span 2; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--hecto);
  -webkit-mask: radial-gradient(circle, #000 98%, transparent); }
.keurlijst li::after { content: ""; }
.keurlijst b { font-size: 1.08rem; }
.keurlijst span { color: var(--muted); }
@media (max-width: 860px) { .keuring-grid { grid-template-columns: 1fr; } }

/* prijs */
.prijs { background: var(--surface); }
.prijs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 36px; }
.prijs-grid > div { border-top: 4px solid var(--accent); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.prijs-grid p { color: var(--muted); }
@media (max-width: 760px) { .prijs-grid { grid-template-columns: 1fr; } }

/* provincies als kleine borden */
.provincies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.provincies li { background: var(--accent); color: #fff; font-weight: 700; padding: 12px 14px; border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px #fff; }
@media (max-width: 440px) { .provincies { grid-template-columns: 1fr 1fr; } }
/* verfijning */
.keuring-grid, .model-grid { align-items: start; }
.keurlijst li::before { -webkit-mask: none; background: var(--hecto) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.rit-balk.dicht::before { left: 16%; opacity: .35; }
.rit-balk.dicht > span { background: none; text-shadow: 0 1px 2px #000; }
.rit-balk.dicht::before { display: none; }

/* telefoon: opgenomen 3D-weg als video, met stilstaand beeld als eerste weergave */
.weg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; opacity: 0; transition: opacity .6s ease; }
.weg-beeld.live .weg-video { opacity: 1; }
@media (max-width: 760px) {
  .weg-beeld { background: #0b0f13 url(/assets/weg-mobiel.jpg) center 62% / cover no-repeat; }
  .weg-beeld::before { display: none; }
}

/* telefoon: 3D-weg als groot beeld bovenaan, tekst eronder (zoals een venster op de snelweg) */
@media (max-width: 760px) {
  .weg { min-height: 0; }
  .weg-beeld { inset: 0 0 auto 0; height: min(64svh, 560px); background-position: center 40%; }
  .weg-beeld::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(rgba(11,15,19,0), #0b0f13); z-index: 1; pointer-events: none; }
  .weg-video { object-position: center 40%; }
  .weg::after { display: none; }
  .weg-inhoud { padding-top: min(46svh, 400px); padding-bottom: 40px; }
}
@media (max-width: 760px) {
  .weg-beeld { height: min(58svh, 500px); }
  .weg-inhoud { padding-top: min(38svh, 330px); }
}
@media (max-width: 380px) {
  .top .nav .btn { font-size: .92rem; padding: .4em .7em; }
  .brand-name { font-size: 1.3rem; }
  .brand svg { width: 34px; height: 34px; }
}
/* verborgen veld tegen spambots (mensen zien het niet) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
