/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.6; color: #222; background: #fff; }

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 16 20px; }

/* Header */
.animated-header {  
  position: relative;
  height: 250px;
  background-image: url('../assets/images/tegelachtergrond.png'); /* jouw tegelpatroon */
  background-repeat: repeat-x;
  background-size: 1200px 800px;  /* aanpassen naar jouw patroon */
  animation: scroll 20s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  position: relative;
  z-index: 10;
  max-height: 180px;
}

@keyframes scroll {
  from { background-position: 0 0; }
  to { background-position: -2000px 0; }
}
.site-header { border-bottom: 1px solid #666; background: #666; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: center; padding: 14px 20px; }
.logo { height: 220px; bottom: 16px; width: auto; border-radius: 16px; filter: drop-shadow(2px 6px 8px rgba(0,0,0,0.55)) }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: inherit; }
.brand-text { font-weight: 700; font-size: 1.8rem; }
.main-nav a { margin-left: 12px; text-decoration: none; color: #333; }
.main-nav a:hover{ border-bottom: 2px solid #666}
.main-nav a.btn { padding: 8px 14px; border: 1px solid #666; border-radius: 10px; }
.main-nav a.btn:hover {background-color: #2d3e50; color: #fff; border-color: #bcae9a; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
 transform: translateY(-1px)}


/* Hero */
.hero { padding: 16px 0; background: #eee3d2; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero p { max-width: 720px; margin-bottom: 16px; }
.btn { display: inline-block; text-decoration: none; cursor: pointer; }
.btn-primary { background: #2d3e50; color: #fff; padding: 10px 16px; border-radius: 10px; border: none; }
.btn-primary:hover {background-color: #666}


/* Sections */
.section { padding: 32px 0; }
.section h2 { font-size: 1.6rem; margin-bottom: 18px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; margin-bottom: 8px; }
.features li span { margin-right: 8px; color: #2d3e50; font-weight: 700; }
.note { color: #666; margin-top: 6px; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 620px;
  padding-top: 40%;
  z-index: 100%;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #fafafa;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel.slides{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* De container van de slides */
.slides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* De slides zelf (in jouw HTML zijn dit <img class="slide"> ) */
.slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

/* Alleen de actieve slide is zichtbaar */
.slide.active {
  opacity: 1;
}

/* Zorg dat de foto het hele vlak vult */
.slides img.slide {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* snijdt netjes bij, geen springen */
  border-radius: 16px;
}

/* Navigatieknoppen en dots blijven zoals ze waren */
.control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: absolute;
  pointer-events: auto;
  cursor: pointer;
}
.control.prev { left: 10px; }
.control.next { right: 10px; }

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
}
.dots button.active {
  background: #2d3e50;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.card { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: #fff; }
.card label { display: block; margin-bottom: 12px; }
.card input, .card textarea { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #ddd; }
.card button { margin-top: 6px; }
.card-contact p { line-height: 1.8; }

/* Footer */
.site-footer { border-top: 1px solid #eee; padding: 18px 0; background: #fafafa; text-align: center; color: #666; }

/* Responsive tweaks */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.5;
    padding: 0 10px;
  }
}
  .container {
    padding: 10px;
  }
.slider img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
  /* Meerdere blokken onder elkaar ipv naast elkaar */
  .kolom {
    width: 100%;
    display: block;
    margin-bottom: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 6px;
  }

  button, .btn, a.btn {
    padding: 9px 9px;
    font-size: 9px;
  }

 
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav a { margin-left: 12px; }


#diensten {
    position: relative;
    z-index: 2;
  background: linear-gradient(
180deg,
#eee3d2 0%,
#eee3d2 25%,
rgba(238,227,210,0.85) 40%,
rgba(238,227,210,0.45) 60%,
rgba(238,227,210,0.15) 75%,
transparent 100%);
  
  padding: 60px 0 420px;
}

#diensten h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* Grid layout */
#diensten .features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 767px) {
  #diensten .features {
    grid-template-columns: 1fr;
  }
}

/* Card style */
#diensten .features li {
  position: relative;
  padding: 18px 18px 18px 40px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}

#diensten .features li:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Icoon-blokje links */
#diensten .features li span {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 3px;
  height: calc(100% - 32px);
background: rgba(0,0,0,0.35);
border-radius: 4px;
}

#diensten .features li span::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(0,0,0,0.35);
}

/* Let-op balk */
#diensten .note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  font-weight: 500;
}

#portfolio{
    position: relative;
    margin-top: 0;
    padding-top: 0;
    z-index: 1;
    padding-bottom: 0;
}

#portfolio .carousel{
    position: relative;
    top: -360px;
    margin-bottom: -360px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.08);
}