/* =========================================================
   Aim Today – stijlblad
   ========================================================= */
:root {
  --blue: #17607f;
  --blue-strong: #0b6d96;
  --blue-dark: #0f4a63;
  --orange: #f26f3d;
  --orange-dark: #d95a2b;
  --tint: #edf4f7;
  --ink: #1d2730;
  --muted: #4d5b66;
  --line: #d9e3e8;
  --white: #ffffff;

  --radius: 4px;
  --container: 1160px;
  --header-h: 72px;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--orange); color: var(--white); padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--orange-dark); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 44px; width: auto; }
.logo-sm img { height: 34px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* geen backdrop-filter: die breekt het fixed mobiele menu */
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(15,74,99,.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; align-items: center; gap: 32px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.menu > li { position: relative; }
.menu > li > a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: 16px;
  padding: 8px 0; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.menu > li > a:hover, .sub-toggle:hover, .has-sub.current > .sub-toggle { color: var(--blue-strong); border-color: var(--orange); }
.sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }

/* Dropdown */
.submenu {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 10px); left: -18px; width: 340px;
  background: var(--white); border-top: 4px solid var(--orange);
  box-shadow: 0 18px 40px rgba(15,74,99,.16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover-brug */
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu a {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; text-decoration: none; color: var(--ink);
  transition: background-color .15s;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--tint); }
.submenu .sub-num { color: var(--orange); font-weight: 800; font-size: 14px; line-height: 1.5; min-width: 20px; font-variant-numeric: tabular-nums; }
.submenu strong { display: block; color: var(--blue-strong); font-size: 16px; }
.submenu small { display: block; color: var(--muted); font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--blue); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow .bar { width: 46px; height: 10px; background: var(--orange); }
.eyebrow-light { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--blue); color: var(--white);
  padding: 120px 0 110px; overflow: hidden;
}
.hero::after, .contact::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; background: var(--orange);
}
.hero::before, .contact::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: var(--orange);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 30px; }
.hero h1 span { display: block; }
.accent { color: var(--orange); }
.hero h1 { margin-bottom: 40px; }
.hero h1 .hero-keywords {
  max-width: 34em; margin-top: 24px;
  font-size: clamp(17px, 1.9vw, 21px); font-weight: 500; letter-spacing: 0; line-height: 1.5;
  color: rgba(255,255,255,.88);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.hero-services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 56px;
}
.hero-services li { display: flex; align-items: center; gap: 12px; }
.hero-services li::before { content: ""; width: 12px; height: 12px; background: var(--orange); flex: none; }
.hero-services a { color: var(--white); text-decoration: none; font-size: 18px; }
.hero-services a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* decoratieve vliegtuig in hero */
.hero .container::after {
  content: ""; position: absolute; right: -40px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74.7 81.98'%3E%3Cpolygon fill='%23ffffff' fill-opacity='.07' points='70.12 0 21.05 25.19 28.83 32.16 61.5 14.21 47.19 48.63 54.96 55.61 74.7 4.12 70.12 0'/%3E%3Cpolygon fill='%23f36c3e' fill-opacity='.22' points='21.05 25.19 12.08 29.7 28.15 44.12 0 75.5 7.22 81.98 35.38 50.6 51.4 64.98 54.96 55.61 21.05 25.19'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none; z-index: -1;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-title, .sub-title { color: var(--blue-strong); font-weight: 700; }
.section-title { font-size: clamp(26px, 3vw, 32px); margin-bottom: 32px; }
.sub-title { font-size: 22px; margin: 56px 0 22px; }

.sub-title.first { margin-top: 0; }

/* Dienstkaarten */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.services-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.other-services { background: var(--tint); }
.other-services .service-card { background: var(--white); }
.service-card {
  display: block; position: relative; text-decoration: none; color: var(--ink);
  background: var(--tint); padding: 28px 30px 26px 34px;
  border-left: 7px solid var(--blue-strong);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover, .js .service-card.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,74,99,.12); border-color: var(--orange); }
