/* ══════════════════════════════════════════════════════════════════════════
   Lumexa B.V. — page styles.

   Layered on top of css/design-system.css (the "Modernist" token set that
   ships with the design: colours, type ramp, .btn / .input / .tag classes).
   Everything here is page furniture: layout, sections, spacing.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --gutter: clamp(20px, 5vw, 72px);
  --page-max: 1200px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }
body { margin: 0; text-wrap: pretty; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* [hidden] has to beat the display values the component classes set — the
   audience switch is a .seg (inline-flex) that starts out hidden. */
[hidden] { display: none !important; }

/* Visible to screen readers, not on screen. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Keyboard users land here first; visually hidden until focused. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  padding: 12px 18px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--color-bg); }

.container { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }

/* Small uppercase label that opens most sections. */
.kicker {
  display: block; font-size: 13px; line-height: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 14px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
}
.site-nav {
  max-width: var(--page-max); margin: 0 auto; height: var(--header-h);
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.header-spacer { height: var(--header-h); }

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-text); justify-self: start;
}
.brand:hover { color: var(--color-text); }
.brand svg { display: block; flex: none; }
.brand-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  white-space: nowrap; font-size: 14px; font-weight: 600;
  color: var(--color-neutral-800); text-decoration: none; padding: 8px 14px;
}
.nav-link:hover { color: var(--color-accent); background: var(--color-surface); }

.nav-cta { justify-content: flex-start; justify-self: end; padding: 10px 16px; }

/* Hamburger — hidden on desktop, swaps in for .nav-links below 720px. */
.nav-toggle {
  display: none; justify-self: end; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-right: -8px;
  background: transparent; border: 0; cursor: pointer; color: var(--color-text);
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: currentColor; transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle .bars::before { transform: translateY(-6px); }
.nav-toggle .bars::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg) translateY(-1px); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--color-bg);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent);
}
.mobile-menu[data-open="true"] { display: flex; }
.mobile-menu a {
  padding: 12px 0; font-size: 16px; font-weight: 600; text-decoration: none;
  color: var(--color-neutral-900);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--color-accent); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero-wrap { background: var(--color-bg); color: var(--color-text); }
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px clamp(32px, 5vw, 80px);
  align-items: stretch;
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.hero-body { display: flex; flex-direction: column; padding-bottom: clamp(48px, 7vw, 96px); }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-700); font-feature-settings: 'tnum' 1; margin-bottom: 24px;
}
.hero-eyebrow .rule { width: 28px; height: 2px; background: var(--color-accent); display: inline-block; flex: none; }

/* Audience switch — the design carries copy for both opdrachtgevers and
   kandidaten; this control picks which set the hero shows. */
.audience-switch { align-self: flex-start; margin-bottom: 34px; }
.audience-switch .seg-opt { font-weight: 600; }

.hero-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 0 -0.058em; max-width: 22ch;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--color-accent); }
.hero-lead {
  font-size: 18px; line-height: 30px; max-width: 50ch;
  margin: 36px 0 0; color: var(--color-neutral-800);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-actions .btn { justify-content: flex-start; padding: 14px 20px; font-size: 15px; }

.usp-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px; margin-top: auto; padding-top: 56px;
  font-size: 13px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700); font-feature-settings: 'tnum' 1;
}
.usp { display: flex; flex-direction: column; gap: 10px; }
.usp strong {
  font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 22px;
  letter-spacing: -0.01em; color: var(--color-text); text-transform: none;
}
.usp strong.accent { color: var(--color-accent); }

.hero-media { display: flex; flex-direction: column; margin-bottom: clamp(48px, 7vw, 96px); }
.hero-figure { margin: 0; flex: 1; min-height: 360px; overflow: hidden; position: relative; }
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%; display: block;
}

/* ── Generic section ─────────────────────────────────────────────────── */

.section { scroll-margin-top: 72px; padding: 84px 0 56px; }
.section-title {
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 56px; max-width: 24ch;
}
.section-title.tight { margin-bottom: 42px; }

