/* ==========================================================================
   Bouwbedrijf R Schuit – schuitbouw.nl
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --light: #f9f9fb;
  --gold: #c9a24d;
  --navy: #1f3a5f;
  --navy-rgb: 31, 58, 95;
  --navy-dark: #152840;
  --dark: #1e1e1e;
  --text: #4a4a4a;

  --font: "Inter", Arial, Helvetica, sans-serif;
  --container: 1248px;
  --gutter: 30px;
  --header-h: 96px;
}

/* Reset / basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.015em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dark);
}

h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 1.1em; }
h3 { font-size: 24px; margin-bottom: .6em; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { top: 16px; color: var(--white); }

.lead {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dark);
}

/* Knoppen
   ========================================================================== */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
  text-align: center;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.btn--primary {
  padding: 20px 55px;
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: rgba(var(--navy-rgb), .8); color: var(--white); }

.btn--header {
  padding: 13px 29px;
  background: var(--navy);
  color: var(--white);
}
.btn--header:hover { background: var(--navy-dark); color: var(--white); }

/* Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 0 60px;
  min-height: var(--header-h);
}

.site-header__logo img { width: 120px; }

/* Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding: max(13vw, calc(var(--header-h) + 60px)) 0 7vw;
  background: var(--dark);
  color: var(--white);
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(152deg, rgba(var(--navy-rgb), .85) 18%, rgba(var(--navy-rgb), .25) 61%);
}

.hero__content > * { max-width: 80%; }

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  color: var(--white);
  margin-bottom: .4em;
}

.hero__subtitle {
  display: block;
  margin-top: .35em;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero__intro {
  max-width: 720px;
  margin-bottom: 40px;
  font-size: 18px;
  color: rgba(255, 255, 255, .92);
}

/* Secties
   ========================================================================== */
.section { padding: 50px 0; }
.section--about { padding: 100px 0 50px; }
.section--process { padding-bottom: 0; }
.section--statement { padding: 50px 0 100px; background: var(--light); margin-top: 50px; }

/* Over ons */
.about {
  display: grid;
  grid-template-columns: 44fr 56fr;
  gap: 60px;
  align-items: center;
}
.about__text { padding-right: 25px; }
.about__text h2 { margin-bottom: 20px; }

.separator {
  width: 150px;
  margin: 20px 0 35px;
  border: 0;
  border-top: 5px solid var(--navy);
}

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}
.checklist svg { width: 16px; height: 16px; flex: none; color: var(--gold); }

/* Carousel */
.carousel { position: relative; overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .5s ease;
}
.carousel__slide { flex: 0 0 100%; }
.carousel__slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .4);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s;
}
.carousel__btn:hover { background: var(--navy); }
.carousel__btn svg { width: 14px; height: 18px; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.carousel__dots button[aria-current="true"] { background: var(--white); }

/* Werkzaamheden */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 75%;
}

.service {
  padding: 40px;
  border: 1px solid rgba(var(--navy-rgb), .35);
  background: radial-gradient(circle at left top, rgba(var(--navy-rgb), .08) 60%, rgba(var(--navy-rgb), 0) 60%);
}
.service__icon { width: 30px; height: 30px; margin-bottom: 20px; color: var(--navy); }

.cta { margin-top: 48px; }
.cta .lead { margin-bottom: 30px; }

/* Werkwijze */
.process {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 60px;
  align-items: start;
}

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  margin-bottom: 40px;
  background: var(--light);
}
.timeline__item:last-child { margin-bottom: 0; }
/* Verbindingslijn van icoon naar icoon */
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 90px;
  bottom: -70px;
  left: 59px;
  z-index: 1; /* boven de volgende card */
  border-left: 1px solid var(--dark);
}
/* Lijn van boven naar beneden tekenen zodra de card in beeld is */
.js .timeline__item:not(:last-child)::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .8s ease-in-out .6s;
}
.js .timeline__item.is-visible:not(:last-child)::before { transform: scaleY(1); }

.timeline__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--dark);
  background: var(--navy);
  color: var(--white);
}
.timeline__icon svg { width: 22px; height: 22px; }

.timeline__body { flex: 1; }
.timeline__body h3 { font-size: clamp(22px, 2.3vw, 28px); }

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

/* Statement */
.statement {
  max-width: 1000px;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dark);
}

/* Woord voor woord scherp worden tijdens scrollen (--r loopt van 0 naar 1) */
.statement .word {
  --r: 0;
  display: inline-block;
  opacity: calc(.15 + .85 * var(--r));
  filter: blur(calc((1 - var(--r)) * 8px));
  will-change: opacity, filter;
}

/* Footer / contact
   ========================================================================== */
.contact {
  position: relative;
  isolation: isolate;
  padding: 50px 0 80px;
  color: rgba(255, 255, 255, .8);
  background: var(--navy);
}

.contact__bg,
.contact__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--navy-rgb), .8) 0%, var(--navy) 100%);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__logo { width: 180px; margin-bottom: 40px; }
.contact__intro h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: .6em;
  color: var(--white);
}

.contact__card {
  margin-top: -100px;
  padding: 50px;
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--text);
}
.contact__title { font-size: 36px; margin-bottom: .5em; }

.contact__list { list-style: none; margin: 30px 0 0; padding: 0; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 500;
}
.contact__list svg { width: 20px; height: 20px; flex: none; color: var(--navy); }
.contact__list a { color: var(--dark); }
.contact__list a:hover { color: var(--gold); }

.footer-bar {
  padding: 20px 0;
  background: var(--dark);
  color: var(--white);
  font-size: 14px;
}
.footer-bar a { color: var(--gold); }
.footer-bar a:hover { color: var(--white); }

/* Terug naar boven */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.to-top svg { width: 16px; height: 20px; }
.to-top:hover { background: var(--gold); color: var(--white); }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* Animaties
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .carousel__track { transition: none; }
  .js .timeline__item:not(:last-child)::before { transform: none; transition: none; }
}

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services { max-width: none; }
  .about, .process { gap: 40px; }
  .about { align-items: start; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; --header-h: 80px; }

  .site-header__inner { padding: 0 var(--gutter); }
  .site-header__logo img { width: 96px; }

  .hero__content > * { max-width: none; }
  .hero__intro { font-size: 16px; }

  .section--about { padding-top: 60px; }
  .about, .process, .contact__inner { grid-template-columns: 1fr; }
  .about__text { padding-right: 0; }
  .process__media { display: none; }

  .services { grid-template-columns: 1fr; }
  .service { padding: 30px; }

  .timeline__item { gap: 16px; padding: 20px; }
  .timeline__item:not(:last-child)::before { top: 68px; bottom: -60px; left: 43px; }
  .timeline__icon { width: 48px; height: 48px; }
  .timeline__icon svg { width: 18px; height: 18px; }

  .contact { padding-bottom: 50px; }
  .contact__inner { gap: 40px; }
  .contact__card { margin-top: 0; padding: 30px; }
  .contact__list li { font-size: 16px; }

  .btn--primary { padding: 18px 36px; }
}
