/* Aalberts MaterialenWijzer - huisstijl conform aalbertsbouw.nl */
/* De ?v=1 achter de fontbestanden is een handmatige cachebuster: hoog hem op
   wanneer een fontbestand vervangen wordt. De overige bestanden krijgen hun
   versie automatisch via src/assets.js. */

@font-face {
  font-family: 'AvenirPro45Book';
  src: url('/assets/fonts/AvenirPro-Book.woff2?v=1') format('woff2'),
       url('/assets/fonts/AvenirPro-Book.woff?v=1') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AvenirPro65Medium';
  src: url('/assets/fonts/AvenirPro-Medium.woff2?v=1') format('woff2'),
       url('/assets/fonts/AvenirPro-Medium.woff?v=1') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AvenirPro95Black';
  src: url('/assets/fonts/AvenirPro-Black.woff2?v=1') format('woff2'),
       url('/assets/fonts/AvenirPro-Black.woff?v=1') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --primary: #00337f;
  --secondary: #40a67a;
  --secondary-dark: #39936d;
  --cta: #2765ff;
  --dark: #111c4e;
  --grey: #eceef0;
  --light: #f9fafa;
  --muted: #5b6479;
  --error: #c0392b;
  --menu-height: 82px;
  --body-font: 'AvenirPro45Book', 'Segoe UI', Helvetica, Arial, sans-serif;
  --medium-font: 'AvenirPro65Medium', 'Segoe UI', Helvetica, Arial, sans-serif;
  --black-font: 'AvenirPro95Black', 'Segoe UI', Helvetica, Arial, sans-serif;
  --accent-font: 'Asap', 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  font-family: var(--body-font);
  font-size: 1.7rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ---------------------------------------------------------------- typografie */

.heading-xl, .heading-lg, .heading-md, .heading-sm {
  font-family: var(--black-font);
  font-weight: 900;
  color: var(--dark);
  margin: 0 0 20px;
}
.heading-xl { font-size: 3.8rem; line-height: 1.1; }
.heading-lg { font-size: 3rem; line-height: 1.2; }
.heading-md { font-size: 2.4rem; line-height: 1.3; }
.heading-sm { font-size: 1.9rem; line-height: 1.35; margin-bottom: 10px; }

.accent {
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 700;
  color: var(--secondary);
  font-size: 2.8rem;
  line-height: 1.2;
  display: block;
  margin: 0 0 8px;
}

.eyebrow {
  font-family: var(--medium-font);
  font-size: 1.4rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 14px;
}

.lead { font-size: 2rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 1.4rem; line-height: 1.6; }

@media (min-width: 768px) {
  .heading-xl { font-size: 5.4rem; }
  .heading-lg { font-size: 3.8rem; }
  .heading-md { font-size: 2.8rem; }
  .accent { font-size: 3.4rem; }
}
@media (min-width: 1024px) {
  .heading-xl { font-size: 6.4rem; }
  .heading-lg { font-size: 4.5rem; }
  .accent { font-size: 4.2rem; }
}

/* -------------------------------------------------------------------- knoppen */

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  font-family: var(--medium-font);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 26px;
  text-align: center;
  text-decoration: none;
  transition: all .2s ease-in;
  width: fit-content;
}
.btn--primary { background-color: var(--secondary); color: #fff; }
.btn--primary:hover { background-color: var(--secondary-dark); }
.btn--secondary { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); }
.btn--secondary:hover { background: var(--secondary); color: #fff; }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { background: var(--grey); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: max(2px, .15em) solid var(--dark); outline-offset: .25em; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* -------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--grey);
}
.site-header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__logo img { height: 24px; width: auto; }
.site-header__right { display: flex; align-items: center; gap: 24px; }
.site-header__label {
  font-family: var(--medium-font);
  font-size: 1.4rem;
  color: var(--muted);
  border-left: 1px solid var(--grey);
  padding-left: 24px;
}
.site-header__cta { display: none; }
@media (min-width: 768px) {
  .site-header__inner { height: var(--menu-height); }
  .site-header__logo img { height: 30px; }
  .site-header__cta { display: inline-block; }
}

/* ---------------------------------------------------------------------- hero */

