/* ==========================================================================
   DigiConcept – maten afgeleid van het PDF-ontwerp (327.5pt breed),
   geschaald naar een referentiebreedte van 1440px (1pt ≈ 4.4px).
   ========================================================================== */

:root {
  --orange: #e26e35;
  --dark: #444644;
  --grey: #cccccc;
  --text: #444644;
  --muted: #9d9d9e;
  --service-title: #5d5e5c;
  --footer-title: #e4e3e5;
  --footer-text: #a6a7a8;
  --hero-bg: #f9f9fb;
  --font-heading: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --container: 1440px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-heading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p,
ul {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 39px;
  line-height: 47px;
  color: var(--text);
  text-align: center;
}

.section-title--light {
  color: #fff;
}

.lead {
  font-size: 18.4px;
  line-height: 22px;
  text-align: center;
  color: var(--text);
}

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

.hero {
  position: relative;
  background: var(--hero-bg) url("../assets/img/hero-bg.jpg") right bottom / cover no-repeat;
  height: 468px;
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
}

/* horizontale lijn onder logo en menu */
.topbar::after {
  content: "";
  position: absolute;
  left: 97px;
  right: 89px;
  bottom: 0;
  height: 1px;
  background: #1d1d1b;
}

.brand {
  position: absolute;
  top: 48px;
  left: 92px;
}

.brand__logo {
  width: 317px;
}

.tagline {
  position: absolute;
  top: 130px;
  left: 92px;
  width: 317px;
}

.nav {
  position: absolute;
  top: 88px;
  left: 886px;
}

.nav ul {
  display: flex;
}

/* vaste kolombreedtes zodat elk item exact op de ontwerp-positie start */
.nav li:nth-child(1) { width: 80px; }
.nav li:nth-child(2) { width: 104px; }
.nav li:nth-child(3) { width: 109px; }
.nav li:nth-child(4) { width: 115px; }

.nav a {
  display: block;
  font-weight: 700;
  font-size: 17.6px;
  line-height: 24px;
  color: #000;
  transition: color .2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
}

.hero__content {
  position: absolute;
  top: 164px;
  left: 64.72%;
  width: 398px;
  color: #fff;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 49px;
  line-height: 52px;
  letter-spacing: -.2px;
}

.hero__title-light {
  display: block;
  font-weight: 400;
}

.hero__text {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 19.5px;
  line-height: 23.3px;
}

.band {
  height: 51px;
  background: var(--dark);
}

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

.services {
  padding: 142px 0 112px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 27px;
  padding: 0 56px 0 70px;
}

.service {
  text-align: center;
}

.service__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 205px;
}

.service:nth-child(1) .service__media img { width: 322px; }
.service:nth-child(2) .service__media img { width: 190px; transform: translateX(-19px); }
.service:nth-child(3) .service__media img { width: 322px; transform: translateX(-2px); }

/* optische correcties t.o.v. het ontwerp */
.service:nth-child(1) .service__title,
.service:nth-child(1) p { transform: translateX(-5px); }
.service:nth-child(2) .service__title { transform: translateX(-19px); }
.service:nth-child(2) p { transform: translateX(-4px); }
.service:nth-child(3) p { transform: translateX(-4px); }

.service__title {
  margin-top: 46px;
  font-weight: 700;
  font-size: 26px;
  line-height: 31px;
  color: var(--service-title);
}

.service__title--accent {
  color: var(--orange);
}

.service p {
  max-width: 420px;
  margin: 11px auto 0;
  font-family: var(--font-body);
  font-size: 16.4px;
  line-height: 19.7px;
  letter-spacing: .45px;
  color: var(--muted);
}

/* ---------- Waarom ---------- */

.why {
  background: var(--grey);
  padding: 91px 0 125px;
}

.why .container,
.partners .container,
.cta .container {
  padding: 0 88px;
}

.why .lead:first-of-type {
  margin-top: 58px;
}

.why .lead + .lead {
  margin-top: 22px;
}

.usp {
  display: table;
  margin: 40px auto 0;
  transform: translateX(-18px);
}

.usp li {
  position: relative;
  padding-left: 29px;
  font-size: 20px;
  line-height: 26px;
}

