/* Rust en Ruimte Thuis - stylesheet
   Kleuren: olijfgroen, taupe, beige. Rustig, veel witruimte, geen schaduwen. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --olijf: #5c6136;
  --olijf-donker: #444829;
  --olijf-licht: #7d8352;
  --taupe: #8f8578;
  --taupe-lijn: #d6cec2;
  --beige: #f4f0e9;
  --zand: #e9e2d6;
  --wit: #fbfaf7;
  --inkt: #2b2a26;

  --font: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --maat: 66ch;
  --breed: 1120px;
  --rand: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--inkt);
  background: var(--beige);
}

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
  color: var(--olijf-donker);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 500; color: var(--olijf); }
p { margin: 0 0 1.1em; max-width: var(--maat); }
strong { font-weight: 500; }
a { color: var(--olijf); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olijf-donker); }
ul { padding-left: 1.2em; max-width: var(--maat); }
li { margin-bottom: 0.4em; }
img { max-width: 100%; height: auto; display: block; }

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

.hand { font-family: var(--hand); font-weight: 500; font-size: 1.6em; color: var(--olijf); line-height: 1; }

.wrap { width: min(100% - 2 * var(--rand), var(--breed)); margin-inline: auto; }

.knop {
  display: inline-block;
  background: var(--olijf);
  color: var(--wit);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid var(--olijf);
  transition: background 0.2s;
}
.knop:hover { background: var(--olijf-donker); color: var(--wit); }
.knop-licht { background: transparent; color: var(--olijf); }
.knop-licht:hover { background: var(--zand); color: var(--olijf-donker); }

/* Header */
.kop { padding: 1.1rem 0; }
.kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo img { width: 128px; }
.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--inkt); text-decoration: none; font-weight: 400; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--olijf); border-color: var(--olijf); }
.menu-knop { display: none; background: none; border: 1px solid var(--taupe-lijn); border-radius: 999px; padding: 0.5rem 1rem; font: inherit; font-weight: 400; color: var(--inkt); cursor: pointer; }

@media (max-width: 800px) {
  .menu-knop { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--wit); border-top: 1px solid var(--taupe-lijn); border-bottom: 1px solid var(--taupe-lijn); padding: 0.5rem var(--rand); z-index: 10; }
  .menu.open { display: flex; }
  .menu li { margin: 0; }
  .menu a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--taupe-lijn); }
  .menu li:last-child a { border-bottom: 0; }
  .kop { position: relative; }
}

