/* Homepagehero v2 — alle inhoud blijft bewerkbaar als standaard Gutenberg-blokken. */
.hb-home-hero-v2 {
  --hb-home-hero-header-offset: 84px;
  position: relative;
  min-height: clamp(760px, 49vw, 825px) !important;
  padding: 0 24px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

/* Smart Slider 3 is alleen de wisselende achtergrondlaag. De Cover-overlay en
 * alle bestaande Gutenberg-inhoud blijven erboven staan. */
.hb-home-hero-v2.hero-stack {
  position: relative;
  min-height: calc(100vh - var(--hb-home-hero-header-offset) - var(--wp-admin--admin-bar--height, 0px)) !important;
  min-height: calc(100svh - var(--hb-home-hero-header-offset) - var(--wp-admin--admin-bar--height, 0px)) !important;
  min-height: calc(100dvh - var(--hb-home-hero-header-offset) - var(--wp-admin--admin-bar--height, 0px)) !important;
  overflow: hidden;
  isolation: isolate;
}

.hero-stack > .hero-slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-stack > .wp-block-cover__background {
  z-index: 1;
}

.hero-stack > .wp-block-cover__inner-container,
.hero-stack .hero-kadence-content {
  position: relative;
  z-index: 2;
}

.hero-slider-bg > .n2_clear,
.hero-slider-bg ss3-force-full-width,
.hero-slider-bg .n2-section-smartslider,
.hero-slider-bg .n2-ss-align,
.hero-slider-bg .n2-padding,
.hero-slider-bg .n2-ss-slider,
.hero-slider-bg .n2-ss-slider-1,
.hero-slider-bg .n2-ss-slider-2,
.hero-slider-bg .n2-ss-slider-3,
.hero-slider-bg .n2-ss-slider-4,
.hero-slider-bg .n2-ss-slide-backgrounds,
.hero-slider-bg .n2-ss-slide-background,
.hero-slider-bg .n2-ss-slide-background-image,
.hero-slider-bg .n2-ss-slide-background-image picture,
.hero-slider-bg .n2-ss-slide-background-image img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-slider-bg ss3-force-full-width,
.hero-slider-bg .n2-section-smartslider,
.hero-slider-bg .n2-ss-align,
.hero-slider-bg .n2-padding {
  position: absolute !important;
  inset: 0 !important;
  transform: none !important;
}

.hero-slider-bg .n2-ss-preserve-size {
  display: none !important;
}

.hero-slider-bg .n2-ss-slide-background-image img {
  display: block;
  object-fit: cover !important;
  object-position: center center;
}

.hb-home-hero-v2 > .wp-block-cover__image-background {
  object-position: center center;
}

.hb-home-hero-v2 > .wp-block-cover__background {
  z-index: 1;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 34%,
    rgba(0, 0, 0, .9) 45%,
    rgba(0, 0, 0, .63) 57%,
    rgba(0, 0, 0, .18) 68%,
    transparent 78%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 34%,
    rgba(0, 0, 0, .9) 45%,
    rgba(0, 0, 0, .63) 57%,
    rgba(0, 0, 0, .18) 68%,
    transparent 78%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hb-home-hero-v2 > .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  min-height: inherit;
  margin: 0 !important;
}

.hb-home-hero-v2__inner {
  display: flex;
  width: min(100%, 1680px) !important;
  min-height: inherit;
  margin-inline: auto !important;
  padding: 50px 0 36px;
  align-items: center;
  box-sizing: border-box;
}

.hb-home-hero-v2__content {
  width: min(930px, 58vw);
  margin: 0 !important;
}

.hb-home-hero-v2__eyebrow {
  margin: 0 0 22px !important;
  color: #ff6a00 !important;
  font: 800 13px/1.25 Montserrat, Inter, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hb-home-hero-v2 h1 {
  max-width: 820px;
  margin: 0 0 46px !important;
  color: #fff;
  font: 800 clamp(56px, 4.3vw, 74px)/1.03 Montserrat, Inter, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hb-home-hero-v2__services {
  display: block;
  width: 100%;
  margin: 0 0 42px !important;
}

.hb-home-hero-v2__services > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

.hb-home-hero-v2__service {
  display: flex;
  min-width: 0;
  min-height: 166px;
  margin: 0 !important;
  padding: 4px 15px 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 1px solid rgba(255, 255, 255, .24);
  text-align: center;
}

.hb-home-hero-v2__service > .wp-block-group__inner-container {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hb-home-hero-v2__service:last-child {
  border-right: 0;
}

.hb-home-hero-v2__service-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 17px !important;
}

.hb-home-hero-v2__service-icon a,
.hb-home-hero-v2__service-icon img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hb-home-hero-v2__service-icon img {
  object-fit: contain;
}

.hb-home-hero-v2__service-label {
  margin: 0 !important;
  color: #fff;
  font: 700 16px/1.35 Inter, sans-serif;
}

.hb-home-hero-v2__actions {
  display: flex;
  gap: 22px;
  margin: 0 0 38px !important;
  flex-wrap: nowrap;
}

.hb-home-hero-v2__actions .wp-block-button {
  margin: 0;
}

.hb-home-hero-v2__button .wp-block-button__link {
  display: flex;
  min-height: 74px;
  padding: 14px 22px;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 11px;
  background: rgba(2, 16, 31, .22);
  color: #fff;
  box-shadow: none;
  font: 700 17px/1.2 Inter, sans-serif;
  white-space: nowrap;
}

.hb-home-hero-v2__button--primary .wp-block-button__link {
  width: 356px;
  border-color: #ff6a00;
  background: linear-gradient(135deg, #e95d00, #ff7600);
}

.hb-home-hero-v2__button--secondary .wp-block-button__link {
  width: 390px;
}

.hb-home-hero-v2__button .wp-block-button__link::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hb-home-hero-v2__button--primary .wp-block-button__link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13h22v14H5zM3.5 13 6 6h20l2.5 7M9 13v14m14-14v14M12 27v-8h8v8'/%3E%3C/svg%3E");
}

.hb-home-hero-v2__button--secondary .wp-block-button__link::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='1.7'%3E%3Crect x='3' y='3' width='10' height='10' rx='1'/%3E%3Crect x='19' y='3' width='10' height='10' rx='1'/%3E%3Crect x='3' y='19' width='10' height='10' rx='1'/%3E%3Crect x='19' y='19' width='10' height='10' rx='1'/%3E%3C/svg%3E");
}

.hb-home-hero-v2__button .wp-block-button__link::after {
  content: "→";
  margin-left: auto;
  font-size: 33px;
  font-weight: 300;
  line-height: 1;
}

.hb-home-hero-v2__button .wp-block-button__link:hover {
  border-color: #ff6a00;
  background: #ff6a00;
  color: #fff;
  transform: translateY(-2px);
}

.hb-home-hero-v2__certifications {
  margin: 0 !important;
}

.hb-home-hero-v2__cert-title {
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
  gap: 22px;
  margin: 0 0 20px !important;
  align-items: center;
  color: rgba(255, 255, 255, .94);
  font: 700 13px/1.2 Montserrat, Inter, sans-serif;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

.hb-home-hero-v2__cert-title::before,
.hb-home-hero-v2__cert-title::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, .3);
}

.hb-home-hero-v2__cert-logos {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px !important;
  margin: 0 !important;
  align-items: center;
}

.hb-home-hero-v2__cert-logos > .wp-block-image {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: 86px;
  margin: 0 !important;
  padding: 4px 23px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(246, 244, 250, .9));
  box-shadow: 0 8px 24px rgba(7, 10, 30, .18);
  box-sizing: border-box;
}

