/* ==========================================================================
   SEA Automatisering, stylesheet
   Plain CSS, geen framework, geen build-stap.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Merkkleuren, afgeleid van het SEA-logo (#2D7197) */
  --brand-900: #0c3a55;
  --brand-800: #10496a;
  --brand-700: #15597f;
  --brand-600: #1c6b95;
  --brand-500: #2d7197;
  --brand-100: #dceaf3;
  --brand-50:  #f0f6fa;

  --accent-600: #0092b3;
  --accent-500: #00b0d8;

  --ink:        #10202c;
  --ink-soft:   #33495a;
  --muted:      #5f7488;
  --line:       #dfe7ee;

  --bg:         #ffffff;
  --surface:    #f5f8fb;
  --surface-2:  #eaf1f7;

  --ok:         #1f7a4d;
  --warn:       #9a5b00;

  --radius:     14px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 2px rgba(16, 32, 44, .06), 0 2px 8px rgba(16, 32, 44, .05);
  --shadow-md:  0 4px 12px rgba(16, 32, 44, .08), 0 12px 32px rgba(16, 32, 44, .07);

  --wrap:       1140px;
  --gap:        clamp(1.25rem, 3vw, 2.5rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
  text-wrap: balance;
  /* Lange samenstellingen ("Hardwareontwikkeling") passen op 320px niet in één
     regel en liepen anders buiten het kader. */
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }

p  { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-underline-offset: .18em; }
a:hover { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--gap) 0; }

