/* ==========================================================================
   NomaLab — strak & minimaal thema
   ========================================================================== */

:root {
  --accent:        #4bba57;
  --accent-dark:   #2f9d44;
  --accent-soft:   #eaf7ec;
  --ink:           #16201a;
  --ink-soft:      #3d4a42;
  --muted:         #6b7671;
  --line:          #e7ebe8;
  --surface:       #f7f9f7;
  --bg:            #ffffff;
  --radius:        14px;
  --shadow:        0 1px 2px rgba(20,40,25,.04), 0 12px 30px rgba(20,40,25,.06);
  --maxw:          1080px;
  --font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }

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

/* ---- Header / navigatie ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 98px; gap: 24px; padding-top: 4px; padding-bottom: 4px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 1.12rem; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.brand small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.active { color: var(--accent-dark); background: var(--accent-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(75,186,87,.28);
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--accent-dark); box-shadow: none; border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

/* ---- Main ---- */
main { min-height: 60vh; }
.section { padding: 72px 0; }

/* ---- Hero (home) ---- */
.hero { padding: 96px 0 80px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 54ch; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Feature row ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,40,25,.10); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.card h3 { margin: 0 0 .3em; }
.card p { margin: 0; font-size: .97rem; }

/* ---- Section heading ---- */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.section-head h2 { margin: .2em 0 .3em; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* ---- Blog grid ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  display: flex; flex-direction: column; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20,40,25,.12); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .8rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.post-card h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card .excerpt { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.post-card .more { font-weight: 700; color: var(--accent-dark); font-size: .92rem; }

/* ---- Single post ---- */
.post { max-width: 760px; margin: 0 auto; }
.post .meta { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; margin-bottom: 14px; }
.post .hero-img { border-radius: var(--radius); overflow: hidden; margin: 26px 0 8px; box-shadow: var(--shadow); }
.post .hero-img img { width: 100%; }
.post-content { font-size: 1.08rem; }
.post-content img { border-radius: var(--radius); margin: 1.6em 0; box-shadow: var(--shadow); }
.post-content blockquote { margin: 1.6em 0; padding: 8px 22px; border-left: 3px solid var(--accent); color: var(--ink); font-style: italic; background: var(--surface); border-radius: 0 8px 8px 0; }

.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 8px; }

/* ---- Prose (about) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; color: var(--ink-soft); }

/* ---- Contact strip ---- */
.strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.strip h2 { margin: 0; }

/* ---- Logo ---- */
.brand .logo { height: 90px; width: auto; display: block; }

/* ---- Portal button in nav ---- */
.nav .btn { padding: 9px 16px; font-size: .9rem; }
.btn.portal { box-shadow: 0 6px 16px rgba(75,186,87,.26); }

/* ---- Footer ---- */
.site-footer { padding: 54px 0 34px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer strong { display: block; color: var(--ink); margin-bottom: 6px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-dark); }
.foot-portal { display: inline-block; font-weight: 700; color: var(--accent-dark) !important; margin-top: 4px; }
.foot-legal { display: block !important; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); grid-template-columns: none; }

/* ---- Locaties (contact) ---- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 40px; }
.loc-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.loc-card h3 { margin: 0 0 .3em; display: flex; align-items: center; gap: 8px; }
.loc-card .pin { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.loc-card address { font-style: normal; color: var(--ink-soft); line-height: 1.8; }
.loc-card address a { font-weight: 600; }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 20px; max-width: 320px; margin: 6px 0 40px; color: var(--ink-soft); }
.hours span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--muted); }

/* ---- Contactformulier ---- */
.contact-form { max-width: 620px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--bg); transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .buttons button, .contact-form button[type="submit"] {
  background: var(--accent); color: #fff; font-weight: 700; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 6px 18px rgba(75,186,87,.28); transition: transform .18s ease, background .18s ease;
}
.contact-form .buttons button:hover, .contact-form button[type="submit"]:hover { background: var(--accent-dark); transform: translateY(-2px); }
.form-messages { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.form-messages .notice { background: var(--accent-soft); color: var(--accent-dark); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* ---- Content-afbeeldingen ---- */
.media-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 8px 0 0; }
.media-figure img { width: 100%; display: block; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split .prose { margin: 0; }
.split .media-figure img { width: 100%; max-height: 460px; object-fit: cover; }

/* ---- Accreditatie-badges ---- */
.badges { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: center; padding: 10px 0; opacity: .9; }
.badges img { height: 66px; width: auto; }

@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .loc-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .features, .post-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .brand small { display: none; }
}

/* ==========================================================================
   Soepele overgangen tussen pagina's
   ========================================================================== */

/* Moderne browsers: native cross-document View Transitions */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: fade-out .28s ease both; }
::view-transition-new(root) { animation: fade-in  .38s ease both; }

@keyframes fade-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fade-in  { from { opacity: 0; transform: translateY(10px); } }

/* JS-fallback voor browsers zonder View Transitions */
.js-fade main { animation: page-in .45s cubic-bezier(.22,.61,.36,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body.is-leaving main { opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease; }

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

/* ---- Contact: acties + portaal-CTA ---- */
.contact-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.contact-actions .btn { padding: 10px 18px; font-size: .92rem; }
.portal-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 44px; flex-wrap: wrap; }
.portal-cta strong { display: block; font-size: 1.12rem; color: var(--ink); }
.portal-cta p { margin: .2em 0 0; color: var(--ink-soft); }

/* ---- Diensten: service-blokken ---- */
.media-figure.banner img { width: 100%; max-height: 380px; object-fit: cover; }

.service-block { margin: 48px 0; }
.split.reverse figure { order: 2; }

/* ---- Werken bij: vacatures ---- */
.vacancy { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow); margin-bottom: 26px; }
.vacancy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.vacancy h3 { margin: 0 0 10px; font-size: 1.4rem; }
.vacancy h4 { margin: 0 0 .5em; font-size: 1.02rem; }
.vacancy-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.vacancy-intro { margin: 18px 0 22px; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin: .55em 0; color: var(--ink-soft); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: .15em; color: var(--accent-dark); font-weight: 800; background: var(--accent-soft); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }
.vacancy-contact { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.vacancy-contact a { font-weight: 600; }

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 18px; }
  .vacancy-head .btn { align-self: stretch; justify-content: center; }
}
