/* Smart Rota huisstijl. Mobile-first: basisregels gelden voor kleine schermen,
   grotere schermen krijgen aanvullingen via min-width media queries. */

/* Manrope (SIL Open Font License 1.1), zelf gehost: geen verkeer naar Google Fonts. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B2545;
  --navy-deep: #071A33;
  --turquoise: #0F9A90;
  --teal: #0B7A71;
  --teal-light: #13A89E;
  --graphite: #1F2933;
  --offwhite: #F5F7FA;
  --muted: #A9B8CC;
  --line: rgba(245, 247, 250, 0.14);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 999px;
  --gutter: 1.25rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--offwhite);
  background-color: var(--navy);
  background-image:
    radial-gradient(38rem 30rem at 100% 0%, rgba(19, 168, 158, 0.22), transparent 65%),
    radial-gradient(30rem 26rem at 0% 100%, rgba(7, 26, 51, 0.9), transparent 70%),
    radial-gradient(rgba(245, 247, 250, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-light); text-underline-offset: 0.2em; }
a:hover { color: var(--offwhite); }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  overflow: hidden;
}

.top { padding-block: 0.25rem 0; }
.top-logo { display: block; width: 9.5rem; height: auto; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2.5rem 1.5rem;
}

.hero-text { position: relative; z-index: 1; }

/* ---------- Inhoud ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--offwhite);
  background: rgba(19, 168, 158, 0.12);
  border: 1px solid rgba(19, 168, 158, 0.35);
  border-radius: var(--radius);
}

.badge-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal-light);
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2.2s ease-out infinite;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 12vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.accent { color: var(--teal-light); }
.h1-kicker {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--teal-light);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 247, 250, 0.04);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}
.cta-note { margin: 0; font-size: 0.9375rem; color: var(--muted); text-align: center; }
/* Ruimere aanraakzone voor tekstlinks op mobiel (minstens 44px hoog). */
.cta-note a, .bottom a { display: inline-block; padding-block: 0.75rem; margin-block: -0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  background: var(--teal-light);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #2BC0B5; color: var(--navy); }
.btn:active { transform: translateY(1px); }

/* ---------- Route-illustratie ---------- */

/* Klein scherm: route van naast de badge naar een ring rechtsboven, op de
   hoogte van het logo. main.js tekent de lijn op maat van het scherm.
   Neemt geen plaats in, dus de pagina wordt niet langer. */
.route-corner {
  display: none;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.8;
  pointer-events: none;
}
.route-corner.is-ready { display: block; }

/* Tablet en laptop: compacte route als eigen strook boven de tekst (zie 48rem). */
.route-compact {
  display: none;
  order: -1;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: -1rem 0 1.25rem auto;
  opacity: 0.7;
  pointer-events: none;
}

/* Desktop: volledige route in de rechterkolom (zie 64rem). */
.route { display: none; pointer-events: none; }
.route-line {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 12;
  animation: travel 18s linear infinite;
}
.route-stop { fill: var(--navy); stroke: var(--teal-light); stroke-width: 3; }
.route-stop-mid { fill: var(--teal-light); stroke: none; }
.route-pin { fill: var(--turquoise); }

/* ---------- Footer ---------- */

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.bottom p { margin: 0; }
.bottom a { color: var(--muted); }
.bottom a:hover { color: var(--offwhite); }
.bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.bottom .social { display: inline-flex; align-items: center; gap: 0.4rem; }
.bottom .social svg { flex: none; }

/* ---------- Cookiebanner (opgebouwd door analytics.js) ---------- */

/* Mobiel: paneel dat van onderen inschuift over de volle breedte. */
.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--graphite);
  background: var(--offwhite);
  border-top: 4px solid var(--turquoise);
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -12px 40px rgba(3, 12, 26, 0.45);
  animation: cookie-in 0.35s ease-out both;
}
.cookie-kop { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.5rem; }
.cookie-icoon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  color: var(--turquoise);
  background: rgba(15, 154, 144, 0.12);
  border-radius: 50%;
}
.cookie-banner h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.cookie-banner p { margin: 0 0 1rem; color: #3E4C5E; }
.cookie-knoppen { display: flex; gap: 0.6rem; }
.cookie-knoppen .btn { flex: 1; min-height: 2.875rem; padding: 0.6rem 1rem; font-size: 0.9375rem; }
.cookie-banner .btn { color: #fff; background: var(--navy); }
.cookie-banner .btn:hover { background: var(--teal); color: #fff; }
.cookie-banner .btn-secundair { color: var(--navy); background: transparent; border: 1.5px solid var(--navy); }
.cookie-banner .btn-secundair:hover { color: var(--navy); background: #E3E9F0; }
.cookie-banner :focus-visible { outline-color: var(--turquoise); }

@keyframes cookie-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Grotere schermen: zwevende kaart linksonder. */
@media (min-width: 48rem) {
  .cookie-banner {
    left: 2rem;
    right: auto;
    bottom: 2rem;
    width: 24rem;
    padding: 1.35rem 1.5rem 1.5rem;
    border-top: 0;
    border-left: 4px solid var(--turquoise);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(3, 12, 26, 0.5);
  }
  @keyframes cookie-in {
    from { transform: translateY(1rem); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

/* ---------- 404 ---------- */

.notfound h1 { max-width: none; }
.notfound .cta { align-items: flex-start; }

/* ---------- Grotere schermen ---------- */

@media (min-width: 30rem) {
  .cta { flex-direction: row; align-items: center; gap: 1.25rem; }
  .cta-note { text-align: left; }
}

@media (min-width: 48rem) {
  /* Tablet en laptop: compacte route als eigen strook boven de tekst. */
  .route-corner, .route-corner.is-ready { display: none; }
  .route-compact { display: block; }
  :root { --gutter: 2rem; }
  .top-logo { width: 11rem; }
  .hero { padding-block: 4rem 3rem; }
  h1 { font-size: clamp(3.5rem, 8vw, 4.75rem); }
  .h1-kicker { font-size: 1.125rem; margin-bottom: 0.9rem; }
  .lead { font-size: 1.1875rem; }
}

@media (min-width: 64rem) {
  .route-compact { display: none; }
  .page { padding-block: 2rem; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3rem;
  }
  h1 { font-size: 5.25rem; }
  .route {
    display: block;
    width: 100%;
    height: auto;
    max-width: 26rem;
    justify-self: end;
    opacity: 1;
  }
}

/* ---------- Animaties ---------- */

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes travel {
  to { stroke-dashoffset: -280; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot::after, .route-line, .cookie-banner { animation: none; }
  .btn { transition: none; }
}
