/* =========================
   BASIS
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #0b0c0e;
}

body {
  margin: 0;
  background: #0b0c0e;
  color: #f2f3f3;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.section {
  padding: 110px max(5vw, 32px);
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px max(5vw, 32px);

  background: rgba(11, 12, 14, 0.88);

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  flex-direction: column;

  color: #ffffff;
  text-decoration: none;

  font-family: "Space Grotesk", Arial, sans-serif;

  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand span {
  margin-top: 5px;

  font-size: 0.65rem;

  letter-spacing: 0.22em;

  color: #b9bec5;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: #b9bec5;
  text-decoration: none;
  font-size: 0.9rem;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 10px 16px;

  border: 1px solid #2f7fc1;

  color: #ffffff !important;
}

.menu-button {
  display: none;

  background: transparent;

  color: #ffffff;

  border: 1px solid #444;

  padding: 8px 12px;

  cursor: pointer;
}


/* =========================
   HERO
   ========================= */

.hero {
  min-height: calc(100vh - 77px);

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 50px;

  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;

  color: #2f7fc1;

  font-size: 0.72rem;

  font-weight: 600;

  letter-spacing: 0.18em;
}

.hero h1,
h2,
h3 {
  font-family:
    "Space Grotesk",
    Arial,
    sans-serif;

  line-height: 1.02;
}

.hero h1 {
  font-size:
    clamp(
      3.5rem,
      8vw,
      7.8rem
    );

  margin: 0;

  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #2f7fc1;
}

.lead {
  max-width: 640px;

  color: #b9bec5;

  font-size: 1.08rem;

  margin: 28px 0;
}

.hero-actions {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;
}

.button {
  display: inline-block;

  padding: 15px 21px;

  text-decoration: none;

  border: 1px solid transparent;

  font-weight: 600;

  font-size: 0.9rem;

  cursor: pointer;
}

.primary {
  background: #2f7fc1;
  color: #ffffff;
}

.secondary {
  border-color: #4a4f56;
  color: #ffffff;
}


/* =========================
   BEFORE / AFTER SLIDER
   ========================= */

.hero-visual {
  min-height: 600px;
}

.image-comparison {
  --comparison-position: 50%;

  position: relative;

  width: 100%;
  height: 600px;

  overflow: hidden;

  background: #15181c;

  border: 1px solid #2b3036;

  user-select: none;

  touch-action: none;
}


/* Beide foto's liggen
   exact over elkaar */

.comparison-image {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  max-width: none;

  object-fit: cover;

  object-position: center;

  display: block;

  pointer-events: none;
}


/* AFTER volledig onder */

.comparison-after {
  z-index: 1;
}


/* BEFORE volledig erboven */

.comparison-before {
  z-index: 2;

  clip-path:
    inset(
      0
      calc(100% - var(--comparison-position))
      0
      0
    );
}


/* Scheidingslijn */

.comparison-divider {
  position: absolute;

  top: 0;
  bottom: 0;

  left: var(--comparison-position);

  width: 2px;

  background:
    rgba(255, 255, 255, 0.92);

  transform: translateX(-50%);

  z-index: 5;

  pointer-events: none;
}


/* Ronde sliderknop */

.comparison-handle {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  border:
    2px solid
    rgba(255, 255, 255, 0.9);

  background: #171a1f;

  transform:
    translate(-50%, -50%);

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, 0.35);
}


/* Pijlen */

.comparison-arrow {
  width: 0;
  height: 0;

  border-top: 7px solid transparent;

  border-bottom: 7px solid transparent;
}

.comparison-arrow.left {
  border-right: 10px solid #ffffff;
}

.comparison-arrow.right {
  border-left: 10px solid #ffffff;
}


/* Onzichtbare interactieve slider */

.comparison-range {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  margin: 0;

  opacity: 0;

  cursor: ew-resize;

  z-index: 10;

  touch-action: none;
}


/* =========================
   INTRO
   ========================= */

.intro {
  max-width: 1000px;
}

.intro h2,
.section-heading h2,
.split h2,
.contact h2 {
  font-size:
    clamp(
      2.4rem,
      5vw,
      5.4rem
    );

  letter-spacing: -0.05em;

  margin: 0 0 25px;
}

.intro p:last-child {
  color: #aeb4bc;

  max-width: 720px;

  font-size: 1.05rem;
}


/* =========================
   SERVICES
   ========================= */

.services {
  background: #101216;
}

.section-heading {
  margin-bottom: 55px;
}

.service-card {
  display: grid;

  grid-template-columns:
    150px
    1fr;

  gap: 30px;

  padding: 45px 0;

  border-top:
    1px solid #2a2f35;
}

.service-card:last-child {
  border-bottom:
    1px solid #2a2f35;
}

.service-card b {
  color: #2f7fc1;

  font-family:
    "Space Grotesk",
    Arial,
    sans-serif;

  font-size: 1.15rem;
}

.service-card h3 {
  font-size: 2.2rem;

  margin: 0 0 14px;
}

.service-card p,
.service-card li {
  color: #aeb4bc;
}


/* =========================
   OVER ONS
   ========================= */

.split {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 7vw;

  align-items: center;
}

.placeholder {
  min-height: 620px;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #15181c,
      #262b31
    );

  border:
    1px solid #2b3036;

  color: #9ea4ab;
}

.split p:last-child {
  color: #aeb4bc;
}


/* =========================
   PORTFOLIO
   ========================= */

.portfolio {
  background: #101216;
}

.portfolio-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;
}

.portfolio-grid .placeholder {
  min-height: 430px;
}


/* =========================
   CONTACT
   ========================= */

.contact {
  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  gap: 8vw;

  background: #0f1115;
}

.contact form {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.form-row {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 18px;
}

label {
  display: flex;

  flex-direction: column;

  gap: 8px;

  font-size: 0.85rem;

  color: #c6cbd1;
}

input,
select,
textarea {
  width: 100%;

  background: #15191e;

  border:
    1px solid #30363d;

  color: #ffffff;

  padding: 13px;

  font: inherit;
}

textarea {
  resize: vertical;
}

#form-status {
  margin: 0;

  color: #8ed0a1;
}


/* =========================
   FOOTER
   ========================= */

footer {
  padding:
    50px
    max(5vw, 32px);

  border-top:
    1px solid #24292f;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  background: #0b0c0e;
}

footer p,
footer small {
  margin: 0;

  color: #9ca3ab;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 800px) {

  .main-nav {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    padding:
      20px
      max(5vw, 32px);

    background: #0b0c0e;

    flex-direction: column;

    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-visual,
  .image-comparison {
    min-height: 420px;
    height: 420px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