/* Uitklapmenu "Waarbij kan ik je helpen" */
.submenu { position: relative; }
.submenu-kop { display: inline-flex; align-items: center; gap: 0.35rem; }
.submenu-knop { background: none; border: 0; padding: 0.3rem 0.2rem; cursor: pointer; color: var(--inkt); display: inline-flex; align-items: center; }
.submenu-knop::after { content: ""; width: 0.45em; height: 0.45em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.submenu.open > .submenu-kop .submenu-knop::after { transform: translateY(1px) rotate(225deg); }
.submenu.actief > .submenu-kop > a, .submenu.open > .submenu-kop > a { color: var(--olijf); border-color: var(--olijf); }
.submenu-knop:hover { color: var(--olijf); }
.submenu-lijst { list-style: none; margin: 0; padding: 0.5rem 0; display: none; }
.submenu.open > .submenu-lijst, .submenu:hover > .submenu-lijst, .submenu:focus-within > .submenu-lijst { display: block; }
@media (min-width: 801px) {
  .submenu-lijst { position: absolute; top: calc(100% + 0.5rem); left: -1.2rem; min-width: 14rem; background: var(--wit); border: 1px solid var(--taupe-lijn); border-radius: 0.8rem; padding: 0.5rem 0; z-index: 20; }
  .submenu-lijst li { margin: 0; }
  .submenu-lijst a { display: block; padding: 0.55rem 1.2rem; border-bottom: 0; }
  .submenu-lijst a:hover, .submenu-lijst a[aria-current="page"] { background: var(--zand); color: var(--olijf-donker); }
}
@media (max-width: 800px) {
  .submenu-kop { display: flex; justify-content: space-between; border-bottom: 1px solid var(--taupe-lijn); }
  .submenu-kop > a { flex: 1; border-bottom: 0; }
  .submenu-knop { padding: 0.75rem 1rem; }
  .submenu:hover > .submenu-lijst { display: none; }
  .submenu.open > .submenu-lijst { display: block; }
  .submenu-lijst { padding: 0 0 0 1rem; }
}

/* Dienstenpagina: genummerde lijst met drie diensten */
.dienstenlijst { list-style: none; padding: 0; margin: 0; counter-reset: dienst; }
.dienstenlijst > li { counter-increment: dienst; display: grid; grid-template-columns: 72px 1fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--taupe-lijn); margin: 0; }
.dienstenlijst > li:first-child { border-top: 0; padding-top: 0; }
.dienstenlijst .icoon { width: 72px; height: 72px; border-radius: 50%; background: var(--zand); display: grid; place-items: center; }
.dienstenlijst .icoon svg { width: 34px; height: 34px; stroke: var(--olijf); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dienstenlijst h2::before { content: "0" counter(dienst); display: block; font-size: 0.95rem; color: var(--taupe); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.dienstenlijst h2 { margin-bottom: 0.2em; }
.dienstenlijst .sub { font-size: 1.15rem; color: var(--olijf); margin-bottom: 1rem; }
.dienstenlijst .knop { margin-top: 0.5rem; }
.dienstenlijst > li.met-foto { grid-template-columns: 72px 1fr 1fr; }
.dienst-foto { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 1.5rem; align-self: stretch; }
@media (max-width: 900px) { .dienstenlijst > li.met-foto { grid-template-columns: 72px 1fr; } .dienst-foto { grid-column: 2; max-height: 320px; } }
@media (max-width: 640px) { .dienstenlijst > li, .dienstenlijst > li.met-foto { grid-template-columns: 1fr; gap: 1rem; } .dienst-foto { grid-column: 1; } }

/* Secties */
.sectie { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sectie-zand { background: var(--zand); }
.sectie-wit { background: var(--wit); }
.sectie-olijf { background: var(--olijf); color: var(--beige); }
.sectie-olijf h2, .sectie-olijf h3, .sectie-olijf p, .sectie-olijf a { color: var(--beige); }
.sectie-olijf .knop { background: var(--beige); color: var(--olijf-donker); border-color: var(--beige); }
.sectie-olijf .knop:hover { background: var(--wit); }

.smal { max-width: 720px; }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 0.7em; }
.hero p { font-size: 1.15rem; }
.hero-beeld { justify-self: center; width: min(100%, 360px); }
.hero-acties { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.8rem; }
.hero-noot { font-size: 0.95rem; color: var(--taupe); margin: 0.8rem 0 0; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-beeld { display: none; }
}

/* Herkenning: lijst met korte zinnen */
.herken { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--maat); }
.herken li { padding: 0.9rem 0; border-top: 1px solid var(--taupe-lijn); margin: 0; }
.herken li:last-child { border-bottom: 1px solid var(--taupe-lijn); }

/* Diensten: drie kolommen met dunne scheidingslijnen, zoals op de flyer */
.diensten { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
.dienst { padding: 0 2rem; border-left: 1px solid var(--taupe-lijn); }
.dienst:first-child { padding-left: 0; border-left: 0; }
.dienst:last-child { padding-right: 0; }
.dienst .icoon { width: 72px; height: 72px; border-radius: 50%; background: var(--wit); display: grid; place-items: center; margin-bottom: 1.2rem; }
.dienst .icoon svg { width: 34px; height: 34px; stroke: var(--olijf); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dienst h3 { margin-bottom: 0.5em; }
.dienst p { font-size: 1rem; }
.dienst a.meer { font-weight: 400; }
@media (max-width: 800px) {
  .diensten { grid-template-columns: 1fr; gap: 0; }
  .dienst { padding: 1.75rem 0; border-left: 0; border-top: 1px solid var(--taupe-lijn); }
  .dienst:first-child { border-top: 0; padding-top: 0; }
}

/* Twee kolommen tekst */
.twee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .twee { grid-template-columns: 1fr; } }

/* Stappen (werkwijze is een volgorde, dus genummerd) */
.stappen { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: stap; max-width: var(--maat); }
.stappen li { counter-increment: stap; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--taupe-lijn); margin: 0; }
.stappen li::before { content: counter(stap); font-size: 1.6rem; font-weight: 300; color: var(--olijf); line-height: 1.1; }
.stappen h3 { margin-bottom: 0.25em; }
.stappen p { margin: 0 0 0.6em; }
.stappen p:last-child { margin-bottom: 0; }

/* Resultaten */
.resultaten { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; max-width: 820px; }
.resultaten li { padding-left: 1.6rem; position: relative; margin: 0; }
.resultaten li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border: 1px solid var(--olijf); border-radius: 50%; background: var(--olijf-licht); }
@media (max-width: 640px) { .resultaten { grid-template-columns: 1fr; } }

/* Tarief */
.tarief { background: var(--wit); border: 1px solid var(--taupe-lijn); border-radius: 1.5rem; padding: 2rem 2.25rem; max-width: 560px; }
.tarief .bedrag { font-size: 2.6rem; font-weight: 300; color: var(--olijf-donker); line-height: 1; margin: 0.2em 0 0.35em; }
.tarief .bedrag small { font-size: 1rem; color: var(--taupe); margin-left: 0.4rem; }
.tarief p { font-size: 1rem; }
.tarief ul { font-size: 1rem; }

