/* =========================================================
 * HSF — Google Reviews / social proof
 * Losstaand bestand. Raakt geen bestaande selectors aan.
 * Alle classes zijn geprefixt met .hsf-grev- (grev = Google reviews)
 * om botsingen met de bestaande .hsf-trust van de calculator
 * te voorkomen.
 * ======================================================= */

.hsf-grev-slot:empty {
  display: none;
}

/* Ruimte vooraf reserveren -> geen layout shift wanneer de bar
   door JS in de mobiele slot wordt geplaatst. */
@media (max-width: 991px) {
  .hsf-grev-slot--top {
    min-height: 78px;
  }
}

.hsf-grev {
  /* Tokens spiegelen de calculator (.hsf-calc) 1-op-1 */
  --hsf-grev-ink: #262a36;
  --hsf-grev-mute: #5c666d;
  --hsf-grev-line: #e6e8ec;
  --hsf-grev-bg: #f5f6f8;
  --hsf-grev-accent: var(--theme-color, #ff5e14);
  --hsf-grev-gold: #f4b400;
  --hsf-grev-r: 8px;
  --hsf-grev-shadow: 0 8px 28px rgba(38, 42, 54, 0.06);
  --hsf-grev-border: 1px solid rgba(20, 24, 34, 0.08);
  color: var(--hsf-grev-ink);
  box-sizing: border-box;
}

.hsf-grev *,
.hsf-grev *::before,
.hsf-grev *::after {
  box-sizing: border-box;
}

/* =========================================================
 * 1. Sterren (herbruikbaar)
 * ======================================================= */
.hsf-grev-stars {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
  white-space: nowrap;
}

.hsf-grev-stars__layer {
  display: block;
  line-height: 0;
}

.hsf-grev-stars__layer svg {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
}

.hsf-grev-stars__layer--base svg {
  fill: #dcdfe4;
}

.hsf-grev-stars__layer--fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: var(--hsf-grev-fill, 100%);
}

.hsf-grev-stars__layer--fill svg {
  fill: var(--hsf-grev-gold);
}

/* =========================================================
 * 2. Compacte trustbar
 * ======================================================= */
.hsf-grev-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto;
  padding: 12px 14px;
  background: #fff;
  border: var(--hsf-grev-border);
  border-radius: var(--hsf-grev-r);
  box-shadow: var(--hsf-grev-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

a.hsf-grev-bar:hover,
a.hsf-grev-bar:focus-visible {
  box-shadow: 0 12px 34px rgba(38, 42, 54, 0.1);
  transform: translateY(-1px);
  color: inherit !important;
}

a.hsf-grev-bar:focus-visible {
  outline: 2px solid var(--hsf-grev-accent);
  outline-offset: 3px;
}

.hsf-grev-bar__logo {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: block;
}

.hsf-grev-bar__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.hsf-grev-bar__title {
  font-family: var(--title-font, inherit);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hsf-grev-ink);
  overflow-wrap: anywhere;
}

.hsf-grev-bar__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--hsf-grev-mute);
}

.hsf-grev-bar__score {
  font-weight: 700;
  color: var(--hsf-grev-ink);
}

.hsf-grev-bar__sep {
  color: #b9bec6;
}

.hsf-grev-bar__lead {
  display: none;
}

.hsf-grev-bar__cta {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hsf-grev-accent);
}

.hsf-grev-bar__cta::after {
  content: "→";
  font-weight: 400;
}

/* Mobiel: pijltje rechts i.p.v. volledige knoptekst (ruimte) */
.hsf-grev-bar__chev {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  color: var(--hsf-grev-accent);
}

/* --- Subtiele offerte-CTA onder de trustbar (mobiel) --- */
.hsf-grev-quote {
  display: block;
  width: min(1120px, calc(100% - 24px));
  margin: -4px auto 12px;
  padding: 2px 2px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--hsf-grev-accent);
  text-decoration: none !important;
}

.hsf-grev-quote::after {
  content: " →";
}

.hsf-grev-quote:focus-visible {
  outline: 2px solid var(--hsf-grev-accent);
  outline-offset: 2px;
}

