/**
 * Homepage hero — merkgroen via tokens, zwart #0a0a0a, wit en zwarte overlays.
 */

.home-hero {
  --hero-green: var(--color-brand-green);
  --hero-black: #0a0a0a;
  --hero-white: #ffffff;
  position: relative;
  isolation: isolate;
  /* Full-bleed t.o.v. viewport (werkt ook als een voorouder per ongeluk smal blijft) */
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  min-width: 0;
  color: var(--hero-white);
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      105deg,
      rgba(10, 10, 10, 0.78) 0%,
      rgba(10, 10, 10, 0.58) 44%,
      rgba(10, 10, 10, 0.52) 100%
    ),
    rgba(10, 10, 10, 0.35);
}

.home-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: clamp(2.25rem, 5vw, 3.75rem)
    max(var(--header-padding-x), env(safe-area-inset-right, 0px))
    clamp(2.5rem, 6vw, 4rem)
    max(var(--header-padding-x), env(safe-area-inset-left, 0px));
}

/* Zelfde inhoudsbreedte / zij-insets als .site-header__inner — op desktop lagere hero */
@media (min-width: 960px) {
  .home-hero__container {
    max-width: var(--header-max-width);
    margin-inline: auto;
    padding-top: clamp(1.2rem, 1.9vw, 1.65rem);
    padding-bottom: clamp(1.35rem, 2.1vw, 1.85rem);
  }
}

@media (max-width: 959px) {
  .home-hero__container {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  }
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 960px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1.2rem, 2.2vw, 1.85rem);
    align-items: stretch;
  }
}

/* Desktop: compactere verticale ritmes (minder «lange» hero) */
@media (min-width: 960px) {
  .home-hero__col--copy {
    padding-top: 0;
  }

  .home-hero__accent {
    margin-bottom: 0.65rem;
  }

  .home-hero__kicker {
    margin-bottom: 0.45rem;
  }

  .home-hero__title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.55rem, 2.65vw, 2.35rem);
    line-height: 1.08;
  }

  .home-hero__lead {
    margin-bottom: 0.95rem;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .home-hero__usp-list {
    margin-bottom: 0.95rem;
    gap: 0.32rem 1.25rem;
  }

  .home-hero__usp-item {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .home-hero__actions {
    gap: 0.5rem;
  }

  .home-hero__form-phone {
    padding: 0.55rem 1rem;
  }

  .home-hero__form-phone-link {
    font-size: 0.95rem;
  }

  .home-hero__form-body {
    padding: 0.85rem 1.15rem 0.9rem;
  }

  .home-hero__form-title {
    font-size: 1.05rem;
  }

  .home-hero__form-intro {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
  }

  .home-hero__form {
    gap: 0.45rem;
  }

  .home-hero__textarea {
    min-height: 2.85rem;
    max-height: 5.5rem;
  }

  .home-hero__submit {
    min-height: 44px;
    margin-top: 0;
    padding: 0.45rem 0.75rem;
  }

  .home-hero__trust {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    font-size: 0.625rem;
  }
}

/* Linkerkolom */
.home-hero__col--copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 38rem;
}

.home-hero__accent {
  width: 48px;
  height: 3px;
  background: var(--hero-green);
  border-radius: 1px;
  margin-bottom: 1.1rem;
}

.home-hero__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.home-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hero-white);
  text-wrap: balance;
}

.home-hero__title-accent {
  color: var(--hero-green);
}

.home-hero__lead {
  margin: 0 0 1.65rem;
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.58;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.home-hero__usp-list {
  list-style: none;
  margin: 0 0 1.65rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem 1.25rem;
  width: 100%;
}

@media (min-width: 520px) {
  .home-hero__usp-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.75rem;
  }
}

.home-hero__usp-item {
  position: relative;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hero-white);
}

.home-hero__usp-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-green);
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 520px) {
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition:
    filter var(--duration-fast, 180ms) var(--ease-standard, ease),
    background-color var(--duration-fast, 180ms) var(--ease-standard, ease),
    border-color var(--duration-fast, 180ms) var(--ease-standard, ease),
    color var(--duration-fast, 180ms) var(--ease-standard, ease);
}

.home-hero__btn--primary {
  background: var(--hero-green);
  color: var(--hero-white);
  border: 2px solid var(--hero-green);
}

.home-hero__btn--primary:hover {
  filter: brightness(0.94);
}

.home-hero__btn--primary:focus-visible {
  outline: 2px solid var(--hero-green);
  outline-offset: 3px;
}