.hb-home-hero-v2__cert-logos > .wp-block-image:first-child {
  border-left: 1px solid rgba(255, 255, 255, .42);
}

.hb-home-hero-v2__cert-logos img {
  width: clamp(118px, 8.5vw, 132px) !important;
  max-width: none !important;
  height: clamp(118px, 8.5vw, 132px) !important;
  max-height: none;
  flex: 0 0 auto;
  filter: saturate(1.05) contrast(1.04);
  object-fit: contain !important;
}

.hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(1) img,
.hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(3) img {
  width: clamp(158px, 11vw, 184px) !important;
  height: clamp(158px, 11vw, 184px) !important;
}

@media (max-width: 1180px) {
  .hb-home-hero-v2 {
    min-height: 760px !important;
  }

  .hb-home-hero-v2__content {
    width: min(790px, 69vw);
  }

  .hb-home-hero-v2 h1 {
    margin-bottom: 38px !important;
    font-size: clamp(48px, 5.5vw, 62px);
  }

  .hb-home-hero-v2__services {
    margin-bottom: 34px !important;
  }

  .hb-home-hero-v2__service {
    min-height: 145px;
    padding-inline: 10px;
  }

  .hb-home-hero-v2__service-icon {
    width: 63px;
    height: 63px;
  }

  .hb-home-hero-v2__service-label {
    font-size: 14px;
  }

  .hb-home-hero-v2__button--primary .wp-block-button__link,
  .hb-home-hero-v2__button--secondary .wp-block-button__link {
    width: auto;
    min-width: 300px;
  }
}

