/* Olle Grieze Schoorsteenvegers
   Ontwerp "Gilde": flessengroen, koper en papier, een oud ambacht.
   Kleuren en letters staan hieronder als tokens; pas ze daar aan. */

:root {
  --green: #16302a;      /* de ondergrond */
  --paper: #f0e9d8;      /* papier, en de tekst op groen */
  --brass: #c9a24b;      /* koper: lijnen, prijzen, de knop */
  --brass-strong: #d9b562;
  --green-soft: #4d6159; /* gedempte tekst op papier */

  --display: "Zilla Slab", Rockwell, Georgia, serif;
  --text: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --step-small: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-title: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 2vw, 3rem);
  --step-display: clamp(2.6rem, 1rem + 5.4vw, 5.75rem);

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --pad-y: clamp(3.5rem, 6vw, 5.5rem);
  --max: 80rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green);
  color: var(--paper);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure, fieldset, blockquote, address { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
::selection { background: var(--brass); color: var(--green); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.section--paper :focus-visible, .calc :focus-visible, .contact :focus-visible { outline-color: var(--green); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--paper); color: var(--green); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* ---------- De lijst om de pagina ---------- */

.frame {
  margin: clamp(0.625rem, 1.4vw, 1.25rem);
  border: 1px solid var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: -8px;
}

/* ---------- Bouwstenen ---------- */

.head {
  font-family: var(--display); font-weight: 700; font-size: var(--step-head);
  line-height: 1.05; text-align: center; text-wrap: balance;
}
.head--left { text-align: left; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0.5rem 2rem;
  background: var(--brass); color: var(--green);
  font: 600 var(--step-small)/1.2 var(--text); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button--dark { background: var(--green); color: var(--paper); }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--brass-strong); }
  .button--dark:hover { background: #0d211c; }
}

.section { padding: var(--pad-y) var(--pad-x); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--ruled { border-top: 1px solid var(--brass); }
.section--paper { background: var(--paper); color: var(--green); }
.section__intro { max-width: 52ch; margin-top: 0.9rem; text-align: center; }

/* ---------- Eerste scherm ---------- */

.hero {
  padding: 1.25rem var(--pad-x) var(--pad-y);
  display: flex; flex-direction: column; align-items: center; gap: clamp(1.25rem, 2vw, 1.75rem);
  text-align: center;
}
.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1.25rem, 2.8vw, 2.5rem);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a {
  padding: 0.75rem 0; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.4em; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { text-decoration-color: var(--brass); color: var(--brass); }
}

.hero__arch {
  width: min(15rem, 62%, 26svh); min-width: 9.5rem; aspect-ratio: 3 / 4; overflow: hidden;
  border: 6px solid var(--brass); border-radius: 999px 999px 0 0; background: var(--paper);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; mix-blend-mode: multiply; }

.hero__text { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.hero__brand { font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.hero__title { font-family: var(--display); font-weight: 700; font-size: var(--step-display); line-height: 1; letter-spacing: -0.01em; }
.hero__lead { max-width: 46ch; font-size: calc(var(--step-body) * 1.12); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; }
.hero__phone { font-family: var(--display); font-size: var(--step-title); padding: 0.6rem 0; text-underline-offset: 0.2em; }

/* ---------- Ons werk ---------- */

.services {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr)); gap: 2.25rem 2.5rem;
}
.service { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.1rem; border-top: 3px double var(--brass); }
.service h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1; }
.service__price { margin-top: auto; padding-top: 0.5rem; font-family: var(--display); font-size: var(--step-title); color: var(--brass); }

/* ---------- Het veegbewijs ---------- */

.proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; }
.proof > * { margin-inline: 0; }
.proof__plate { flex: 0 1 12rem; background: var(--paper); }
.proof__plate img { width: 100%; mix-blend-mode: multiply; }
.proof__text { flex: 1 1 21rem; max-width: 32.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.proof__text blockquote { font-family: var(--display); font-style: italic; font-size: var(--step-title); line-height: 1.3; }
.proof__card { flex: 1 1 20rem; max-width: 26rem; padding: 1.6rem 1.75rem; border: 3px double var(--green); }
.proof__card h3 { margin-bottom: 0.6rem; text-align: center; font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1; }
.proof__card dl div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid var(--green); }
.proof__card dl div:last-child { border-bottom: 0; }
.proof__card dt { font-weight: 600; }
.proof__card dd { font-family: var(--display); font-style: italic; }

