/* Normale (upright) variable font */
@font-face {
  font-family: 'Host Grotesk';
  src: url('../fonts/HostGrotesk-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Italic variable font */
@font-face {
  font-family: 'Host Grotesk';
  src: url('../fonts/HostGrotesk-Italic-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
  --primair: #040B49;
  --secundair: #D9E1FF;
  --accent: #4D6CFA;
  --bg: #FFFFFF;
  --bg-off: #F2F4FC;
  --text: #010313;
  --radius: 10px;
}

body {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 300;
    font-style: normal;
    color: var(--text);
    background: var(--bg);
    line-height: 1.4;
    font-size: 17px;
}

em, i {
    font-family: 'Host Grotesk', sans-serif;
    font-weight: 300;
    font-style: italic;
}

a {
    text-decoration: none;
}

.container {
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6{
    font-weight: 400;
    line-height: 1;
    color: var(--primair);
}

h1{
    font-size: 52px;
}

h2{
    font-size: 48px;
}

h3{
    font-size: 36px;
}

h4{
    font-size: 32px;
}

h5{
    font-size: 24px;
}

h6{
    font-size: 17px;
}

@media (max-width: 768px) {
  h1{
    font-size: 48px;
  }

  h2{
    font-size: 40px;
  }

  h3{
    font-size: 32px;
  }

  h4{
    font-size: 26px;
  }

  h5{
    font-size: 20px;
  }

  h6{
    font-size: 16px;
  }

}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 28px;
    border-radius: 50px;
    text-decoration: none;
}

.flex-between{
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
  .flex-between{
    flex-wrap: wrap;
  }
}

.top-header {
  background: var(--primair);
  padding: 18px 0;
  color: var(--secundair);
}

.top-header .container {
  gap: 60px;
  font-size: 14px;
}

.top-header p {
  font-weight: 300;
}

span.cta-top a {
    color: white;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header {
  background: var(--bg-off);
  padding: 30px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.logo {
    z-index: 1010;
}

.header a.logo img {
  width: 130px;
}

.header.menu-open .nav-toggle {
  color: #fff;
}

@media (max-width: 767px) {
  .top-header .container {
    gap: 45px;
    font-size: 13px;
  }
  .top-header .container p:nth-of-type(1),
  .top-header .container p:nth-of-type(2) {
    display: none;
  }
}

.nav {
  background: var(--bg);
  border-radius: 50px;
  padding: 18px 7px;
}

.nav a {
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  color: var(--text);
}

.nav a:hover {
  background: var(--primair);
  color: #fff;
  transform: scale(1.05);
}

.nav a.active {
  background: var(--primair);
  color: #fff;
}

.nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

.nav-toggle {
  display: none;
}

.top-header,
.header.menu-open {
  position: relative;
  z-index: 1004;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    z-index: 1005;
    padding: 0px 25px;
    color: var(--text);
  }
  
  .nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .nav ul.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    pointer-events: auto;
    z-index: 1003;
  }

  .nav ul.open::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primair);
    animation: dripDown 1.2s forwards ease-out;
    z-index: 1002;
  }

  @keyframes dripDown {
    0%   { height: 0; }
    100% { height: 100vh; }
  }

/* Menu item animation bij open */
.nav ul.open li {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(1s + var(--i) * 0.1s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
}

/* Hero */
.hero {
    background: var(--bg-off);
    padding: 90px 0;
    position: relative;
    border-radius: 0px 0px 30px 30px;
}

.hero-intro {
    align-items: center;
}

.hero-title {
    font-size: 62px;
    line-height: 1em;
    padding-bottom: 22px;
}

span.head-space {
    padding-left: 45px;
}

.hero video {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 60px;
    transition: width 0.4s ease-out;
    display: block;
}

/* Hero Mobiel */
@media (max-width: 768px) {
  .hero-intro {
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 48px;
    line-height: 1em;
    padding-bottom: 30px;
  }

  span.head-space {
    padding-left: 0px;
  }

}

/* Intro */
.intro{
    padding: 90px 0px;
}

.intro-tekst {
    display: flex;
    gap: 160px;
}

.intro-tekst h2, .intro-tekst div {
    width: 50%;
}

.intro-tekst .btn-primary{
    margin-top: 22px;
}

/* Intro Mobiel */
@media (max-width: 768px) {
  .intro-tekst h2, .intro-tekst p {
    width: 100%;
  }

  .intro-tekst {
    flex-wrap: wrap;
    gap: 45px;
  }
}


/* ===== Logo Slider ===== */
.logo-slider {
  --gap: clamp(3rem, 5vw, 5rem);           /* ruimte tussen logo's */
  --px-per-sec: 60;                        /* scroll-snelheid */
  --item-width: clamp(120px, 16vw, 120px); /* vaste tegelbreedte */
  --item-height: 40px;                     /* maximale logo-hoogte */
  position: relative;
  overflow: hidden;
  padding-block: 90px;
  width: 100%;
  background: var(--bg-off);
  transform: rotateX(1.5deg);
}

/* zachte fade aan de randen */
.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: min(8vw, 80px);
  pointer-events: none;
  z-index: 2;
}
.logo-slider::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.logo-slider::after {
  right: 0;
  background: linear-gradient(-90deg, #fff, transparent);
}

/* de bewegende track */
.logo-track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  will-change: transform;
  animation: logo-scroll linear infinite;
  /* de duur wordt via JS gezet voor perfecte snelheid */
}

/* elke tegel met vast formaat */
.logo-item {
  flex: 0 0 var(--item-width);
  height: var(--item-height);
  display: grid;
  place-items: center;
  overflow: hidden;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.9;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
  padding-inline: 0;
}

/* hover-effect */
.logo-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

/* logo-afbeeldingen zelf */
.logo-item img {
  max-height: var(--item-height);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* nooit croppen of rekken */
  display: block;
  margin: 0 auto;
}

/* Pauzeer animatie op hover of focus */
.logo-slider:hover .logo-track,
.logo-slider:focus-within .logo-track {
  animation-play-state: paused;
}

/* Minder animatie bij toegankelijkheidsinstellingen */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* Animatie zelf (JS bepaalt translate afstand) */
@keyframes logo-scroll {
  to { transform: translateX(var(--loop-to, -50%)); }
}




/* Diensten */
.diensten {
    background: var(--secundair);
    padding: 90px 0px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.diensten-inhoud h3 {
    padding-bottom: 22px;
}

.diensten h6 {
    padding: 12px 15px;
    margin-bottom: 22px;
    background: var(--bg-off);
    width: max-content;
    border-radius: 50px;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding-top: 45px;
}

.service-item {
  display: grid;
  grid-template-columns: 250px 1fr 40px;
  align-items: center;
  text-decoration: none;
  color: var(--text, #0E0F2A);
  border-bottom: 1px solid #0E0F2A;
  padding: 0.75em 0;
  transition: color 0.3s ease;
}

.service-title {
  font-size: 32px;
  font-weight: 400;
}

.service-desc {
  font-size: 1rem;
  font-weight: 300;
}

.service-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
    background: #f3f4fd;
    border-radius: 100px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effecten */
.service-item:hover {
  color: var(--primair, #4858FF);
}

.service-item:hover .service-icon {
  transform: translate(3px, -3px); /* pijltje omhoog naar rechts */
}

.diensten-afbeelding img {
    border-radius: 20px;
}

@media (min-width: 1024px) {
.diensten .container{
    display: flex;
    gap: 120px;
}

.diensten-inhoud {
    width: 60%;
}

.diensten-afbeelding {
    width: 40%;
}
}


/* Diensten Mobiel */
@media (max-width: 1024px) {
.service-title {
  font-size: 28px;
  font-weight: 400;
}

.service-item {
  grid-template-columns: 150px 1fr 40px;
}

.diensten-afbeelding {
    margin-top: 60px;
}

}



/* Projecten */ 
.projecten { 
    background: var(--primair); 
    padding: 120px 0px; 
 }

 .projecten h3{ 
    color: white;
 }
 
 .projecten h6 {
    padding: 12px 15px;
    margin-bottom: 22px;
    background: var(--bg);
    width: max-content;
    border-radius: 50px; 
 }

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding-top: 45px;
}

.project-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-item .project-title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 15px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
}

.project-item.links {
  aspect-ratio: 4 / 5;
  width: 100%;
}

.project-rechts {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 22px;
  height: 100%;
  min-height: 0;
}

.project-item.top {
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 /9;
  width: 100%;
}

.project-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-item.bottom-left,
.project-item.bottom-right {
  height: 100%;
}

.project-item.bottom-right {
  background: var(--accent);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.project-item.bottom-right .project-title {
  position: static;
  margin: 0;
  color: #fff;
  padding: 15px 22px;
  background: none;
}


/* Projecten Mobiel */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-rechts {
    grid-template-rows: auto;
    height: auto;
  }
  .project-item.links { aspect-ratio: auto; }
  .project-item.bottom-left,
  .project-item.bottom-right { aspect-ratio: auto; }
}





/* Reviews */
.reviews {
    position: relative;
    padding: 90px 0 150px 0px;
    background: var(--bg-off);
    overflow: hidden;
}

 .reviews h6 {
    padding: 12px 15px;
    margin-bottom: 22px;
    background: var(--bg);
    width: max-content;
    border-radius: 50px; 
 }

.reviews-title {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 40px;
}

.reviews-bg {
    position: absolute;
    inset: 0% -10% auto -10%;
    height: 60vh;
    background: radial-gradient(60% 60% at 50% 50%, rgba(255,130,80,0.35), rgba(255,130,80,0) 60%),
              radial-gradient(50% 50% at 60% 40%, rgba(110,70,255,0.28), rgba(110,70,255,0) 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Grid */
.reviews-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Staggered look */
.reviews-grid > *:nth-child(3n+2) { transform: translateY(20px); }
.reviews-grid > *:nth-child(3n)   { transform: translateY(40px); }

/* Card */
.review-card {
    background: var(--bg);
    border-radius: 15px;
    padding: 45px 38px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Head */
.review-head {
    display: grid;
    gap: 15px;
    align-items: center;
}

.who strong {
    display: block; 
    line-height: 1.1;
    font-size: 24px;
    font-weight: 500;
}

.who span {
    color: var(--accent); 
    font-size: .9rem;
}

.quote {
    position: absolute;
    right: 30px;
    color: var(--accent); 
    font-size: 58px; 
    line-height: 1; 
    opacity: .9;
}

/* Body */
.review-text {
}

/* Foot */
.review-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 12px;
    margin-top: 4px;
}

.stars .star {
    color: #444a55;
    font-size: 16px;
    margin-left: 2px;
}

.stars .star.on { 
    color: #ffb400; 
}

/* CTA link */
.review-link {
  align-self: flex-start;
  text-decoration: none;
  transition: color .2s ease;
  color: var(--primair);
}

.review-link:hover { 
    color: var(--accent);
 }

/* Responsive */
@media (max-width: 1100px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid > *:nth-child(3n+2),
  .reviews-grid > *:nth-child(3n) { transform: none; }
  .reviews-grid > *:nth-child(2n) { transform: translateY(20px); }
}
@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-grid > * { transform: none; }
}




/* Footer */
.site-footer {
  background: var(--primair);
  color: #fff;
  padding: 90px 0px 0px 0px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2em;
  align-items: start;
}

.footer-brand img {
  width: 180px;
}

.footer-links {
  display: flex;
  gap: 5em;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.6em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primair, #4858FF);
}

.footer-cta h4 {
  color: white;
  margin-bottom: 22px;
}

.footer-cta p {
  font-size: 0.95rem;
  margin-bottom: 30px;
  color: #bbb;
  max-width: 320px;
}

.footer-cta .btn-primary {
  display: inline-block;
  background: white;
  color: var(--primair, #4858FF);
  padding: 0.75em 1.5em;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.footer-cta .btn-primary:hover {
  background: #2e38b0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 90px;
  padding: 15px 0px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #999;
}