@media (max-width: 900px) {
  .hb-home-hero-v2 {
    min-height: 0 !important;
    padding-inline: 20px;
  }

  .hb-home-hero-v2 > .wp-block-cover__background {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 76%, rgba(0, 0, 0, .9) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 76%, rgba(0, 0, 0, .9) 100%);
  }

  .hero-slider-bg .n2-ss-slide-background-image img {
    object-position: 66% center;
  }

  .hb-home-hero-v2__inner {
    min-height: inherit;
    padding: 40px 0 34px;
  }

  .hb-home-hero-v2__content {
    width: 100%;
  }

  .hb-home-hero-v2 h1 {
    max-width: 700px;
    margin-bottom: 30px !important;
    font-size: clamp(42px, 6vw, 52px);
  }

  .hb-home-hero-v2__services {
    margin-bottom: 28px !important;
  }

  .hb-home-hero-v2__services > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
  }

  .hb-home-hero-v2__service {
    min-height: 124px;
    padding: 10px 8px 0;
  }

  .hb-home-hero-v2__service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px !important;
  }

  .hb-home-hero-v2__service-label {
    font-size: 13px;
    line-height: 1.25;
  }

  .hb-home-hero-v2__service:nth-child(3) {
    border-right: 0;
  }

  .hb-home-hero-v2__service:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, .24);
    padding-top: 16px;
  }

  .hb-home-hero-v2__actions {
    gap: 12px;
    margin-bottom: 28px !important;
    flex-wrap: wrap;
  }

  .hb-home-hero-v2__button,
  .hb-home-hero-v2__button .wp-block-button__link {
    width: 100% !important;
  }

  .hb-home-hero-v2__button .wp-block-button__link {
    min-height: 64px;
    font-size: 15px;
  }

  .hb-home-hero-v2__cert-title {
    gap: 16px;
    margin-bottom: 14px !important;
    font-size: 12px;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image {
    height: 72px;
    padding-inline: 16px;
  }

  .hb-home-hero-v2__cert-logos img {
    width: 110px !important;
    height: 110px !important;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(1) img,
  .hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(3) img {
    width: 145px !important;
    height: 145px !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hb-home-hero-v2__actions {
    flex-wrap: nowrap;
  }

  .hb-home-hero-v2__button {
    width: auto !important;
    min-width: 0;
    flex: 1 1 0;
  }

  .hb-home-hero-v2__button .wp-block-button__link {
    min-width: 0;
    padding-inline: 18px;
  }
}

@media (max-width: 767px) {
  .hb-home-hero-v2 {
    --hb-home-hero-header-offset: 70px;
  }
}

@media (max-width: 640px) {
  .hb-home-hero-v2 {
    padding-inline: 16px;
  }

  .hb-home-hero-v2 > .wp-block-cover__background {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-slider-bg .n2-ss-slide-background-image img {
    object-position: 72% center;
  }

  .hb-home-hero-v2__inner {
    padding: 28px 0;
  }

  .hb-home-hero-v2__eyebrow {
    margin-bottom: 12px !important;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .hb-home-hero-v2 h1 {
    margin-bottom: 24px !important;
    font-size: clamp(34px, 9.4vw, 40px);
    line-height: 1.02;
  }

  .hb-home-hero-v2__services {
    display: block;
    margin-bottom: 24px !important;
  }

  .hb-home-hero-v2__services > .wp-block-group__inner-container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hb-home-hero-v2__service,
  .hb-home-hero-v2__service:nth-child(3) {
    grid-column: span 2;
    min-height: 112px;
    padding: 12px 4px 8px;
    border-right: 1px solid rgba(255, 255, 255, .24);
    border-top: 0;
  }

  .hb-home-hero-v2__service:nth-child(3) {
    border-right: 0;
  }

  .hb-home-hero-v2__service:nth-child(n + 3) {
    padding-top: 12px;
  }

  .hb-home-hero-v2__service:nth-child(4) {
    grid-column: 2 / span 2;
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-right: 1px solid rgba(255, 255, 255, .24);
  }

  .hb-home-hero-v2__service:nth-child(5) {
    grid-column: 4 / span 2;
    border-top: 1px solid rgba(255, 255, 255, .24);
    border-right: 0;
  }

  .hb-home-hero-v2__service > .wp-block-group__inner-container {
    justify-content: center;
  }

  .hb-home-hero-v2__service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px !important;
  }

  .hb-home-hero-v2__service-label {
    font-size: 12px;
    line-height: 1.2;
  }

  .hb-home-hero-v2__actions {
    gap: 10px;
    margin-bottom: 24px !important;
  }

  .hb-home-hero-v2__button .wp-block-button__link {
    min-width: 0;
    min-height: 58px;
    padding-inline: 14px;
    font-size: 14px;
    white-space: normal;
  }

  .hb-home-hero-v2__button .wp-block-button__link::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .hb-home-hero-v2__button .wp-block-button__link::after {
    font-size: 27px;
  }

  .hb-home-hero-v2__cert-title {
    gap: 10px;
    margin-bottom: 12px !important;
    font-size: 10px;
    letter-spacing: .09em;
  }

  .hb-home-hero-v2__cert-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image {
    height: 64px;
    padding-inline: 10px;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(3) {
    border-left: 0;
  }

  .hb-home-hero-v2__cert-logos img {
    width: 100px !important;
    height: 100px !important;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(1) img,
  .hb-home-hero-v2__cert-logos > .wp-block-image:nth-child(3) img {
    width: 132px !important;
    height: 132px !important;
  }
}

@media (max-width: 380px) {
  .hb-home-hero-v2__inner {
    padding-block: 20px;
  }

  .hb-home-hero-v2__eyebrow {
    margin-bottom: 10px !important;
  }

  .hb-home-hero-v2 h1 {
    margin-bottom: 20px !important;
    font-size: 32px;
  }

  .hb-home-hero-v2__services {
    margin-bottom: 20px !important;
  }

  .hb-home-hero-v2__service,
  .hb-home-hero-v2__service:nth-child(3) {
    min-height: 104px;
  }

  .hb-home-hero-v2__service-label {
    font-size: 11px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hb-home-hero-v2__actions {
    margin-bottom: 20px !important;
  }

  .hb-home-hero-v2__button .wp-block-button__link {
    min-height: 56px;
  }

  .hb-home-hero-v2__cert-title {
    margin-bottom: 8px !important;
  }

  .hb-home-hero-v2__cert-logos > .wp-block-image {
    height: 60px;
  }
}
