:root {
  --s2b-hero-bg: url('/sites/default/files/hero-front.jpg');
}

.s2b-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
  background-image: var(--s2b-hero-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.s2b-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
}

.s2b-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.s2b-hero__title {
  font-size: clamp(1.8rem, 2vw + 1rem, 3rem);
  margin: 0 0 .5rem;
  font-weight: 700;
}

.s2b-hero__subtitle {
  margin: 0 0 1.25rem;
  opacity: .9;
}

.s2b-hero__search {
  display: inline-flex;
  gap: .5rem;
  width: min(760px, 95%);
  background: rgba(255,255,255,.08);
  padding: .5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  margin: 0 auto 1rem;
}

.s2b-hero__search input[type="text"] {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: .75rem 1rem;
  outline: none;
}

.s2b-hero__search input[type="text"]::placeholder {
  color: rgba(255,255,255,.85);
}

.s2b-btn {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #111;
}

.s2b-hero__types {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .25rem;
}

.s2b-chip {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
  backdrop-filter: blur(3px);
}

.s2b-chip:hover { background: rgba(255,255,255,.25); }
/* ===== Mobile hero text fixes ===== */
@media (max-width: 576px) {
  .s2b-hero {
    padding: 3rem 1rem;                 /* extra ruimte rondom tekst */
    padding-top: calc(3rem + env(safe-area-inset-top, 0px));
  }

  .s2b-hero__inner {
    max-width: 95vw;                    /* iets breder op mobiel */
    padding-inline: .25rem;
  }

  .s2b-hero__title {
    font-size: clamp(1.4rem, 6vw, 2rem);/* kleiner op mobiel */
    line-height: 1.15;                  /* compacter, geen afsnijden */
    margin-bottom: .4rem;
    overflow-wrap: anywhere;            /* no-breaks? toch afbreken */
    word-break: normal;
    hyphens: auto;
  }

  .s2b-hero__subtitle {
    font-size: clamp(.95rem, 3.8vw, 1.05rem);
    line-height: 1.3;
    margin-bottom: .75rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Hero search bar: iets smaller + betere flow */
  .s2b-hero__search {
    width: calc(100% - 2rem);
    margin-inline: auto;
    gap: .35rem;
    padding: .4rem;
    flex-wrap: nowrap;                  /* input + button op 1 regel */
    box-sizing: border-box;
  }
  .s2b-hero__search input[type="text"] {
    min-width: 0;                       /* voorkom overflow */
    padding: .65rem .8rem;
  }
  .s2b-hero__search .s2b-btn {
    flex: 0 0 auto;                     /* knop krimpt niet */
    white-space: nowrap;
    padding: .65rem 1rem;
  }
}

/* Iets kleinere tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .s2b-hero__title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
  .s2b-hero__subtitle { font-size: clamp(1rem, 2.6vw, 1.15rem); }
}
/* === Mobiel: veilige layout voor zoekbalk en teksten === */

/* Phones tot 576px: input + knop op 1 regel, zonder overflow */
@media (max-width: 576px) {
  .s2b-hero {
    padding: 3rem 1rem;
    padding-top: calc(3rem + env(safe-area-inset-top, 0px));
  }

  .s2b-hero__inner {
    max-width: 100vw;
    padding-inline: .5rem;
  }

  .s2b-hero__title {
    font-size: clamp(1.3rem, 5.5vw, 1.9rem);
    line-height: 1.15;
    margin-bottom: .45rem;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .s2b-hero__subtitle {
    font-size: clamp(.9rem, 3.6vw, 1rem);
    line-height: 1.3;
    margin-bottom: .75rem;
    overflow-wrap: anywhere;
    white-space: normal;   /* voorkom afsnijden */
    hyphens: auto;
  }

  /* Zoekbalk als grid: 1fr (input) + auto (knop) */
  .s2b-hero__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: calc(100% - 2rem);
    margin-inline: auto;
    gap: .35rem;
    padding: .4rem;
    box-sizing: border-box;
  }

  .s2b-hero__search input[type="text"] {
    min-width: 0;             /* essentieel tegen overflow */
    padding: .65rem .8rem;
  }

  .s2b-hero__search .s2b-btn {
    flex: 0 0 auto;
    white-space: nowrap;       /* geen afbreken van knoptekst */
    padding: .65rem 1rem;
  }
}

/* Zeer smalle phones (tot 400px): knop onder het veld, full-width */
@media (max-width: 400px) {
  .s2b-hero__search {
    grid-template-columns: 1fr;     /* stapelen */
    width: calc(100% - 1.5rem);
    gap: .35rem;
  }
  .s2b-hero__search .s2b-btn {
    width: 100%;
    justify-self: stretch;
    text-align: center;
  }
}
.s2b-hero {
  position: relative;
  background: var(--s2b-hero-bg) center/cover no-repeat;
  overflow: hidden;
}
.s2b-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.s2b-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.35); /* optioneel tint */
}
.s2b-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}


/* === HOTFIX: force hero background for all users (no vars/JS) === */
.s2b-hero{
  background-image: url("/sites/default/files/hero-front.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
