/* ==========================================================================
   Schilderwerken Mattheus - main.css

   Design system measured directly from the ProRange "Paint Shop" demo
   (1440px screenshots + the theme's own CSS). The rules that matter:

     - White is the dominant ground. #F1F0EC is a quiet secondary band, used
       for page-title blocks and the occasional section. Footer is #0A0300.
     - There are NO page banners. Inner pages open with a centered title on a
       flat ground, a small chevron under it, and a lot of air.
     - The accent (#D9A069) appears on buttons and almost nowhere else. The
       colour on the page comes from the photography, not from UI chrome.
     - Cards are an image, a title with a small circular arrow, a hairline.
     - Section padding is ~120px. Whitespace is the main design device.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Grounds */
  --white:  #FFFFFF;   /* dominant */
  --band:   #F1F0EC;   /* quiet secondary band, page-title blocks */
  --footer: #0A0300;   /* near-black footer */

  /* Ink */
  --ink:    #171616;
  --body:   #797C7F;
  --body-lt:#9A9C9E;

  /* Lines */
  --rule:   #E5E3DF;
  --rule-dk:#D6D3CB;

  /* The single accent: the lime from the logo (sampled #A4DD00).
     Lime is a very light hue, so white on it is only 1.6:1 and unreadable.
     Anything sitting ON the lime therefore uses --ink, which is 11:1. */
  --lime:    #A4DD00;
  --lime-dk: #93C700;

  /* Type */
  --font: "DM Sans", "Helvetica Neue", Helvetica, sans-serif;

  --fs-h1:    clamp(2.25rem, 2.4vw + 1.4rem, 3.5rem);
  --fs-h2:    clamp(1.95rem, 2vw + 1.3rem, 3rem);
  --fs-h3:    clamp(1.15rem, .4vw + 1rem, 1.3rem);
  --fs-h4:    clamp(1.05rem, .3vw + .95rem, 1.15rem);
  --fs-lead:  clamp(1rem, .3vw + .94rem, 1.125rem);
  --fs-body:  1rem;
  --fs-small: .875rem;
  --fs-micro: .8125rem;

  /* Space */
  --gutter:  clamp(1.25rem, 3.5vw, 2.5rem);
  --measure: 68ch;
  --section: clamp(3.75rem, 8vw, 7.5rem);
  --max:     1290px;

  --radius: 0px;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur:      .35s;
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: var(--band); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.028em; line-height: 1.04; }
h2 { font-size: var(--fs-h2); letter-spacing: -.026em; line-height: 1.06; }
h3 { font-size: var(--fs-h3); letter-spacing: -.012em; line-height: 1.25; }
h4 { font-size: var(--fs-h4); letter-spacing: -.008em; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--rule-dk); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--ink); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

strong, b { font-weight: 700; color: var(--ink); }

::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--band); }
  ::-webkit-scrollbar-thumb { background: var(--rule-dk); border: 3px solid var(--band); border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--body-lt); }
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 9999; background: var(--lime); color: var(--ink);
  padding: .75rem 1.5rem; font-weight: 700; font-size: var(--fs-small);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.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;
}

/* --------------------------------------------------------------- 3. Layout */
.wrap {
  width: 100%; max-width: var(--max);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap--wide   { max-width: var(--max); }
.wrap--narrow { max-width: 800px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 5.5vw, 5rem); }

/* Only two grounds. */
.section--white { background: var(--white); }
.section--bone  { background: var(--white); }
.section--band  { background: var(--band); }
.section--dark  { background: var(--band); }
.section--raise { background: var(--band); }
.section--shell { background: var(--band); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr); align-items: center; }

/* -------------------------------------------------------- 4. Section heads */
.eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.15rem;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(2.75rem, 5vw, 4.5rem);
  text-align: center;
}
.section-head p {
  color: var(--body);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin-inline: auto;
}
.section-head--left { text-align: left; margin-inline: 0; max-width: 620px; }

.lead { font-size: var(--fs-lead); color: var(--body); max-width: 56ch; }
.ruled { position: relative; }

