:root {
  --ink: #071427;
  --navy: #0B1E3A;
  --navy-line: #23385c;
  --brass: #C9A227;
  --brass-bright: #E4C158;
  --paper: #F6F4EC;
  --paper-line: #dedaca;
  --ink-on-paper: #10233F;
  --muted: #5b6a80;
  --muted-on-paper: #6b6558;
  --whatsapp: #25D366;
  --radius: 4px;
  --max-width: 1180px;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-on-paper);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--brass);
  margin-right: 10px;
  vertical-align: middle;
}

.center { text-align: center; }
.center.eyebrow { display: flex; align-items: center; justify-content: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 18px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink-on-paper);
}

.section-lead {
  color: var(--muted-on-paper);
  font-size: 16.5px;
  max-width: 58ch;
}

.center.section-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}

.btn-brass:hover { background: var(--brass-bright); transform: translateY(-1px); }

.btn-ink {
  background: var(--ink);
  color: var(--brass-bright);
}
.btn-ink:hover { background: #0d1f3a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(246, 244, 236, 0.35);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass-bright); }

.btn-lg { padding: 16px 30px; font-size: 15.5px; }

.btn-whatsapp { background: var(--whatsapp); color: var(--paper); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Topbar */
.topbar { background: var(--ink); color: var(--brass); overflow: hidden; border-bottom: 1px solid var(--navy-line); }
.topbar-track {
  display: flex; gap: 48px; white-space: nowrap; padding: 8px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px;
  animation: scroll-left 32s linear infinite; width: max-content;
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--paper-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; gap: 24px; }
.brand-logo { height: 50px; width: auto; }
.main-nav { display: flex; gap: 30px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink-on-paper); position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass);
  transition: right 0.2s ease;
}
.main-nav a:hover::after { right: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-on-paper); }

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.14;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  max-width: 15ch;
}

.hero-lead { font-size: 17.5px; color: rgba(246, 244, 236, 0.72); max-width: 52ch; margin: 0 0 30px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-usps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: rgba(246, 244, 236, 0.6); font-family: var(--font-mono); }
.hero-usps li { display: flex; align-items: center; gap: 8px; }
.hero-usps li::before { content: ""; width: 6px; height: 6px; background: var(--brass); flex-shrink: 0; }

/* Lock diagram */
.hero-diagram { position: relative; }
.hero-diagram svg { width: 100%; height: auto; overflow: visible; }

.diagram-dim { stroke: rgba(246, 244, 236, 0.3); stroke-width: 1; }
.dim-label { fill: rgba(246, 244, 236, 0.45); font-size: 10px; letter-spacing: 1.5px; }

.diagram-body { fill: none; stroke: rgba(246, 244, 236, 0.35); stroke-width: 1.5; }
.diagram-plug { fill: rgba(11, 30, 58, 0.4); stroke: rgba(246, 244, 236, 0.3); stroke-width: 1.5; }
.diagram-keyway { fill: var(--ink); stroke: rgba(246, 244, 236, 0.3); stroke-width: 1; }
.chamber-outline { fill: none; stroke: rgba(246, 244, 236, 0.25); stroke-width: 1; }
.shear-line { stroke: var(--brass-bright); stroke-width: 1.2; opacity: 0.85; }

.driver-pin { fill: rgba(246, 244, 236, 0.55); }
.key-pin { fill: var(--brass); }

.diagram-key { fill: var(--brass); }

.diagram-leader { stroke: rgba(246, 244, 236, 0.35); stroke-width: 1; }
.diagram-leader circle { fill: var(--brass-bright); stroke: none; }
.leader-label { fill: rgba(246, 244, 236, 0.65); font-size: 11px; letter-spacing: 1px; stroke: none; }

.status-box { fill: none; stroke: rgba(246, 244, 236, 0.25); stroke-width: 1; }
.status-locked, .status-open { font-size: 13px; letter-spacing: 1.5px; }
.status-locked { fill: rgba(246, 244, 236, 0.6); }
.status-open { fill: var(--brass-bright); opacity: 0; }