/* De header is sticky; zonder dit verdwijnt een ankerdoel eronder. */
[id] { scroll-margin-top: 6rem; }

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--surface { background: var(--surface); }
.section--brand {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #e8f2f8;
}
.section--brand h2, .section--brand h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head p { color: var(--muted); font-size: 1.075em; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.section--brand .eyebrow { color: var(--accent-500); }

/* Skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--brand-700);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- Header / navigatie ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Bewust dekkend wit: het logo is een JPEG met een witte achtergrond en zou
     op een doorschijnende balk als een los wit blok over de hero heen vallen. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 168px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

.nav { display: flex; align-items: center; gap: .35rem; }
/* Alleen de bovenste lijst wordt een flexrij. Zou dit `.nav ul` zijn, dan is het
   specifieker dan `.sub` en worden ook de submenu-items naast elkaar gezet. */
.nav > ul {
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav .sub { margin: 0; list-style: none; }
.nav a {
  display: block;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .975rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav a:hover { background: var(--surface); color: var(--brand-700); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }

/* Dropdown */
.has-sub { position: relative; }
.has-sub > button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .8rem;
  font: inherit;
  font-size: .975rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.has-sub > button:hover { background: var(--surface); color: var(--brand-700); }
.has-sub > button::after {
  content: "";
  width: .4rem; height: .4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.has-sub > button[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.has-sub--active > button { color: var(--brand-700); background: var(--brand-50); }

.sub {
  /* Expliciet block: `.nav ul` zet display:flex en zou de items anders
     naast elkaar zetten en buiten het scherm duwen. */
  display: block;
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 250px;
  padding: .4rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
/* Onzichtbare brug over het gat tussen knop en paneel. Zonder dit verlaat de
   muis het menu-item onderweg en klapt het submenu dicht voor je erbij bent. */
.sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -.75rem;
  height: .75rem;
}
.sub[hidden] { display: none; }
.sub a { padding: .55rem .7rem; font-weight: 500; }

/* `.nav a` is specifieker dan `.header-cta`; daarom hier ook op .nav selecteren,
   anders erft de knop de donkere linkkleur en valt het contrast weg. */
.nav .header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.05rem;
  margin-left: .5rem;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-600);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.nav .header-cta:hover { background: var(--brand-700); color: #fff; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .has-sub > button { padding: .8rem .6rem; width: 100%; text-align: left; }
  .has-sub { position: static; }
  .has-sub > button { justify-content: space-between; }
  .sub {
    position: static;
    min-width: 0;
    margin: 0 0 .5rem .6rem;
    border: 0;
    border-left: 2px solid var(--brand-100);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 .5rem;
  }
  .nav .header-cta { margin: .75rem 0 0; justify-content: center; }
}

/* --- Knoppen ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--light { background: #fff; color: var(--brand-800); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-900); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #eaf3f9;
  background: var(--brand-900);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 42, 63, .94) 0%, rgba(12, 58, 85, .86) 45%, rgba(28, 107, 149, .62) 100%);
}
/* Los element binnen .wrap: zou .hero__inner zelf ook .wrap zijn, dan zet de
   max-width de breedte terug en centreert margin-inline:auto de tekst weg van
   de gutter waar het logo op staat. */
.hero__inner {
  padding-block: clamp(4rem, 11vw, 8rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lead {
  font-size: clamp(1.075rem, 1rem + .5vw, 1.3rem);
  color: #d3e6f1;
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .95rem;
  color: #bcd8e8;
}
.hero__meta strong { color: #fff; }

/* Compacte paginakop voor subpagina's */
.pagehead {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #dbebf5;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}
.pagehead h1 { color: #fff; margin-bottom: .35em; }
.pagehead p { max-width: 58ch; margin: 0; font-size: 1.075em; color: #c3ddec; }

/* Kruimelpad */
.crumbs {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .68);
}
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .55; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* --- Grid & kaarten ----------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.5vw, 1.85rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .975em; }
.card__link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card__link:hover { text-decoration: underline; }

/* Hele kaart klikbaar via de titel-link */
.card--link { position: relative; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--brand-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.card__icon svg { width: 24px; height: 24px; }

/* --- Lijsten ------------------------------------------------------------ */
.ticks { margin: 0 0 1.15em; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: .95rem;
  height: .5rem;
  border-left: 2.5px solid var(--accent-600);
  border-bottom: 2.5px solid var(--accent-600);
  transform: rotate(-45deg);
}
.section--brand .ticks li::before { border-color: var(--accent-500); }

.ticks--cols {
  columns: 2;
  column-gap: 2.5rem;
}
.ticks--cols li { break-inside: avoid; }
@media (max-width: 640px) { .ticks--cols { columns: 1; } }

/* --- Prose (tekstpagina's) ---------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.25em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.15em; }
.prose li { margin-bottom: .45rem; }
.prose > :last-child { margin-bottom: 0; }

.note {
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--surface);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95em;
  color: var(--muted);
}
.note p:last-child { margin-bottom: 0; }

.layout-aside {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}
.aside-card {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h3 { font-size: 1.1rem; }
.aside-card ul { margin: 0; padding: 0; list-style: none; }
.aside-card li + li { border-top: 1px solid var(--line); }
.aside-card li a {
  display: block;
  padding: .6rem 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.aside-card li a:hover { text-decoration: underline; }
.aside-card li a[aria-current="page"] { color: var(--ink); }

/* --- Statistieken / cijfers --------------------------------------------- */
.stats {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.stat__value {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--brand-700);
}
.section--brand .stat__value { color: #fff; }
.stat__label { font-size: .95rem; color: var(--muted); }
.section--brand .stat__label { color: #b9d6e7; }

/* --- Media + tekst ------------------------------------------------------ */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 55rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--flip .split__media { order: 2; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* --- CTA-blok ----------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; color: #c3ddec; max-width: 46ch; }

/* --- Contact ------------------------------------------------------------ */
.contact-list { margin: 0; }
.contact-list dt {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.4rem;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .25rem 0 0; font-size: 1.075rem; color: var(--ink); }
.contact-list dd a { font-weight: 600; text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }

.map-embed {
  border: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* --- Formulier ---------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.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 textarea,
.field select {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-500); }
.field textarea { min-height: 9rem; resize: vertical; }
.field--row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field--check { display: flex; gap: .65rem; align-items: start; }
.field--check input { width: auto; margin-top: .3rem; }
.field--check label { font-weight: 400; font-size: .925rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: #0c2230;
  color: #a9c2d1;
  padding-block: clamp(2.75rem, 6vw, 4rem) 0;
  font-size: .95rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: #cfe2ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: .55rem; }
/* In de donkere footer geen logo-afbeelding: de JPEG heeft een witte achtergrond
   en zou als een losse witte sticker ogen. Woordmerk in tekst oogt rustiger. */
.footer-brand {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}
.footer-brand span { font-weight: 400; color: #93b4c7; }
.footer-brand:hover { text-decoration: none; }
.footer-brand:hover span { color: #cfe2ee; }
.footer-legal {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .875rem;
  color: #7f9dae;
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }

.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #cfe2ee;
}
.social a:hover { background: var(--brand-600); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.125em; color: var(--muted); }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero__media, .btn, .cta-band { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
