/*
 * HelderHB. Kleuren uit het logo: leisteen (woordmerk), logoblauw (de lijn)
 * en geel (de vonk). Eén lettertype, Figtree, dicht bij het woordmerk.
 */

:root {
  --inkt: #1f2a37;
  --grijs: #4a5866;
  --blauw: #1d6f9c;        /* knoppen en links: 5,5:1 op wit */
  --blauw-donker: #155377;
  --logoblauw: #45a9d6;    /* lijnen en iconen, niet voor tekst */
  --vonk: #f2c12e;
  --lucht: #f2f8fb;
  --wolk: #e1eef5;
  --papier: #ffffff;
  --rand: #d3e2ea;
  --fout: #b42318;
  --goed: #1e6b45;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-height: 4.5rem;
  --radius: 0.75rem;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--inkt);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.375rem;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--papier);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--logoblauw);
  stroke-width: 1.75;
}

.icon-sm {
  width: 1.125rem;
  height: 1.125rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
}

.logo {
  height: 2.75rem;
  width: auto;
}

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    gap: 2rem;
  }

  .main-nav a {
    padding: 0.25rem 0;
    color: var(--grijs);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    color: var(--inkt);
    border-bottom-color: var(--logoblauw);
  }
}

/* Knoppen */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--blauw);
  color: var(--papier);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blauw-donker);
}