/* Lock animation: pins settle to shear line, plug rotates, status flips */
.plug-group { transition: transform 1s; }
.pin-1, .pin-2, .pin-3, .pin-4, .pin-5 { transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes key-slide { 0%, 15% { transform: translateX(0); } 40%, 100% { transform: translateX(78px); } }
@keyframes pin-settle-driver { 0%, 40% { transform: translateY(0); } 60%, 100% { transform: translateY(-14px); } }
@keyframes pin-settle-key { 0%, 40% { transform: translateY(0); } 60%, 100% { transform: translateY(-14px); } }
@keyframes plug-turn { 0%, 65% { transform: rotate(0deg); } 85%, 100% { transform: rotate(-24deg); } }
@keyframes status-swap-out { 0%, 65% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes status-swap-in { 0%, 75% { opacity: 0; } 90%, 100% { opacity: 1; } }

.motion-ok .key-group { animation: key-slide 2.6s 0.4s cubic-bezier(0.65, 0, 0.35, 1) both; }
.motion-ok .driver-pin { animation: pin-settle-driver 2.6s 0.4s ease-out both; }
.motion-ok .key-pin { animation: pin-settle-key 2.6s 0.4s ease-out both; }
.motion-ok .plug-group { animation: plug-turn 2.6s 0.4s ease-in-out both; }
.motion-ok .status-locked { animation: status-swap-out 2.6s 0.4s linear both; }
.motion-ok .status-open { animation: status-swap-in 2.6s 0.4s linear both; }

.no-motion .key-group { transform: translateX(78px); }
.no-motion .driver-pin, .no-motion .key-pin { transform: translateY(-14px); }
.no-motion .plug-group { transform: rotate(-24deg); }
.no-motion .status-locked { opacity: 0; }
.no-motion .status-open { opacity: 1; }

/* USPs */
.usps { padding: 52px 0; background: var(--paper); border-bottom: 1px solid var(--paper-line); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.usp-card { background: var(--paper); padding: 26px 22px; }
.usp-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--brass); margin-bottom: 14px; border: 1px solid var(--paper-line); }
.usp-card h3 { margin: 0 0 8px; font-size: 16.5px; font-family: var(--font-display); font-weight: 600; }
.usp-card p { margin: 0; color: var(--muted-on-paper); font-size: 14px; }

/* Diensten - spec sheet cards with corner brackets */
.diensten { padding: 84px 0; background: var(--paper); }
.diensten-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }

.dienst-card { position: relative; padding: 30px 26px; }
.corner { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--brass); opacity: 0.7; }
.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.dienst-card h3 { margin: 0 0 10px; font-size: 17.5px; font-family: var(--font-display); font-weight: 600; color: var(--ink-on-paper); }
.dienst-card p { margin: 0; color: var(--muted-on-paper); font-size: 15px; }

/* Werkgebied */
.werkgebied { position: relative; background: var(--ink); color: var(--paper); padding: 76px 0; overflow: hidden; }
.werkgebied .eyebrow { color: var(--brass); }
.werkgebied-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.werkgebied .section-title { color: var(--paper); }
.werkgebied .section-lead { color: rgba(246, 244, 236, 0.6); }

.plaatsen-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(246, 244, 236, 0.12); border: 1px solid rgba(246, 244, 236, 0.12); font-family: var(--font-mono); }
.plaatsen-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--ink); padding: 14px 18px; font-weight: 500; font-size: 14px; letter-spacing: 0.3px;
  color: var(--paper); transition: background 0.15s ease, color 0.15s ease;
}
.plaatsen-grid a:hover, .plaatsen-grid a:focus-visible { background: rgba(201, 162, 39, 0.15); color: var(--brass-bright); }
.plaatsen-grid a::after { content: "\2192"; opacity: 0; transform: translateX(-4px); transition: opacity 0.15s ease, transform 0.15s ease; }
.plaatsen-grid a:hover::after, .plaatsen-grid a:focus-visible::after { opacity: 1; transform: translateX(0); }
.plaatsen-grid a[aria-current="page"] { color: var(--brass); }

/* Over ons */
.over-ons { padding: 84px 0; background: var(--paper); border-top: 1px solid var(--paper-line); }
.over-ons-inner { max-width: 760px; margin: 0 auto; }
.over-ons-copy p { color: var(--muted-on-paper); font-size: 16px; }

.mini-usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--paper-line); border: 1px solid var(--paper-line); }
.mini-usps div { background: var(--paper); padding: 20px; }
.mini-usps strong { display: block; font-family: var(--font-display); color: var(--ink-on-paper); font-size: 17px; font-weight: 600; }
.mini-usps span { color: var(--muted-on-paper); font-size: 13.5px; }

/* FAQ - hairline list */
.faq { padding: 84px 0; background: var(--paper); }
.faq-list { max-width: 780px; margin: 44px auto 0; border-top: 1px solid var(--paper-line); }

.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 4px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--ink-on-paper);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px;
}
.faq-question:hover { color: var(--brass); }
.faq-icon { font-family: var(--font-mono); color: var(--brass); font-size: 18px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { margin: 0; padding: 0 4px 20px; color: var(--muted-on-paper); font-size: 15px; max-width: 65ch; }
.faq-item.open .faq-answer { max-height: 240px; }

/* CTA strip */
.cta-strip { background: var(--brass); padding: 40px 0; }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0 0 4px; font-size: 23px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.cta-strip p { margin: 0; color: var(--ink); opacity: 0.75; font-size: 15px; }

/* Contact */
.contact { padding: 84px 0; background: var(--paper); border-top: 1px solid var(--paper-line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--paper-line); }
.contact-list li { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--paper-line); padding: 16px 0; }
.contact-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brass); font-weight: 600; }
.contact-list a { font-size: 16.5px; font-weight: 600; color: var(--ink-on-paper); }
.contact-list a:hover { color: var(--brass); }