/* ---------------------------------------------- 5. Page title (no banner) */
.pagetitle {
  background: var(--band);
  text-align: center;
  padding-top: clamp(8rem, 11vw, 12rem);
  padding-bottom: clamp(4.5rem, 7vw, 7.5rem);
}
.pagetitle h1 { margin: 0 auto; max-width: 24ch; }
.pagetitle__sub {
  margin: 1.5rem auto 0;
  max-width: 58ch;
  color: var(--body);
  font-size: var(--fs-lead);
}
.pagetitle__chev {
  display: block;
  margin: clamp(1.75rem, 3vw, 2.75rem) auto 0;
  width: 22px; height: 22px;
  color: var(--ink);
}
.pagetitle__chev svg { width: 100%; height: 100%; }

.crumbs {
  font-size: var(--fs-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--body); font-weight: 500;
  margin-bottom: 1.5rem;
}
.crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center; justify-content: center;
}
.crumbs li { margin: 0; display: flex; gap: .5rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--rule-dk); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* -------------------------------------------------------------- 6. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px;
  padding: .95rem 1.85rem;
  background: var(--lime);
  color: var(--ink);
  font-size: .875rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1.2;
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--lime-dk); border-color: var(--lime-dk); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-dk); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--solid-ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--solid-ink:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn-row--center { justify-content: center; }

.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .875rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: .6rem 0;
  min-height: 44px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: .45rem;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link .arw { transition: transform var(--dur) var(--ease); }
.link:hover .arw { transform: translateX(3px); }

.tel-link { font-variant-numeric: tabular-nums; white-space: nowrap; }

.circ {
  flex: none;
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule-dk);
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.circ svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }

/* --------------------------------------------------------------- 7. Media */
.media { position: relative; overflow: hidden; background: var(--band); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.media--tall { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 16 / 10; }
.media--sq   { aspect-ratio: 1 / 1; }
.media--hero { aspect-ratio: 4 / 3; }

img.fade-img { opacity: 0; transition: opacity .5s var(--ease); }
img.fade-img.is-loaded, .no-js img.fade-img { opacity: 1; }

.brush, .brush-b { clip-path: none; }
.sweep, .ticker { display: none; }
.veil { position: relative; }
.veil > * { position: relative; z-index: 2; }

/* A small source image (the 300px portrait) must not be blown up */
.media--portrait { aspect-ratio: 1 / 1; max-width: 320px; }

/* Staggered image pair, the reference's signature composition */
.stack-pair { position: relative; }
.stack-pair__a { position: relative; z-index: 1; width: 82%; }
.stack-pair__b {
  position: relative; z-index: 2;
  width: 62%; margin-left: auto; margin-top: -22%;
}
@media (max-width: 719px) {
  .stack-pair__a { width: 100%; }
  .stack-pair__b { width: 70%; margin-top: -18%; }
}

/* ----------------------------------------------------------------- 8. Hero */
.hero { background: var(--white); padding-top: 5.5rem; }
.hero__frame {
  position: relative; overflow: hidden;
  min-height: min(62vh, 560px);
  display: flex; align-items: center;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

/* Slideshow: stacked slides that crossfade. Slide 1 is visible with no JS. */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
/* Before JS runs (and with JS off) the first slide is the visible one. */
.hero__slide:first-child { opacity: 1; }
/* Once JS marks the slider live it controls every slide explicitly. */
.hero__bg.is-live .hero__slide { opacity: 0; }
.hero__bg.is-live .hero__slide.is-active { opacity: 1; }

/* Dots */
.hero__dots {
  position: absolute; z-index: 3;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  display: flex; gap: .1rem;
  /* A quiet dark pill, so the inactive dots stay visible over a bright wall */
  background: rgba(24, 14, 10, .38);
  border-radius: 999px;
  padding: 0 .35rem;
}
@supports (backdrop-filter: blur(6px)) {
  .hero__dots { background: rgba(24, 14, 10, .26); backdrop-filter: blur(6px); }
}
.hero__dot {
  /* Desktop-only control (the group is hidden under 560px), 44px tall */
  width: 38px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
  cursor: pointer;
}
.hero__dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__dot[aria-current="true"]::before { background: var(--lime); transform: scale(1.4); }
.hero__dot:hover::before { background: var(--white); }
.hero__dot:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }
@media (max-width: 559px) { .hero__dots { display: none; } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(24, 14, 10, .72) 0%, rgba(24, 14, 10, .5) 38%, rgba(24, 14, 10, .12) 72%, rgba(24, 14, 10, .04) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  width: 100%;
}
.hero h1 { color: var(--white); max-width: 20ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; display: block; }
.hero__sub {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .9);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.hero__rail {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
}
.stat__num {
  font-weight: 700; color: var(--ink);
  font-size: clamp(1.7rem, 2vw, 2.35rem); line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase;
  color: var(--body); margin-top: .55rem; font-weight: 500;
}

/* --------------------------------------------------------- 9. Trust items */
.trust { display: grid; gap: clamp(2rem, 4vw, 3.25rem); grid-template-columns: minmax(0, 1fr); }
.trust__item { display: block; }
.trust__icon { display: block; width: 30px; height: 30px; color: var(--ink); margin-bottom: 1.1rem; }
.trust__icon svg { width: 100%; height: 100%; }
.trust__body h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.trust__body p { color: var(--body); font-size: .9375rem; margin: 0; }

/* ---------------------------------------------------- 10. Cards (pattern) */
.svc-grid { display: grid; gap: clamp(1.5rem, 2.4vw, 2rem); grid-template-columns: minmax(0, 1fr); }

.svc {
  display: flex; flex-direction: column;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border: 0;
}
.svc__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--band); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__media::after { content: none; }
.svc__num, .svc__more { display: none; }

