.hero {
  position: relative;
  background: none;
  min-height: 520px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.15));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/Afbeelding-van-WhatsApp-op-2023-08-11-om-19.45.13_912c2d1d.jpg") center / cover no-repeat;
  opacity: 0;
  transform: scale(1.02);
  animation: heroFade 1.1s ease forwards;
  z-index: 0;
  will-change: opacity, transform;
}

.hero-content {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 0 120px;
  z-index: 3;
}

.hero-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 24px 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px);
  animation: blockFade 0.8s ease 0.35s forwards;
  will-change: opacity, transform;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  overflow: visible;
}

.hero-tag {
  position: absolute;
  top: -22px;
  left: 20px;
  background: var(--green-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 6px;
}

.hero-card h1 {
  margin: 0;
  font-size: 42px;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero-card .hero-btn {
  display: inline-block;
  margin-top: 4px;
  background: #2b2b2b;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  align-self: flex-end;
  transform: translateY(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-card .hero-btn:hover,
.hero-card .hero-btn:focus {
  transform: translateY(18px) scale(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

.separator {
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

.separator.top {
  top: -1px;
}

.separator.bottom {
  bottom: -1px;
}

.content {
  padding: 80px 0 120px;
}

.content-inner {
  max-width: 760px;
  opacity: 0;
  transform: translateY(16px);
  animation: blockFade 0.8s ease 0.6s forwards;
  will-change: opacity, transform;
}

.content h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #1c1c1c;
}

.content p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: #3b3b3b;
}

.content em strong {
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-content {
    justify-content: center;
    padding: 80px 0 140px;
  }

  .hero-card h1 {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-bottom: 16px;
  }

  .hero {
    min-height: 460px;
  }

  .hero-content {
    min-height: 460px;
    padding: 80px 0 120px;
  }

  .hero-card {
    padding: 18px 20px;
  }

  .hero-card h1 {
    font-size: 28px;
  }

  .content {
    padding: 60px 0 90px;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-card,
  .content-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