.kosten { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--maat); }
.kosten li { padding: 0.7rem 0; border-top: 1px solid var(--taupe-lijn); margin: 0; }
.kosten li:last-child { border-bottom: 1px solid var(--taupe-lijn); }

/* Citaat / uitgelicht */
.uitgelicht { border-left: 2px solid var(--olijf); padding-left: 1.5rem; margin: 2rem 0; max-width: var(--maat); }
.uitgelicht p { font-size: 1.2rem; font-weight: 300; margin: 0; }

/* Kennismaking-blok */
.kennismaken .wrap { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
.kennismaken .hart { width: 120px; height: 120px; border-radius: 50%; background: var(--zand); display: grid; place-items: center; }
.kennismaken .hart svg { width: 54px; height: 54px; fill: var(--olijf); stroke: var(--olijf-donker); stroke-width: 1; }
.kennismaken h2 { margin-bottom: 0.3em; }
.contactregels { list-style: none; padding: 0; margin: 1rem 0 0; }
.contactregels li { display: flex; gap: 0.7rem; align-items: center; margin: 0 0 0.4rem; }
.contactregels svg { width: 20px; height: 20px; stroke: var(--olijf); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contactregels a { text-decoration: none; }
.contactregels a:hover { text-decoration: underline; }
@media (max-width: 640px) { .kennismaken .wrap { grid-template-columns: 1fr; } }

/* Formulier */
.form { max-width: 560px; }
.veld { margin-bottom: 1.2rem; }
.veld label { display: block; font-weight: 400; margin-bottom: 0.35rem; }
.veld input, .veld textarea, .veld select {
  width: 100%; font: inherit; font-weight: 300; color: var(--inkt);
  padding: 0.75rem 0.9rem; border: 1px solid var(--taupe-lijn); border-radius: 0.6rem; background: var(--wit);
}
.veld input:focus, .veld textarea:focus, .veld select:focus { border-color: var(--olijf); outline: none; }
.veld textarea { min-height: 150px; resize: vertical; }
.veld-verborgen { position: absolute; left: -9999px; }
.form .knop { border: 0; cursor: pointer; font: inherit; font-weight: 400; }
.melding { padding: 1rem 1.2rem; border-radius: 0.6rem; margin-bottom: 1.5rem; max-width: 560px; }
.melding-ok { background: #e3e8d3; color: var(--olijf-donker); }
.melding-fout { background: #efdcd4; color: #6b3a2a; }

/* Veelgestelde vragen */
.vragen details { border-top: 1px solid var(--taupe-lijn); padding: 0.9rem 0; max-width: 720px; }
.vragen details:last-child { border-bottom: 1px solid var(--taupe-lijn); }
.vragen summary { cursor: pointer; font-weight: 400; color: var(--olijf-donker); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after { content: "+"; color: var(--olijf); font-weight: 300; font-size: 1.3rem; line-height: 1; }
.vragen details[open] summary::after { content: "\2013"; }
.vragen details p { margin-top: 0.8rem; font-size: 1rem; }

/* Footer, olijfband met hartjes zoals op de flyer */
.voet { background: var(--olijf); color: var(--beige); padding: 3rem 0 2rem; }
.voet .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.voet a { color: var(--beige); text-decoration: none; }
.voet a:hover { text-decoration: underline; }
.voet ul { list-style: none; padding: 0; margin: 0; }
.voet li { margin-bottom: 0.35rem; font-size: 0.98rem; }
.voet h3 { color: var(--beige); font-weight: 400; font-size: 1.05rem; margin-bottom: 0.8rem; }
.voet-logo img { width: 150px; margin-bottom: 1rem; }
.voet-slogan { font-size: 1rem; opacity: 0.9; }
.voet-onder { border-top: 1px solid rgba(244,240,233,0.25); margin-top: 2.5rem; padding-top: 1.2rem; font-size: 0.9rem; opacity: 0.85; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.voet-onder .hartjes { display: inline-flex; gap: 0.5rem; align-items: center; }
.voet-onder .hartjes svg { width: 16px; height: 16px; fill: none; stroke: var(--beige); stroke-width: 1.3; }
@media (max-width: 800px) { .voet .wrap { grid-template-columns: 1fr; } }

/* Paginakop (subpagina's) */
.paginakop { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.paginakop p { font-size: 1.15rem; }
.paginakop .hand { display: block; margin-bottom: 0.6rem; font-size: 1.7rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--olijf); color: var(--wit); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