.svc__body { padding: 1.15rem 0 0; }
.svc__row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
  /* Reserve two lines of title so the hairlines align across a row */
  min-height: calc(2.5em + 1.15rem);
}
.svc__body h3 {
  margin: 0; color: var(--ink);
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: pretty;
}
.svc__body p { color: var(--body); font-size: .9375rem; margin: .9rem 0 0; }

.svc:hover .circ, .svc:focus-visible .circ {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.svc:hover .circ svg { transform: translateX(2px); }

.svc--feature { grid-column: auto; grid-row: auto; }
.svc--light { background: transparent; }

/* --------------------------------------------------- 11. Alternating rows */
.row { display: grid; gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.row__media { position: relative; }
.row__body h2 { margin-bottom: 1.1rem; }
.row__body p { color: var(--body); }
.row__body .btn-row { margin-top: 2rem; }

.offset-block { position: relative; }
.offset-block::before { content: none; }

/* --------------------------------------------------------------- 12. Lists */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.tick-list li {
  position: relative; padding-left: 1.6rem; margin: 0;
  font-size: .9375rem; line-height: 1.6; color: var(--body);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .8rem; height: .42rem;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}
.tick-list--2 { grid-template-columns: minmax(0, 1fr); }

.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li {
  padding: .95rem 0; margin: 0;
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 1rem; align-items: baseline;
  font-size: .9375rem; color: var(--body);
}
.dash-list li::before { content: ""; width: 1rem; height: 1px; background: var(--rule-dk); flex: none; }

/* --------------------------------------------------------------- 13. Steps */
.steps { counter-reset: step; display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
.step { counter-increment: step; position: relative; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.step::before {
  content: "0" counter(step);
  font-weight: 700; font-size: .8125rem; letter-spacing: .1em;
  color: var(--body-lt);
  display: block; margin-bottom: .85rem;
}
.step h3 { font-size: var(--fs-h4); margin-bottom: .45rem; }
.step p { color: var(--body); font-size: .9375rem; margin: 0; }

/* --------------------------------------------------------------- 14. Quote */
.quote { border-left: 1px solid var(--rule-dk); padding: .25rem 0 .25rem clamp(1.25rem, 2.5vw, 2rem); margin: 0; }
.quote p {
  font-weight: 700; color: var(--ink);
  font-size: clamp(1.15rem, 1.2vw + .7rem, 1.6rem);
  line-height: 1.35; letter-spacing: -.015em;
  margin: 0 0 .9rem;
}
.quote footer { font-size: var(--fs-small); color: var(--body); }
.quote footer strong { color: var(--ink); }

/* ----------------------------------------------------------- 15. CTA band */
.cta-band { background: var(--band); }
.cta-band__bg { display: none; }
.cta-band__inner {
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid; gap: 2rem; align-items: center;
}
.cta-band .eyebrow { color: var(--ink); }
.cta-band h2 { color: var(--ink); max-width: 26ch; margin-bottom: .75rem; }
.cta-band p { color: var(--body); max-width: 48ch; margin: 0; }
.cta-band__aside { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-band .link { color: var(--ink); }

.cta-phone {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.6vw, 1.75rem); letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cta-phone:hover { color: var(--lime-dk); }
.cta-phone svg { width: 1em; height: 1em; flex: none; color: var(--lime); }

/* -------------------------------------------------------- 16. Werkgebied */
.regio-cols { columns: 2; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.regio-cols ul { list-style: none; margin: 0; padding: 0; }
.regio-cols li { margin: 0; break-inside: avoid; }
.regio-cols a {
  display: flex; align-items: center;
  padding: .5rem 0; min-height: 44px;
  font-size: .9375rem; text-decoration: none; color: var(--body);
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur) var(--ease);
}
.regio-cols a:hover, .regio-cols a:focus-visible { color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip-row li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .5rem 1.05rem;
  border: 1px solid var(--rule-dk);
  font-size: .875rem; font-weight: 500; color: var(--ink);
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.chip:hover, .chip:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ------------------------------------------------------- 17. Referenties */
.ref-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ref-table caption {
  text-align: left; font-weight: 700; color: var(--ink);
  font-size: var(--fs-h4); margin-bottom: 1.1rem;
}
.ref-table th, .ref-table td { text-align: left; padding: .8rem .75rem .8rem 0; border-bottom: 1px solid var(--rule); }
.ref-table th { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--body); font-weight: 700; }
.ref-table td { color: var(--body); }
.ref-table tbody tr:hover { background: var(--band); }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------- 18. Contact */
.contact-card { background: transparent; border: 0; padding: 0; }
.contact-card--panel {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .85rem 0; margin: 0;
  border-bottom: 1px solid var(--rule);
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list svg { width: 18px; height: 18px; flex: none; color: var(--lime); margin-top: .3rem; }
.detail-list .dt {
  font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase;
  color: var(--body); font-weight: 700; margin-bottom: .2rem;
}
.detail-list .dd { margin: 0; font-size: 1rem; font-weight: 500; color: var(--ink); }
.detail-list a { text-decoration: none; }
.detail-list a:hover { color: var(--ink); }

#map {
  width: 100%; height: clamp(320px, 42vw, 480px);
  background: var(--band);
}
.leaflet-container { font-family: var(--font) !important; }
.map-pin-label { font-weight: 700; font-size: .875rem; }
.map-bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* ------------------------------------------------------------- 19. Forms */
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .3rem; }
.field label {
  font-size: var(--fs-micro); letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
}
.field .req { color: var(--lime-dk); }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: .75rem 0;
  min-height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-dk);
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
  width: 100%;
}
.field select { padding-right: 1.5rem; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-bottom-color: var(--ink); border-bottom-width: 2px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--body-lt); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #C4442A; }
.field-error { font-size: var(--fs-small); color: #C4442A; font-weight: 500; }
.form__note { font-size: var(--fs-small); color: var(--body); }
.form__status {
  padding: 1rem 1.15rem;
  background: var(--band); font-size: .9375rem; color: var(--ink);
}
.form__status[hidden] { display: none; }
.checkbox-field { display: flex; gap: .75rem; align-items: flex-start; }
.checkbox-field input {
  width: 20px; height: 20px; min-height: 20px; flex: none; margin-top: .25rem;
  accent-color: var(--ink); border-bottom: 0;
}
.checkbox-field label { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 400; color: var(--body); }

/* --------------------------------------------------------------- 20. FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.5rem 3rem 1.5rem 0;
  position: relative;
  font-weight: 700; color: var(--ink);
  font-size: var(--fs-h4);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.85rem;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 2rem; }
.faq summary:hover { color: var(--body); }
.faq__body { padding-bottom: 1.6rem; max-width: var(--measure); }
.faq__body p { color: var(--body); }

/* ------------------------------------------------------------- 21. Prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: var(--fs-h4); }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--ink); }
.prose ul li::marker { color: var(--rule-dk); }
.prose a { font-weight: 500; text-decoration-color: var(--rule-dk); }
.prose a:hover { color: var(--ink); }

/* -------------------------------------------------------------- 22. Footer */
.site-footer { background: var(--footer); color: rgba(255,255,255,.66); }
.site-footer a { text-decoration: none; }
.site-footer__top {
  padding-block: clamp(3rem, 6vw, 4.75rem) clamp(2.5rem, 4.5vw, 3.5rem);
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
/* The global img placeholder background would show as a pale box behind
   this transparent PNG on the dark footer. */
.f-logo { width: 190px; height: auto; margin-bottom: 1.25rem; background: none; }
.site-footer__tag { color: rgba(255,255,255,.5); font-size: .9375rem; max-width: 32ch; }

.f-col h3 {
  color: var(--white);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  margin-bottom: 1.15rem;
}
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin: 0; }
.f-col li a {
  display: flex; align-items: center;
  padding: .4rem 0; min-height: 44px;
  font-size: .9375rem; color: rgba(255,255,255,.66);
  transition: color var(--dur) var(--ease);
}
.f-col li a:hover, .f-col li a:focus-visible { color: var(--lime); }

.f-contact { font-size: .9375rem; color: rgba(255,255,255,.66); font-style: normal; line-height: 1.75; }
.f-contact strong { color: var(--white); display: block; margin-bottom: .6rem; }
.f-contact a { color: rgba(255,255,255,.66); }
.f-contact a:hover { color: var(--white); }
.f-contact .f-line { display: block; }
.f-contact a, .site-footer__bottom a {
  display: inline-flex; align-items: center; min-height: 44px; padding-block: .3rem;
}
.f-mail { text-decoration: underline !important; text-underline-offset: .25em; }
.f-phone { font-weight: 700; color: var(--white) !important; font-size: 1.0625rem; }
.f-vat {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-small); color: rgba(255,255,255,.5);
}
.f-vat strong { color: var(--lime); display: inline; }

.f-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.f-social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  transition: all var(--dur) var(--ease);
}
.f-social a:hover { background: var(--white); border-color: var(--white); color: var(--footer); }
.f-social svg { width: 18px; height: 18px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: var(--fs-small); color: rgba(255,255,255,.45);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: center; }
.site-footer__bottom a { color: rgba(255,255,255,.45); }
.site-footer__bottom a:hover { color: var(--white); }
.site-footer__bottom .dev-credit a { color: rgba(255,255,255,.7); }

/* ------------------------------------------------------- 23. Cookie banner */
.cookiebar {
  position: fixed; z-index: 500;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 520px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--rule-dk);
  padding: clamp(1.25rem, 3vw, 1.65rem);
  box-shadow: 0 18px 50px rgba(23, 22, 22, .13);
  transform: translateY(calc(100% + var(--gutter) + 2rem));
  transition: transform .5s var(--ease-out);
}
.cookiebar.is-visible { transform: translateY(0); }
.cookiebar[hidden] { display: none; }
.cookiebar h2 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.cookiebar p { font-size: .875rem; color: var(--body); margin-bottom: 1.1rem; }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookiebar .btn { min-height: 46px; padding: .7rem 1.25rem; }

/* ------------------------------------------------------------ 24. Reveals */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.no-js .reveal { opacity: 1; transform: none; }

/* -------------------------------------------------------- 25. Breakpoints */
@media (min-width: 560px) {
  .tick-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regio-cols { columns: 3; }
  .cta-band__inner { grid-template-columns: 1.3fr .7fr; }
}

@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row--flip .row__media { order: 2; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .regio-cols { columns: 4; }
}

@media (min-width: 1200px) {
  .svc-grid--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------ 26. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------- 27. Print */
@media print {
  .site-header, .cookiebar { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .pagetitle, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1 { color: #000 !important; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
