/* ==========================================================================
   Klantbeoordelingen – NovaDecor
   Zelfde typografie en kaarten als de rest van de site.
   ========================================================================== */

.page-kb {
  background: #fff;
  color: #171717;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.page-kb .kb-main {
  flex: 1 0 auto;
}

.kb-wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .kb-wrap {
    width: min(72rem, calc(100% - 3rem));
  }
}

@media (min-width: 1024px) {
  .kb-wrap {
    width: min(72rem, calc(100% - 4rem));
  }
}

/* Breadcrumbs */
.page-kb .breadcrumbs {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.page-kb .breadcrumbs .kb-wrap {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-kb .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-kb .breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.page-kb .breadcrumbs a,
.page-kb .breadcrumbs [aria-current="page"] {
  font-size: 0.75rem;
  text-decoration: none;
  color: #525252;
}

.page-kb .breadcrumbs a:hover {
  color: #171717;
}

.page-kb .breadcrumbs [aria-current="page"] {
  color: #171717;
}

.page-kb .breadcrumbs-sep {
  width: 1rem;
  height: 1rem;
  color: #a3a3a3;
}

/* Hero */
.kb-hero {
  padding: 1.75rem 0 0.5rem;
}

@media (min-width: 768px) {
  .kb-hero {
    padding-top: 2.25rem;
  }
}

.kb-hero-title {
  margin: 0 0 0.65rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #171717;
}

@media (min-width: 768px) {
  .kb-hero-title {
    font-size: 2rem;
  }
}

.kb-hero-lead {
  max-width: 40rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #525252;
}

.kb-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}

.kb-score {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #171717;
  text-decoration: none;
  font-size: 0.875rem;
}

.kb-logo {
  display: block;
  width: auto;
  height: auto;
}

.kb-logo--trustpilot {
  height: 16px;
}

.kb-logo--google {
  width: 18px;
  height: 18px;
}

.kb-score .kb-logo--trustpilot {
  height: 22px;
}

.kb-score .kb-logo--google {
  width: 24px;
  height: 24px;
}

.kb-score:hover strong {
  text-decoration: underline;
}

.kb-score strong {
  font-weight: 700;
}

/* Trustpilot-sterren op één rij, met een kleine gelijke tussenruimte. */
.kb-tpstars {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  height: 20px;
  line-height: 0;
  font-size: 0;
}

.kb-tpstar {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-image: url("https://cdn.shopify.com/s/files/1/0762/6231/0225/files/trustpilot-5-stars-9b53_13690343-d293-44e4-902b-d48a442ca2e3.png?v=1790555238");
  background-repeat: no-repeat;
  background-size: calc(2000px * 20 / 375) calc(452px * 20 / 375);
}

.kb-tpstar--1 { background-position: 0 calc(-42px * 20 / 375); }
.kb-tpstar--2 { background-position: calc(-406px * 20 / 375) calc(-42px * 20 / 375); }
.kb-tpstar--3 { background-position: calc(-812px * 20 / 375) calc(-42px * 20 / 375); }
.kb-tpstar--4 { background-position: calc(-1218px * 20 / 375) calc(-42px * 20 / 375); }
.kb-tpstar--5 { background-position: calc(-1625px * 20 / 375) calc(-42px * 20 / 375); }

.kb-stars {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  line-height: 0;
}

.kb-star-box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-color: #dcdce6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.7' d='M12 2.6l2.5 5.4 5.9.7-4.4 4 1.2 5.8L12 15.8 6.8 18.5l1.2-5.8-4.4-4 5.9-.7L12 2.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.kb-star-box.is-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2.6l2.5 5.4 5.9.7-4.4 4 1.2 5.8L12 15.8 6.8 18.5l1.2-5.8-4.4-4 5.9-.7L12 2.6z'/%3E%3C/svg%3E");
}

.kb-stars--google .kb-star-box.is-on {
  background-color: #fbbc04;
}

