/* Stichting Cloud Native Netherlands - site styles */
:root {
  --blue: #0038A8;
  --blue-dark: #002A7F;
  --red: #C40E20;
  --ink: #14213D;
  --text: #3A4664;
  --tint: #F3F6FC;
  --line: #DDE3EE;
  --line-strong: #8A97B5;
  --navy: #0B1F4D;
  --navy-text: #D5DDF0;
  --heading: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #FFB000; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0; }
p { margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blue); padding: 12px 16px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header and menu */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); font-family: var(--heading); font-size: 22px; font-weight: 700; line-height: 1.1; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 4px; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line-strong); }
.site-nav a.is-active { font-weight: 600; border-bottom-color: #D91023; }
.site-nav a.btn--nav { color: #fff; padding: 12px 20px; border: 0; font-weight: 600; text-align: center; }
.site-nav a.btn--nav:hover { background: var(--blue-dark); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: #fff; border: 1px solid #B7C3DC; border-radius: 6px; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .site-header__inner { column-gap: 12px; padding-left: 16px; padding-right: 16px; }
  .brand { flex: 1 1 0; min-width: 0; font-size: 19px; gap: 10px; }
  .brand img { width: 44px; height: 44px; }
  .hero__logo img { width: 220px; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a.is-active { border-bottom: 1px solid var(--line); color: var(--blue); }
  .site-nav a.btn--nav { margin-top: 12px; }
}

/* Buttons and links */
.btn { display: inline-block; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration: none; padding: 12px 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--tint); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--tint); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-block; font-weight: 600; font-size: 16px; padding: 10px 0; }

/* Page sections */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.hero { background: var(--tint); }
.hero__inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 52px); line-height: 1.05; color: var(--blue); }
.hero__lead { font-size: 18px; max-width: 680px; }
.hero__inner--split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 72px; padding-bottom: 72px; }
.hero__inner--split .hero__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__inner--split h1 { font-size: clamp(40px, 7vw, 60px); }
.hero__inner--split .hero__lead { font-size: 19px; max-width: 560px; }
.hero__logo { flex: 1 1 280px; display: flex; justify-content: center; }
.hero__logo img { width: 320px; background: #fff; border-radius: 16px; padding: 16px; }
.hero__inner--profile { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px 48px; }
.hero__inner--profile .hero__text { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero__role { font-size: 18px; font-weight: 600; color: var(--ink); }

.section__inner { max-width: 1120px; margin: 0 auto; padding: 72px 24px; display: flex; flex-direction: column; gap: 32px; }
.section__inner--narrow { max-width: 820px; }
.section--tint { background: var(--tint); }
.section__head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.section h2 { font-size: clamp(32px, 5vw, 40px); }
.section h3 { font-size: 26px; }
.section__inner--split { flex-direction: row; flex-wrap: wrap; gap: 32px 64px; }
.section__inner--split > .section__head { flex: 1 1 280px; }
.section__inner--split > .section__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section__inner--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 64px; }
.section__inner--row > .section__head { flex: 999 1 420px; min-width: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.lead--small { font-size: 16px; line-height: 1.7; max-width: 760px; }

.facts { background: var(--blue); }
.facts__inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 32px 40px; }
.fact { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.fact__number { font-family: var(--heading); font-size: 48px; font-weight: 700; line-height: 1; color: #fff; }
.fact__label { font-size: 15px; line-height: 1.4; color: var(--navy-text); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.card { flex: 1 1 280px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.card h3 { color: var(--blue); }
.card .more { margin-top: auto; }
.member h3, .supporter h3 { color: var(--ink); font-size: 24px; }
.member__role { font-size: 15px; font-weight: 600; color: var(--red); }
.member p, .supporter p { font-size: 15px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.avatar--large { width: 200px; height: 200px; }
.supporter__logo { height: 72px; display: flex; align-items: center; }
.supporter__logo img { max-height: 72px; max-width: 180px; object-fit: contain; }
.supporter__person { font-weight: 600; color: var(--ink); }
.card--tint { background: var(--tint); border-color: var(--tint); }
.card--alert { border: 2px solid var(--red); }
.card--alert h3 { color: var(--red); }
.info { display: flex; flex-direction: column; gap: 2px; }
.info__label { font-size: 14px; }
.info__value { font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* Call to action band */
.cta { background: var(--red); }
.cta__inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; color: #fff; }
.cta h2 { font-size: clamp(30px, 5vw, 36px); color: #fff; }

/* Events */
.empty { border: 2px dashed #B7C3DC; border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.empty__title { font-size: 18px; font-weight: 600; color: var(--ink); }
.event-list { display: flex; flex-direction: column; gap: 24px; }
.event { border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.event__date { flex: 0 0 190px; font-family: var(--heading); font-size: 24px; font-weight: 700; color: var(--blue); }
.event__body { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.section .event__title { font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.event__photos { flex: 1 1 100%; display: flex; gap: 16px; margin-top: 8px; }
.event__photo { display: block; min-width: 0; height: auto; border-radius: 8px; object-fit: cover; background: var(--tint); }
/* Side by side at the same height: a 4:3 photo next to a 3:4 photo needs widths in ratio 16:9. */
.event__photo--wide { flex: 16 1 0; aspect-ratio: 4 / 3; }
.event__photo--tall { flex: 9 1 0; aspect-ratio: 3 / 4; }
@media (max-width: 640px) {
  .event__photos { flex-direction: column; }
  .event__photo--wide, .event__photo--tall { flex: none; width: 100%; }
}
.steps { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.step { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.step__number { font-family: var(--heading); font-size: 40px; font-weight: 700; line-height: 1; color: var(--red); }
.step__title { font-size: 18px; font-weight: 600; color: var(--ink); }

/* Long text */
.prose { gap: 18px; }
.prose h2 { font-size: 28px; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { overflow-wrap: anywhere; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 24px; }
.form__group { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.form__group h2 { font-size: 28px; }
.form__group > p { font-size: 15px; }
.form__fields { display: flex; flex-wrap: wrap; gap: 20px 24px; }
.field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field--wide { flex-basis: 100%; }
.field label, .fieldset legend { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px; }
.field textarea { resize: vertical; }
.required { color: var(--red); }
.fieldset { flex: 1 1 100%; border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fieldset legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 16px; color: var(--ink); }
.check input { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--blue); }
.check--wide { flex: 1 1 100%; }
.form.was-validated input:invalid, .form.was-validated select:invalid, .form.was-validated textarea:invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.form__status { font-weight: 600; color: var(--ink); min-height: 1.6em; }
.form__status.er-error { color: var(--red); }
.form__note { font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.site-footer__inner { max-width: 1120px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer__col--wide { flex-basis: 260px; }
.site-footer__name { font-family: var(--heading); font-size: 22px; font-weight: 700; }
.site-footer__label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-text); }
.site-footer p { color: var(--navy-text); }
.site-footer a { color: #fff; padding: 6px 0; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--navy-text); }

/* Small helpers */
.h3 { font-size: 26px; color: var(--blue); }
.card--alert .h3 { color: var(--red); }
.list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.card a { overflow-wrap: anywhere; }
