/* Meditalks – zelfstandige stylesheet, geen externe afhankelijkheden */

:root {
  --ink: #1d1d1b;
  --ink-soft: #3e423c;
  --muted: #5c6358;
  --line: #dfe3d6;
  --paper: #f4f5f0;
  --paper-2: #eef1e6;
  --white: #ffffff;
  --accent: #97c11f;
  --accent-dark: #4d6d08;
  --accent-soft: #eef6d4;
  --gray: #9a9a9a;
  --danger: #8a1f1f;
  --danger-bg: #fdecec;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 29, 27, 0.05), 0 8px 24px rgba(29, 29, 27, 0.06);
  --max: 70rem;
  --narrow: 42rem;
  --header-h: 4.25rem;
  --font: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  outline-color: var(--accent);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  padding: 0.35rem 0;
}

.brand-top,
.brand-bottom {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  font-weight: 800;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 0.18em;
  color: var(--ink);
}

.brand-plus {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  background: var(--accent);
  border-radius: 0.12em;
  position: relative;
  flex-shrink: 0;
}

.brand-plus::before,
.brand-plus::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 1px;
}

.brand-plus::before {
  width: 0.16em;
  height: 0.48em;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-plus::after {
  width: 0.48em;
  height: 0.16em;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-bottom {
  color: var(--gray);
  margin-top: 0.12em;
  letter-spacing: 0.105em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Hero */

.hero {
  position: relative;
  padding: 3.25rem 0 3.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -2rem;
  width: 22rem;
  height: 22rem;
  border-radius: 2rem;
  background: var(--accent-soft);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 46rem);
  margin-inline: auto 0;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 760;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #88b116;
  border-color: #88b116;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* Sections */

.section {
  padding: 3.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Audience list */

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}

.audience strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
}

.audience p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Specialism cards */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-tag.later {
  background: var(--paper-2);
  color: var(--muted);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--accent);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.4rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.timeline h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

/* CTA band */

.band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .section {
  border-top: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Form */

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  max-width: 38rem;
}

.form-error {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.9rem;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.field .label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--accent-dark);
  font-weight: 700;
}

.hint {
  display: block;
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #c9cebe;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d1b' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3 0 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
}

.checkbox input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent-dark);
  flex-shrink: 0;
}

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

.form-actions {
  margin-top: 1.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #e8eadf;
  padding: 2.25rem 0 2.5rem;
  margin-top: 0;
}

.site-footer a {
  color: #e8eadf;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.5rem;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.footer-meta,
.footer-links {
  margin: 0;
  font-size: 0.95rem;
  color: #c5c9ba;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
  padding: 0.7rem 0 0;
}

/* Inner pages */

.page-main {
  padding: 2.5rem 0 3.5rem;
}

.page-main h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
}

.legal p,
.legal ul {
  color: var(--ink-soft);
  max-width: 42rem;
}

.legal ul {
  padding-left: 1.2rem;
}

/* 404 / thanks */

.notice-page {
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
}

.notice-page h1 {
  margin: 0 0 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 0.15rem 0.95rem;
  }

  .hero {
    padding: 2.2rem 0 2.4rem;
  }

  .hero::after {
    width: 14rem;
    height: 14rem;
    right: -5rem;
    top: -3rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.4rem 0;
  }

  .form-panel {
    padding: 1.2rem 1rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    backdrop-filter: none;
  }
}

@media print {
  .site-header,
  .site-nav,
  .actions,
  .form-panel,
  .skip-link {
    display: none !important;
  }

  body,
  .site-footer {
    background: #fff;
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9em;
}

.notice-actions { margin-top: 1.5rem; }
