:root {
  --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  /* Kleuren uit het logo: donkerblauw huis, petrol vlam, taupe, rood hart */
  --bg: #f7f5f2;
  --bg-alt: #ebe9e4;
  --ink: #1b2733;
  --muted: #5d6a75;
  --accent: #3f7d8c;
  --accent-dark: #316372;
  --accent-warm: #b02a30;
  --line: #dbd7d0;
  --white: #ffffff;
  --header-bg: rgba(247, 245, 242, 0.95);
  --footer-bg: #1b2733;
  --footer-text: #ccd4da;
  --footer-head: #f7f5f2;
  --footer-dim: #93a0ab;
  --radius: 4px;
  --card-radius: 6px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
h1, h2, h3, .serif {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}
img { max-width: 100%; }
a { color: var(--accent-dark); }

/* ── Header / nav ── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand .mark { color: var(--accent); margin-right: 0.45rem; }
nav.main ul { list-style: none; display: flex; gap: 1.35rem; }
nav.main a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  padding-bottom: 2px;
}
nav.main a:hover, nav.main a.active { border-bottom: 2px solid var(--accent); }
#nav-toggle { display: none; }
label.hamburger { display: none; cursor: pointer; font-size: 1.6rem; line-height: 1; user-select: none; }
@media (max-width: 900px) {
  label.hamburger { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.5rem;
  }
  nav.main ul { flex-direction: column; gap: 0.9rem; }
  #nav-toggle:checked ~ nav.main { display: block; }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 5.5rem 1.5rem 4.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero .hero-logo {
  display: block;
  width: min(20rem, 68vw);
  height: auto;
  margin: 0 auto 1.75rem;
}
.hero .ornament {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.6em;
  margin-bottom: 1.75rem;
  user-select: none;
}
/* Zelfde lettergrootte als een sectiekop (h2) — feedback #48 */
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); max-width: 32ch; margin: 0 auto; }
.hero .sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .actions { margin-top: 2.5rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ── Page header (subpagina's) ── */
.page-header {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
/* Beeldmerk in de rechterhoek — op elke pagina behalve Home */
.page-header .beeldmerk {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 4.5rem;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 700px) {
  /* extra kopruimte: anders loopt een lange titel tegen het beeldmerk aan */
  .page-header { padding-top: 5.25rem; }
  .page-header .beeldmerk { width: 3rem; top: 1.2rem; right: 1rem; }
}
.page-header h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.page-header p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── Sections ── */
.section { max-width: 44rem; margin: 0 auto; padding: 3rem 1.5rem; }
.section.wide { max-width: 62rem; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1.1rem; }
.section h3 { font-size: 1.3rem; margin: 1.75rem 0 0.5rem; color: var(--accent-dark); }
.section p + p { margin-top: 1rem; }
.section ul { margin: 1rem 0 1rem 1.3rem; }
.section li { margin-bottom: 0.4rem; }
.section.alt { max-width: none; background: var(--bg-alt); }
.section.alt > .inner { max-width: 44rem; margin: 0 auto; }
.section.alt.wide > .inner { max-width: 62rem; }
.center { text-align: center; }

.divider {
  width: 3.5rem;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 2rem;
  opacity: 0.6;
}

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  text-align: center;
  color: var(--accent-dark);
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.quote .source {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.5rem; color: var(--ink); }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--bg); }
.actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }
/* Lucht tussen een knoppenrij en de tekst of link die erop volgt */
.actions + p, .actions + ul, .actions + h2, .actions + h3 { margin-top: 1.75rem; }

/* ── Formulieren ── */
form.styled { max-width: 30rem; }
form.styled label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin: 1rem 0 0.3rem;
  letter-spacing: 0.02em;
}
form.styled input, form.styled textarea, form.styled select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
form.styled input:focus, form.styled textarea:focus, form.styled select:focus {
  outline: none;
  border-color: var(--accent);
}
form.styled textarea { min-height: 8rem; resize: vertical; }
@media (max-width: 700px) {
  /* 16px voorkomt dat iOS inzoomt op formuliervelden */
  form.styled input, form.styled textarea, form.styled select { font-size: 16px; }
}
form.styled button { margin-top: 1.4rem; width: 100%; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.4em; }
.form-status.ok { color: #3d6b3d; }
.form-status.error { color: #a04030; }

/* ── Afbeeldingen meesturen bij feedback ── */
.uploader { margin-top: 0.3rem; }
.uploader input[type="file"] {
  padding: 0.55rem 0.7rem;
  background: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}
.uploader .hint { font-size: 0.78rem; color: var(--muted); margin: 0.4rem 0 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.9rem; }
.thumbs:empty { margin-top: 0; }
.thumb {
  position: relative;
  width: 7rem;
  margin: 0;
  border: 1px solid var(--line);
  /* min(): het modern-thema heeft --radius 999px, dat vervormt een thumbnail */
  border-radius: min(var(--radius), 10px);
  overflow: hidden;
  background: var(--white);
}
.thumb img { display: block; width: 100%; height: 5rem; object-fit: cover; }
.thumb figcaption {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0.3rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb .weg {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.thumb .weg:hover { background: rgba(0, 0, 0, 0.8); }

/* Sectie met doorschijnende achtergrondfoto; de sluier gebruikt de
   themakleur, zodat de tekst in elk thema leesbaar blijft. */
.section.met-foto {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
}
.section.met-foto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
  opacity: 0.88;
  z-index: -1;
}

/* ── Foto's in de tekst ── */
figure.foto { margin: 1.8rem 0; }
/* height: auto is nodig: zonder deze regel wint het height-attribuut uit de HTML
   en wordt de afbeelding uitgerekt (logo op /nieuws stond smal en hoog) */
figure.foto img { display: block; width: 100%; height: auto; border-radius: min(var(--radius), 14px); }
figure.foto figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
figure.foto.smal { max-width: 26rem; }

/* ── Footer ── */
footer.site {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 3rem;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
}
footer.site .cols {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}
footer.site h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--footer-head);
  margin-bottom: 0.7rem;
}
footer.site a { color: var(--footer-text); }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 0.35rem; }
footer.site .motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
footer.site .bottom {
  max-width: 68rem;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: var(--footer-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