.usp li + li {
  margin-top: 12px;
}

.usp li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 18.5px;
  height: 27px;
  background: var(--orange);
  clip-path: polygon(0 0, 35% 0, 100% 50%, 35% 100%, 0 100%, 65% 50%);
}

/* ---------- Partners ---------- */

.partners {
  padding: 97px 0 112px;
}

.partners .lead {
  margin-top: 53px;
}

.partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 62px;
  padding-right: 28px;
}

.partner--digistate img { width: 200px; }
.partner--studiozz img { width: 190px; }
.partner--samebest img { width: 280px; }

.partner--studiozz { margin: 0 83px 0 65px; }

/* ---------- Projecten ---------- */

.projects {
  background: var(--dark);
  padding: 68px 0 71px;
  text-align: center;
}

.projects .section-title {
  font-size: 32px;
  line-height: 38px;
}

/* slider: 3 projecten zichtbaar, pijltjes scrollen er één op */
.projects__slider {
  position: relative;
  max-width: 1190px;
  margin: 91px auto 0;
}

.projects__grid {
  --gap: 100px;
  display: flex;
  gap: var(--gap);
  padding-top: 6px; /* ruimte voor het hover-effect */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.projects__grid::-webkit-scrollbar {
  display: none;
}

.project {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  scroll-snap-align: start;
}

.slider-btn {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: #c95a24;
}

.slider-btn:disabled {
  opacity: .3;
  cursor: default;
}

.slider-btn svg {
  width: 12px;
  height: 18px;
  fill: #fff;
}

.slider-btn--prev { left: -84px; }
.slider-btn--next { right: -84px; }

.project img {
  width: 100%;
  transition: transform .25s ease;
}

.project:hover img,
.project:focus-visible img {
  transform: translateY(-6px);
}

.btn {
  display: inline-block;
  width: 314px;
  margin-top: 44px;
  padding: 8px 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 18.4px;
  line-height: 21px;
  transition: background .2s;
}

.btn:hover,
.btn:focus-visible {
  background: #c95a24;
}

/* ---------- CTA ---------- */

.cta {
  padding: 73px 0 96px;
}

.cta .section-title {
  letter-spacing: .4px;
}

.cta .lead {
  margin-top: 31px;
  letter-spacing: .13px;
}

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

.footer {
  background: var(--dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 407px 339px 1fr;
  padding: 49px 0 58px 122px;
}

.footer__title {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 900;
  font-size: 28px;
  line-height: 33px;
  color: var(--footer-title);
}

.footer__title::after {
  content: "";
  position: absolute;
  left: var(--line-x, 115px);
  top: 18px;
  width: 80px;
  height: 1.5px;
  background: var(--footer-title);
}

.footer__col--contact .footer__title { --line-x: 128px; }
.footer__col--social .footer__title { --line-x: 157px; top: -4px; }

.footer__list {
  margin-top: 18px;
  font-style: normal;
  font-size: 15.7px;
  line-height: 18.8px;
  color: var(--footer-text);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: #fff;
}

.social {
  display: flex;
  gap: 6px;
  margin-top: 22px;
  padding-left: 3px;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  transition: background .2s;
}

.social a:hover,
.social a:focus-visible {
  background: #c95a24;
}

.social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.copyright {
  height: 57px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 57px;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1300px) {
  .topbar::after { left: 6.7%; right: 6.2%; }
  .brand,
  .tagline { left: 6.4%; }
  .nav { left: auto; right: 5.5%; }
  .nav li:nth-child(n) { width: auto; }
  .nav ul { gap: 24px; }
  .hero__content { left: 62%; width: 380px; }

  .services__grid { padding: 0 40px; column-gap: 32px; }

  .projects__slider { max-width: calc(100% - 200px); }
  .projects__grid { --gap: 5vw; }

  .footer__grid { grid-template-columns: 30% 30% 1fr; padding-left: 8.5%; }
}

@media (max-width: 1100px) {
  .br-d { display: none; }
  .service p { max-width: 330px; }
  .hero__content { left: 58%; width: 360px; }
  .hero__title { font-size: 42px; line-height: 46px; }
  .hero__text { font-size: 18px; line-height: 22px; }
  .brand__logo,
  .tagline { width: 260px; }
  .tagline { top: 124px; }

  .why .container,
  .partners .container,
  .cta .container { padding: 0 40px; }

  .partners__logos { padding-right: 0; }
  .partner--digistate img { width: 22vw; }
  .partner--studiozz img { width: 20vw; }
  .partner--samebest img { width: 28vw; }
  .partner--studiozz { margin: 0 5vw 0 4vw; }
}

@media (max-width: 900px) {
  /* Hero: menu achter hamburger, tekst onder het logo op het oranje vlak */
  .hero {
    height: auto;
    background: var(--hero-bg);
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
  }

  .topbar {
    position: relative;
    height: 96px;
  }

  .topbar::after {
    left: 24px;
    right: 24px;
  }

  .brand {
    top: 30px;
    left: 20px;
  }

  .brand__logo { width: 230px; }

  .tagline {
    position: relative;
    top: auto;
    left: auto;
    width: 230px;
    margin: 10px 0 0 20px;
  }

  .nav-toggle {
    position: absolute;
    top: 36px;
    right: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }

  .nav-open { overflow: hidden; }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav a {
    font-size: 26px;
    line-height: 32px;
    color: #fff;
  }

  .nav a:hover,
  .nav a:focus-visible { color: var(--orange); }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: 32px;
    padding: 48px 24px 52px;
    background: var(--orange) url("../assets/img/hero-bg.jpg") right bottom / auto 260% no-repeat;
  }

  .hero__title { font-size: 40px; line-height: 44px; }
  .hero__text { max-width: 440px; margin-top: 12px; }

  .band { height: 32px; }

  .services { padding: 72px 0 40px; }

  .services__grid {
    grid-template-columns: 1fr;
    row-gap: 64px;
    padding: 0 24px;
  }

  .service:nth-child(n) .service__media img,
  .service:nth-child(n) .service__title,
  .service:nth-child(n) p { transform: none; }

  .service__media { height: auto; }

  .service__title { margin-top: 32px; }

  .service p { max-width: 400px; }

  .section-title { font-size: 32px; line-height: 38px; }

  .why { padding: 64px 0 72px; }
  .why .lead:first-of-type { margin-top: 32px; }

  .why .container,
  .partners .container,
  .cta .container { padding: 0 24px; }

  .lead { font-size: 17px; line-height: 24px; }

  .usp { display: block; transform: none; max-width: 520px; }
  .usp li { font-size: 18px; line-height: 24px; }
  .usp li::before { top: -1px; width: 16px; height: 24px; }

  .partners { padding: 64px 0 72px; }
  .partners .lead { margin-top: 32px; }

  .partners__logos {
    flex-wrap: wrap;
    gap: 36px 48px;
    margin-top: 48px;
  }

  .partner--studiozz { margin: 0; }
  .partner--digistate img { width: 220px; }
  .partner--studiozz img { width: 200px; }
  .partner--samebest img { width: 280px; }

  .projects { padding: 64px 0; }

  .projects__slider {
    max-width: calc(100% - 128px);
    margin-top: 42px;
  }

  .projects__grid { --gap: 24px; }

  .project { flex-basis: 100%; }

  .slider-btn { width: 40px; height: 40px; margin-top: -17px; }
  .slider-btn--prev { left: -52px; }
  .slider-btn--next { right: -52px; }

  .btn { margin-top: 48px; }

  .cta { padding: 64px 0 72px; }
  .cta .lead { margin-top: 24px; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
    padding: 48px 24px;
  }

  .footer__col--social { grid-column: 1 / -1; }
  .footer__col--social .footer__title { top: 0; }

  .footer__title::after { position: static; margin-left: 24px; }
}

@media (max-width: 560px) {
  .brand__logo,
  .tagline { width: 190px; }
  .topbar { height: 84px; }
  .brand { top: 28px; }
  .nav-toggle { top: 26px; }

  .hero__title { font-size: 34px; line-height: 38px; }
  .hero__text { font-size: 17px; line-height: 22px; }

  .section-title { font-size: 27px; line-height: 33px; }
  .projects .section-title { font-size: 27px; }

  .btn { width: 100%; max-width: 314px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__title { font-size: 24px; }
}
