/* EcoMet Group v2 - signaaloranje, gietijzer, beton, zink. Eén familie: Archivo (variabel, zelf gehost). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --orange: #F18C0B;
  --iron: #23282B;
  --concrete: #ECEDEA;
  --zinc: #5F676B;
  --white: #FFFFFF;

  --radius-ui: 6px;
  --radius-img: 4px;

  --gutter: 1.25rem;
  --max: 75rem;
  --header-h: 3.75rem;
  --bar-h: 4.5rem;
  --section-y: clamp(4rem, 2.5rem + 5.5vw, 7.5rem);

  /* typeschaal, ratio 1.25 op 17/18px */
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-lead: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-quote: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-h1: clamp(2.5rem, 1rem + 6vw, 5.5rem);
  --fs-h2: clamp(2.5rem, 1.3rem + 3.6vw, 4.25rem);
  --fs-h3: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-statement: clamp(1.85rem, 1.1rem + 2.2vw, 2.9rem);

  --focus: var(--iron);
}

@media (min-width: 60rem) {
  :root {
    --gutter: 2rem;
    --header-h: 4.5rem;
    --fs-body: 1.125rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--iron);
  color: var(--iron);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}

@media (min-width: 60rem) {
  body { padding-bottom: 0; }
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
:where(ul[role="list"], .reset-list) { list-style: none; padding: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.09em; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Koppen: smal, zwaar, strak */
h1, h2, h3, .wordmark {
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.03;
  letter-spacing: -0.012em;
  word-spacing: 0.08em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; text-wrap: pretty; }

section[id], footer[id] { scroll-margin-top: var(--header-h); }

/* Skip-link */
.skip-link {
  position: absolute;
  left: 0.75rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--iron);
  font-weight: 700;
  border-radius: var(--radius-ui);
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-ui);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--iron);
}
.btn--primary:hover { background: var(--iron); color: var(--orange); }
.btn--secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--secondary:hover { background: var(--white); color: var(--iron); }
.btn--lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-ui);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.icon-btn svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn--call { background: var(--orange); border-color: var(--orange); color: var(--iron); }
.icon-btn--menu { border-color: var(--iron); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--concrete);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.7rem;
  text-decoration: none;
  color: inherit;
}
.nav-desktop, .header-call { display: none; }
.header-actions { display: flex; gap: 0.5rem; }
.menu-btn { display: none; }
.js .menu-btn { display: inline-flex; }

@media (min-width: 60rem) {
  .header-actions { display: none; }
  .nav-desktop { display: block; margin-left: auto; }
  .nav-desktop ul { display: flex; gap: 0.25rem; }
  .nav-desktop a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    justify-content: center;
    padding: 0 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
  }
  .nav-desktop a:hover { border-bottom-color: var(--orange); }
  .header-call { display: inline-flex; min-height: 2.75rem; }
}

/* Mobiel menu (dialog) */
.menu {
  --focus: var(--orange);
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--iron);
  color: var(--white);
}
.menu::backdrop { background: var(--iron); }
.menu[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: menu-in 0.22s ease-out; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.75rem); } to { opacity: 1; transform: none; } }
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.menu .icon-btn { border-color: var(--white); }
.menu-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-block: 2rem 2rem;
}
.menu-links { display: grid; gap: 0.25rem; }
.menu-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: clamp(2.6rem, 12vw, 4rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-decoration: none;
}
.menu-links a:hover { color: var(--orange); }
.menu-call { margin-top: auto; }
.menu-call .btn { width: 100%; }