.hero { position: relative; background: var(--primary); color: #fff; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__inner { position: relative; padding: 56px 0 0; }
.hero .heading-xl { color: #fff; margin-bottom: 12px; }
.hero__accent {
  font-family: var(--accent-font);
  font-style: italic;
  font-weight: 700;
  color: #7fd3ad;
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 20px;
}
.hero__sub { font-size: 1.8rem; line-height: 1.65; color: rgba(255,255,255,.88); margin: 0 0 32px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 1.5rem; color: rgba(255,255,255,.85);
}
.hero__meta span::before { content: '—'; color: var(--secondary); margin-right: 10px; }
.hero__cover { padding: 8px 0 48px; }
.hero__cover img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.12);
  transform: rotate(-1.5deg);
}
@media (min-width: 768px) {
  .hero__inner { padding: 88px 0 88px; }
  .hero__sub { font-size: 2rem; }
  .hero__accent { font-size: 3.2rem; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .hero__cover { padding: 56px 0; }
  .hero__cover img { max-width: 380px; }
}

/* ------------------------------------------------------------------- secties */

.section { padding: 56px 0; }
.section--grey { background: var(--light); }
.section--blue { background: var(--primary); color: #fff; }
.section--blue .heading-lg, .section--blue .heading-md, .section--blue .heading-sm { color: #fff; }
/* Op diepblauw heeft het groen iets meer licht nodig om leesbaar te blijven. */
.section--blue .accent, .hero .accent, .hero .eyebrow { color: #7fd3ad; }
.section--blue .step__num, .hero .step__num { color: #7fd3ad; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: 12px; width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
/* Paginabeelden uit de pdf: volledige A4-verhouding, met schaduw als een liggend vel. */
.split__media--page img {
  aspect-ratio: auto;
  border-radius: 4px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 24px 50px -24px rgba(17,28,78,.55), 0 0 0 1px rgba(17,28,78,.08);
}
.section--blue .split__media--page img { box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }

.steps { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step__num {
  font-family: var(--black-font);
  font-size: 1.6rem;
  color: var(--secondary);
  display: inline-block;
  margin-bottom: 8px;
}
.step p { margin: 0; color: var(--muted); }
.section--blue .step p { color: rgba(255,255,255,.85); }

/* Clusters: foto uit de wijzer met tekstblok eronder */
.clusters { display: grid; gap: 24px; margin-top: 44px; }
@media (min-width: 700px) { .clusters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .clusters { grid-template-columns: repeat(3, 1fr); } }
.cluster {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px -24px rgba(17,28,78,.5);
}
.cluster > img { width: 100%; height: 180px; object-fit: cover; }
.cluster__body { padding: 22px 22px 26px; }
.cluster__label {
  display: block;
  font-family: var(--medium-font);
  font-size: 1.3rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.cluster p { margin: 0; font-size: 1.6rem; color: var(--muted); }

/* R-ladder: de balk loopt van hoge CO2-uitstoot (boven) naar lage (onder),
   net als het kleurverloop in de wijzer zelf. */
.ladder {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 30px;
  position: relative;
  display: grid;
  gap: 1px;
}
.ladder::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(to bottom, #e8482a 0%, #f0a52c 28%, #c9c95f 52%, #7ec98f 76%, #40a67a 100%);
}
.ladder li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.ladder li:first-child { border-top: 0; }
.ladder strong { font-family: var(--black-font); font-size: 1.9rem; font-weight: 900; }
.ladder span { color: rgba(255,255,255,.82); font-size: 1.6rem; }
.ladder__as {
  margin: 14px 0 0 30px;
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
}
@media (min-width: 768px) {
  .ladder li { grid-template-columns: 200px 1fr; }
}

/* Herkomstlabels */
.labels { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 700px) { .labels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .labels { grid-template-columns: repeat(3, 1fr); } }
.label {
  background: var(--light);
  border-radius: 12px;
  padding: 24px 24px 26px;
  border-left: 3px solid var(--secondary);
}
.label p { margin: 0; font-size: 1.6rem; color: var(--muted); }
.label--plain { background: transparent; border-left: 0; padding: 0; display: flex; align-items: center; }
.label--plain .quote { font-size: 1.7rem; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}

.quote {
  border-left: 3px solid var(--secondary);
  padding-left: 24px;
  font-size: 2rem;
  line-height: 1.6;
  margin: 0;
}
.quote--center {
  border-left: 0;
  padding: 0;
  font-family: var(--medium-font);
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--dark);
}
.quote--center::before { content: '\201C'; }
.quote--center::after { content: '\201D'; }
@media (min-width: 768px) { .quote--center { font-size: 2.8rem; } }

/* ------------------------------------------------------------------ formulier */

.form-section { background: var(--light); }
.form-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: 14px;
  padding: 28px 24px 32px;
  box-shadow: 0 18px 40px -28px rgba(17,28,78,.45);
}
@media (min-width: 768px) { .form-card { padding: 40px; } }

.form-grid { display: grid; gap: 4px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--medium-font);
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.field input[type='text'],
.field input[type='email'] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--dark);
  border-radius: 0;
  color: var(--dark);
  font-family: var(--body-font);
  font-size: 1.7rem;
  line-height: 1.5;
  outline: none;
  padding: 8px 0;
  width: 100%;
  transition: border-color .2s ease-in-out;
}
.field input::placeholder { color: rgba(17,28,78,.4); }
.field input:focus { border-bottom: 2px solid var(--secondary); padding-bottom: 7px; }
.field--error input { border-bottom-color: var(--error); }
.field__error { color: var(--error); font-size: 1.4rem; margin: 6px 0 0; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.checkbox input[type='checkbox'] {
  appearance: none;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  border: 1px solid var(--dark);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.checkbox input[type='checkbox']:checked { background: var(--secondary); border-color: var(--secondary); }
.checkbox input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input[type='checkbox']:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.checkbox label { font-size: 1.5rem; line-height: 1.55; cursor: pointer; }
.checkbox--error input[type='checkbox'] { border-color: var(--error); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  background: #fdecea;
  border-left: 3px solid var(--error);
  color: #8c2a1f;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.form-aside { margin-bottom: 32px; }
@media (min-width: 900px) {
  .form-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .form-aside { margin-bottom: 0; }
}

/* ----------------------------------------------------------- statuspagina's */

.status { padding: 72px 0 88px; }
.status__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(64,166,122,.12);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.status__icon svg { width: 30px; height: 30px; }
.status__icon--warn { background: rgba(192,57,43,.1); color: var(--error); }
.status__card {
  background: var(--light);
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}
.status__card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 1.5rem; }
.status__card dt { color: var(--muted); }
.status__card dd { margin: 0; font-family: var(--medium-font); }

/* ------------------------------------------------------------------- footer */

/* Opbouw en maatvoering volgen de footer van aalbertsbouw.nl. */

.page-footer {
  background: var(--dark);
  color: #fff;
  padding: 50px 0 0;
}
.page-footer a { color: #fff; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

.page-footer__logo { display: inline-block; width: 160px; }
.page-footer__logo:hover { text-decoration: none; }
.page-footer__logo img { width: 100%; height: auto; }

.page-footer__main { display: grid; gap: 40px; padding-top: 40px; }

.page-footer__lead {
  font-family: var(--black-font);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.56;
  margin: 0 0 30px;
  max-width: 360px;
}
.page-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--medium-font);
  font-size: 1.6rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  transition: border-color .2s ease-in;
}
.page-footer__cta:hover { text-decoration: none; border-bottom-color: #fff; }
.page-footer__pijl { width: 26px; height: 16px; flex-shrink: 0; }

.page-footer__navs { display: flex; flex-wrap: wrap; column-gap: 40px; row-gap: 32px; }
.footer-nav--sitemap { min-width: 120px; }
.footer-nav__title {
  font-family: var(--black-font);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 10px;
}
.footer-nav__adres { font-size: 1.6rem; line-height: 1.5; margin: 0 0 8px; }
.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}
.footer-nav__list li:not(:last-of-type) { margin-bottom: 10px; }
.footer-nav__list--inline { display: flex; flex-wrap: wrap; column-gap: 18px; font-size: 1.4rem; }
.footer-nav__list--inline li:not(:last-of-type) { margin-bottom: 0; }

.page-footer__suffix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 48px 0 20px;
}
.page-footer__social { margin-left: -8px; flex-shrink: 0; }
.page-footer__social a { display: inline-block; line-height: 0; }
.page-footer__social a:not(:last-of-type) { margin-right: 8px; }
.page-footer__social a:hover { opacity: .7; }
.page-footer__social svg { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; }
.page-footer__social a:focus-visible,
.page-footer__logo:focus-visible { outline: max(1px, .15em) solid #fff; outline-offset: .25em; }

@media (min-width: 768px) {
  .page-footer { padding: 60px 0 34px; }
  /* Het logo staat op aalbertsbouw.nl in een blok van 135px hoog; die lucht eronder
     houden we aan zodat de verhoudingen kloppen. */
  .page-footer__logo { width: 200px; margin-bottom: 34px; }
  .page-footer__main { grid-template-columns: 6fr 1fr 9fr; padding-top: 48px; }
  .page-footer__navs { grid-column: 3; column-gap: 65px; }
  .page-footer__suffix { justify-content: flex-end; padding: 80px 0 0; }
  .page-footer__legal { margin-top: 0; }
}
@media (min-width: 1024px) {
  .page-footer { padding: 100px 0 34px; }
  .page-footer__logo { width: 220px; }
}

.visueel-verborgen {
  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(--dark); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
