/* ==========================================================================
   Tillaar Someren
   Kleuren komen uit het logo en de machines: Tillaar-rood, asfalt, betongrijs.
   ========================================================================== */

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

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --rood: #d82018;
  --rood-donker: #b5170f;
  --asfalt: #1f2326;
  --asfalt-licht: #2c3236;
  --beton: #eceeed;
  --wit: #ffffff;
  --tekst: #1f2326;
  --tekst-zacht: #4d565c;
  --tekst-op-donker: #d9dde0;

  --font-kop: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-tekst: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --breedte: 1180px;
  --rand: clamp(1.125rem, 4vw, 2.5rem);
  --ruimte-sectie: clamp(4rem, 9vw, 7.5rem);
  --header-hoogte: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-hoogte) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-tekst);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--wit);
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-kop);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.section-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--wit);
}

.wrap {
  width: 100%;
  max-width: calc(var(--breedte) + var(--rand) * 2);
  margin-inline: auto;
  padding-inline: var(--rand);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--asfalt);
  color: var(--wit);
}
.skip-link:focus { top: 1rem; }

/* Knoppen ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--rood);
  color: var(--wit);
  font-family: var(--font-kop);
  font-stretch: 85%;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--rood);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--rood-donker); border-color: var(--rood-donker); }

.btn-ghost {
  background: transparent;
  border-color: var(--wit);
}
.btn-ghost:hover { background: var(--wit); border-color: var(--wit); color: var(--asfalt); }

.btn-small { padding: 0.6rem 1.1rem; font-size: 1rem; }
.btn-wide { width: 100%; padding-block: 1rem; font-size: 1.15rem; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wit);
  border-bottom: 4px solid var(--rood);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-hoogte);
  gap: 1rem;
}

.brand img { height: 2.75rem; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.main-nav a:not(.btn) {
  font-family: var(--font-kop);
  font-stretch: 85%;
  font-weight: 700;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 3px solid transparent;
}
.main-nav a:not(.btn):hover { border-bottom-color: var(--rood); }

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: transparent;
  border: 2px solid var(--asfalt);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-inline: auto;
  background: var(--asfalt);
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; left: 0; top: -8px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--wit);
    border-bottom: 4px solid var(--rood);
  }
  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--rand) 1.25rem;
  }
  .main-nav li + li { border-top: 1px solid var(--beton); }
  .main-nav a:not(.btn) { display: block; padding-block: 0.9rem; border-bottom: 0; }
  .main-nav .btn { display: block; margin-top: 0.75rem; text-align: center; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(46rem, calc(100svh - var(--header-hoogte)));
  color: var(--wit);
  background: var(--asfalt);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(18, 20, 22, 0.88) 0%, rgba(18, 20, 22, 0.55) 38%, rgba(18, 20, 22, 0.05) 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.9rem);
  max-width: 14ch;
  text-wrap: balance;
}

.hero .lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--tekst-op-donker);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Rood vlak met de vier diensten, zoals in het logo */
.hero-services {
  align-self: end;
  min-width: 15.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--rood);
}

.hero-services li + li { margin-top: 0.7rem; }

.hero-services a {
  display: inline-block;
  font-family: var(--font-kop);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  text-decoration: none;
}
.hero-services a::before { content: "\2013\00a0"; }
.hero-services a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-services { justify-self: start; width: 100%; max-width: 22rem; }
}

/* Secties ---------------------------------------------------------------- */

.section {
  padding-block: var(--ruimte-sectie);
}

.section-dark {
  background: var(--asfalt);
  color: var(--wit);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head h2 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}

.section-head p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--tekst-zacht);
}
.section-dark .section-head p { color: var(--tekst-op-donker); }

/* Diensten --------------------------------------------------------------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.service + .service { margin-top: clamp(3.5rem, 8vw, 6.5rem); }

.service-flip .service-media { order: 2; }

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body h3 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  padding-top: 1rem;
  border-top: 8px solid var(--rood);
  display: inline-block;
  padding-right: 2rem;
}

.service-body > p {
  margin-top: 1.25rem;
  max-width: 34rem;
}

.tick-list { margin-top: 1.5rem; }

.tick-list li {
  position: relative;
  padding-left: 1.5rem;
}
.tick-list li + li { margin-top: 0.45rem; }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--rood);
}

.text-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-kop);
  font-stretch: 85%;
  font-weight: 700;
  color: var(--rood);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--rood-donker); }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service-flip .service-media { order: 0; }
}

/* Machinepark ------------------------------------------------------------ */

.mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 10.5rem;
  grid-auto-flow: dense;
  gap: 0.5rem;
}

.tile { overflow: hidden; background: var(--asfalt-licht); }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }

@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 8rem; }
}

@media (max-width: 520px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8.5rem; }
}

/* Over ons --------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 50%;
}

.about-body h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.about-body > p { margin-top: 1.25rem; max-width: 36rem; }

.certs {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--beton);
}

.certs h3 { font-size: 1.6rem; }

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cert-logos li {
  display: flex;
  align-items: center;
  height: 6rem;
  padding: 0.5rem;
  background: var(--wit);
}
.cert-logos img { height: 100%; width: auto; max-width: 9rem; object-fit: contain; }

.doc-links { margin-top: 1.25rem; }
.doc-links li + li { margin-top: 0.35rem; }
.doc-links a { text-underline-offset: 4px; }
.doc-links a:hover { color: var(--rood); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 4 / 3; }
}

/* Contact ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.contact-info > p { margin-top: 1.25rem; color: var(--tekst-op-donker); max-width: 30rem; }

.contact-list { margin: 2.5rem 0 0; }
.contact-list div + div { margin-top: 1.25rem; }
.contact-list dt { color: var(--tekst-op-donker); font-size: 1rem; }
.contact-list dd { margin: 0; font-family: var(--font-kop); font-stretch: 80%; font-weight: 800; font-size: 1.9rem; line-height: 1.2; }
.contact-list a { text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-list a:hover { color: #ff8a84; }

.form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--wit);
  color: var(--tekst);
  border-top: 8px solid var(--rood);
}

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label,
.field-check label { font-size: 1rem; }

.field label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--tekst-zacht); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--tekst);
  background: var(--wit);
  border: 2px solid #8a9298;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--rood); outline-offset: 0; border-color: var(--asfalt); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--rood); }

.field-error { margin-top: 0.3rem; font-size: 0.95rem; font-weight: 600; color: var(--rood-donker); }

.field-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}
.field-check input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--rood); }
.field-check.has-error label { color: var(--rood-donker); }
.field-check a:hover { color: var(--rood); }

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

.form-status { margin-bottom: 1.1rem; }
.form-status:empty { display: none; }
.form-status p { padding: 0.9rem 1rem; font-weight: 600; border-left: 6px solid; }
.form-status .is-success { background: #e6f3ea; border-color: #1d7a3a; color: #11431f; }
.form-status .is-error { background: #fdebea; border-color: var(--rood); color: #7a0f0a; }

.btn[disabled] { opacity: 0.65; cursor: wait; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding-block: 1.75rem;
  background: #15181a;
  color: var(--tekst-op-donker);
  font-size: 1rem;
  border-top: 4px solid var(--rood);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { color: var(--wit); }

/* Privacypagina ---------------------------------------------------------- */

.prose { max-width: 44rem; padding-block: var(--ruimte-sectie); }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.prose h2 { margin-top: 2.25rem; font-size: 1.9rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose a { color: var(--rood-donker); text-underline-offset: 3px; }

/* Beweging beperken op verzoek ------------------------------------------- */

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