/* ── Sectoren ────────────────────────────────────────────────────────── */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(50% - 24px)), 1fr));
  gap: 24px;
}
.sector-card { display: flex; flex-direction: column; background: var(--color-surface); }
.sector-figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.sector-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sector-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sector-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0;
  font-feature-settings: 'tnum' 1; color: var(--color-accent-700);
}
.sector-title { font-size: 24px; line-height: 28px; margin: 0; letter-spacing: -0.01em; }
.sector-copy { font-size: 15.5px; line-height: 26px; margin: 0; color: var(--color-neutral-800); flex: 1; }
.role-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role-list .tag { font-size: 12px; padding: 4px 10px; background: var(--color-bg); color: var(--color-neutral-900); }

/* ── Werkwijze ───────────────────────────────────────────────────────── */

.step {
  display: grid;
  grid-template-columns: 64px repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px clamp(24px, 4vw, 56px); align-items: baseline; padding: 28px 0;
}
.step-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px; line-height: 28px;
  margin: 0; font-feature-settings: 'tnum' 1; color: var(--color-accent);
}
.step-title { font-size: 24px; line-height: 28px; margin: 0; letter-spacing: -0.01em; }
.step-copy { font-size: 15.5px; line-height: 28px; margin: 0; color: var(--color-neutral-800); max-width: 52ch; }

/* ── Waarom Lumexa ───────────────────────────────────────────────────── */

.why {
  scroll-margin-top: 72px; padding: 84px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 42px clamp(24px, 5vw, 96px); align-items: start;
}
.why-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 20px; }
.why-lead { font-size: 15.5px; line-height: 28px; margin: 0; color: var(--color-neutral-800); max-width: 44ch; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px clamp(24px, 3vw, 40px); }
.why-item h3 { font-size: 18px; line-height: 24px; margin: 0 0 8px; }
.why-item p { font-size: 14.5px; line-height: 24px; margin: 0; color: var(--color-neutral-800); }

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact { scroll-margin-top: var(--header-h); background: var(--color-accent); color: var(--color-bg); margin-top: 28px; }
.contact-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 84px var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 42px clamp(24px, 5vw, 96px); align-items: start;
}
.contact-title {
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 0 -0.058em; color: var(--color-bg);
}
.contact-title span { display: block; }
.contact-lead { font-size: 17px; line-height: 28px; margin: 28px 0 0; max-width: 40ch; color: var(--color-bg); }
.contact-details { margin: 28px 0 0; font-size: 15px; line-height: 28px; color: var(--color-bg); }
.contact-details a { color: var(--color-bg); text-decoration: underline; }
.contact-details a:hover { color: var(--color-bg); text-decoration: none; }

.contact-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field { display: grid; gap: 5px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
/* Inputs sit on the accent panel, so they invert: light field, dark text. */
.contact-form .input { background: var(--color-bg); border-color: var(--color-bg); color: var(--color-text); }
.contact-form textarea.input { min-height: 72px; }
.contact-form :focus-visible { outline-color: var(--color-bg); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-actions .btn-submit { background: var(--color-bg); color: var(--color-accent-700); justify-content: flex-start; padding: 12px 18px; }
.form-actions .btn-submit:hover { background: var(--color-accent-100); }
.form-actions .btn-submit:disabled { opacity: 0.6; }
.form-status { font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
/* Honeypot: a field only a bot would fill in. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 42px 0 56px; font-size: 13px; line-height: 28px; color: var(--color-neutral-700);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
}
.site-footer svg { display: block; flex: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--color-accent); }

/* ── Cookiemelding ───────────────────────────────────────────────────── */

/* Vaste balk onderaan: buiten de normale flow, dus hij duwt niets omlaag en
   veroorzaakt geen layout shift wanneer JavaScript hem laat zien. */
.cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--color-text); color: var(--color-bg);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--color-bg) 20%, transparent);
}
.cookie-notice-inner {
  max-width: var(--page-max); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 16px clamp(20px, 4vw, 48px); flex-wrap: wrap;
}
.cookie-notice-text {
  margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 24px;
  color: color-mix(in srgb, var(--color-bg) 88%, transparent);
}
.cookie-notice-text a { color: var(--color-bg); text-underline-offset: 3px; }
.cookie-notice-text a:hover { color: var(--color-accent-300); }
.cookie-notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-notice-actions .btn { padding: 10px 18px; }
.cookie-notice-actions .btn-secondary {
  border-color: color-mix(in srgb, var(--color-bg) 40%, transparent);
  color: var(--color-bg);
}
.cookie-notice-actions .btn-secondary:hover {
  background: color-mix(in srgb, var(--color-bg) 14%, transparent);
}
.cookie-notice :focus-visible { outline-color: var(--color-bg); }