/* ---------- De gang van zaken ---------- */

.steps {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 2.25rem 3rem;
}
.steps__group { padding-top: 1.1rem; border-top: 3px double var(--brass); }
.steps__group h3 { margin-bottom: 0.7rem; font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1; }
.steps__group ul { display: grid; gap: 0.45rem; }
.steps__group li { display: flex; justify-content: space-between; gap: 1rem; }
.steps__group li span:last-child { color: var(--brass); white-space: nowrap; }
.steps__close { margin-top: 2.5rem; text-align: center; font-family: var(--display); font-style: italic; font-size: var(--step-title); line-height: 1.3; }

/* ---------- Tarieven ---------- */

.rates { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; align-items: stretch; }
.rates__list { flex: 1 1 23rem; }
.rates__list h3, .calc h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1; }
.rates__list h3 { padding-bottom: 0.75rem; margin-bottom: 0.6rem; border-bottom: 3px double var(--brass); }
.rates__list li { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.42rem 0; }
.rates__list li i { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted var(--brass); transform: translateY(-0.3em); }
.rates__list li span:last-child { font-family: var(--display); font-size: 1.375rem; color: var(--brass); white-space: nowrap; }
.rates__list > p { margin-top: 1.25rem; max-width: 52ch; }

.calc {
  flex: 1.15 1 26rem; padding: clamp(1.4rem, 2.6vw, 2.25rem);
  background: var(--paper); color: var(--green);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.calc legend, .calc__label { display: block; padding: 0; margin-bottom: 0.6rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.3rem 1rem;
  border: 1.5px solid var(--green);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip input:checked + span { background: var(--green); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.chip:active span { transform: scale(0.97); }

.js-only { display: none; }
.js .js-only { display: flex; }
.calc__stepper { flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.calc__stepper .calc__label { margin-bottom: 0; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--green); }
.stepper button {
  width: 3rem; height: 3rem; border: 0; border-radius: 0; background: transparent; color: var(--green);
  font: 600 1.5rem/1 var(--text); cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.stepper button:active { transform: scale(0.92); }
.stepper button:disabled { color: #8d978f; cursor: default; }
.stepper output { min-width: 2.75rem; text-align: center; font-weight: 600; }

.calc__result { margin-top: auto; padding-top: 1.4rem; border-top: 3px double var(--green); display: flex; flex-direction: column; gap: 0.75rem; }
.calc__total { font-family: var(--display); font-weight: 700; font-size: var(--step-display); line-height: 0.95; overflow: clip; }
.calc__total output { display: inline-block; }

/* ---------- Afspraak aanvragen: het formulier dat in het veegdashboard binnenkomt ---------- */

.request {
  position: relative; margin-top: 3rem; padding: clamp(1.4rem, 2.6vw, 2.5rem);
  background: var(--paper); color: var(--green);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 0 clamp(1.5rem, 3vw, 3rem);
  scroll-margin-top: 1.5rem;
}
.request__head h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-head); line-height: 1.05; }
.request__choice { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 3px double var(--green); }
.request__choice b { display: block; margin-top: 0.2rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: calc(var(--step-body) * 1.12); line-height: 1.35; }
.request__choice span { display: block; margin-top: 0.4rem; font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1; }
.request__note { margin-top: 1.25rem; color: var(--green-soft); }

.request__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.25rem; align-content: start; }
.field { grid-column: span 2; display: grid; gap: 0.3rem; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field--street { grid-column: span 3; }
.field--nr { grid-column: span 1; }
.field input, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.55rem 0.8rem;
  font: 400 var(--step-body)/1.4 var(--text); color: var(--green);
  background: #fbf7ec; border: 1.5px solid var(--green); border-radius: 0;
  transition: background-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--green-soft); opacity: 1; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 2px; background: #ffffff; }
.field input[aria-invalid="true"] { border-color: #a23b2a; box-shadow: inset 0 0 0 1.5px #a23b2a; }
.check { display: flex; align-items: center; gap: 0.7rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--green); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.request__foot { grid-column: 2; margin-top: 1.75rem; display: grid; gap: 0.9rem; }
.request__send { width: 100%; }
.request__send:disabled { opacity: 0.6; cursor: default; }
.request__status:empty { display: none; }
.request__status { padding: 0.9rem 1.1rem; border: 1.5px solid var(--green); }
.request__status.is-ok { background: var(--green); color: var(--paper); }
.request__status.is-fout { background: #f3ddd6; color: #7c2b20; border-color: #a23b2a; }

@media (max-width: 900px) {
  .request { grid-template-columns: 1fr; }
  .request__head { margin-bottom: 2rem; }
  .request__foot { grid-column: 1; }
}

/* ---------- Werkgebied ---------- */

.area { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 2.25rem 3rem; align-items: stretch; }
.area__map { flex: 1 1 23rem; display: flex; flex-direction: column; gap: 0.5rem; }
.area__frame { flex: 1; min-height: 24rem; border: 6px solid var(--green); background: var(--paper); overflow: hidden; }
.area__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 26% center; mix-blend-mode: multiply; }
.area__map figcaption { font-size: var(--step-small); color: var(--green-soft); }
.area__lists { flex: 1.1 1 25rem; display: flex; flex-direction: column; gap: 1.75rem; }
.area__group h3 {
  display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; padding-bottom: 0.6rem;
  border-bottom: 3px double var(--green);
  font-family: var(--display); font-weight: 700; font-size: var(--step-title); line-height: 1.1;
}
.area__group ul { display: grid; gap: 0.35rem; }
.area__group li { display: flex; justify-content: space-between; gap: 1rem; }
.area__group li span:last-child { font-family: var(--display); font-style: italic; text-align: right; }

/* ---------- Vragen ---------- */

.faq { margin-top: 2.5rem; columns: 2 24rem; column-gap: 4rem; column-rule: 1px solid var(--brass); }
.faq__item { break-inside: avoid; margin-bottom: 1.75rem; }
.faq__item h3 { margin-bottom: 0.35rem; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }

/* ---------- Afspraak ---------- */

.contact { background: var(--paper); color: var(--green); }
.contact__view { height: clamp(14rem, 26vw, 23rem); background: var(--paper); overflow: hidden; }
.contact__view img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; mix-blend-mode: multiply; }
.contact__body {
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--pad-x) var(--pad-y);
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center;
}
.contact__phone {
  font-family: var(--display); font-weight: 500; font-size: var(--step-display); line-height: 1;
  text-decoration: none;
}
.contact__body .button { margin-top: 0.5rem; }

/* ---------- Voet ---------- */

.footer {
  padding: 2.75rem var(--pad-x) 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
}
.footer__line { font-family: var(--display); font-style: italic; font-size: var(--step-title); line-height: 1.3; }
.footer__credits { max-width: 70ch; font-size: var(--step-small); }
.footer a { text-underline-offset: 0.2em; }

/* ---------- Beweging ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-load] {
    opacity: 0; transform: translateY(14px);
    animation: rise 620ms var(--ease-out) forwards; animation-delay: var(--d, 0ms);
  }
  .js [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .calc__total output.is-changing { animation: price 380ms var(--ease-out); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes price { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

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

/* ---------- Lage schermen: de knop blijft op het eerste scherm ---------- */

@media (min-width: 900px) and (max-height: 820px) {
  .hero__arch { width: min(15rem, 22svh); }
  .hero__title { font-size: clamp(2.6rem, 8.6svh, 4.4rem); }
  .hero { gap: 1.1rem; }
}

/* ---------- Telefoon ---------- */

@media (max-width: 640px) {
  .nav { gap: 0 1.1rem; font-size: 0.875rem; letter-spacing: 0.05em; }
  .frame { outline-offset: -6px; }
  .proof__plate { flex-basis: 9rem; }
  .proof__card dl div { grid-template-columns: 1fr; gap: 0; }
  .area__group li { flex-direction: column; gap: 0; }
  .area__group li span:last-child { text-align: left; }
  .area__group li + li { margin-top: 0.3rem; }
  .area__frame { min-height: 17rem; }
  .steps__close br { display: none; }
  .request { margin-top: 2rem; }
  .request__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field, .field--street { grid-column: 1 / -1; }
  .field--nr, .field--pc { grid-column: span 1; }
}