.kb-stars--4 .kb-star-box.is-on { background-color: #73cf11; }
.kb-stars--3 .kb-star-box.is-on { background-color: #ffce00; }
.kb-stars--2 .kb-star-box.is-on { background-color: #ff8622; }
.kb-stars--1 .kb-star-box.is-on { background-color: #ff3722; }
.kb-stars--0 .kb-star-box.is-on { background-color: #00b67a; }

/* Uitgelicht citaat */
.kb-pull {
  padding: 1.75rem 0 0.25rem;
}

.kb-pull blockquote {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid #e5e5e5;
}

.kb-pull p {
  max-width: 46rem;
  margin: 0.85rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #171717;
}

@media (min-width: 768px) {
  .kb-pull p {
    font-size: 1.25rem;
  }
}

.kb-pull footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #737373;
}

.kb-pull footer strong {
  font-weight: 600;
  color: #171717;
}

/* Secties */
.kb-stories-section,
.kb-notes-section,
.kb-archive,
.kb-faq {
  padding-top: 2.25rem;
}

.kb-faq {
  padding-bottom: 3rem;
}

.kb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-bottom: 1rem;
}

.kb-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #171717;
}

.kb-section-head .kb-section-title {
  margin-bottom: 0;
}

.kb-section-note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #525252;
}

.kb-stories {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .kb-stories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kb-story {
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
}

.kb-story p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #404040;
}

.kb-story footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #737373;
}

.kb-story footer strong {
  font-weight: 600;
  color: #171717;
}

/* Korte punten */
.kb-notes {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #e5e5e5;
}

@media (min-width: 800px) {
  .kb-notes {
    grid-template-columns: 1fr 1fr;
  }
}

.kb-note {
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e5e5;
}

@media (min-width: 800px) {
  .kb-note:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .kb-note:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid #e5e5e5;
  }
}

.kb-note dt {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #171717;
}

.kb-note dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #525252;
}

/* CTA */
.kb-cta {
  margin-top: 2.25rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.kb-cta-inner {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
}

@media (min-width: 800px) {
  .kb-cta-inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.kb-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #171717;
}

.kb-cta p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #525252;
}

.kb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.kb-btn--ghost {
  background: #fff;
  color: #171717;
}

.kb-btn:hover {
  background: #000;
}

.kb-btn--ghost:hover {
  background: #fafafa;
}

.kb-btn:focus-visible,
.kb-filter:focus-visible,
.kb-more:focus-visible,
.kb-faq summary:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

/* Archief */
.kb-filters {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.kb-filters::-webkit-scrollbar {
  display: none;
}

.kb-filter {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #fff;
  color: #525252;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.kb-filter.is-active {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

.kb-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .kb-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .kb-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.kb-card {
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
}

.kb-card[hidden] {
  display: none;
}

.kb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.kb-source {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

.kb-pull footer,
.kb-story footer {
  align-items: center;
}

.kb-card h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #171717;
}

.kb-card .kb-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #525252;
}

.kb-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: #737373;
}

.kb-card footer strong {
  font-weight: 600;
  color: #404040;
}

.kb-verified {
  color: #00b67a;
}

.kb-reply {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #525252;
}

.kb-reply strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #171717;
}

.kb-empty {
  margin: 0.25rem 0 1rem;
  font-size: 0.9375rem;
  color: #525252;
}

.kb-more {
  display: none;
  margin: 1rem 0 0;
  padding: 0.55rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.kb-more:hover {
  border-color: #171717;
}

.page-kb.is-enhanced:not(.is-expanded):not(.is-filtering) .kb-card[data-extra] {
  display: none;
}

.page-kb.is-enhanced:not(.is-expanded) .kb-more {
  display: inline-flex;
}

.page-kb.is-enhanced.is-expanded .kb-more,
.page-kb.is-enhanced.is-filtering .kb-more {
  display: none;
}

.kb-footnote {
  margin: 1.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #737373;
}

.kb-footnote a {
  color: #404040;
}

/* FAQ */
.kb-faq-list {
  border-top: 1px solid #e5e5e5;
}

.kb-faq details {
  border-bottom: 1px solid #e5e5e5;
}

.kb-faq summary {
  padding: 0.9rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #171717;
}

.kb-faq details p {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #525252;
}

.kb-faq a {
  color: #171717;
}