.home-hero__btn--ghost {
  background: transparent;
  color: var(--hero-white);
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-hero__btn--ghost:focus-visible {
  outline: 2px solid var(--hero-white);
  outline-offset: 3px;
}

@media (max-width: 519px) {
  .home-hero__btn {
    width: 100%;
  }
}

@media (min-width: 520px) {
  .home-hero__btn {
    width: auto;
    min-width: 11rem;
    flex: 1 1 auto;
  }

  .home-hero__btn--primary {
    flex: 1 1 12rem;
  }

  .home-hero__btn--ghost {
    flex: 1 1 10rem;
  }
}

/* Formulierblok — anker voor #home-offerte; ruimte onder sticky header bij hash-scroll */
#home-offerte {
  scroll-margin-top: clamp(6.5rem, 22vw, 9.5rem);
}

/* Formulierblok */
.home-hero__form-card {
  background: var(--hero-white);
  color: var(--hero-black);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 22px 48px rgba(10, 10, 10, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.home-hero__form-phone {
  background: var(--hero-green);
  padding: 0.62rem 1rem;
  text-align: center;
}

.home-hero__form-phone-link {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hero-white);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.home-hero__form-phone-link:hover {
  filter: brightness(1.05);
}

.home-hero__form-phone-link:focus-visible {
  outline: 2px solid var(--hero-white);
  outline-offset: 3px;
}

.home-hero__form-body {
  padding: 1rem 1rem 0.95rem;
}

@media (min-width: 520px) {
  .home-hero__form-body {
    padding: 1.1rem 1.2rem 1rem;
  }
}

.home-hero__form-title {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-black);
  line-height: 1.25;
}

.home-hero__form-intro {
  margin: 0 0 0.7rem;
  font-size: 0.78125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(10, 10, 10, 0.62);
}

.home-hero__required-note {
  margin: -0.45rem 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(10, 10, 10, 0.52);
}

.home-hero__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-hero__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Naam+e-mail en postcode+huisnummer: standaard 2 kolommen (ook mobiel), ruimte besparen */
.home-hero__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.42rem 0.5rem;
}

@media (max-width: 319px) {
  .home-hero__field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
}

@media (min-width: 520px) {
  .home-hero__field-row {
    gap: 0.48rem 0.65rem;
  }
}

.home-hero__field-row .home-hero__field {
  min-width: 0;
}

.home-hero__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-black);
}

.home-hero__label--required::after {
  content: " *";
  color: var(--hero-green);
  font-weight: 800;
}

.home-hero__optional {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(10, 10, 10, 0.45);
}

.home-hero__input,
.home-hero__select,
.home-hero__textarea {
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.55rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hero-black);
  background: var(--hero-white);
  border: 1px solid rgba(10, 10, 10, 0.22);
  border-radius: 2px;
  line-height: 1.35;
  transition:
    border-color var(--duration-fast, 180ms) var(--ease-standard, ease),
    box-shadow var(--duration-fast, 180ms) var(--ease-standard, ease);
}

.home-hero__input:hover,
.home-hero__select:hover,
.home-hero__textarea:hover {
  border-color: rgba(10, 10, 10, 0.38);
}

.home-hero__input:focus-visible,
.home-hero__select:focus-visible,
.home-hero__textarea:focus-visible {
  outline: none;
  border-color: var(--hero-green);
  box-shadow: 0 0 0 2px rgba(var(--color-brand-green-rgb), 0.35);
}

.home-hero__textarea {
  resize: vertical;
  min-height: 3.25rem;
  max-height: 7rem;
}

.home-hero__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1.5L7 6.5L13 1.5' stroke='%230a0a0a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 7px;
  padding-right: 2.25rem;
}

.home-hero__select option {
  color: var(--hero-black);
  font-weight: 500;
}

.home-hero__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0 0.65rem;
  padding: 0.55rem 0.5rem;
  border-radius: 2px;
  background: rgba(var(--color-brand-green-rgb), 0.08);
  border: 1px solid rgba(10, 10, 10, 0.08);
}

.home-hero__checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--hero-green);
  cursor: pointer;
}

.home-hero__consent-label {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.78);
  cursor: pointer;
}

.home-hero__submit {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-white);
  background: var(--hero-green);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: filter var(--duration-fast, 180ms) var(--ease-standard, ease);
}

.home-hero__submit:hover {
  filter: brightness(0.94);
}

.home-hero__submit:focus-visible {
  outline: 2px solid var(--hero-green);
  outline-offset: 3px;
}

.home-hero__trust {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  font-size: 0.65625rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: rgba(10, 10, 10, 0.52);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__btn,
  .home-hero__input,
  .home-hero__select,
  .home-hero__textarea,
  .home-hero__submit {
    transition: none;
  }
}