.service-card .num { color: var(--orange); font-weight: 800; font-size: 14px; display: block; margin-bottom: 6px; }
.service-card h3 { color: var(--blue-strong); font-size: 22px; margin-bottom: 8px; }
.service-card .tagline { font-style: italic; color: var(--muted); margin-bottom: 10px; }
.service-card p:last-of-type { margin-bottom: 18px; }
.service-card .more { color: var(--blue-strong); font-weight: 700; font-size: 15px; }
.service-card:hover .more { color: var(--orange-dark); }

/* Principes */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.principle { border-top: 7px solid var(--orange); padding-top: 18px; }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { color: var(--muted); margin: 0; }

/* ---------- Dienstpagina ---------- */
.page-hero {
  position: relative; background: var(--blue-strong); color: var(--white);
  padding: 40px 0 72px; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; background: var(--orange); }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--orange); }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 44px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 8px; }
.page-hero-title { display: flex; align-items: center; gap: 36px; }
.band-num { font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 8px; }
.page-hero-title p { margin: 0; color: rgba(255,255,255,.88); font-size: clamp(18px, 2vw, 21px); }

.service { padding: 80px 0 96px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.prose strong { color: var(--blue-strong); font-weight: 700; }

.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: #dbe9f0; color: var(--blue-strong); font-weight: 700; font-size: 15px; padding: 4px 12px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.value {
  background: var(--tint); border-top: 7px solid var(--orange);
  padding: 22px 24px; min-height: 120px;
}
.section-tint .value { background: var(--white); }
.value h3 { color: var(--blue-strong); font-size: 17px; margin-bottom: 8px; }
.value p { margin: 0; }

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 36px;
}
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--blue-strong); color: var(--white); font-weight: 800;
}
.steps li::after {
  content: ""; position: absolute; top: 17px; left: 48px; right: -24px; height: 2px; background: var(--line);
}
.steps li:nth-child(3n)::after, .steps li:last-child::after { display: none; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--blue); color: var(--white); padding: 110px 0 130px; overflow: hidden; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.contact h2 span { display: block; }
.contact-lead { font-size: 19px; color: rgba(255,255,255,.9); max-width: 620px; margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list a {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; background: rgba(255,255,255,.08);
  border-left: 5px solid var(--orange);
  color: var(--white); text-decoration: none; font-weight: 700; font-size: 18px;
  transition: background-color .2s, transform .2s;
}
.contact-list a:hover { background: rgba(255,255,255,.16); transform: translateX(4px); }
.contact-list svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.contact-list small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- Referenties ---------- */
.eyebrow-dark { color: var(--blue-strong); margin-bottom: 14px; }
.references { position: relative; overflow: hidden; }
.references::before { /* subtiele pijl uit het logo als decoratie */
  content: ""; position: absolute; right: -60px; top: 40px; width: 360px; height: 400px;
  background: url("../img/arrow2.svg") no-repeat center / contain; opacity: .05; pointer-events: none;
}
.ref-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.ref-head .section-title { margin-bottom: 0; }
.ref-intro { max-width: 440px; color: var(--muted); margin: 0; }

.ref-featured, .ref-grid { list-style: none; margin: 0; padding: 0; position: relative; }
.ref-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.ref-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ref-grid .ref { flex: 0 0 calc((100% - 3 * 16px) / 4); }

.ref {
  --s: 1;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--tile-bg, var(--white));
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ref-lg { aspect-ratio: 16 / 9; border-top: 6px solid var(--orange); box-shadow: 0 10px 30px rgba(15,74,99,.08); }
.ref.ref-dark { border-color: transparent; }
.ref img {
  position: absolute; top: 50%; left: 50%;
  width: min(92%, calc(66% * var(--s))); height: min(86%, calc(52% * var(--s)));
  object-fit: contain; transform: translate(-50%, -50%);
  transition: transform .4s ease;
  mix-blend-mode: multiply; /* witte/gebroken-witte achtergronden van jpg's vallen weg */
}
.ref-dark img { mix-blend-mode: lighten; } /* donkere logo-achtergrond valt weg tegen de tegel */
.ref-lg img { width: min(92%, calc(70% * var(--s))); height: min(86%, calc(56% * var(--s))); }

/* oranje lijn + naam bij hover */
.ref::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.ref-name {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-strong); background: var(--white); padding: 3px 8px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.ref:hover, .js .ref.reveal.in:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,74,99,.14); }
.ref:hover::after { transform: scaleX(1); }
.ref:hover img { transform: translate(-50%, -50%) scale(1.04); }
.ref:hover .ref-name { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer-links a:hover { color: var(--blue-strong); text-decoration: underline; }
.footer-contact { margin: 0; color: var(--blue-strong); font-size: 15px; width: 100%; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-contact a { color: var(--blue-strong); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact .sep { margin: 0 10px; color: var(--line); }
.copy { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Reveal-animatie ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .logo img { height: 38px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 24px 32px; overflow-y: auto;
    /* gesloten: onzichtbaar op z'n plek (niet buiten beeld, anders horizontale scroll) */
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  /* ruimte vrijhouden naast de oranje balk rechts */
  .hero .container, .contact .container, .page-hero .container { padding-right: 52px; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a, .sub-toggle {
    display: flex; width: 100%; justify-content: space-between;
    padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line);
  }
  .menu > li > a:hover, .sub-toggle:hover, .has-sub.current > .sub-toggle { border-color: var(--line); }
  .has-sub:hover .sub-toggle svg { transform: none; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub-toggle svg { width: 14px; height: 14px; }

  /* submenu inklapbaar binnen het mobiele menu */
  .submenu {
    position: static; width: auto; padding: 0; box-shadow: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .submenu::before { display: none; }
  .submenu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 24px; padding: 14px; font-size: 17px; }

  .principles { grid-template-columns: repeat(2, 1fr); gap: 32px 22px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .services-grid-3 { gap: 12px; }
  .services-grid-3 .service-card { padding: 22px 18px 20px 22px; }
  .services-grid-3 .service-card h3 { font-size: 18px; overflow-wrap: anywhere; }
  .ref-featured { gap: 14px; }
  .ref-grid .ref { flex-basis: calc((100% - 2 * 16px) / 3); }
  .contact-inner { grid-template-columns: 1fr; }
  .hero .container::after { opacity: .5; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .logo img { height: 34px; }
  .hero { padding: 80px 0 90px; }
  .hero-services { grid-template-columns: 1fr; }
  .hero::after, .contact::after, .page-hero::after { width: 12px; }
  .hero::before, .contact::before { height: 12px; }
  .page-hero::before { height: 10px; }
  .page-hero { padding: 28px 0 56px; }
  .breadcrumb { margin-bottom: 32px; }
  .page-hero-title { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-hero .band-num { font-size: 40px; }
  .page-hero h1 { font-size: clamp(20px, 6.2vw, 28px); overflow-wrap: anywhere; }
  .hero .container, .contact .container, .page-hero .container { padding-right: 28px; }
  .section, .service { padding: 64px 0; }
  .services-grid, .services-grid-3, .two-col, .value-grid, .steps, .principles { grid-template-columns: 1fr; }
  .value { min-height: 0; }
  .ref-featured { grid-template-columns: 1fr; }
  .ref-lg { aspect-ratio: 2 / 1; }
  .ref-grid { gap: 12px; }
  .ref-grid .ref { flex-basis: calc((100% - 12px) / 2); }
  .references::before { display: none; }
  .contact { padding: 80px 0 96px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; }
  .footer-contact .sep { display: none; }
  .footer-contact a { display: block; }
}