.contact-form { background: var(--ink); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form .section-lead { color: rgba(246, 244, 236, 0.6); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--paper); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }
.contact-form input, .contact-form textarea {
  border: 1px solid rgba(246, 244, 236, 0.2); background: rgba(246, 244, 236, 0.04); border-radius: 2px;
  padding: 11px 14px; font-size: 15px; font-family: var(--font-body); color: var(--paper); resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(246, 244, 236, 0.35); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.form-note { font-family: var(--font-mono); font-size: 13px; color: var(--brass-bright); min-height: 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(246, 244, 236, 0.6); padding: 40px 0; border-top: 1px solid var(--navy-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 40px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); }
.footer-nav a { font-size: 13px; }
.footer-nav a:hover { color: var(--brass); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; width: 100%; text-align: center; margin: 8px 0 0; opacity: 0.5; }

/* Mobile CTA bar */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--paper-line); padding: 10px 16px; gap: 10px; }
.mobile-cta-bar .btn { flex: 1; justify-content: center; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}

/* Page intro (Tarieven page header band) */
.page-intro { background: var(--ink); color: var(--paper); padding: 56px 0 48px; border-bottom: 1px solid var(--navy-line); position: relative; overflow: hidden; }
.page-intro .section-title { color: var(--paper); margin-bottom: 10px; }
.page-intro .section-lead { color: rgba(246, 244, 236, 0.65); }
.page-intro-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* Small recurring lock-mechanism icon (static, brand signature echoed in quiet spots) */
.lock-mini { width: 96px; flex-shrink: 0; opacity: 0.85; }
.lock-mini svg { width: 100%; height: auto; display: block; overflow: visible; }
.lock-mini-center { width: 72px; margin: 0 auto 28px; }
/* The FAQ placement sits on the light paper background, not the dark hero
   navy the shared colors were drawn for — recolor it so it stays legible. */
.lock-mini-center .diagram-body { stroke: rgba(16, 35, 63, 0.25); }
.lock-mini-center .diagram-plug { fill: rgba(16, 35, 63, 0.05); stroke: rgba(16, 35, 63, 0.3); }
.lock-mini-center .diagram-keyway { fill: var(--paper); stroke: rgba(16, 35, 63, 0.25); }
.lock-mini-center .chamber-outline { stroke: rgba(16, 35, 63, 0.18); }
.lock-mini-center .driver-pin { fill: rgba(16, 35, 63, 0.35); }
.lock-mini-center .key-pin,
.lock-mini-center .diagram-key { fill: var(--brass); }
.lock-mini-center .shear-line { stroke: var(--brass); }
.lock-mini-footer { width: 64px; margin: 0 auto 18px; opacity: 0.7; }
.lock-mini-intro { display: none; }
@media (min-width: 720px) {
  .lock-mini-intro { display: block; }
}

/* Contact form loading state */
.form-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }
.form-loading[hidden] { display: none; }
.form-loading .lock-mechanism { width: 88px; height: auto; overflow: visible; }
.form-loading-label { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--brass-bright); letter-spacing: 0.5px; }

/* Tarieven price cards */
.tarieven-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.prijs-card { border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 22px 26px; background: var(--paper); }
.prijs-card-main { display: flex; align-items: center; gap: 14px; }
.prijs-icon { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--brass); border: 1px solid var(--paper-line); }
.prijs-title { font-family: var(--font-display); font-weight: 600; font-size: 17.5px; color: var(--ink-on-paper); white-space: nowrap; }
.prijs-dash { flex: 1; border-bottom: 1.5px dashed var(--paper-line); margin: 0 4px; transform: translateY(-4px); }
.prijs-amount { font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--brass); white-space: nowrap; }
.prijs-amount.on-request { font-size: 13.5px; color: var(--muted-on-paper); }

.prijs-sub { margin: 12px 0 16px; padding-left: 48px; color: var(--muted-on-paper); font-size: 14.5px; max-width: 60ch; }

.btn-sm { padding: 9px 18px; font-size: 13.5px; margin-left: 48px; }

.tarieven-note { max-width: 820px; margin: 40px auto 0; padding: 18px 22px; border-left: 3px solid var(--brass); background: rgba(193, 104, 46, 0.06); font-size: 14.5px; color: var(--muted-on-paper); }
.tarieven-note strong { color: var(--ink-on-paper); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 420px; margin: 0 auto; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .diensten-grid { grid-template-columns: repeat(2, 1fr); }
  .werkgebied-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .mini-usps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); padding: 16px 24px 24px; box-shadow: 0 12px 24px rgba(7, 20, 39, 0.15); gap: 16px;
    border-bottom: 1px solid var(--paper-line);
  }
  .usp-grid { grid-template-columns: 1fr; }
  .diensten-grid { grid-template-columns: 1fr; }
  .plaatsen-grid { grid-template-columns: 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 68px; }
  .cta-strip-inner { justify-content: center; text-align: center; }
  .hero h1 { max-width: none; }
  .prijs-card-main { flex-wrap: wrap; }
  .prijs-dash { display: none; }
  .prijs-title { white-space: normal; }
  .prijs-sub, .btn-sm { padding-left: 0; margin-left: 0; }
}