/* Hero */
.hero {
  --focus: var(--white);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--iron);
  min-height: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 28% 70%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(35 40 43 / 0.78);
}
.hero-content {
  padding-block: 2.5rem 3rem;
}
.hero h1 { max-width: 12em; }
.hero-lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 22rem;
}
@media (min-width: 40rem) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; max-width: none; }
}
@media (min-width: 60rem) {
  .hero { min-height: 85vh; min-height: 85svh; }
  .hero-img { object-position: 50% 62%; }
  .hero-shade { background: linear-gradient(90deg, rgb(35 40 43 / 0.9) 0%, rgb(35 40 43 / 0.78) 45%, rgb(35 40 43 / 0.3) 100%); }
  .hero-content { padding-block: 5rem; }
  .hero-lead { margin-top: 1.75rem; }
  .hero-actions { margin-top: 2.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-actions { animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-lead { animation-delay: 0.1s; }
  .hero-actions { animation-delay: 0.2s; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* Diensten: oranje band met materiaalstroken */
.band {
  background: var(--orange);
  color: var(--iron);
  padding-top: var(--section-y);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.band h2 { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.strip { border-top: 6px solid var(--iron); }
.strip-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 2.25rem;
}
.strip-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.strip-text p { margin-top: 1rem; max-width: 34rem; }
.strip-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  font-weight: 700;
  text-decoration-thickness: 0.14em;
}
.strip-link:hover { text-decoration-thickness: 0.3em; }

@media (min-width: 60rem) {
  .strip-inner {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 5rem);
    padding-block: 3rem;
  }
  .strip-media img { aspect-ratio: 5 / 4; }
  .strip:nth-of-type(even) .strip-inner { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .strip:nth-of-type(even) .strip-media { order: 2; }
  .strip-text p { font-size: var(--fs-lead); line-height: 1.5; max-width: 32rem; }
}

/* Over ons */
.about {
  background: var(--white);
  padding-block: var(--section-y);
}
.about-grid { display: grid; gap: 2rem; }
.about-copy { display: grid; gap: 1.25rem; }
.about-statement {
  font-size: var(--fs-statement);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 0.5rem;
}
@media (min-width: 60rem) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .about-copy p:not(.about-statement) { font-size: var(--fs-lead); line-height: 1.55; }
}

/* Werk */
.work {
  background: var(--concrete);
  padding-block: var(--section-y);
  overflow: hidden;
}
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.rail-arrows { display: none; gap: 0.5rem; }
@media (min-width: 60rem) {
  .rail-arrows { display: flex; }
}
.arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  padding: 0;
  background: var(--iron);
  border: 2px solid var(--iron);
  border-radius: var(--radius-ui);
  color: var(--white);
  cursor: pointer;
}
.arrow-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--iron); }
.arrow-btn[aria-disabled="true"] { background: transparent; color: var(--zinc); border-color: var(--zinc); cursor: default; }
.arrow-btn[aria-disabled="true"]:hover { background: transparent; border-color: var(--zinc); color: var(--zinc); }

.rail {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail-list {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding-inline: var(--edge);
}
.rail-list li { scroll-snap-align: start; flex: none; }
.tile {
  display: block;
  width: clamp(15rem, 72vw, 22.5rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--zinc);
  cursor: zoom-in;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }

.rail-progress {
  height: 4px;
  margin-top: 1.5rem;
  background: rgb(35 40 43 / 0.2);
  border-radius: 2px;
  position: relative;
}
.rail-progress-thumb {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 30%;
  background: var(--iron);
  border-radius: 2px;
}

/* Lightbox */
.lightbox {
  --focus: var(--orange);
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(35 40 43 / 0.97);
  color: var(--white);
}
.lightbox::backdrop { background: var(--iron); }
.lightbox[open] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in 0.2s ease-out; }
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; border-color: var(--white); background: var(--iron); }
.lb-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "fig fig" "prev next";
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  height: 100%;
  padding: 4rem 1rem 1rem;
  align-items: center;
}
.lb-fig {
  grid-area: fig;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 0;
  height: 100%;
  touch-action: pan-y;
}
.lb-fig img {
  flex: 0 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-img);
  user-select: none;
  -webkit-user-drag: none;
}
.lb-fig figcaption {
  flex: none;
  font-size: var(--fs-small);
  text-align: center;
  color: rgb(255 255 255 / 0.85);
  max-width: 40rem;
}
.lb-prev { grid-area: prev; justify-self: start; }
.lb-next { grid-area: next; justify-self: end; }
.lightbox .arrow-btn { background: var(--iron); border-color: var(--white); }
.lightbox .arrow-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--iron); }
@media (min-width: 60rem) {
  .lb-stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "prev fig next";
    grid-template-rows: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 4rem 2rem 2rem;
  }
  .lb-prev, .lb-next { justify-self: center; }
}