.button-small {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.button-quiet {
  background: transparent;
  color: var(--blauw);
  box-shadow: inset 0 0 0 1.5px var(--rand);
}

.button-quiet:hover {
  background: var(--lucht);
  color: var(--blauw-donker);
}

.button-block {
  width: 100%;
}

.button .icon {
  color: currentColor;
}

/* Hero: de illustratie wordt bij het laden scherp, "helderheid" */

.hero {
  background: linear-gradient(180deg, var(--papier) 0%, var(--lucht) 100%);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-top: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.lead {
  max-width: 34rem;
  color: var(--grijs);
  font-size: 1.1875rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Mobiel: de illustratie zacht achter de tekst; breed: een eigen kolom. */
.hero-text {
  position: relative;
  z-index: 1;
  padding-bottom: 3.5rem;
}

.hero-visual {
  position: absolute;
  inset: 0 -1rem;
  opacity: 0.35;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  /* Zachte overgang naar de achtergrond aan alle kanten. */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: verhelderen 1.6s ease-out both;
}

@keyframes verhelderen {
  from {
    filter: blur(14px) saturate(0.6);
    opacity: 0.4;
  }
  to {
    filter: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img {
    animation: none;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    min-height: calc(100svh - var(--header-height));
    max-height: 52rem;
    padding-top: 0;
  }

  .hero-text {
    padding: 4rem 0;
  }

  .hero-visual {
    position: static;
    margin: 0 -4rem 0 -2rem;
    opacity: 1;
  }

  .hero-visual img {
    height: auto;
    aspect-ratio: 1;
  }
}

/* Secties */

.section {
  padding: 5rem 0;
  scroll-margin-top: var(--header-height);
}

.section-tint {
  background: var(--lucht);
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}

.section-head h2,
.split-intro h2,
.contact-intro h2 {
  margin-bottom: 1rem;
}

.section-head p,
.split-intro p,
.contact-intro > p {
  color: var(--grijs);
  font-size: 1.125rem;
}

/* Over */

.split {
  display: grid;
  gap: 3rem;
}

.split-intro p {
  max-width: 38rem;
}

.features {
  display: grid;
  gap: 2rem;
}

.features li {
  display: flex;
  gap: 1rem;
}

.features .icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.features p,
.values p,
.route p,
.audience p {
  color: var(--grijs);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
  }
}

.statements {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

.statement {
  padding: 1.75rem 2rem;
  background: var(--lucht);
  border-radius: var(--radius);
}

.statement h3 {
  margin-bottom: 0.5rem;
  color: var(--blauw);
  font-size: 1rem;
}

.statement p {
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .statements {
    grid-template-columns: 1fr 1fr;
  }
}

/* Kernwaarden */

.values {
  display: grid;
  gap: 2.5rem 3rem;
}

.values .icon {
  margin-bottom: 0.875rem;
}

@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Werkwijze: een route van stap 1 naar 4 */

.route {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

.route li {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.route-node {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--papier);
  border: 2px solid var(--logoblauw);
  color: var(--blauw);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.route li:last-child .route-node {
  background: var(--logoblauw);
  color: var(--papier);
  border-color: var(--logoblauw);
}

/* Verbindingslijn: verticaal op mobiel, horizontaal op brede schermen. */
.route li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 2.75rem;
  bottom: -2.5rem;
  width: 2px;
  background: #a9d4e8;
}

.route h3 {
  padding-top: 0.5rem;
}

@media (min-width: 1024px) {
  .route {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .route li {
    flex-direction: column;
  }

  .route li:not(:last-child)::after {
    left: 2.75rem;
    right: -2rem;
    top: calc(1.375rem - 1px);
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .route h3 {
    padding-top: 0.25rem;
  }
}

/* Voor wie */

.audiences {
  display: grid;
  gap: 1.5rem;
}

.audience {
  padding: 2rem;
  background: var(--papier);
  border-radius: var(--radius);
  border: 1px solid var(--rand);
}

.audience .icon {
  margin-bottom: 1rem;
}

.audience h3 {
  margin-bottom: 0.75rem;
}

.audience > p {
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .audiences {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* De vonk uit het logo als opsommingsteken. */
.sparks li {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.375rem 0;
  border-top: 1px solid var(--lucht);
  font-weight: 500;
}

.sparks li::before {
  content: "";
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateY(0.0625rem);
  background: var(--vonk);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 4.6 10.9 12 12-7.4 1.1-11.2 5.4-12 12-.8-6.6-4.6-10.9-12-12C7.4 10.9 11.2 6.6 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.6 4.6 10.9 12 12-7.4 1.1-11.2 5.4-12 12-.8-6.6-4.6-10.9-12-12C7.4 10.9 11.2 6.6 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
  }
}

.person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem;
}

.person-photo {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--papier), 0 0 0 6px var(--wolk);
}

.person h3 {
  margin: 0;
  font-size: 1.375rem;
}

.person-role {
  color: var(--grijs);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-list li,
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--blauw);
  font-weight: 500;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  padding-left: 1rem;
  border-left: 3px solid var(--vonk);
  color: var(--grijs);
}

.note strong {
  color: var(--inkt);
  font-weight: 600;
}

.form-card {
  padding: 1.5rem;
  background: var(--lucht);
  border-radius: var(--radius);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
}

.form .field {
  margin-bottom: 1.125rem;
}

.form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--rand);
  border-radius: 0.5rem;
  background: var(--papier);
  color: var(--inkt);
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--blauw);
  outline: none;
  box-shadow: 0 0 0 3px rgb(29 111 156 / 0.2);
}

.form textarea {
  resize: vertical;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #6b7a88;
}

.form [aria-invalid="true"] {
  border-color: var(--fout);
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--fout);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .button {
  margin-top: 0.5rem;
}

.notice {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: var(--papier);
  border-left: 4px solid currentColor;
}

.notice a {
  color: inherit;
}

.notice-ok {
  color: var(--goed);
}

.notice-error {
  color: var(--fout);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 2rem;
  background: var(--inkt);
  color: #dbe5ec;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  height: 3rem;
  width: auto;
  padding: 0.375rem;
  background: var(--papier);
  border-radius: 0.75rem;
}

.credit {
  margin-top: 1.5rem;
  text-align: center;
  color: #aebdc9;
}

.credit a {
  color: #dbe5ec;
  text-underline-offset: 3px;
}

.credit a:hover {
  color: var(--papier);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 404 */

.not-found main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 100vh;
  padding: 1rem;
  text-align: center;
  background: var(--lucht);
}

.not-found h1 {
  font-size: 3rem;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--grijs);
}

.not-found a {
  color: var(--blauw);
  font-weight: 600;
}
