/* trackingandtracing.nl — één stylesheet, mobile-first */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #1d2733;
  --muted: #55606d;
  --line: #dde3ea;
  --brand: #1a73be;
  --brand-ink: #ffffff;
  --accent: #e8710a;
  --accent-ink: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --hero-overlay: linear-gradient(90deg, rgba(10, 22, 36, 0.86) 0%, rgba(10, 22, 36, 0.62) 55%, rgba(10, 22, 36, 0.25) 100%);
  --radius: 10px;
  --wrap: 72rem;
  --measure: 70ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --bg-alt: #171e26;
    --text: #e6ebf0;
    --muted: #a3adb8;
    --line: #2a333d;
    --brand: #5aa9ec;
    --brand-ink: #0b1622;
    --accent: #f5903a;
    --accent-ink: #1a0e02;
    --header-bg: rgba(17, 22, 28, 0.94);
  }
  .figure-diagram a { display: block; }
.figure-diagram img { background: #ffffff; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
p { margin: 0 0 1rem; max-width: var(--measure); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: 3.75rem; }

.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem;
  margin-right: auto; min-height: 44px;
}
.brand img { width: 28px; height: 28px; }
.brand span { white-space: nowrap; }
@media (max-width: 400px) {
  .brand { font-size: 1rem; }
  .lang-switch a, .lang-switch span { min-width: 40px; padding: 0 0.25rem; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close { display: none; }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.5rem;
  color: var(--text); text-decoration: none; border-radius: 6px;
}
.site-nav a:hover { background: var(--bg-alt); }

.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 0.5rem;
  font-size: 0.875rem; font-weight: 600; text-decoration: none; border-radius: 6px;
}
.lang-switch span { color: var(--brand); }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); background: var(--bg-alt); }

/* Zonder JS: menu altijd zichtbaar onder de header */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; border: 0; padding: 0; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; gap: 0.25rem; }
  .site-nav a { padding: 0 0.75rem; font-size: 0.9375rem; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: #0a1624; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; z-index: 1; padding: 5rem 1rem 4.5rem; }
.hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); margin-bottom: 1rem; }
.hero .tagline { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); max-width: 34ch; margin-bottom: 2rem; color: #f1f5f9; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

@media (min-width: 768px) {
  .hero-inner { padding: 8rem 1rem 7rem; }
}
@media (min-width: 1024px) {
  .hero-inner { padding: 10rem 1rem 9rem; }
}

/* Secties */
.section { padding: 3.5rem 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }
figure { margin: 2rem 0 0; }
figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.figure-diagram a { display: block; }
.figure-diagram img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; background: #fff; }

@media (min-width: 1024px) {
  .section { padding: 5rem 0; }
}

/* Contact */
.contact-card {
  display: grid; gap: 1.25rem;
  padding: 2rem 1.5rem; border-radius: calc(var(--radius) * 1.5);
  background: var(--brand); color: var(--brand-ink);
}
.contact-card h2 { margin: 0; }
.contact-card p { margin: 0; }
@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1fr auto; align-items: center; padding: 2.5rem; }
  .contact-card .btn-row { justify-content: flex-end; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

/* 404 */
.notfound { padding: 5rem 0; text-align: center; }
.notfound p { margin-left: auto; margin-right: auto; }
.notfound .btn-row { justify-content: center; }
.notfound .btn-ghost { color: var(--brand); border-color: var(--brand); }
