@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Public+Sans:wght@400;500;600&display=swap');

/* Garage Spijker. Colours only from garagespijker.nl, see ../BRAND.md */
:root {
  --blue: #0000FF;        /* logo "Garage Spijker" */
  --blue-text: #0000D7;   /* marquee text colour on the old site (0,0,215) */
  --ink: #0B0B3D;         /* very dark shade of the logo blue */
  --steel: #6D97AD;       /* active menu button on the old site */
  --steel-deep: #3F6478;  /* darker shade of the menu steel blue, for text */
  --steel-soft: #A5B9C3;  /* menu hover button on the old site */
  --grey: #BBBBBB;        /* page background of the old site */
  --paper: #EDEDED;       /* light tint of that grey */
  --white: #FFFFFF;
  --text: #1C1C24;
  --muted: #5A5A66;
  --line: #CFCFD4;
  --radius: 4px;
  --wrap: 1200px;
  --head: 'Archivo', 'Arial', sans-serif;
  --body: 'Public Sans', 'Arial', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Buttons: rectangular, small radius */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--head); font-weight: 700; font-size: .95rem; padding: .85rem 1.25rem; border-radius: var(--radius); background: var(--blue); color: #fff; text-decoration: none; border: 1px solid var(--blue); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn.white:hover { background: var(--paper); border-color: var(--paper); }
.btn.outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.outline-white:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-mark { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-link { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav-link:hover { color: var(--blue-text); }
.nav-link[aria-current="page"] { border-bottom-color: var(--steel); color: var(--ink); font-weight: 600; }
.header-phone { padding: .7rem 1.05rem; }
.header-phone .word { display: none; }
.menu-btn { display: none; }

/* Hero: no photo, their facts carry it */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 3rem; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 14ch; }
.hero .lead { font-size: 1.2rem; max-width: 36ch; color: var(--muted); margin: 1.5rem 0 2rem; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(.4em); animation: up .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes up { to { opacity: 1; transform: none; } }

.board { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); align-self: end; }
.board-head { background: var(--steel-deep); color: #fff; padding: 1rem 1.4rem; font-family: var(--head); font-weight: 700; font-size: 1.05rem; border-radius: var(--radius) var(--radius) 0 0; }
.board dl { margin: 0; padding: .3rem 1.4rem .6rem; }
.board .row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.board .row:last-child { border-bottom: 0; }
.board dt { font-weight: 600; font-size: .9rem; color: var(--steel-deep); }
.board dd { margin: 0; font-weight: 500; }
.board dd a { color: var(--ink); font-weight: 600; }
.board .rdw { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1.3rem; border-top: 1px solid var(--line); }
.board .rdw img { width: 132px; border: 1px solid var(--line); border-radius: 2px; }
.board .rdw p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.tint { background: var(--paper); }
.section.on-dark { background: var(--ink); color: #E6E6EE; }
.on-dark h2, .on-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.on-dark .section-head p { color: #B9B9CC; }

/* Service register (Mobbin REFS 1) */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.svc-row .what { font-size: .92rem; color: var(--muted); }
.svc-row h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.svc-row .go { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.svc-row .go svg { width: 20px; height: 20px; }
.svc-row:hover h3 { color: var(--blue-text); }
.svc-row:hover .go { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Facts strip */
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 2.2rem 1.5rem 2.2rem 0; border-right: 1px solid rgba(255,255,255,.14); margin-right: 1.5rem; }
.facts li:last-child { border-right: 0; margin-right: 0; }
.facts strong { display: block; font-family: var(--head); font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.15; }
.facts span { display: block; color: #B9B9CC; font-size: .95rem; margin-top: .35rem; }

/* Split: text + rows */
.split { display: grid; gap: 3rem; }
.rows { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rows .k { font-weight: 600; color: var(--steel-deep); font-size: .95rem; }
.rows .v { font-weight: 500; }
.rows .v a { color: var(--ink); font-weight: 600; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 600; color: var(--steel-deep); width: 50%; }
.hours tr.closed td { color: var(--muted); }

/* Detail blocks on diensten */
.detail { display: grid; gap: 2.5rem; padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.detail:last-of-type { border-bottom: 0; }
.detail .intro p { font-size: 1.1rem; color: var(--muted); margin-top: 1rem; max-width: 40ch; }
.detail .intro .btn-row { margin-top: 1.75rem; }
.detail h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.rows.single li { grid-template-columns: 1fr; }
.rows li { align-items: baseline; }

/* Page head (sub pages) */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 18ch; }
.page-head p { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 1.25rem 0 0; }
.page-head .btn-row { margin-top: 2rem; }

.page-head-in { display: grid; gap: 2.5rem; align-items: end; }
.jump { border-top: 1px solid #C4C4CB; }
.jump a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #C4C4CB; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.jump a svg { width: 18px; height: 18px; color: var(--steel-deep); }
.jump a:hover { color: var(--blue-text); }
.head-rows { border-top-color: #C4C4CB; }
.head-rows li { border-bottom-color: #C4C4CB; grid-template-columns: 5rem 1fr; }

/* Notice line */
.note { color: var(--muted); max-width: 52ch; font-size: .95rem; }
.note a { color: var(--ink); font-weight: 600; }

/* CTA band */
.cta { background: var(--blue); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #DADAFF; font-size: 1.1rem; margin-top: 1rem; max-width: 40ch; }
.cta-in { display: grid; gap: 2rem; align-items: end; }
.big-tel { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); color: #fff; text-decoration: none; margin-bottom: 1.2rem; }
.big-tel svg { width: .8em; height: .8em; }
.big-tel:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Contact */
.contact-grid { display: grid; gap: 3.5rem; }
.form { display: grid; gap: 1.1rem; }
.form .two { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #A9A9B3; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B00020; }
.kenteken { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.form-ok { display: none; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.form-ok.show { display: block; }
.form small { color: var(--muted); }

/* Footer with labelled groups */
.site-footer { background: var(--ink); color: #CDD0F2; padding: 4.5rem 0 7rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.site-footer h2 { font-family: var(--body); font-size: .85rem; font-weight: 500; color: #A6ABE0; margin: 0 0 .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #fff; }
.site-footer .big a, .site-footer .big span { font-family: var(--head); font-weight: 600; font-size: 1.2rem; }
.footer-brand .logo-plate { display: inline-block; background: #fff; padding: .7rem .9rem; border-radius: var(--radius); }
.footer-brand p { margin: 1.2rem 0 1.4rem; max-width: 30ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: #A6ABE0; }

/* Mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.callbar .btn { flex: 1; justify-content: center; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (min-width: 861px) {
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .page-head-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .cta-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .form .two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 1180px) {
  .header-phone .num { display: none; }
  .header-phone .word { display: inline; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
  .menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ''; transition: transform .2s; }
  .menu-btn span:first-child::before { position: absolute; top: -6px; }
  .menu-btn span:first-child::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav.open { display: flex; }
  .nav-link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue-text); }
  .header-phone { margin-top: 1rem; justify-content: center; }
  .header-in { min-height: 66px; }
  .brand-mark { height: 28px; }
  .svc-row { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
  .svc-row .what { grid-column: 1; grid-row: 1; }
  .svc-row h3 { grid-column: 1; grid-row: 2; }
  .svc-row .go { grid-column: 2; grid-row: 1 / span 2; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { border-right: 0; margin-right: 0; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .rows li { grid-template-columns: 1fr; gap: .15rem; }
  .board .row { grid-template-columns: 1fr; gap: .1rem; }
  .callbar { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-word { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