/* --- Desktop: brede horizontale bar direct onder de hero --- */
@media (min-width: 992px) {
  .hsf-grev-quote {
    display: none;
  }

  .hsf-grev-bar {
    gap: 18px;
    margin: -26px auto 26px; /* net over de onderrand van de hero */
    padding: 14px 22px;
    position: relative;
    z-index: 4;
    box-shadow: 0 16px 40px rgba(20, 24, 34, 0.12);
  }

  .hsf-grev-bar__logo {
    width: 26px;
    height: 26px;
  }

  .hsf-grev-bar__body {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .hsf-grev-bar__title {
    font-size: 15px;
    white-space: nowrap;
  }

  .hsf-grev-bar__meta {
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hsf-grev-bar__lead {
    display: block;
    padding-left: 16px;
    border-left: 1px solid var(--hsf-grev-line);
    font-size: 14px;
    color: var(--hsf-grev-mute);
    white-space: nowrap;
  }

  .hsf-grev-bar__cta {
    display: inline-flex;
  }

  .hsf-grev-bar__chev {
    display: none;
  }

  .hsf-grev-stars__layer svg {
    width: 16px;
    height: 16px;
  }
}

/* Smalle telefoons: titel mag afbreken, niets loopt over. */
@media (max-width: 359px) {
  .hsf-grev-bar {
    gap: 10px;
    padding: 10px 12px;
  }

  .hsf-grev-bar__title {
    font-size: 13px;
  }
}

/* =========================================================
 * 3. Grote reviewsectie
 * ======================================================= */
.hsf-grev-section {
  background: var(--hsf-grev-bg);
  padding: 44px 0;
}

.hsf-grev-section__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hsf-grev-section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
}

.hsf-grev-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hsf-grev-accent);
}

.hsf-grev-section__title {
  margin: 0;
  font-family: var(--title-font, inherit);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--hsf-grev-ink);
  text-transform: none;
}

.hsf-grev-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--hsf-grev-mute);
}

.hsf-grev-summary__logo {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.hsf-grev-summary__score {
  font-weight: 700;
  color: var(--hsf-grev-ink);
}

/* --- Kaarten --- */
.hsf-grev-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.hsf-grev-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: #fff;
  border: var(--hsf-grev-border);
  border-radius: var(--hsf-grev-r);
  box-shadow: var(--hsf-grev-shadow);
}

.hsf-grev-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hsf-grev-card__logo {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  opacity: 0.9;
}

.hsf-grev-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3c424c;
  overflow-wrap: anywhere;
}

.hsf-grev-card__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsf-grev-card__more {
  align-self: flex-start;
  margin: -4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--hsf-grev-accent);
  cursor: pointer;
}

.hsf-grev-card__more:focus-visible {
  outline: 2px solid var(--hsf-grev-accent);
  outline-offset: 2px;
}

.hsf-grev-card__foot {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.hsf-grev-card__author {
  font-weight: 700;
  color: var(--hsf-grev-ink);
}

.hsf-grev-card__date {
  color: #8a8f96;
}

/* --- Sectie-CTA --- */
.hsf-grev-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--hsf-grev-r);
  background: var(--hsf-grev-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.hsf-grev-section__cta:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.hsf-grev-section__cta:focus-visible {
  outline: 2px solid var(--hsf-grev-ink);
  outline-offset: 3px;
}

/* --- Desktop: 3 naast elkaar --- */
@media (min-width: 768px) {
  .hsf-grev-cards {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

/* --- Mobiel: swipebaar met native scroll-snap, geen library --- */
@media (max-width: 767px) {
  .hsf-grev-section {
    padding: 32px 0;
  }

  .hsf-grev-section__inner {
    width: 100%;
    padding: 0 16px;
  }

  .hsf-grev-cards {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .hsf-grev-cards::-webkit-scrollbar {
    display: none;
  }

  .hsf-grev-card {
    flex: 0 0 min(84%, 320px);
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hsf-grev-bar,
  .hsf-grev-section__cta {
    transition: none;
  }

  a.hsf-grev-bar:hover,
  .hsf-grev-section__cta:hover {
    transform: none;
  }
}