/* Reviews */
.reviews {
  background: var(--white);
  padding-block: var(--section-y);
}
.reviews h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.review-grid { display: grid; gap: 2.5rem; }
.review { border-top: 4px solid var(--iron); padding-top: 1.25rem; }
.review blockquote p {
  font-size: var(--fs-quote);
  font-weight: 500;
  line-height: 1.5;
}
.review figcaption { margin-top: 1rem; font-size: var(--fs-small); color: var(--zinc); }
.review figcaption strong { color: var(--iron); font-weight: 700; }
@media (min-width: 48rem) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem clamp(2.5rem, 5vw, 5rem); align-items: start; }
}

/* Contact */
.contact {
  --focus: var(--orange);
  background: var(--iron);
  color: var(--white);
  padding-block: var(--section-y);
}
.contact-grid { display: grid; gap: 2.5rem; }
.contact-intro p { margin-top: 1.25rem; font-size: var(--fs-lead); }
.contact-phone {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange);
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-decoration-thickness: 0.07em;
  white-space: nowrap;
}
.contact-phone:hover { text-decoration-thickness: 0.14em; }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
}

.form { display: grid; gap: 1.25rem; }
.form[hidden] { display: none; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-note { font-size: var(--fs-small); color: rgb(255 255 255 / 0.8); }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 600; }
.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  background: var(--white);
  color: var(--iron);
  border: 2px solid var(--white);
  border-radius: var(--radius-ui);
  font: inherit;
  line-height: 1.4;
}
textarea.input { min-height: 9rem; resize: vertical; }
select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323282B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}
.input[aria-invalid="true"] { border-color: var(--orange); border-width: 3px; padding: calc(0.6rem - 1px) calc(0.85rem - 1px); }
select.input[aria-invalid="true"] { padding-right: 2.5rem; }
.field-error {
  color: var(--orange);
  font-weight: 600;
  font-size: 1rem;
}
.field-error[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-message { margin-bottom: 1.25rem; }
.form-message:empty { display: none; }
.form-notice { display: none; scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-notice:target { display: block; margin-bottom: 1.25rem; }
.js .form-notice:target { display: none; } /* met JS toont site.js de melding in #form-message */
.form-error {
  padding: 1rem 1.25rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius-ui);
  font-weight: 600;
}
.form-error a { color: var(--orange); }
.form-success { padding: 0.25rem 0 0; }
.form-success:focus { outline: none; }
.form-success .success-title {
  font-size: var(--fs-statement);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.form-success p + p { margin-top: 1rem; }
.form-success a { color: var(--orange); font-weight: 700; }

/* Footer */
.site-footer {
  --focus: var(--orange);
  background: var(--iron);
  color: var(--white);
  padding-bottom: 2.5rem;
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
}
.site-footer .wordmark { font-size: 2rem; }
.footer-phone { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; color: var(--orange); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.footer-copy { font-size: var(--fs-small); color: rgb(255 255 255 / 0.78); }
@media (min-width: 60rem) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; row-gap: 1rem; }
  .footer-copy { grid-column: 1 / -1; }
}

/* Mobiele onderbalk */
.callbar {
  --focus: var(--orange);
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--iron);
  border-top: 1px solid rgb(255 255 255 / 0.2);
  transition: transform 0.2s ease-out, visibility 0s;
}
.callbar.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.2s ease-in, visibility 0s 0.2s;
}
@media (min-width: 60rem) {
  .callbar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .callbar, .callbar.is-hidden { transition: none; }
  .btn { transition: none; }
}