@media (max-width: 720px) {
  .cookie-notice-inner { padding: 16px var(--gutter); gap: 14px; }
  .cookie-notice-actions { width: 100%; }
  .cookie-notice-actions .btn { flex: 1; justify-content: center; }
}

/* ── Legal page (privacy + voorwaarden) ──────────────────────────────── */

.legal-head { max-width: var(--page-max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.legal-title {
  font-size: clamp(34px, 4.5vw, 60px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 20px -0.058em; max-width: 18ch;
}
.legal-lead { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 0; color: var(--color-neutral-800); }

.legal-layout {
  max-width: var(--page-max); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 48px clamp(32px, 5vw, 80px);
}
.legal-toc {
  position: sticky; top: 88px; align-self: start;
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px;
}
.legal-toc .toc-label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700); margin-bottom: 10px;
}
.legal-toc a { color: var(--color-neutral-800); text-decoration: none; padding: 4px 0 4px 14px; }
.legal-toc a:hover { color: var(--color-accent); }
.legal-toc a.toc-top { color: var(--color-text); padding: 6px 0; font-weight: 600; }
.legal-toc a.toc-top + .toc-spacer { margin-top: 14px; }
.legal-toc a.toc-top.spaced { margin-top: 14px; }

.legal-body {
  grid-column: span 2; min-width: 0; max-width: 72ch;
  font-size: 16px; line-height: 28px; color: var(--color-neutral-900);
}
.legal-body section { scroll-margin-top: 88px; }
.legal-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 20px; }
.legal-body h3 { font-size: 20px; line-height: 28px; margin: 0 0 10px; scroll-margin-top: 88px; }
.legal-body p { margin: 0 0 8px; }
.legal-body p.intro { margin-bottom: 40px; }
.legal-body p.end-of-article { margin-bottom: 32px; }
.legal-body p.end-of-section { margin-bottom: 72px; }
.legal-card {
  background: var(--color-surface); padding: 20px 24px; margin: 0 0 32px;
  font-size: 15px; line-height: 26px;
}
.legal-card p { margin: 0; }

/* ── Thank-you / 404 ─────────────────────────────────────────────────── */

.centered-page {
  max-width: var(--page-max); margin: 0 auto;
  padding: clamp(56px, 10vw, 128px) var(--gutter) clamp(64px, 12vw, 160px);
  display: flex; flex-direction: column; align-items: flex-start;
}
.centered-page h1 {
  font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 20px -0.058em; max-width: 18ch;
}
.centered-page p { font-size: 17px; line-height: 28px; max-width: 52ch; margin: 0 0 32px; color: var(--color-neutral-800); }
.centered-page .btn { justify-content: flex-start; padding: 14px 20px; font-size: 15px; }

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { grid-template-columns: 1fr auto; }

  .hero { padding-top: 24px; gap: 32px; }
  .hero-title { font-size: clamp(32px, 9.5vw, 40px); }
  .hero-lead { font-size: 16px; line-height: 26px; margin-top: 24px; }
  .hero-media { order: -1; margin-bottom: 0; }
  .hero-figure { min-height: 0; aspect-ratio: 4 / 3; }
  .usp-grid { grid-template-columns: 1fr 1fr; }

  .section { padding-top: 56px; padding-bottom: 32px; }
  .section-title { font-size: 26px; margin-bottom: 28px; }
  .why { padding-top: 56px; padding-bottom: 32px; }
  .why-title { font-size: 26px; }

  .step { grid-template-columns: 1fr; padding: 20px 0; gap: 8px; }
  .step-title { font-size: 20px; line-height: 26px; }

  .contact-inner { padding-top: 56px; padding-bottom: 56px; }
  .contact-title { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; }
  .legal-toc { position: static; }
}
